; rel="last"'
+ // sets `url` to undefined if "next" URL is not present or `link` header is not set
+
+ url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
+ return {
+ value: normalizedResponse
+ };
+ } catch (error) {
+ if (error.status !== 409) throw error;
+ url = "";
+ return {
+ value: {
+ status: 200,
+ headers: {},
+ data: []
+ }
+ };
+ }
+ }
+
+ })
+ };
+}
+
+function paginate(octokit, route, parameters, mapFn) {
+ if (typeof parameters === "function") {
+ mapFn = parameters;
+ parameters = undefined;
+ }
+
+ return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
+}
+
+function gather(octokit, results, iterator, mapFn) {
+ return iterator.next().then(result => {
+ if (result.done) {
+ return results;
+ }
+
+ let earlyExit = false;
+
+ function done() {
+ earlyExit = true;
+ }
+
+ results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
+
+ if (earlyExit) {
+ return results;
+ }
+
+ return gather(octokit, results, iterator, mapFn);
+ });
+}
+
+const composePaginateRest = Object.assign(paginate, {
+ iterator
+});
+
+const paginatingEndpoints = ["GET /app/hook/deliveries", "GET /app/installations", "GET /applications/grants", "GET /authorizations", "GET /enterprises/{enterprise}/actions/permissions/organizations", "GET /enterprises/{enterprise}/actions/runner-groups", "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "GET /enterprises/{enterprise}/actions/runners", "GET /enterprises/{enterprise}/audit-log", "GET /enterprises/{enterprise}/secret-scanning/alerts", "GET /enterprises/{enterprise}/settings/billing/advanced-security", "GET /events", "GET /gists", "GET /gists/public", "GET /gists/starred", "GET /gists/{gist_id}/comments", "GET /gists/{gist_id}/commits", "GET /gists/{gist_id}/forks", "GET /installation/repositories", "GET /issues", "GET /licenses", "GET /marketplace_listing/plans", "GET /marketplace_listing/plans/{plan_id}/accounts", "GET /marketplace_listing/stubbed/plans", "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", "GET /networks/{owner}/{repo}/events", "GET /notifications", "GET /organizations", "GET /orgs/{org}/actions/cache/usage-by-repository", "GET /orgs/{org}/actions/permissions/repositories", "GET /orgs/{org}/actions/runner-groups", "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "GET /orgs/{org}/actions/runners", "GET /orgs/{org}/actions/secrets", "GET /orgs/{org}/actions/secrets/{secret_name}/repositories", "GET /orgs/{org}/audit-log", "GET /orgs/{org}/blocks", "GET /orgs/{org}/code-scanning/alerts", "GET /orgs/{org}/codespaces", "GET /orgs/{org}/credential-authorizations", "GET /orgs/{org}/dependabot/secrets", "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories", "GET /orgs/{org}/events", "GET /orgs/{org}/external-groups", "GET /orgs/{org}/failed_invitations", "GET /orgs/{org}/hooks", "GET /orgs/{org}/hooks/{hook_id}/deliveries", "GET /orgs/{org}/installations", "GET /orgs/{org}/invitations", "GET /orgs/{org}/invitations/{invitation_id}/teams", "GET /orgs/{org}/issues", "GET /orgs/{org}/members", "GET /orgs/{org}/migrations", "GET /orgs/{org}/migrations/{migration_id}/repositories", "GET /orgs/{org}/outside_collaborators", "GET /orgs/{org}/packages", "GET /orgs/{org}/packages/{package_type}/{package_name}/versions", "GET /orgs/{org}/projects", "GET /orgs/{org}/public_members", "GET /orgs/{org}/repos", "GET /orgs/{org}/secret-scanning/alerts", "GET /orgs/{org}/settings/billing/advanced-security", "GET /orgs/{org}/team-sync/groups", "GET /orgs/{org}/teams", "GET /orgs/{org}/teams/{team_slug}/discussions", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "GET /orgs/{org}/teams/{team_slug}/invitations", "GET /orgs/{org}/teams/{team_slug}/members", "GET /orgs/{org}/teams/{team_slug}/projects", "GET /orgs/{org}/teams/{team_slug}/repos", "GET /orgs/{org}/teams/{team_slug}/teams", "GET /projects/columns/{column_id}/cards", "GET /projects/{project_id}/collaborators", "GET /projects/{project_id}/columns", "GET /repos/{owner}/{repo}/actions/artifacts", "GET /repos/{owner}/{repo}/actions/caches", "GET /repos/{owner}/{repo}/actions/runners", "GET /repos/{owner}/{repo}/actions/runs", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "GET /repos/{owner}/{repo}/actions/secrets", "GET /repos/{owner}/{repo}/actions/workflows", "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "GET /repos/{owner}/{repo}/assignees", "GET /repos/{owner}/{repo}/branches", "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "GET /repos/{owner}/{repo}/code-scanning/alerts", "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", "GET /repos/{owner}/{repo}/code-scanning/analyses", "GET /repos/{owner}/{repo}/codespaces", "GET /repos/{owner}/{repo}/codespaces/devcontainers", "GET /repos/{owner}/{repo}/codespaces/secrets", "GET /repos/{owner}/{repo}/collaborators", "GET /repos/{owner}/{repo}/comments", "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/commits", "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments", "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", "GET /repos/{owner}/{repo}/commits/{ref}/check-runs", "GET /repos/{owner}/{repo}/commits/{ref}/check-suites", "GET /repos/{owner}/{repo}/commits/{ref}/status", "GET /repos/{owner}/{repo}/commits/{ref}/statuses", "GET /repos/{owner}/{repo}/contributors", "GET /repos/{owner}/{repo}/dependabot/secrets", "GET /repos/{owner}/{repo}/deployments", "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "GET /repos/{owner}/{repo}/environments", "GET /repos/{owner}/{repo}/events", "GET /repos/{owner}/{repo}/forks", "GET /repos/{owner}/{repo}/git/matching-refs/{ref}", "GET /repos/{owner}/{repo}/hooks", "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries", "GET /repos/{owner}/{repo}/invitations", "GET /repos/{owner}/{repo}/issues", "GET /repos/{owner}/{repo}/issues/comments", "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/issues/events", "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", "GET /repos/{owner}/{repo}/issues/{issue_number}/events", "GET /repos/{owner}/{repo}/issues/{issue_number}/labels", "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", "GET /repos/{owner}/{repo}/keys", "GET /repos/{owner}/{repo}/labels", "GET /repos/{owner}/{repo}/milestones", "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels", "GET /repos/{owner}/{repo}/notifications", "GET /repos/{owner}/{repo}/pages/builds", "GET /repos/{owner}/{repo}/projects", "GET /repos/{owner}/{repo}/pulls", "GET /repos/{owner}/{repo}/pulls/comments", "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments", "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits", "GET /repos/{owner}/{repo}/pulls/{pull_number}/files", "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews", "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "GET /repos/{owner}/{repo}/releases", "GET /repos/{owner}/{repo}/releases/{release_id}/assets", "GET /repos/{owner}/{repo}/releases/{release_id}/reactions", "GET /repos/{owner}/{repo}/secret-scanning/alerts", "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations", "GET /repos/{owner}/{repo}/stargazers", "GET /repos/{owner}/{repo}/subscribers", "GET /repos/{owner}/{repo}/tags", "GET /repos/{owner}/{repo}/teams", "GET /repos/{owner}/{repo}/topics", "GET /repositories", "GET /repositories/{repository_id}/environments/{environment_name}/secrets", "GET /search/code", "GET /search/commits", "GET /search/issues", "GET /search/labels", "GET /search/repositories", "GET /search/topics", "GET /search/users", "GET /teams/{team_id}/discussions", "GET /teams/{team_id}/discussions/{discussion_number}/comments", "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "GET /teams/{team_id}/discussions/{discussion_number}/reactions", "GET /teams/{team_id}/invitations", "GET /teams/{team_id}/members", "GET /teams/{team_id}/projects", "GET /teams/{team_id}/repos", "GET /teams/{team_id}/teams", "GET /user/blocks", "GET /user/codespaces", "GET /user/codespaces/secrets", "GET /user/emails", "GET /user/followers", "GET /user/following", "GET /user/gpg_keys", "GET /user/installations", "GET /user/installations/{installation_id}/repositories", "GET /user/issues", "GET /user/keys", "GET /user/marketplace_purchases", "GET /user/marketplace_purchases/stubbed", "GET /user/memberships/orgs", "GET /user/migrations", "GET /user/migrations/{migration_id}/repositories", "GET /user/orgs", "GET /user/packages", "GET /user/packages/{package_type}/{package_name}/versions", "GET /user/public_emails", "GET /user/repos", "GET /user/repository_invitations", "GET /user/starred", "GET /user/subscriptions", "GET /user/teams", "GET /users", "GET /users/{username}/events", "GET /users/{username}/events/orgs/{org}", "GET /users/{username}/events/public", "GET /users/{username}/followers", "GET /users/{username}/following", "GET /users/{username}/gists", "GET /users/{username}/gpg_keys", "GET /users/{username}/keys", "GET /users/{username}/orgs", "GET /users/{username}/packages", "GET /users/{username}/projects", "GET /users/{username}/received_events", "GET /users/{username}/received_events/public", "GET /users/{username}/repos", "GET /users/{username}/starred", "GET /users/{username}/subscriptions"];
+
+function isPaginatingEndpoint(arg) {
+ if (typeof arg === "string") {
+ return paginatingEndpoints.includes(arg);
+ } else {
+ return false;
+ }
+}
+
+/**
+ * @param octokit Octokit instance
+ * @param options Options passed to Octokit constructor
+ */
+
+function paginateRest(octokit) {
+ return {
+ paginate: Object.assign(paginate.bind(null, octokit), {
+ iterator: iterator.bind(null, octokit)
+ })
+ };
+}
+paginateRest.VERSION = VERSION;
+
+exports.composePaginateRest = composePaginateRest;
+exports.isPaginatingEndpoint = isPaginatingEndpoint;
+exports.paginateRest = paginateRest;
+exports.paginatingEndpoints = paginatingEndpoints;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+
+/***/ 8883:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ requestLog: () => requestLog
+});
+module.exports = __toCommonJS(dist_src_exports);
+
+// pkg/dist-src/version.js
+var VERSION = "4.0.1";
+
+// pkg/dist-src/index.js
+function requestLog(octokit) {
+ octokit.hook.wrap("request", (request, options) => {
+ octokit.log.debug("request", options);
+ const start = Date.now();
+ const requestOptions = octokit.request.endpoint.parse(options);
+ const path = requestOptions.url.replace(options.baseUrl, "");
+ return request(options).then((response) => {
+ octokit.log.info(
+ `${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`
+ );
+ return response;
+ }).catch((error) => {
+ octokit.log.info(
+ `${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`
+ );
+ throw error;
+ });
+ });
+}
+requestLog.VERSION = VERSION;
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 3044:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+
+function ownKeys(object, enumerableOnly) {
+ var keys = Object.keys(object);
+
+ if (Object.getOwnPropertySymbols) {
+ var symbols = Object.getOwnPropertySymbols(object);
+
+ if (enumerableOnly) {
+ symbols = symbols.filter(function (sym) {
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
+ });
+ }
+
+ keys.push.apply(keys, symbols);
+ }
+
+ return keys;
+}
+
+function _objectSpread2(target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = arguments[i] != null ? arguments[i] : {};
+
+ if (i % 2) {
+ ownKeys(Object(source), true).forEach(function (key) {
+ _defineProperty(target, key, source[key]);
+ });
+ } else if (Object.getOwnPropertyDescriptors) {
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
+ } else {
+ ownKeys(Object(source)).forEach(function (key) {
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+ });
+ }
+ }
+
+ return target;
+}
+
+function _defineProperty(obj, key, value) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, {
+ value: value,
+ enumerable: true,
+ configurable: true,
+ writable: true
+ });
+ } else {
+ obj[key] = value;
+ }
+
+ return obj;
+}
+
+const Endpoints = {
+ actions: {
+ addCustomLabelsToSelfHostedRunnerForOrg: ["POST /orgs/{org}/actions/runners/{runner_id}/labels"],
+ addCustomLabelsToSelfHostedRunnerForRepo: ["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
+ addSelectedRepoToOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],
+ approveWorkflowRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],
+ cancelWorkflowRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],
+ createOrUpdateEnvironmentSecret: ["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],
+ createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
+ createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
+ createRegistrationTokenForOrg: ["POST /orgs/{org}/actions/runners/registration-token"],
+ createRegistrationTokenForRepo: ["POST /repos/{owner}/{repo}/actions/runners/registration-token"],
+ createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
+ createRemoveTokenForRepo: ["POST /repos/{owner}/{repo}/actions/runners/remove-token"],
+ createWorkflowDispatch: ["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],
+ deleteActionsCacheById: ["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],
+ deleteActionsCacheByKey: ["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],
+ deleteArtifact: ["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
+ deleteEnvironmentSecret: ["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],
+ deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
+ deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
+ deleteSelfHostedRunnerFromOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}"],
+ deleteSelfHostedRunnerFromRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],
+ deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
+ deleteWorkflowRunLogs: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],
+ disableSelectedRepositoryGithubActionsOrganization: ["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],
+ disableWorkflow: ["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],
+ downloadArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],
+ downloadJobLogsForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],
+ downloadWorkflowRunAttemptLogs: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],
+ downloadWorkflowRunLogs: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],
+ enableSelectedRepositoryGithubActionsOrganization: ["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],
+ enableWorkflow: ["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],
+ getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
+ getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
+ getActionsCacheUsageByRepoForOrg: ["GET /orgs/{org}/actions/cache/usage-by-repository"],
+ getActionsCacheUsageForEnterprise: ["GET /enterprises/{enterprise}/actions/cache/usage"],
+ getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
+ getAllowedActionsOrganization: ["GET /orgs/{org}/actions/permissions/selected-actions"],
+ getAllowedActionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],
+ getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
+ getEnvironmentPublicKey: ["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],
+ getEnvironmentSecret: ["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],
+ getGithubActionsDefaultWorkflowPermissionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions/workflow"],
+ getGithubActionsDefaultWorkflowPermissionsOrganization: ["GET /orgs/{org}/actions/permissions/workflow"],
+ getGithubActionsDefaultWorkflowPermissionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions/workflow"],
+ getGithubActionsPermissionsOrganization: ["GET /orgs/{org}/actions/permissions"],
+ getGithubActionsPermissionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions"],
+ getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
+ getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
+ getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
+ getPendingDeploymentsForRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],
+ getRepoPermissions: ["GET /repos/{owner}/{repo}/actions/permissions", {}, {
+ renamed: ["actions", "getGithubActionsPermissionsRepository"]
+ }],
+ getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
+ getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
+ getReviewsForRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],
+ getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
+ getSelfHostedRunnerForRepo: ["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],
+ getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
+ getWorkflowAccessToRepository: ["GET /repos/{owner}/{repo}/actions/permissions/access"],
+ getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
+ getWorkflowRunAttempt: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],
+ getWorkflowRunUsage: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],
+ getWorkflowUsage: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],
+ listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
+ listEnvironmentSecrets: ["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],
+ listJobsForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],
+ listJobsForWorkflowRunAttempt: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],
+ listLabelsForSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}/labels"],
+ listLabelsForSelfHostedRunnerForRepo: ["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
+ listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
+ listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
+ listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
+ listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
+ listRunnerApplicationsForRepo: ["GET /repos/{owner}/{repo}/actions/runners/downloads"],
+ listSelectedReposForOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],
+ listSelectedRepositoriesEnabledGithubActionsOrganization: ["GET /orgs/{org}/actions/permissions/repositories"],
+ listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
+ listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
+ listWorkflowRunArtifacts: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],
+ listWorkflowRuns: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],
+ listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
+ reRunJobForWorkflowRun: ["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],
+ reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
+ reRunWorkflowFailedJobs: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],
+ removeAllCustomLabelsFromSelfHostedRunnerForOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],
+ removeAllCustomLabelsFromSelfHostedRunnerForRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
+ removeCustomLabelFromSelfHostedRunnerForOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],
+ removeCustomLabelFromSelfHostedRunnerForRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],
+ removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],
+ reviewPendingDeploymentsForRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],
+ setAllowedActionsOrganization: ["PUT /orgs/{org}/actions/permissions/selected-actions"],
+ setAllowedActionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],
+ setCustomLabelsForSelfHostedRunnerForOrg: ["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],
+ setCustomLabelsForSelfHostedRunnerForRepo: ["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
+ setGithubActionsDefaultWorkflowPermissionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/workflow"],
+ setGithubActionsDefaultWorkflowPermissionsOrganization: ["PUT /orgs/{org}/actions/permissions/workflow"],
+ setGithubActionsDefaultWorkflowPermissionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],
+ setGithubActionsPermissionsOrganization: ["PUT /orgs/{org}/actions/permissions"],
+ setGithubActionsPermissionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions"],
+ setSelectedReposForOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],
+ setSelectedRepositoriesEnabledGithubActionsOrganization: ["PUT /orgs/{org}/actions/permissions/repositories"],
+ setWorkflowAccessToRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/access"]
+ },
+ activity: {
+ checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
+ deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
+ deleteThreadSubscription: ["DELETE /notifications/threads/{thread_id}/subscription"],
+ getFeeds: ["GET /feeds"],
+ getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
+ getThread: ["GET /notifications/threads/{thread_id}"],
+ getThreadSubscriptionForAuthenticatedUser: ["GET /notifications/threads/{thread_id}/subscription"],
+ listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
+ listNotificationsForAuthenticatedUser: ["GET /notifications"],
+ listOrgEventsForAuthenticatedUser: ["GET /users/{username}/events/orgs/{org}"],
+ listPublicEvents: ["GET /events"],
+ listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
+ listPublicEventsForUser: ["GET /users/{username}/events/public"],
+ listPublicOrgEvents: ["GET /orgs/{org}/events"],
+ listReceivedEventsForUser: ["GET /users/{username}/received_events"],
+ listReceivedPublicEventsForUser: ["GET /users/{username}/received_events/public"],
+ listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
+ listRepoNotificationsForAuthenticatedUser: ["GET /repos/{owner}/{repo}/notifications"],
+ listReposStarredByAuthenticatedUser: ["GET /user/starred"],
+ listReposStarredByUser: ["GET /users/{username}/starred"],
+ listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
+ listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
+ listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
+ listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
+ markNotificationsAsRead: ["PUT /notifications"],
+ markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
+ markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
+ setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
+ setThreadSubscription: ["PUT /notifications/threads/{thread_id}/subscription"],
+ starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
+ unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
+ },
+ apps: {
+ addRepoToInstallation: ["PUT /user/installations/{installation_id}/repositories/{repository_id}", {}, {
+ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"]
+ }],
+ addRepoToInstallationForAuthenticatedUser: ["PUT /user/installations/{installation_id}/repositories/{repository_id}"],
+ checkToken: ["POST /applications/{client_id}/token"],
+ createFromManifest: ["POST /app-manifests/{code}/conversions"],
+ createInstallationAccessToken: ["POST /app/installations/{installation_id}/access_tokens"],
+ deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
+ deleteInstallation: ["DELETE /app/installations/{installation_id}"],
+ deleteToken: ["DELETE /applications/{client_id}/token"],
+ getAuthenticated: ["GET /app"],
+ getBySlug: ["GET /apps/{app_slug}"],
+ getInstallation: ["GET /app/installations/{installation_id}"],
+ getOrgInstallation: ["GET /orgs/{org}/installation"],
+ getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
+ getSubscriptionPlanForAccount: ["GET /marketplace_listing/accounts/{account_id}"],
+ getSubscriptionPlanForAccountStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"],
+ getUserInstallation: ["GET /users/{username}/installation"],
+ getWebhookConfigForApp: ["GET /app/hook/config"],
+ getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
+ listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
+ listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],
+ listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories"],
+ listInstallations: ["GET /app/installations"],
+ listInstallationsForAuthenticatedUser: ["GET /user/installations"],
+ listPlans: ["GET /marketplace_listing/plans"],
+ listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
+ listReposAccessibleToInstallation: ["GET /installation/repositories"],
+ listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
+ listSubscriptionsForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"],
+ listWebhookDeliveries: ["GET /app/hook/deliveries"],
+ redeliverWebhookDelivery: ["POST /app/hook/deliveries/{delivery_id}/attempts"],
+ removeRepoFromInstallation: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}", {}, {
+ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"]
+ }],
+ removeRepoFromInstallationForAuthenticatedUser: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],
+ resetToken: ["PATCH /applications/{client_id}/token"],
+ revokeInstallationAccessToken: ["DELETE /installation/token"],
+ scopeToken: ["POST /applications/{client_id}/token/scoped"],
+ suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
+ unsuspendInstallation: ["DELETE /app/installations/{installation_id}/suspended"],
+ updateWebhookConfigForApp: ["PATCH /app/hook/config"]
+ },
+ billing: {
+ getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
+ getGithubActionsBillingUser: ["GET /users/{username}/settings/billing/actions"],
+ getGithubAdvancedSecurityBillingGhe: ["GET /enterprises/{enterprise}/settings/billing/advanced-security"],
+ getGithubAdvancedSecurityBillingOrg: ["GET /orgs/{org}/settings/billing/advanced-security"],
+ getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
+ getGithubPackagesBillingUser: ["GET /users/{username}/settings/billing/packages"],
+ getSharedStorageBillingOrg: ["GET /orgs/{org}/settings/billing/shared-storage"],
+ getSharedStorageBillingUser: ["GET /users/{username}/settings/billing/shared-storage"]
+ },
+ checks: {
+ create: ["POST /repos/{owner}/{repo}/check-runs"],
+ createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
+ get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
+ getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
+ listAnnotations: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],
+ listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
+ listForSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],
+ listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
+ rerequestRun: ["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],
+ rerequestSuite: ["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],
+ setSuitesPreferences: ["PATCH /repos/{owner}/{repo}/check-suites/preferences"],
+ update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
+ },
+ codeScanning: {
+ deleteAnalysis: ["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],
+ getAlert: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", {}, {
+ renamedParameters: {
+ alert_id: "alert_number"
+ }
+ }],
+ getAnalysis: ["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],
+ getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
+ listAlertInstances: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],
+ listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
+ listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
+ listAlertsInstances: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", {}, {
+ renamed: ["codeScanning", "listAlertInstances"]
+ }],
+ listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
+ updateAlert: ["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],
+ uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
+ },
+ codesOfConduct: {
+ getAllCodesOfConduct: ["GET /codes_of_conduct"],
+ getConductCode: ["GET /codes_of_conduct/{key}"]
+ },
+ codespaces: {
+ addRepositoryForSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
+ codespaceMachinesForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}/machines"],
+ createForAuthenticatedUser: ["POST /user/codespaces"],
+ createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],
+ createOrUpdateSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}"],
+ createWithPrForAuthenticatedUser: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],
+ createWithRepoForAuthenticatedUser: ["POST /repos/{owner}/{repo}/codespaces"],
+ deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
+ deleteFromOrganization: ["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],
+ deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],
+ deleteSecretForAuthenticatedUser: ["DELETE /user/codespaces/secrets/{secret_name}"],
+ exportForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/exports"],
+ getExportDetailsForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}/exports/{export_id}"],
+ getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
+ getPublicKeyForAuthenticatedUser: ["GET /user/codespaces/secrets/public-key"],
+ getRepoPublicKey: ["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],
+ getRepoSecret: ["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],
+ getSecretForAuthenticatedUser: ["GET /user/codespaces/secrets/{secret_name}"],
+ listDevcontainersInRepositoryForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces/devcontainers"],
+ listForAuthenticatedUser: ["GET /user/codespaces"],
+ listInOrganization: ["GET /orgs/{org}/codespaces", {}, {
+ renamedParameters: {
+ org_id: "org"
+ }
+ }],
+ listInRepositoryForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces"],
+ listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
+ listRepositoriesForSecretForAuthenticatedUser: ["GET /user/codespaces/secrets/{secret_name}/repositories"],
+ listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
+ removeRepositoryForSecretForAuthenticatedUser: ["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
+ repoMachinesForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces/machines"],
+ setRepositoriesForSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}/repositories"],
+ startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
+ stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
+ stopInOrganization: ["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],
+ updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
+ },
+ dependabot: {
+ addSelectedRepoToOrgSecret: ["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],
+ createOrUpdateOrgSecret: ["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],
+ createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],
+ deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
+ deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],
+ getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
+ getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
+ getRepoPublicKey: ["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],
+ getRepoSecret: ["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],
+ listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
+ listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
+ listSelectedReposForOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],
+ removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],
+ setSelectedReposForOrgSecret: ["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"]
+ },
+ dependencyGraph: {
+ createRepositorySnapshot: ["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],
+ diffRange: ["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]
+ },
+ emojis: {
+ get: ["GET /emojis"]
+ },
+ enterpriseAdmin: {
+ addCustomLabelsToSelfHostedRunnerForEnterprise: ["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],
+ disableSelectedOrganizationGithubActionsEnterprise: ["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],
+ enableSelectedOrganizationGithubActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],
+ getAllowedActionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],
+ getGithubActionsPermissionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions"],
+ getServerStatistics: ["GET /enterprise-installation/{enterprise_or_org}/server-statistics"],
+ listLabelsForSelfHostedRunnerForEnterprise: ["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],
+ listSelectedOrganizationsEnabledGithubActionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions/organizations"],
+ removeAllCustomLabelsFromSelfHostedRunnerForEnterprise: ["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],
+ removeCustomLabelFromSelfHostedRunnerForEnterprise: ["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}"],
+ setAllowedActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],
+ setCustomLabelsForSelfHostedRunnerForEnterprise: ["PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],
+ setGithubActionsPermissionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions"],
+ setSelectedOrganizationsEnabledGithubActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/organizations"]
+ },
+ gists: {
+ checkIsStarred: ["GET /gists/{gist_id}/star"],
+ create: ["POST /gists"],
+ createComment: ["POST /gists/{gist_id}/comments"],
+ delete: ["DELETE /gists/{gist_id}"],
+ deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
+ fork: ["POST /gists/{gist_id}/forks"],
+ get: ["GET /gists/{gist_id}"],
+ getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
+ getRevision: ["GET /gists/{gist_id}/{sha}"],
+ list: ["GET /gists"],
+ listComments: ["GET /gists/{gist_id}/comments"],
+ listCommits: ["GET /gists/{gist_id}/commits"],
+ listForUser: ["GET /users/{username}/gists"],
+ listForks: ["GET /gists/{gist_id}/forks"],
+ listPublic: ["GET /gists/public"],
+ listStarred: ["GET /gists/starred"],
+ star: ["PUT /gists/{gist_id}/star"],
+ unstar: ["DELETE /gists/{gist_id}/star"],
+ update: ["PATCH /gists/{gist_id}"],
+ updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
+ },
+ git: {
+ createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
+ createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
+ createRef: ["POST /repos/{owner}/{repo}/git/refs"],
+ createTag: ["POST /repos/{owner}/{repo}/git/tags"],
+ createTree: ["POST /repos/{owner}/{repo}/git/trees"],
+ deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
+ getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
+ getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
+ getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
+ getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
+ getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
+ listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
+ updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
+ },
+ gitignore: {
+ getAllTemplates: ["GET /gitignore/templates"],
+ getTemplate: ["GET /gitignore/templates/{name}"]
+ },
+ interactions: {
+ getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
+ getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
+ getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
+ getRestrictionsForYourPublicRepos: ["GET /user/interaction-limits", {}, {
+ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"]
+ }],
+ removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
+ removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
+ removeRestrictionsForRepo: ["DELETE /repos/{owner}/{repo}/interaction-limits"],
+ removeRestrictionsForYourPublicRepos: ["DELETE /user/interaction-limits", {}, {
+ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"]
+ }],
+ setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
+ setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
+ setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
+ setRestrictionsForYourPublicRepos: ["PUT /user/interaction-limits", {}, {
+ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"]
+ }]
+ },
+ issues: {
+ addAssignees: ["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],
+ addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
+ checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
+ create: ["POST /repos/{owner}/{repo}/issues"],
+ createComment: ["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],
+ createLabel: ["POST /repos/{owner}/{repo}/labels"],
+ createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
+ deleteComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],
+ deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
+ deleteMilestone: ["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],
+ get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
+ getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
+ getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
+ getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
+ getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
+ list: ["GET /issues"],
+ listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
+ listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
+ listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
+ listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
+ listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
+ listEventsForTimeline: ["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],
+ listForAuthenticatedUser: ["GET /user/issues"],
+ listForOrg: ["GET /orgs/{org}/issues"],
+ listForRepo: ["GET /repos/{owner}/{repo}/issues"],
+ listLabelsForMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],
+ listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
+ listLabelsOnIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],
+ listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
+ lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
+ removeAllLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],
+ removeAssignees: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],
+ removeLabel: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],
+ setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
+ unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
+ update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
+ updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
+ updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
+ updateMilestone: ["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]
+ },
+ licenses: {
+ get: ["GET /licenses/{license}"],
+ getAllCommonlyUsed: ["GET /licenses"],
+ getForRepo: ["GET /repos/{owner}/{repo}/license"]
+ },
+ markdown: {
+ render: ["POST /markdown"],
+ renderRaw: ["POST /markdown/raw", {
+ headers: {
+ "content-type": "text/plain; charset=utf-8"
+ }
+ }]
+ },
+ meta: {
+ get: ["GET /meta"],
+ getOctocat: ["GET /octocat"],
+ getZen: ["GET /zen"],
+ root: ["GET /"]
+ },
+ migrations: {
+ cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
+ deleteArchiveForAuthenticatedUser: ["DELETE /user/migrations/{migration_id}/archive"],
+ deleteArchiveForOrg: ["DELETE /orgs/{org}/migrations/{migration_id}/archive"],
+ downloadArchiveForOrg: ["GET /orgs/{org}/migrations/{migration_id}/archive"],
+ getArchiveForAuthenticatedUser: ["GET /user/migrations/{migration_id}/archive"],
+ getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
+ getImportStatus: ["GET /repos/{owner}/{repo}/import"],
+ getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
+ getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
+ getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
+ listForAuthenticatedUser: ["GET /user/migrations"],
+ listForOrg: ["GET /orgs/{org}/migrations"],
+ listReposForAuthenticatedUser: ["GET /user/migrations/{migration_id}/repositories"],
+ listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
+ listReposForUser: ["GET /user/migrations/{migration_id}/repositories", {}, {
+ renamed: ["migrations", "listReposForAuthenticatedUser"]
+ }],
+ mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
+ setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
+ startForAuthenticatedUser: ["POST /user/migrations"],
+ startForOrg: ["POST /orgs/{org}/migrations"],
+ startImport: ["PUT /repos/{owner}/{repo}/import"],
+ unlockRepoForAuthenticatedUser: ["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],
+ unlockRepoForOrg: ["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],
+ updateImport: ["PATCH /repos/{owner}/{repo}/import"]
+ },
+ orgs: {
+ blockUser: ["PUT /orgs/{org}/blocks/{username}"],
+ cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
+ checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
+ checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
+ checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
+ convertMemberToOutsideCollaborator: ["PUT /orgs/{org}/outside_collaborators/{username}"],
+ createInvitation: ["POST /orgs/{org}/invitations"],
+ createWebhook: ["POST /orgs/{org}/hooks"],
+ deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
+ get: ["GET /orgs/{org}"],
+ getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
+ getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
+ getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
+ getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
+ getWebhookDelivery: ["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],
+ list: ["GET /organizations"],
+ listAppInstallations: ["GET /orgs/{org}/installations"],
+ listBlockedUsers: ["GET /orgs/{org}/blocks"],
+ listCustomRoles: ["GET /organizations/{organization_id}/custom_roles"],
+ listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
+ listForAuthenticatedUser: ["GET /user/orgs"],
+ listForUser: ["GET /users/{username}/orgs"],
+ listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
+ listMembers: ["GET /orgs/{org}/members"],
+ listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
+ listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
+ listPendingInvitations: ["GET /orgs/{org}/invitations"],
+ listPublicMembers: ["GET /orgs/{org}/public_members"],
+ listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
+ listWebhooks: ["GET /orgs/{org}/hooks"],
+ pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
+ redeliverWebhookDelivery: ["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],
+ removeMember: ["DELETE /orgs/{org}/members/{username}"],
+ removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
+ removeOutsideCollaborator: ["DELETE /orgs/{org}/outside_collaborators/{username}"],
+ removePublicMembershipForAuthenticatedUser: ["DELETE /orgs/{org}/public_members/{username}"],
+ setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
+ setPublicMembershipForAuthenticatedUser: ["PUT /orgs/{org}/public_members/{username}"],
+ unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
+ update: ["PATCH /orgs/{org}"],
+ updateMembershipForAuthenticatedUser: ["PATCH /user/memberships/orgs/{org}"],
+ updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
+ updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
+ },
+ packages: {
+ deletePackageForAuthenticatedUser: ["DELETE /user/packages/{package_type}/{package_name}"],
+ deletePackageForOrg: ["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],
+ deletePackageForUser: ["DELETE /users/{username}/packages/{package_type}/{package_name}"],
+ deletePackageVersionForAuthenticatedUser: ["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],
+ deletePackageVersionForOrg: ["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
+ deletePackageVersionForUser: ["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
+ getAllPackageVersionsForAPackageOwnedByAnOrg: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions", {}, {
+ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"]
+ }],
+ getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions", {}, {
+ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]
+ }],
+ getAllPackageVersionsForPackageOwnedByAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions"],
+ getAllPackageVersionsForPackageOwnedByOrg: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],
+ getAllPackageVersionsForPackageOwnedByUser: ["GET /users/{username}/packages/{package_type}/{package_name}/versions"],
+ getPackageForAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}"],
+ getPackageForOrganization: ["GET /orgs/{org}/packages/{package_type}/{package_name}"],
+ getPackageForUser: ["GET /users/{username}/packages/{package_type}/{package_name}"],
+ getPackageVersionForAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],
+ getPackageVersionForOrganization: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
+ getPackageVersionForUser: ["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
+ listPackagesForAuthenticatedUser: ["GET /user/packages"],
+ listPackagesForOrganization: ["GET /orgs/{org}/packages"],
+ listPackagesForUser: ["GET /users/{username}/packages"],
+ restorePackageForAuthenticatedUser: ["POST /user/packages/{package_type}/{package_name}/restore{?token}"],
+ restorePackageForOrg: ["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],
+ restorePackageForUser: ["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],
+ restorePackageVersionForAuthenticatedUser: ["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],
+ restorePackageVersionForOrg: ["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],
+ restorePackageVersionForUser: ["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]
+ },
+ projects: {
+ addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
+ createCard: ["POST /projects/columns/{column_id}/cards"],
+ createColumn: ["POST /projects/{project_id}/columns"],
+ createForAuthenticatedUser: ["POST /user/projects"],
+ createForOrg: ["POST /orgs/{org}/projects"],
+ createForRepo: ["POST /repos/{owner}/{repo}/projects"],
+ delete: ["DELETE /projects/{project_id}"],
+ deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
+ deleteColumn: ["DELETE /projects/columns/{column_id}"],
+ get: ["GET /projects/{project_id}"],
+ getCard: ["GET /projects/columns/cards/{card_id}"],
+ getColumn: ["GET /projects/columns/{column_id}"],
+ getPermissionForUser: ["GET /projects/{project_id}/collaborators/{username}/permission"],
+ listCards: ["GET /projects/columns/{column_id}/cards"],
+ listCollaborators: ["GET /projects/{project_id}/collaborators"],
+ listColumns: ["GET /projects/{project_id}/columns"],
+ listForOrg: ["GET /orgs/{org}/projects"],
+ listForRepo: ["GET /repos/{owner}/{repo}/projects"],
+ listForUser: ["GET /users/{username}/projects"],
+ moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
+ moveColumn: ["POST /projects/columns/{column_id}/moves"],
+ removeCollaborator: ["DELETE /projects/{project_id}/collaborators/{username}"],
+ update: ["PATCH /projects/{project_id}"],
+ updateCard: ["PATCH /projects/columns/cards/{card_id}"],
+ updateColumn: ["PATCH /projects/columns/{column_id}"]
+ },
+ pulls: {
+ checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
+ create: ["POST /repos/{owner}/{repo}/pulls"],
+ createReplyForReviewComment: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],
+ createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
+ createReviewComment: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],
+ deletePendingReview: ["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],
+ deleteReviewComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
+ dismissReview: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],
+ get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
+ getReview: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],
+ getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
+ list: ["GET /repos/{owner}/{repo}/pulls"],
+ listCommentsForReview: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],
+ listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
+ listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
+ listRequestedReviewers: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],
+ listReviewComments: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],
+ listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
+ listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
+ merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
+ removeRequestedReviewers: ["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],
+ requestReviewers: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],
+ submitReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],
+ update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
+ updateBranch: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],
+ updateReview: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],
+ updateReviewComment: ["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]
+ },
+ rateLimit: {
+ get: ["GET /rate_limit"]
+ },
+ reactions: {
+ createForCommitComment: ["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],
+ createForIssue: ["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
+ createForIssueComment: ["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],
+ createForPullRequestReviewComment: ["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],
+ createForRelease: ["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],
+ createForTeamDiscussionCommentInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],
+ createForTeamDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],
+ deleteForCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],
+ deleteForIssue: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],
+ deleteForIssueComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],
+ deleteForPullRequestComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],
+ deleteForRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],
+ deleteForTeamDiscussion: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],
+ deleteForTeamDiscussionComment: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],
+ listForCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],
+ listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
+ listForIssueComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],
+ listForPullRequestReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],
+ listForRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],
+ listForTeamDiscussionCommentInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],
+ listForTeamDiscussionInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]
+ },
+ repos: {
+ acceptInvitation: ["PATCH /user/repository_invitations/{invitation_id}", {}, {
+ renamed: ["repos", "acceptInvitationForAuthenticatedUser"]
+ }],
+ acceptInvitationForAuthenticatedUser: ["PATCH /user/repository_invitations/{invitation_id}"],
+ addAppAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {
+ mapToData: "apps"
+ }],
+ addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
+ addStatusCheckContexts: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, {
+ mapToData: "contexts"
+ }],
+ addTeamAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, {
+ mapToData: "teams"
+ }],
+ addUserAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, {
+ mapToData: "users"
+ }],
+ checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
+ checkVulnerabilityAlerts: ["GET /repos/{owner}/{repo}/vulnerability-alerts"],
+ codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
+ compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
+ compareCommitsWithBasehead: ["GET /repos/{owner}/{repo}/compare/{basehead}"],
+ createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
+ createCommitComment: ["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],
+ createCommitSignatureProtection: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],
+ createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
+ createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
+ createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
+ createDeploymentStatus: ["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],
+ createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
+ createForAuthenticatedUser: ["POST /user/repos"],
+ createFork: ["POST /repos/{owner}/{repo}/forks"],
+ createInOrg: ["POST /orgs/{org}/repos"],
+ createOrUpdateEnvironment: ["PUT /repos/{owner}/{repo}/environments/{environment_name}"],
+ createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
+ createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
+ createRelease: ["POST /repos/{owner}/{repo}/releases"],
+ createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
+ createUsingTemplate: ["POST /repos/{template_owner}/{template_repo}/generate"],
+ createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
+ declineInvitation: ["DELETE /user/repository_invitations/{invitation_id}", {}, {
+ renamed: ["repos", "declineInvitationForAuthenticatedUser"]
+ }],
+ declineInvitationForAuthenticatedUser: ["DELETE /user/repository_invitations/{invitation_id}"],
+ delete: ["DELETE /repos/{owner}/{repo}"],
+ deleteAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],
+ deleteAdminBranchProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
+ deleteAnEnvironment: ["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],
+ deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
+ deleteBranchProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],
+ deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
+ deleteCommitSignatureProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],
+ deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
+ deleteDeployment: ["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],
+ deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
+ deleteInvitation: ["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],
+ deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
+ deletePullRequestReviewProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
+ deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
+ deleteReleaseAsset: ["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],
+ deleteTagProtection: ["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],
+ deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
+ disableAutomatedSecurityFixes: ["DELETE /repos/{owner}/{repo}/automated-security-fixes"],
+ disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
+ disableVulnerabilityAlerts: ["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],
+ downloadArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}", {}, {
+ renamed: ["repos", "downloadZipballArchive"]
+ }],
+ downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
+ downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
+ enableAutomatedSecurityFixes: ["PUT /repos/{owner}/{repo}/automated-security-fixes"],
+ enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"],
+ enableVulnerabilityAlerts: ["PUT /repos/{owner}/{repo}/vulnerability-alerts"],
+ generateReleaseNotes: ["POST /repos/{owner}/{repo}/releases/generate-notes"],
+ get: ["GET /repos/{owner}/{repo}"],
+ getAccessRestrictions: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],
+ getAdminBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
+ getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
+ getAllStatusCheckContexts: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],
+ getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
+ getAppsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],
+ getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
+ getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
+ getBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection"],
+ getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
+ getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
+ getCollaboratorPermissionLevel: ["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],
+ getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
+ getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
+ getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
+ getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
+ getCommitSignatureProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],
+ getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
+ getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
+ getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
+ getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
+ getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
+ getDeploymentStatus: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],
+ getEnvironment: ["GET /repos/{owner}/{repo}/environments/{environment_name}"],
+ getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
+ getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
+ getPages: ["GET /repos/{owner}/{repo}/pages"],
+ getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
+ getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
+ getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
+ getPullRequestReviewProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
+ getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
+ getReadme: ["GET /repos/{owner}/{repo}/readme"],
+ getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
+ getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
+ getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
+ getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
+ getStatusChecksProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
+ getTeamsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],
+ getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
+ getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
+ getUsersWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],
+ getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
+ getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
+ getWebhookConfigForRepo: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],
+ getWebhookDelivery: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],
+ listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
+ listBranches: ["GET /repos/{owner}/{repo}/branches"],
+ listBranchesForHeadCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],
+ listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
+ listCommentsForCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],
+ listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
+ listCommitStatusesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],
+ listCommits: ["GET /repos/{owner}/{repo}/commits"],
+ listContributors: ["GET /repos/{owner}/{repo}/contributors"],
+ listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
+ listDeploymentStatuses: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],
+ listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
+ listForAuthenticatedUser: ["GET /user/repos"],
+ listForOrg: ["GET /orgs/{org}/repos"],
+ listForUser: ["GET /users/{username}/repos"],
+ listForks: ["GET /repos/{owner}/{repo}/forks"],
+ listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
+ listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
+ listLanguages: ["GET /repos/{owner}/{repo}/languages"],
+ listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
+ listPublic: ["GET /repositories"],
+ listPullRequestsAssociatedWithCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],
+ listReleaseAssets: ["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],
+ listReleases: ["GET /repos/{owner}/{repo}/releases"],
+ listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
+ listTags: ["GET /repos/{owner}/{repo}/tags"],
+ listTeams: ["GET /repos/{owner}/{repo}/teams"],
+ listWebhookDeliveries: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],
+ listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
+ merge: ["POST /repos/{owner}/{repo}/merges"],
+ mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
+ pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
+ redeliverWebhookDelivery: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],
+ removeAppAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {
+ mapToData: "apps"
+ }],
+ removeCollaborator: ["DELETE /repos/{owner}/{repo}/collaborators/{username}"],
+ removeStatusCheckContexts: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, {
+ mapToData: "contexts"
+ }],
+ removeStatusCheckProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
+ removeTeamAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, {
+ mapToData: "teams"
+ }],
+ removeUserAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, {
+ mapToData: "users"
+ }],
+ renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
+ replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
+ requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
+ setAdminBranchProtection: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
+ setAppAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, {
+ mapToData: "apps"
+ }],
+ setStatusCheckContexts: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, {
+ mapToData: "contexts"
+ }],
+ setTeamAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, {
+ mapToData: "teams"
+ }],
+ setUserAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, {
+ mapToData: "users"
+ }],
+ testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
+ transfer: ["POST /repos/{owner}/{repo}/transfer"],
+ update: ["PATCH /repos/{owner}/{repo}"],
+ updateBranchProtection: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],
+ updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
+ updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
+ updateInvitation: ["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],
+ updatePullRequestReviewProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
+ updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
+ updateReleaseAsset: ["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],
+ updateStatusCheckPotection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", {}, {
+ renamed: ["repos", "updateStatusCheckProtection"]
+ }],
+ updateStatusCheckProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
+ updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
+ updateWebhookConfigForRepo: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],
+ uploadReleaseAsset: ["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}", {
+ baseUrl: "https://uploads.github.com"
+ }]
+ },
+ search: {
+ code: ["GET /search/code"],
+ commits: ["GET /search/commits"],
+ issuesAndPullRequests: ["GET /search/issues"],
+ labels: ["GET /search/labels"],
+ repos: ["GET /search/repositories"],
+ topics: ["GET /search/topics"],
+ users: ["GET /search/users"]
+ },
+ secretScanning: {
+ getAlert: ["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],
+ listAlertsForEnterprise: ["GET /enterprises/{enterprise}/secret-scanning/alerts"],
+ listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
+ listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
+ listLocationsForAlert: ["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],
+ updateAlert: ["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]
+ },
+ teams: {
+ addOrUpdateMembershipForUserInOrg: ["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],
+ addOrUpdateProjectPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
+ addOrUpdateRepoPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],
+ checkPermissionsForProjectInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
+ checkPermissionsForRepoInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],
+ create: ["POST /orgs/{org}/teams"],
+ createDiscussionCommentInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],
+ createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
+ deleteDiscussionCommentInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],
+ deleteDiscussionInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],
+ deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
+ getByName: ["GET /orgs/{org}/teams/{team_slug}"],
+ getDiscussionCommentInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],
+ getDiscussionInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],
+ getMembershipForUserInOrg: ["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],
+ list: ["GET /orgs/{org}/teams"],
+ listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
+ listDiscussionCommentsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],
+ listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
+ listForAuthenticatedUser: ["GET /user/teams"],
+ listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
+ listPendingInvitationsInOrg: ["GET /orgs/{org}/teams/{team_slug}/invitations"],
+ listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
+ listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
+ removeMembershipForUserInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],
+ removeProjectInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
+ removeRepoInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],
+ updateDiscussionCommentInOrg: ["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],
+ updateDiscussionInOrg: ["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],
+ updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
+ },
+ users: {
+ addEmailForAuthenticated: ["POST /user/emails", {}, {
+ renamed: ["users", "addEmailForAuthenticatedUser"]
+ }],
+ addEmailForAuthenticatedUser: ["POST /user/emails"],
+ block: ["PUT /user/blocks/{username}"],
+ checkBlocked: ["GET /user/blocks/{username}"],
+ checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
+ checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
+ createGpgKeyForAuthenticated: ["POST /user/gpg_keys", {}, {
+ renamed: ["users", "createGpgKeyForAuthenticatedUser"]
+ }],
+ createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
+ createPublicSshKeyForAuthenticated: ["POST /user/keys", {}, {
+ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"]
+ }],
+ createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
+ deleteEmailForAuthenticated: ["DELETE /user/emails", {}, {
+ renamed: ["users", "deleteEmailForAuthenticatedUser"]
+ }],
+ deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
+ deleteGpgKeyForAuthenticated: ["DELETE /user/gpg_keys/{gpg_key_id}", {}, {
+ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"]
+ }],
+ deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
+ deletePublicSshKeyForAuthenticated: ["DELETE /user/keys/{key_id}", {}, {
+ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"]
+ }],
+ deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
+ follow: ["PUT /user/following/{username}"],
+ getAuthenticated: ["GET /user"],
+ getByUsername: ["GET /users/{username}"],
+ getContextForUser: ["GET /users/{username}/hovercard"],
+ getGpgKeyForAuthenticated: ["GET /user/gpg_keys/{gpg_key_id}", {}, {
+ renamed: ["users", "getGpgKeyForAuthenticatedUser"]
+ }],
+ getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
+ getPublicSshKeyForAuthenticated: ["GET /user/keys/{key_id}", {}, {
+ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"]
+ }],
+ getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
+ list: ["GET /users"],
+ listBlockedByAuthenticated: ["GET /user/blocks", {}, {
+ renamed: ["users", "listBlockedByAuthenticatedUser"]
+ }],
+ listBlockedByAuthenticatedUser: ["GET /user/blocks"],
+ listEmailsForAuthenticated: ["GET /user/emails", {}, {
+ renamed: ["users", "listEmailsForAuthenticatedUser"]
+ }],
+ listEmailsForAuthenticatedUser: ["GET /user/emails"],
+ listFollowedByAuthenticated: ["GET /user/following", {}, {
+ renamed: ["users", "listFollowedByAuthenticatedUser"]
+ }],
+ listFollowedByAuthenticatedUser: ["GET /user/following"],
+ listFollowersForAuthenticatedUser: ["GET /user/followers"],
+ listFollowersForUser: ["GET /users/{username}/followers"],
+ listFollowingForUser: ["GET /users/{username}/following"],
+ listGpgKeysForAuthenticated: ["GET /user/gpg_keys", {}, {
+ renamed: ["users", "listGpgKeysForAuthenticatedUser"]
+ }],
+ listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
+ listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
+ listPublicEmailsForAuthenticated: ["GET /user/public_emails", {}, {
+ renamed: ["users", "listPublicEmailsForAuthenticatedUser"]
+ }],
+ listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
+ listPublicKeysForUser: ["GET /users/{username}/keys"],
+ listPublicSshKeysForAuthenticated: ["GET /user/keys", {}, {
+ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"]
+ }],
+ listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
+ setPrimaryEmailVisibilityForAuthenticated: ["PATCH /user/email/visibility", {}, {
+ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"]
+ }],
+ setPrimaryEmailVisibilityForAuthenticatedUser: ["PATCH /user/email/visibility"],
+ unblock: ["DELETE /user/blocks/{username}"],
+ unfollow: ["DELETE /user/following/{username}"],
+ updateAuthenticated: ["PATCH /user"]
+ }
+};
+
+const VERSION = "5.16.2";
+
+function endpointsToMethods(octokit, endpointsMap) {
+ const newMethods = {};
+
+ for (const [scope, endpoints] of Object.entries(endpointsMap)) {
+ for (const [methodName, endpoint] of Object.entries(endpoints)) {
+ const [route, defaults, decorations] = endpoint;
+ const [method, url] = route.split(/ /);
+ const endpointDefaults = Object.assign({
+ method,
+ url
+ }, defaults);
+
+ if (!newMethods[scope]) {
+ newMethods[scope] = {};
+ }
+
+ const scopeMethods = newMethods[scope];
+
+ if (decorations) {
+ scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations);
+ continue;
+ }
+
+ scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);
+ }
+ }
+
+ return newMethods;
+}
+
+function decorate(octokit, scope, methodName, defaults, decorations) {
+ const requestWithDefaults = octokit.request.defaults(defaults);
+ /* istanbul ignore next */
+
+ function withDecorations(...args) {
+ // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
+ let options = requestWithDefaults.endpoint.merge(...args); // There are currently no other decorations than `.mapToData`
+
+ if (decorations.mapToData) {
+ options = Object.assign({}, options, {
+ data: options[decorations.mapToData],
+ [decorations.mapToData]: undefined
+ });
+ return requestWithDefaults(options);
+ }
+
+ if (decorations.renamed) {
+ const [newScope, newMethodName] = decorations.renamed;
+ octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);
+ }
+
+ if (decorations.deprecated) {
+ octokit.log.warn(decorations.deprecated);
+ }
+
+ if (decorations.renamedParameters) {
+ // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
+ const options = requestWithDefaults.endpoint.merge(...args);
+
+ for (const [name, alias] of Object.entries(decorations.renamedParameters)) {
+ if (name in options) {
+ octokit.log.warn(`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`);
+
+ if (!(alias in options)) {
+ options[alias] = options[name];
+ }
+
+ delete options[name];
+ }
+ }
+
+ return requestWithDefaults(options);
+ } // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488
+
+
+ return requestWithDefaults(...args);
+ }
+
+ return Object.assign(withDecorations, requestWithDefaults);
+}
+
+function restEndpointMethods(octokit) {
+ const api = endpointsToMethods(octokit, Endpoints);
+ return {
+ rest: api
+ };
+}
+restEndpointMethods.VERSION = VERSION;
+function legacyRestEndpointMethods(octokit) {
+ const api = endpointsToMethods(octokit, Endpoints);
+ return _objectSpread2(_objectSpread2({}, api), {}, {
+ rest: api
+ });
+}
+legacyRestEndpointMethods.VERSION = VERSION;
+
+exports.legacyRestEndpointMethods = legacyRestEndpointMethods;
+exports.restEndpointMethods = restEndpointMethods;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+
+/***/ 6298:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ VERSION: () => VERSION,
+ retry: () => retry
+});
+module.exports = __toCommonJS(dist_src_exports);
+var import_core = __nccwpck_require__(6762);
+
+// pkg/dist-src/error-request.js
+async function errorRequest(state, octokit, error, options) {
+ if (!error.request || !error.request.request) {
+ throw error;
+ }
+ if (error.status >= 400 && !state.doNotRetry.includes(error.status)) {
+ const retries = options.request.retries != null ? options.request.retries : state.retries;
+ const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2);
+ throw octokit.retry.retryRequest(error, retries, retryAfter);
+ }
+ throw error;
+}
+
+// pkg/dist-src/wrap-request.js
+var import_light = __toESM(__nccwpck_require__(1174));
+var import_request_error = __nccwpck_require__(537);
+async function wrapRequest(state, octokit, request, options) {
+ const limiter = new import_light.default();
+ limiter.on("failed", function(error, info) {
+ const maxRetries = ~~error.request.request.retries;
+ const after = ~~error.request.request.retryAfter;
+ options.request.retryCount = info.retryCount + 1;
+ if (maxRetries > info.retryCount) {
+ return after * state.retryAfterBaseValue;
+ }
+ });
+ return limiter.schedule(
+ requestWithGraphqlErrorHandling.bind(null, state, octokit, request),
+ options
+ );
+}
+async function requestWithGraphqlErrorHandling(state, octokit, request, options) {
+ const response = await request(request, options);
+ if (response.data && response.data.errors && /Something went wrong while executing your query/.test(
+ response.data.errors[0].message
+ )) {
+ const error = new import_request_error.RequestError(response.data.errors[0].message, 500, {
+ request: options,
+ response
+ });
+ return errorRequest(state, octokit, error, options);
+ }
+ return response;
+}
+
+// pkg/dist-src/index.js
+var VERSION = "6.0.1";
+function retry(octokit, octokitOptions) {
+ const state = Object.assign(
+ {
+ enabled: true,
+ retryAfterBaseValue: 1e3,
+ doNotRetry: [400, 401, 403, 404, 422, 451],
+ retries: 3
+ },
+ octokitOptions.retry
+ );
+ if (state.enabled) {
+ octokit.hook.error("request", errorRequest.bind(null, state, octokit));
+ octokit.hook.wrap("request", wrapRequest.bind(null, state, octokit));
+ }
+ return {
+ retry: {
+ retryRequest: (error, retries, retryAfter) => {
+ error.request.request = Object.assign({}, error.request.request, {
+ retries,
+ retryAfter
+ });
+ return error;
+ }
+ }
+ };
+}
+retry.VERSION = VERSION;
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 537:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ RequestError: () => RequestError
+});
+module.exports = __toCommonJS(dist_src_exports);
+var import_deprecation = __nccwpck_require__(8932);
+var import_once = __toESM(__nccwpck_require__(1223));
+var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
+var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
+var RequestError = class extends Error {
+ constructor(message, statusCode, options) {
+ super(message);
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+ this.name = "HttpError";
+ this.status = statusCode;
+ let headers;
+ if ("headers" in options && typeof options.headers !== "undefined") {
+ headers = options.headers;
+ }
+ if ("response" in options) {
+ this.response = options.response;
+ headers = options.response.headers;
+ }
+ const requestCopy = Object.assign({}, options.request);
+ if (options.request.headers.authorization) {
+ requestCopy.headers = Object.assign({}, options.request.headers, {
+ authorization: options.request.headers.authorization.replace(
+ / .*$/,
+ " [REDACTED]"
+ )
+ });
+ }
+ requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
+ this.request = requestCopy;
+ Object.defineProperty(this, "code", {
+ get() {
+ logOnceCode(
+ new import_deprecation.Deprecation(
+ "[@octokit/request-error] `error.code` is deprecated, use `error.status`."
+ )
+ );
+ return statusCode;
+ }
+ });
+ Object.defineProperty(this, "headers", {
+ get() {
+ logOnceHeaders(
+ new import_deprecation.Deprecation(
+ "[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
+ )
+ );
+ return headers || {};
+ }
+ });
+ }
+};
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 6234:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ request: () => request
+});
+module.exports = __toCommonJS(dist_src_exports);
+var import_endpoint = __nccwpck_require__(9440);
+var import_universal_user_agent = __nccwpck_require__(5030);
+
+// pkg/dist-src/version.js
+var VERSION = "8.4.0";
+
+// pkg/dist-src/is-plain-object.js
+function isPlainObject(value) {
+ if (typeof value !== "object" || value === null)
+ return false;
+ if (Object.prototype.toString.call(value) !== "[object Object]")
+ return false;
+ const proto = Object.getPrototypeOf(value);
+ if (proto === null)
+ return true;
+ const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
+ return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
+}
+
+// pkg/dist-src/fetch-wrapper.js
+var import_request_error = __nccwpck_require__(537);
+
+// pkg/dist-src/get-buffer-response.js
+function getBufferResponse(response) {
+ return response.arrayBuffer();
+}
+
+// pkg/dist-src/fetch-wrapper.js
+function fetchWrapper(requestOptions) {
+ var _a, _b, _c, _d;
+ const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
+ const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
+ if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
+ requestOptions.body = JSON.stringify(requestOptions.body);
+ }
+ let headers = {};
+ let status;
+ let url;
+ let { fetch } = globalThis;
+ if ((_b = requestOptions.request) == null ? void 0 : _b.fetch) {
+ fetch = requestOptions.request.fetch;
+ }
+ if (!fetch) {
+ throw new Error(
+ "fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
+ );
+ }
+ return fetch(requestOptions.url, {
+ method: requestOptions.method,
+ body: requestOptions.body,
+ redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
+ headers: requestOptions.headers,
+ signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
+ // duplex must be set if request.body is ReadableStream or Async Iterables.
+ // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
+ ...requestOptions.body && { duplex: "half" }
+ }).then(async (response) => {
+ url = response.url;
+ status = response.status;
+ for (const keyAndValue of response.headers) {
+ headers[keyAndValue[0]] = keyAndValue[1];
+ }
+ if ("deprecation" in headers) {
+ const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
+ const deprecationLink = matches && matches.pop();
+ log.warn(
+ `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
+ );
+ }
+ if (status === 204 || status === 205) {
+ return;
+ }
+ if (requestOptions.method === "HEAD") {
+ if (status < 400) {
+ return;
+ }
+ throw new import_request_error.RequestError(response.statusText, status, {
+ response: {
+ url,
+ status,
+ headers,
+ data: void 0
+ },
+ request: requestOptions
+ });
+ }
+ if (status === 304) {
+ throw new import_request_error.RequestError("Not modified", status, {
+ response: {
+ url,
+ status,
+ headers,
+ data: await getResponseData(response)
+ },
+ request: requestOptions
+ });
+ }
+ if (status >= 400) {
+ const data = await getResponseData(response);
+ const error = new import_request_error.RequestError(toErrorMessage(data), status, {
+ response: {
+ url,
+ status,
+ headers,
+ data
+ },
+ request: requestOptions
+ });
+ throw error;
+ }
+ return parseSuccessResponseBody ? await getResponseData(response) : response.body;
+ }).then((data) => {
+ return {
+ status,
+ url,
+ headers,
+ data
+ };
+ }).catch((error) => {
+ if (error instanceof import_request_error.RequestError)
+ throw error;
+ else if (error.name === "AbortError")
+ throw error;
+ let message = error.message;
+ if (error.name === "TypeError" && "cause" in error) {
+ if (error.cause instanceof Error) {
+ message = error.cause.message;
+ } else if (typeof error.cause === "string") {
+ message = error.cause;
+ }
+ }
+ throw new import_request_error.RequestError(message, 500, {
+ request: requestOptions
+ });
+ });
+}
+async function getResponseData(response) {
+ const contentType = response.headers.get("content-type");
+ if (/application\/json/.test(contentType)) {
+ return response.json().catch(() => response.text()).catch(() => "");
+ }
+ if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
+ return response.text();
+ }
+ return getBufferResponse(response);
+}
+function toErrorMessage(data) {
+ if (typeof data === "string")
+ return data;
+ let suffix;
+ if ("documentation_url" in data) {
+ suffix = ` - ${data.documentation_url}`;
+ } else {
+ suffix = "";
+ }
+ if ("message" in data) {
+ if (Array.isArray(data.errors)) {
+ return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
+ }
+ return `${data.message}${suffix}`;
+ }
+ return `Unknown error: ${JSON.stringify(data)}`;
+}
+
+// pkg/dist-src/with-defaults.js
+function withDefaults(oldEndpoint, newDefaults) {
+ const endpoint2 = oldEndpoint.defaults(newDefaults);
+ const newApi = function(route, parameters) {
+ const endpointOptions = endpoint2.merge(route, parameters);
+ if (!endpointOptions.request || !endpointOptions.request.hook) {
+ return fetchWrapper(endpoint2.parse(endpointOptions));
+ }
+ const request2 = (route2, parameters2) => {
+ return fetchWrapper(
+ endpoint2.parse(endpoint2.merge(route2, parameters2))
+ );
+ };
+ Object.assign(request2, {
+ endpoint: endpoint2,
+ defaults: withDefaults.bind(null, endpoint2)
+ });
+ return endpointOptions.request.hook(request2, endpointOptions);
+ };
+ return Object.assign(newApi, {
+ endpoint: endpoint2,
+ defaults: withDefaults.bind(null, endpoint2)
+ });
+}
+
+// pkg/dist-src/index.js
+var request = withDefaults(import_endpoint.endpoint, {
+ headers: {
+ "user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
+ }
+});
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 5375:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ Octokit: () => Octokit
+});
+module.exports = __toCommonJS(dist_src_exports);
+var import_core = __nccwpck_require__(6762);
+var import_plugin_request_log = __nccwpck_require__(8883);
+var import_plugin_paginate_rest = __nccwpck_require__(606);
+var import_plugin_rest_endpoint_methods = __nccwpck_require__(4923);
+
+// pkg/dist-src/version.js
+var VERSION = "20.1.0";
+
+// pkg/dist-src/index.js
+var Octokit = import_core.Octokit.plugin(
+ import_plugin_request_log.requestLog,
+ import_plugin_rest_endpoint_methods.legacyRestEndpointMethods,
+ import_plugin_paginate_rest.paginateRest
+).defaults({
+ userAgent: `octokit-rest.js/${VERSION}`
+});
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 606:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ composePaginateRest: () => composePaginateRest,
+ isPaginatingEndpoint: () => isPaginatingEndpoint,
+ paginateRest: () => paginateRest,
+ paginatingEndpoints: () => paginatingEndpoints
+});
+module.exports = __toCommonJS(dist_src_exports);
+
+// pkg/dist-src/version.js
+var VERSION = "9.2.1";
+
+// pkg/dist-src/normalize-paginated-list-response.js
+function normalizePaginatedListResponse(response) {
+ if (!response.data) {
+ return {
+ ...response,
+ data: []
+ };
+ }
+ const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
+ if (!responseNeedsNormalization)
+ return response;
+ const incompleteResults = response.data.incomplete_results;
+ const repositorySelection = response.data.repository_selection;
+ const totalCount = response.data.total_count;
+ delete response.data.incomplete_results;
+ delete response.data.repository_selection;
+ delete response.data.total_count;
+ const namespaceKey = Object.keys(response.data)[0];
+ const data = response.data[namespaceKey];
+ response.data = data;
+ if (typeof incompleteResults !== "undefined") {
+ response.data.incomplete_results = incompleteResults;
+ }
+ if (typeof repositorySelection !== "undefined") {
+ response.data.repository_selection = repositorySelection;
+ }
+ response.data.total_count = totalCount;
+ return response;
+}
+
+// pkg/dist-src/iterator.js
+function iterator(octokit, route, parameters) {
+ const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
+ const requestMethod = typeof route === "function" ? route : octokit.request;
+ const method = options.method;
+ const headers = options.headers;
+ let url = options.url;
+ return {
+ [Symbol.asyncIterator]: () => ({
+ async next() {
+ if (!url)
+ return { done: true };
+ try {
+ const response = await requestMethod({ method, url, headers });
+ const normalizedResponse = normalizePaginatedListResponse(response);
+ url = ((normalizedResponse.headers.link || "").match(
+ /<([^>]+)>;\s*rel="next"/
+ ) || [])[1];
+ return { value: normalizedResponse };
+ } catch (error) {
+ if (error.status !== 409)
+ throw error;
+ url = "";
+ return {
+ value: {
+ status: 200,
+ headers: {},
+ data: []
+ }
+ };
+ }
+ }
+ })
+ };
+}
+
+// pkg/dist-src/paginate.js
+function paginate(octokit, route, parameters, mapFn) {
+ if (typeof parameters === "function") {
+ mapFn = parameters;
+ parameters = void 0;
+ }
+ return gather(
+ octokit,
+ [],
+ iterator(octokit, route, parameters)[Symbol.asyncIterator](),
+ mapFn
+ );
+}
+function gather(octokit, results, iterator2, mapFn) {
+ return iterator2.next().then((result) => {
+ if (result.done) {
+ return results;
+ }
+ let earlyExit = false;
+ function done() {
+ earlyExit = true;
+ }
+ results = results.concat(
+ mapFn ? mapFn(result.value, done) : result.value.data
+ );
+ if (earlyExit) {
+ return results;
+ }
+ return gather(octokit, results, iterator2, mapFn);
+ });
+}
+
+// pkg/dist-src/compose-paginate.js
+var composePaginateRest = Object.assign(paginate, {
+ iterator
+});
+
+// pkg/dist-src/generated/paginating-endpoints.js
+var paginatingEndpoints = [
+ "GET /advisories",
+ "GET /app/hook/deliveries",
+ "GET /app/installation-requests",
+ "GET /app/installations",
+ "GET /assignments/{assignment_id}/accepted_assignments",
+ "GET /classrooms",
+ "GET /classrooms/{classroom_id}/assignments",
+ "GET /enterprises/{enterprise}/dependabot/alerts",
+ "GET /enterprises/{enterprise}/secret-scanning/alerts",
+ "GET /events",
+ "GET /gists",
+ "GET /gists/public",
+ "GET /gists/starred",
+ "GET /gists/{gist_id}/comments",
+ "GET /gists/{gist_id}/commits",
+ "GET /gists/{gist_id}/forks",
+ "GET /installation/repositories",
+ "GET /issues",
+ "GET /licenses",
+ "GET /marketplace_listing/plans",
+ "GET /marketplace_listing/plans/{plan_id}/accounts",
+ "GET /marketplace_listing/stubbed/plans",
+ "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
+ "GET /networks/{owner}/{repo}/events",
+ "GET /notifications",
+ "GET /organizations",
+ "GET /orgs/{org}/actions/cache/usage-by-repository",
+ "GET /orgs/{org}/actions/permissions/repositories",
+ "GET /orgs/{org}/actions/runners",
+ "GET /orgs/{org}/actions/secrets",
+ "GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
+ "GET /orgs/{org}/actions/variables",
+ "GET /orgs/{org}/actions/variables/{name}/repositories",
+ "GET /orgs/{org}/blocks",
+ "GET /orgs/{org}/code-scanning/alerts",
+ "GET /orgs/{org}/codespaces",
+ "GET /orgs/{org}/codespaces/secrets",
+ "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
+ "GET /orgs/{org}/copilot/billing/seats",
+ "GET /orgs/{org}/dependabot/alerts",
+ "GET /orgs/{org}/dependabot/secrets",
+ "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
+ "GET /orgs/{org}/events",
+ "GET /orgs/{org}/failed_invitations",
+ "GET /orgs/{org}/hooks",
+ "GET /orgs/{org}/hooks/{hook_id}/deliveries",
+ "GET /orgs/{org}/installations",
+ "GET /orgs/{org}/invitations",
+ "GET /orgs/{org}/invitations/{invitation_id}/teams",
+ "GET /orgs/{org}/issues",
+ "GET /orgs/{org}/members",
+ "GET /orgs/{org}/members/{username}/codespaces",
+ "GET /orgs/{org}/migrations",
+ "GET /orgs/{org}/migrations/{migration_id}/repositories",
+ "GET /orgs/{org}/organization-roles/{role_id}/teams",
+ "GET /orgs/{org}/organization-roles/{role_id}/users",
+ "GET /orgs/{org}/outside_collaborators",
+ "GET /orgs/{org}/packages",
+ "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
+ "GET /orgs/{org}/personal-access-token-requests",
+ "GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories",
+ "GET /orgs/{org}/personal-access-tokens",
+ "GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories",
+ "GET /orgs/{org}/projects",
+ "GET /orgs/{org}/properties/values",
+ "GET /orgs/{org}/public_members",
+ "GET /orgs/{org}/repos",
+ "GET /orgs/{org}/rulesets",
+ "GET /orgs/{org}/rulesets/rule-suites",
+ "GET /orgs/{org}/secret-scanning/alerts",
+ "GET /orgs/{org}/security-advisories",
+ "GET /orgs/{org}/teams",
+ "GET /orgs/{org}/teams/{team_slug}/discussions",
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
+ "GET /orgs/{org}/teams/{team_slug}/invitations",
+ "GET /orgs/{org}/teams/{team_slug}/members",
+ "GET /orgs/{org}/teams/{team_slug}/projects",
+ "GET /orgs/{org}/teams/{team_slug}/repos",
+ "GET /orgs/{org}/teams/{team_slug}/teams",
+ "GET /projects/columns/{column_id}/cards",
+ "GET /projects/{project_id}/collaborators",
+ "GET /projects/{project_id}/columns",
+ "GET /repos/{owner}/{repo}/actions/artifacts",
+ "GET /repos/{owner}/{repo}/actions/caches",
+ "GET /repos/{owner}/{repo}/actions/organization-secrets",
+ "GET /repos/{owner}/{repo}/actions/organization-variables",
+ "GET /repos/{owner}/{repo}/actions/runners",
+ "GET /repos/{owner}/{repo}/actions/runs",
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
+ "GET /repos/{owner}/{repo}/actions/secrets",
+ "GET /repos/{owner}/{repo}/actions/variables",
+ "GET /repos/{owner}/{repo}/actions/workflows",
+ "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
+ "GET /repos/{owner}/{repo}/activity",
+ "GET /repos/{owner}/{repo}/assignees",
+ "GET /repos/{owner}/{repo}/branches",
+ "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
+ "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
+ "GET /repos/{owner}/{repo}/code-scanning/alerts",
+ "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
+ "GET /repos/{owner}/{repo}/code-scanning/analyses",
+ "GET /repos/{owner}/{repo}/codespaces",
+ "GET /repos/{owner}/{repo}/codespaces/devcontainers",
+ "GET /repos/{owner}/{repo}/codespaces/secrets",
+ "GET /repos/{owner}/{repo}/collaborators",
+ "GET /repos/{owner}/{repo}/comments",
+ "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
+ "GET /repos/{owner}/{repo}/commits",
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
+ "GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
+ "GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
+ "GET /repos/{owner}/{repo}/commits/{ref}/status",
+ "GET /repos/{owner}/{repo}/commits/{ref}/statuses",
+ "GET /repos/{owner}/{repo}/contributors",
+ "GET /repos/{owner}/{repo}/dependabot/alerts",
+ "GET /repos/{owner}/{repo}/dependabot/secrets",
+ "GET /repos/{owner}/{repo}/deployments",
+ "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
+ "GET /repos/{owner}/{repo}/environments",
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
+ "GET /repos/{owner}/{repo}/events",
+ "GET /repos/{owner}/{repo}/forks",
+ "GET /repos/{owner}/{repo}/hooks",
+ "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
+ "GET /repos/{owner}/{repo}/invitations",
+ "GET /repos/{owner}/{repo}/issues",
+ "GET /repos/{owner}/{repo}/issues/comments",
+ "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
+ "GET /repos/{owner}/{repo}/issues/events",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/events",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
+ "GET /repos/{owner}/{repo}/keys",
+ "GET /repos/{owner}/{repo}/labels",
+ "GET /repos/{owner}/{repo}/milestones",
+ "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
+ "GET /repos/{owner}/{repo}/notifications",
+ "GET /repos/{owner}/{repo}/pages/builds",
+ "GET /repos/{owner}/{repo}/projects",
+ "GET /repos/{owner}/{repo}/pulls",
+ "GET /repos/{owner}/{repo}/pulls/comments",
+ "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
+ "GET /repos/{owner}/{repo}/releases",
+ "GET /repos/{owner}/{repo}/releases/{release_id}/assets",
+ "GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
+ "GET /repos/{owner}/{repo}/rules/branches/{branch}",
+ "GET /repos/{owner}/{repo}/rulesets",
+ "GET /repos/{owner}/{repo}/rulesets/rule-suites",
+ "GET /repos/{owner}/{repo}/secret-scanning/alerts",
+ "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
+ "GET /repos/{owner}/{repo}/security-advisories",
+ "GET /repos/{owner}/{repo}/stargazers",
+ "GET /repos/{owner}/{repo}/subscribers",
+ "GET /repos/{owner}/{repo}/tags",
+ "GET /repos/{owner}/{repo}/teams",
+ "GET /repos/{owner}/{repo}/topics",
+ "GET /repositories",
+ "GET /repositories/{repository_id}/environments/{environment_name}/secrets",
+ "GET /repositories/{repository_id}/environments/{environment_name}/variables",
+ "GET /search/code",
+ "GET /search/commits",
+ "GET /search/issues",
+ "GET /search/labels",
+ "GET /search/repositories",
+ "GET /search/topics",
+ "GET /search/users",
+ "GET /teams/{team_id}/discussions",
+ "GET /teams/{team_id}/discussions/{discussion_number}/comments",
+ "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
+ "GET /teams/{team_id}/discussions/{discussion_number}/reactions",
+ "GET /teams/{team_id}/invitations",
+ "GET /teams/{team_id}/members",
+ "GET /teams/{team_id}/projects",
+ "GET /teams/{team_id}/repos",
+ "GET /teams/{team_id}/teams",
+ "GET /user/blocks",
+ "GET /user/codespaces",
+ "GET /user/codespaces/secrets",
+ "GET /user/emails",
+ "GET /user/followers",
+ "GET /user/following",
+ "GET /user/gpg_keys",
+ "GET /user/installations",
+ "GET /user/installations/{installation_id}/repositories",
+ "GET /user/issues",
+ "GET /user/keys",
+ "GET /user/marketplace_purchases",
+ "GET /user/marketplace_purchases/stubbed",
+ "GET /user/memberships/orgs",
+ "GET /user/migrations",
+ "GET /user/migrations/{migration_id}/repositories",
+ "GET /user/orgs",
+ "GET /user/packages",
+ "GET /user/packages/{package_type}/{package_name}/versions",
+ "GET /user/public_emails",
+ "GET /user/repos",
+ "GET /user/repository_invitations",
+ "GET /user/social_accounts",
+ "GET /user/ssh_signing_keys",
+ "GET /user/starred",
+ "GET /user/subscriptions",
+ "GET /user/teams",
+ "GET /users",
+ "GET /users/{username}/events",
+ "GET /users/{username}/events/orgs/{org}",
+ "GET /users/{username}/events/public",
+ "GET /users/{username}/followers",
+ "GET /users/{username}/following",
+ "GET /users/{username}/gists",
+ "GET /users/{username}/gpg_keys",
+ "GET /users/{username}/keys",
+ "GET /users/{username}/orgs",
+ "GET /users/{username}/packages",
+ "GET /users/{username}/projects",
+ "GET /users/{username}/received_events",
+ "GET /users/{username}/received_events/public",
+ "GET /users/{username}/repos",
+ "GET /users/{username}/social_accounts",
+ "GET /users/{username}/ssh_signing_keys",
+ "GET /users/{username}/starred",
+ "GET /users/{username}/subscriptions"
+];
+
+// pkg/dist-src/paginating-endpoints.js
+function isPaginatingEndpoint(arg) {
+ if (typeof arg === "string") {
+ return paginatingEndpoints.includes(arg);
+ } else {
+ return false;
+ }
+}
+
+// pkg/dist-src/index.js
+function paginateRest(octokit) {
+ return {
+ paginate: Object.assign(paginate.bind(null, octokit), {
+ iterator: iterator.bind(null, octokit)
+ })
+ };
+}
+paginateRest.VERSION = VERSION;
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 4923:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// pkg/dist-src/index.js
+var dist_src_exports = {};
+__export(dist_src_exports, {
+ legacyRestEndpointMethods: () => legacyRestEndpointMethods,
+ restEndpointMethods: () => restEndpointMethods
+});
+module.exports = __toCommonJS(dist_src_exports);
+
+// pkg/dist-src/version.js
+var VERSION = "10.4.1";
+
+// pkg/dist-src/generated/endpoints.js
+var Endpoints = {
+ actions: {
+ addCustomLabelsToSelfHostedRunnerForOrg: [
+ "POST /orgs/{org}/actions/runners/{runner_id}/labels"
+ ],
+ addCustomLabelsToSelfHostedRunnerForRepo: [
+ "POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
+ ],
+ addSelectedRepoToOrgSecret: [
+ "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ addSelectedRepoToOrgVariable: [
+ "PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
+ ],
+ approveWorkflowRun: [
+ "POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
+ ],
+ cancelWorkflowRun: [
+ "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
+ ],
+ createEnvironmentVariable: [
+ "POST /repositories/{repository_id}/environments/{environment_name}/variables"
+ ],
+ createOrUpdateEnvironmentSecret: [
+ "PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
+ ],
+ createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
+ createOrUpdateRepoSecret: [
+ "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
+ ],
+ createOrgVariable: ["POST /orgs/{org}/actions/variables"],
+ createRegistrationTokenForOrg: [
+ "POST /orgs/{org}/actions/runners/registration-token"
+ ],
+ createRegistrationTokenForRepo: [
+ "POST /repos/{owner}/{repo}/actions/runners/registration-token"
+ ],
+ createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
+ createRemoveTokenForRepo: [
+ "POST /repos/{owner}/{repo}/actions/runners/remove-token"
+ ],
+ createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
+ createWorkflowDispatch: [
+ "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
+ ],
+ deleteActionsCacheById: [
+ "DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
+ ],
+ deleteActionsCacheByKey: [
+ "DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
+ ],
+ deleteArtifact: [
+ "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
+ ],
+ deleteEnvironmentSecret: [
+ "DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
+ ],
+ deleteEnvironmentVariable: [
+ "DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
+ ],
+ deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
+ deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
+ deleteRepoSecret: [
+ "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
+ ],
+ deleteRepoVariable: [
+ "DELETE /repos/{owner}/{repo}/actions/variables/{name}"
+ ],
+ deleteSelfHostedRunnerFromOrg: [
+ "DELETE /orgs/{org}/actions/runners/{runner_id}"
+ ],
+ deleteSelfHostedRunnerFromRepo: [
+ "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
+ ],
+ deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
+ deleteWorkflowRunLogs: [
+ "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
+ ],
+ disableSelectedRepositoryGithubActionsOrganization: [
+ "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
+ ],
+ disableWorkflow: [
+ "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
+ ],
+ downloadArtifact: [
+ "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
+ ],
+ downloadJobLogsForWorkflowRun: [
+ "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
+ ],
+ downloadWorkflowRunAttemptLogs: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
+ ],
+ downloadWorkflowRunLogs: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
+ ],
+ enableSelectedRepositoryGithubActionsOrganization: [
+ "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
+ ],
+ enableWorkflow: [
+ "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
+ ],
+ forceCancelWorkflowRun: [
+ "POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
+ ],
+ generateRunnerJitconfigForOrg: [
+ "POST /orgs/{org}/actions/runners/generate-jitconfig"
+ ],
+ generateRunnerJitconfigForRepo: [
+ "POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
+ ],
+ getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
+ getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
+ getActionsCacheUsageByRepoForOrg: [
+ "GET /orgs/{org}/actions/cache/usage-by-repository"
+ ],
+ getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
+ getAllowedActionsOrganization: [
+ "GET /orgs/{org}/actions/permissions/selected-actions"
+ ],
+ getAllowedActionsRepository: [
+ "GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
+ ],
+ getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
+ getCustomOidcSubClaimForRepo: [
+ "GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
+ ],
+ getEnvironmentPublicKey: [
+ "GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
+ ],
+ getEnvironmentSecret: [
+ "GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
+ ],
+ getEnvironmentVariable: [
+ "GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
+ ],
+ getGithubActionsDefaultWorkflowPermissionsOrganization: [
+ "GET /orgs/{org}/actions/permissions/workflow"
+ ],
+ getGithubActionsDefaultWorkflowPermissionsRepository: [
+ "GET /repos/{owner}/{repo}/actions/permissions/workflow"
+ ],
+ getGithubActionsPermissionsOrganization: [
+ "GET /orgs/{org}/actions/permissions"
+ ],
+ getGithubActionsPermissionsRepository: [
+ "GET /repos/{owner}/{repo}/actions/permissions"
+ ],
+ getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
+ getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
+ getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
+ getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
+ getPendingDeploymentsForRun: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
+ ],
+ getRepoPermissions: [
+ "GET /repos/{owner}/{repo}/actions/permissions",
+ {},
+ { renamed: ["actions", "getGithubActionsPermissionsRepository"] }
+ ],
+ getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
+ getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
+ getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
+ getReviewsForRun: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
+ ],
+ getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
+ getSelfHostedRunnerForRepo: [
+ "GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
+ ],
+ getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
+ getWorkflowAccessToRepository: [
+ "GET /repos/{owner}/{repo}/actions/permissions/access"
+ ],
+ getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
+ getWorkflowRunAttempt: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
+ ],
+ getWorkflowRunUsage: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
+ ],
+ getWorkflowUsage: [
+ "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
+ ],
+ listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
+ listEnvironmentSecrets: [
+ "GET /repositories/{repository_id}/environments/{environment_name}/secrets"
+ ],
+ listEnvironmentVariables: [
+ "GET /repositories/{repository_id}/environments/{environment_name}/variables"
+ ],
+ listJobsForWorkflowRun: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
+ ],
+ listJobsForWorkflowRunAttempt: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
+ ],
+ listLabelsForSelfHostedRunnerForOrg: [
+ "GET /orgs/{org}/actions/runners/{runner_id}/labels"
+ ],
+ listLabelsForSelfHostedRunnerForRepo: [
+ "GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
+ ],
+ listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
+ listOrgVariables: ["GET /orgs/{org}/actions/variables"],
+ listRepoOrganizationSecrets: [
+ "GET /repos/{owner}/{repo}/actions/organization-secrets"
+ ],
+ listRepoOrganizationVariables: [
+ "GET /repos/{owner}/{repo}/actions/organization-variables"
+ ],
+ listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
+ listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
+ listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
+ listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
+ listRunnerApplicationsForRepo: [
+ "GET /repos/{owner}/{repo}/actions/runners/downloads"
+ ],
+ listSelectedReposForOrgSecret: [
+ "GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
+ ],
+ listSelectedReposForOrgVariable: [
+ "GET /orgs/{org}/actions/variables/{name}/repositories"
+ ],
+ listSelectedRepositoriesEnabledGithubActionsOrganization: [
+ "GET /orgs/{org}/actions/permissions/repositories"
+ ],
+ listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
+ listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
+ listWorkflowRunArtifacts: [
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
+ ],
+ listWorkflowRuns: [
+ "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
+ ],
+ listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
+ reRunJobForWorkflowRun: [
+ "POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
+ ],
+ reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
+ reRunWorkflowFailedJobs: [
+ "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
+ ],
+ removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
+ "DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
+ ],
+ removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
+ "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
+ ],
+ removeCustomLabelFromSelfHostedRunnerForOrg: [
+ "DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
+ ],
+ removeCustomLabelFromSelfHostedRunnerForRepo: [
+ "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
+ ],
+ removeSelectedRepoFromOrgSecret: [
+ "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ removeSelectedRepoFromOrgVariable: [
+ "DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
+ ],
+ reviewCustomGatesForRun: [
+ "POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
+ ],
+ reviewPendingDeploymentsForRun: [
+ "POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
+ ],
+ setAllowedActionsOrganization: [
+ "PUT /orgs/{org}/actions/permissions/selected-actions"
+ ],
+ setAllowedActionsRepository: [
+ "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
+ ],
+ setCustomLabelsForSelfHostedRunnerForOrg: [
+ "PUT /orgs/{org}/actions/runners/{runner_id}/labels"
+ ],
+ setCustomLabelsForSelfHostedRunnerForRepo: [
+ "PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
+ ],
+ setCustomOidcSubClaimForRepo: [
+ "PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
+ ],
+ setGithubActionsDefaultWorkflowPermissionsOrganization: [
+ "PUT /orgs/{org}/actions/permissions/workflow"
+ ],
+ setGithubActionsDefaultWorkflowPermissionsRepository: [
+ "PUT /repos/{owner}/{repo}/actions/permissions/workflow"
+ ],
+ setGithubActionsPermissionsOrganization: [
+ "PUT /orgs/{org}/actions/permissions"
+ ],
+ setGithubActionsPermissionsRepository: [
+ "PUT /repos/{owner}/{repo}/actions/permissions"
+ ],
+ setSelectedReposForOrgSecret: [
+ "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
+ ],
+ setSelectedReposForOrgVariable: [
+ "PUT /orgs/{org}/actions/variables/{name}/repositories"
+ ],
+ setSelectedRepositoriesEnabledGithubActionsOrganization: [
+ "PUT /orgs/{org}/actions/permissions/repositories"
+ ],
+ setWorkflowAccessToRepository: [
+ "PUT /repos/{owner}/{repo}/actions/permissions/access"
+ ],
+ updateEnvironmentVariable: [
+ "PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
+ ],
+ updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
+ updateRepoVariable: [
+ "PATCH /repos/{owner}/{repo}/actions/variables/{name}"
+ ]
+ },
+ activity: {
+ checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
+ deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
+ deleteThreadSubscription: [
+ "DELETE /notifications/threads/{thread_id}/subscription"
+ ],
+ getFeeds: ["GET /feeds"],
+ getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
+ getThread: ["GET /notifications/threads/{thread_id}"],
+ getThreadSubscriptionForAuthenticatedUser: [
+ "GET /notifications/threads/{thread_id}/subscription"
+ ],
+ listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
+ listNotificationsForAuthenticatedUser: ["GET /notifications"],
+ listOrgEventsForAuthenticatedUser: [
+ "GET /users/{username}/events/orgs/{org}"
+ ],
+ listPublicEvents: ["GET /events"],
+ listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
+ listPublicEventsForUser: ["GET /users/{username}/events/public"],
+ listPublicOrgEvents: ["GET /orgs/{org}/events"],
+ listReceivedEventsForUser: ["GET /users/{username}/received_events"],
+ listReceivedPublicEventsForUser: [
+ "GET /users/{username}/received_events/public"
+ ],
+ listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
+ listRepoNotificationsForAuthenticatedUser: [
+ "GET /repos/{owner}/{repo}/notifications"
+ ],
+ listReposStarredByAuthenticatedUser: ["GET /user/starred"],
+ listReposStarredByUser: ["GET /users/{username}/starred"],
+ listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
+ listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
+ listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
+ listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
+ markNotificationsAsRead: ["PUT /notifications"],
+ markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
+ markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
+ markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
+ setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
+ setThreadSubscription: [
+ "PUT /notifications/threads/{thread_id}/subscription"
+ ],
+ starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
+ unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
+ },
+ apps: {
+ addRepoToInstallation: [
+ "PUT /user/installations/{installation_id}/repositories/{repository_id}",
+ {},
+ { renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
+ ],
+ addRepoToInstallationForAuthenticatedUser: [
+ "PUT /user/installations/{installation_id}/repositories/{repository_id}"
+ ],
+ checkToken: ["POST /applications/{client_id}/token"],
+ createFromManifest: ["POST /app-manifests/{code}/conversions"],
+ createInstallationAccessToken: [
+ "POST /app/installations/{installation_id}/access_tokens"
+ ],
+ deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
+ deleteInstallation: ["DELETE /app/installations/{installation_id}"],
+ deleteToken: ["DELETE /applications/{client_id}/token"],
+ getAuthenticated: ["GET /app"],
+ getBySlug: ["GET /apps/{app_slug}"],
+ getInstallation: ["GET /app/installations/{installation_id}"],
+ getOrgInstallation: ["GET /orgs/{org}/installation"],
+ getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
+ getSubscriptionPlanForAccount: [
+ "GET /marketplace_listing/accounts/{account_id}"
+ ],
+ getSubscriptionPlanForAccountStubbed: [
+ "GET /marketplace_listing/stubbed/accounts/{account_id}"
+ ],
+ getUserInstallation: ["GET /users/{username}/installation"],
+ getWebhookConfigForApp: ["GET /app/hook/config"],
+ getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
+ listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
+ listAccountsForPlanStubbed: [
+ "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
+ ],
+ listInstallationReposForAuthenticatedUser: [
+ "GET /user/installations/{installation_id}/repositories"
+ ],
+ listInstallationRequestsForAuthenticatedApp: [
+ "GET /app/installation-requests"
+ ],
+ listInstallations: ["GET /app/installations"],
+ listInstallationsForAuthenticatedUser: ["GET /user/installations"],
+ listPlans: ["GET /marketplace_listing/plans"],
+ listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
+ listReposAccessibleToInstallation: ["GET /installation/repositories"],
+ listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
+ listSubscriptionsForAuthenticatedUserStubbed: [
+ "GET /user/marketplace_purchases/stubbed"
+ ],
+ listWebhookDeliveries: ["GET /app/hook/deliveries"],
+ redeliverWebhookDelivery: [
+ "POST /app/hook/deliveries/{delivery_id}/attempts"
+ ],
+ removeRepoFromInstallation: [
+ "DELETE /user/installations/{installation_id}/repositories/{repository_id}",
+ {},
+ { renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
+ ],
+ removeRepoFromInstallationForAuthenticatedUser: [
+ "DELETE /user/installations/{installation_id}/repositories/{repository_id}"
+ ],
+ resetToken: ["PATCH /applications/{client_id}/token"],
+ revokeInstallationAccessToken: ["DELETE /installation/token"],
+ scopeToken: ["POST /applications/{client_id}/token/scoped"],
+ suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
+ unsuspendInstallation: [
+ "DELETE /app/installations/{installation_id}/suspended"
+ ],
+ updateWebhookConfigForApp: ["PATCH /app/hook/config"]
+ },
+ billing: {
+ getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
+ getGithubActionsBillingUser: [
+ "GET /users/{username}/settings/billing/actions"
+ ],
+ getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
+ getGithubPackagesBillingUser: [
+ "GET /users/{username}/settings/billing/packages"
+ ],
+ getSharedStorageBillingOrg: [
+ "GET /orgs/{org}/settings/billing/shared-storage"
+ ],
+ getSharedStorageBillingUser: [
+ "GET /users/{username}/settings/billing/shared-storage"
+ ]
+ },
+ checks: {
+ create: ["POST /repos/{owner}/{repo}/check-runs"],
+ createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
+ get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
+ getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
+ listAnnotations: [
+ "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
+ ],
+ listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
+ listForSuite: [
+ "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
+ ],
+ listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
+ rerequestRun: [
+ "POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
+ ],
+ rerequestSuite: [
+ "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
+ ],
+ setSuitesPreferences: [
+ "PATCH /repos/{owner}/{repo}/check-suites/preferences"
+ ],
+ update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
+ },
+ codeScanning: {
+ deleteAnalysis: [
+ "DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
+ ],
+ getAlert: [
+ "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
+ {},
+ { renamedParameters: { alert_id: "alert_number" } }
+ ],
+ getAnalysis: [
+ "GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
+ ],
+ getCodeqlDatabase: [
+ "GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
+ ],
+ getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
+ getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
+ listAlertInstances: [
+ "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
+ ],
+ listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
+ listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
+ listAlertsInstances: [
+ "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
+ {},
+ { renamed: ["codeScanning", "listAlertInstances"] }
+ ],
+ listCodeqlDatabases: [
+ "GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
+ ],
+ listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
+ updateAlert: [
+ "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
+ ],
+ updateDefaultSetup: [
+ "PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
+ ],
+ uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
+ },
+ codesOfConduct: {
+ getAllCodesOfConduct: ["GET /codes_of_conduct"],
+ getConductCode: ["GET /codes_of_conduct/{key}"]
+ },
+ codespaces: {
+ addRepositoryForSecretForAuthenticatedUser: [
+ "PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ addSelectedRepoToOrgSecret: [
+ "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ checkPermissionsForDevcontainer: [
+ "GET /repos/{owner}/{repo}/codespaces/permissions_check"
+ ],
+ codespaceMachinesForAuthenticatedUser: [
+ "GET /user/codespaces/{codespace_name}/machines"
+ ],
+ createForAuthenticatedUser: ["POST /user/codespaces"],
+ createOrUpdateOrgSecret: [
+ "PUT /orgs/{org}/codespaces/secrets/{secret_name}"
+ ],
+ createOrUpdateRepoSecret: [
+ "PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
+ ],
+ createOrUpdateSecretForAuthenticatedUser: [
+ "PUT /user/codespaces/secrets/{secret_name}"
+ ],
+ createWithPrForAuthenticatedUser: [
+ "POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
+ ],
+ createWithRepoForAuthenticatedUser: [
+ "POST /repos/{owner}/{repo}/codespaces"
+ ],
+ deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
+ deleteFromOrganization: [
+ "DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
+ ],
+ deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
+ deleteRepoSecret: [
+ "DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
+ ],
+ deleteSecretForAuthenticatedUser: [
+ "DELETE /user/codespaces/secrets/{secret_name}"
+ ],
+ exportForAuthenticatedUser: [
+ "POST /user/codespaces/{codespace_name}/exports"
+ ],
+ getCodespacesForUserInOrg: [
+ "GET /orgs/{org}/members/{username}/codespaces"
+ ],
+ getExportDetailsForAuthenticatedUser: [
+ "GET /user/codespaces/{codespace_name}/exports/{export_id}"
+ ],
+ getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
+ getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
+ getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
+ getPublicKeyForAuthenticatedUser: [
+ "GET /user/codespaces/secrets/public-key"
+ ],
+ getRepoPublicKey: [
+ "GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
+ ],
+ getRepoSecret: [
+ "GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
+ ],
+ getSecretForAuthenticatedUser: [
+ "GET /user/codespaces/secrets/{secret_name}"
+ ],
+ listDevcontainersInRepositoryForAuthenticatedUser: [
+ "GET /repos/{owner}/{repo}/codespaces/devcontainers"
+ ],
+ listForAuthenticatedUser: ["GET /user/codespaces"],
+ listInOrganization: [
+ "GET /orgs/{org}/codespaces",
+ {},
+ { renamedParameters: { org_id: "org" } }
+ ],
+ listInRepositoryForAuthenticatedUser: [
+ "GET /repos/{owner}/{repo}/codespaces"
+ ],
+ listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
+ listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
+ listRepositoriesForSecretForAuthenticatedUser: [
+ "GET /user/codespaces/secrets/{secret_name}/repositories"
+ ],
+ listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
+ listSelectedReposForOrgSecret: [
+ "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
+ ],
+ preFlightWithRepoForAuthenticatedUser: [
+ "GET /repos/{owner}/{repo}/codespaces/new"
+ ],
+ publishForAuthenticatedUser: [
+ "POST /user/codespaces/{codespace_name}/publish"
+ ],
+ removeRepositoryForSecretForAuthenticatedUser: [
+ "DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ removeSelectedRepoFromOrgSecret: [
+ "DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ repoMachinesForAuthenticatedUser: [
+ "GET /repos/{owner}/{repo}/codespaces/machines"
+ ],
+ setRepositoriesForSecretForAuthenticatedUser: [
+ "PUT /user/codespaces/secrets/{secret_name}/repositories"
+ ],
+ setSelectedReposForOrgSecret: [
+ "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
+ ],
+ startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
+ stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
+ stopInOrganization: [
+ "POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
+ ],
+ updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
+ },
+ copilot: {
+ addCopilotSeatsForTeams: [
+ "POST /orgs/{org}/copilot/billing/selected_teams"
+ ],
+ addCopilotSeatsForUsers: [
+ "POST /orgs/{org}/copilot/billing/selected_users"
+ ],
+ cancelCopilotSeatAssignmentForTeams: [
+ "DELETE /orgs/{org}/copilot/billing/selected_teams"
+ ],
+ cancelCopilotSeatAssignmentForUsers: [
+ "DELETE /orgs/{org}/copilot/billing/selected_users"
+ ],
+ getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
+ getCopilotSeatDetailsForUser: [
+ "GET /orgs/{org}/members/{username}/copilot"
+ ],
+ listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
+ },
+ dependabot: {
+ addSelectedRepoToOrgSecret: [
+ "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ createOrUpdateOrgSecret: [
+ "PUT /orgs/{org}/dependabot/secrets/{secret_name}"
+ ],
+ createOrUpdateRepoSecret: [
+ "PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
+ ],
+ deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
+ deleteRepoSecret: [
+ "DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
+ ],
+ getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
+ getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
+ getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
+ getRepoPublicKey: [
+ "GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
+ ],
+ getRepoSecret: [
+ "GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
+ ],
+ listAlertsForEnterprise: [
+ "GET /enterprises/{enterprise}/dependabot/alerts"
+ ],
+ listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
+ listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
+ listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
+ listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
+ listSelectedReposForOrgSecret: [
+ "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
+ ],
+ removeSelectedRepoFromOrgSecret: [
+ "DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
+ ],
+ setSelectedReposForOrgSecret: [
+ "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
+ ],
+ updateAlert: [
+ "PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
+ ]
+ },
+ dependencyGraph: {
+ createRepositorySnapshot: [
+ "POST /repos/{owner}/{repo}/dependency-graph/snapshots"
+ ],
+ diffRange: [
+ "GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
+ ],
+ exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
+ },
+ emojis: { get: ["GET /emojis"] },
+ gists: {
+ checkIsStarred: ["GET /gists/{gist_id}/star"],
+ create: ["POST /gists"],
+ createComment: ["POST /gists/{gist_id}/comments"],
+ delete: ["DELETE /gists/{gist_id}"],
+ deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
+ fork: ["POST /gists/{gist_id}/forks"],
+ get: ["GET /gists/{gist_id}"],
+ getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
+ getRevision: ["GET /gists/{gist_id}/{sha}"],
+ list: ["GET /gists"],
+ listComments: ["GET /gists/{gist_id}/comments"],
+ listCommits: ["GET /gists/{gist_id}/commits"],
+ listForUser: ["GET /users/{username}/gists"],
+ listForks: ["GET /gists/{gist_id}/forks"],
+ listPublic: ["GET /gists/public"],
+ listStarred: ["GET /gists/starred"],
+ star: ["PUT /gists/{gist_id}/star"],
+ unstar: ["DELETE /gists/{gist_id}/star"],
+ update: ["PATCH /gists/{gist_id}"],
+ updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
+ },
+ git: {
+ createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
+ createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
+ createRef: ["POST /repos/{owner}/{repo}/git/refs"],
+ createTag: ["POST /repos/{owner}/{repo}/git/tags"],
+ createTree: ["POST /repos/{owner}/{repo}/git/trees"],
+ deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
+ getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
+ getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
+ getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
+ getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
+ getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
+ listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
+ updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
+ },
+ gitignore: {
+ getAllTemplates: ["GET /gitignore/templates"],
+ getTemplate: ["GET /gitignore/templates/{name}"]
+ },
+ interactions: {
+ getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
+ getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
+ getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
+ getRestrictionsForYourPublicRepos: [
+ "GET /user/interaction-limits",
+ {},
+ { renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
+ ],
+ removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
+ removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
+ removeRestrictionsForRepo: [
+ "DELETE /repos/{owner}/{repo}/interaction-limits"
+ ],
+ removeRestrictionsForYourPublicRepos: [
+ "DELETE /user/interaction-limits",
+ {},
+ { renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
+ ],
+ setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
+ setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
+ setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
+ setRestrictionsForYourPublicRepos: [
+ "PUT /user/interaction-limits",
+ {},
+ { renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
+ ]
+ },
+ issues: {
+ addAssignees: [
+ "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
+ ],
+ addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
+ checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
+ checkUserCanBeAssignedToIssue: [
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
+ ],
+ create: ["POST /repos/{owner}/{repo}/issues"],
+ createComment: [
+ "POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
+ ],
+ createLabel: ["POST /repos/{owner}/{repo}/labels"],
+ createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
+ deleteComment: [
+ "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
+ ],
+ deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
+ deleteMilestone: [
+ "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
+ ],
+ get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
+ getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
+ getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
+ getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
+ getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
+ list: ["GET /issues"],
+ listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
+ listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
+ listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
+ listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
+ listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
+ listEventsForTimeline: [
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
+ ],
+ listForAuthenticatedUser: ["GET /user/issues"],
+ listForOrg: ["GET /orgs/{org}/issues"],
+ listForRepo: ["GET /repos/{owner}/{repo}/issues"],
+ listLabelsForMilestone: [
+ "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
+ ],
+ listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
+ listLabelsOnIssue: [
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
+ ],
+ listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
+ lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
+ removeAllLabels: [
+ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
+ ],
+ removeAssignees: [
+ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
+ ],
+ removeLabel: [
+ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
+ ],
+ setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
+ unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
+ update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
+ updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
+ updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
+ updateMilestone: [
+ "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
+ ]
+ },
+ licenses: {
+ get: ["GET /licenses/{license}"],
+ getAllCommonlyUsed: ["GET /licenses"],
+ getForRepo: ["GET /repos/{owner}/{repo}/license"]
+ },
+ markdown: {
+ render: ["POST /markdown"],
+ renderRaw: [
+ "POST /markdown/raw",
+ { headers: { "content-type": "text/plain; charset=utf-8" } }
+ ]
+ },
+ meta: {
+ get: ["GET /meta"],
+ getAllVersions: ["GET /versions"],
+ getOctocat: ["GET /octocat"],
+ getZen: ["GET /zen"],
+ root: ["GET /"]
+ },
+ migrations: {
+ cancelImport: [
+ "DELETE /repos/{owner}/{repo}/import",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"
+ }
+ ],
+ deleteArchiveForAuthenticatedUser: [
+ "DELETE /user/migrations/{migration_id}/archive"
+ ],
+ deleteArchiveForOrg: [
+ "DELETE /orgs/{org}/migrations/{migration_id}/archive"
+ ],
+ downloadArchiveForOrg: [
+ "GET /orgs/{org}/migrations/{migration_id}/archive"
+ ],
+ getArchiveForAuthenticatedUser: [
+ "GET /user/migrations/{migration_id}/archive"
+ ],
+ getCommitAuthors: [
+ "GET /repos/{owner}/{repo}/import/authors",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"
+ }
+ ],
+ getImportStatus: [
+ "GET /repos/{owner}/{repo}/import",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"
+ }
+ ],
+ getLargeFiles: [
+ "GET /repos/{owner}/{repo}/import/large_files",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"
+ }
+ ],
+ getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
+ getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
+ listForAuthenticatedUser: ["GET /user/migrations"],
+ listForOrg: ["GET /orgs/{org}/migrations"],
+ listReposForAuthenticatedUser: [
+ "GET /user/migrations/{migration_id}/repositories"
+ ],
+ listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
+ listReposForUser: [
+ "GET /user/migrations/{migration_id}/repositories",
+ {},
+ { renamed: ["migrations", "listReposForAuthenticatedUser"] }
+ ],
+ mapCommitAuthor: [
+ "PATCH /repos/{owner}/{repo}/import/authors/{author_id}",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"
+ }
+ ],
+ setLfsPreference: [
+ "PATCH /repos/{owner}/{repo}/import/lfs",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"
+ }
+ ],
+ startForAuthenticatedUser: ["POST /user/migrations"],
+ startForOrg: ["POST /orgs/{org}/migrations"],
+ startImport: [
+ "PUT /repos/{owner}/{repo}/import",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"
+ }
+ ],
+ unlockRepoForAuthenticatedUser: [
+ "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
+ ],
+ unlockRepoForOrg: [
+ "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
+ ],
+ updateImport: [
+ "PATCH /repos/{owner}/{repo}/import",
+ {},
+ {
+ deprecated: "octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"
+ }
+ ]
+ },
+ oidc: {
+ getOidcCustomSubTemplateForOrg: [
+ "GET /orgs/{org}/actions/oidc/customization/sub"
+ ],
+ updateOidcCustomSubTemplateForOrg: [
+ "PUT /orgs/{org}/actions/oidc/customization/sub"
+ ]
+ },
+ orgs: {
+ addSecurityManagerTeam: [
+ "PUT /orgs/{org}/security-managers/teams/{team_slug}"
+ ],
+ assignTeamToOrgRole: [
+ "PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
+ ],
+ assignUserToOrgRole: [
+ "PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
+ ],
+ blockUser: ["PUT /orgs/{org}/blocks/{username}"],
+ cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
+ checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
+ checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
+ checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
+ convertMemberToOutsideCollaborator: [
+ "PUT /orgs/{org}/outside_collaborators/{username}"
+ ],
+ createCustomOrganizationRole: ["POST /orgs/{org}/organization-roles"],
+ createInvitation: ["POST /orgs/{org}/invitations"],
+ createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
+ createOrUpdateCustomPropertiesValuesForRepos: [
+ "PATCH /orgs/{org}/properties/values"
+ ],
+ createOrUpdateCustomProperty: [
+ "PUT /orgs/{org}/properties/schema/{custom_property_name}"
+ ],
+ createWebhook: ["POST /orgs/{org}/hooks"],
+ delete: ["DELETE /orgs/{org}"],
+ deleteCustomOrganizationRole: [
+ "DELETE /orgs/{org}/organization-roles/{role_id}"
+ ],
+ deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
+ enableOrDisableSecurityProductOnAllOrgRepos: [
+ "POST /orgs/{org}/{security_product}/{enablement}"
+ ],
+ get: ["GET /orgs/{org}"],
+ getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
+ getCustomProperty: [
+ "GET /orgs/{org}/properties/schema/{custom_property_name}"
+ ],
+ getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
+ getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
+ getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
+ getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
+ getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
+ getWebhookDelivery: [
+ "GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
+ ],
+ list: ["GET /organizations"],
+ listAppInstallations: ["GET /orgs/{org}/installations"],
+ listBlockedUsers: ["GET /orgs/{org}/blocks"],
+ listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
+ listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
+ listForAuthenticatedUser: ["GET /user/orgs"],
+ listForUser: ["GET /users/{username}/orgs"],
+ listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
+ listMembers: ["GET /orgs/{org}/members"],
+ listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
+ listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
+ listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
+ listOrgRoles: ["GET /orgs/{org}/organization-roles"],
+ listOrganizationFineGrainedPermissions: [
+ "GET /orgs/{org}/organization-fine-grained-permissions"
+ ],
+ listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
+ listPatGrantRepositories: [
+ "GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
+ ],
+ listPatGrantRequestRepositories: [
+ "GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
+ ],
+ listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
+ listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
+ listPendingInvitations: ["GET /orgs/{org}/invitations"],
+ listPublicMembers: ["GET /orgs/{org}/public_members"],
+ listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
+ listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
+ listWebhooks: ["GET /orgs/{org}/hooks"],
+ patchCustomOrganizationRole: [
+ "PATCH /orgs/{org}/organization-roles/{role_id}"
+ ],
+ pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
+ redeliverWebhookDelivery: [
+ "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
+ ],
+ removeCustomProperty: [
+ "DELETE /orgs/{org}/properties/schema/{custom_property_name}"
+ ],
+ removeMember: ["DELETE /orgs/{org}/members/{username}"],
+ removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
+ removeOutsideCollaborator: [
+ "DELETE /orgs/{org}/outside_collaborators/{username}"
+ ],
+ removePublicMembershipForAuthenticatedUser: [
+ "DELETE /orgs/{org}/public_members/{username}"
+ ],
+ removeSecurityManagerTeam: [
+ "DELETE /orgs/{org}/security-managers/teams/{team_slug}"
+ ],
+ reviewPatGrantRequest: [
+ "POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
+ ],
+ reviewPatGrantRequestsInBulk: [
+ "POST /orgs/{org}/personal-access-token-requests"
+ ],
+ revokeAllOrgRolesTeam: [
+ "DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
+ ],
+ revokeAllOrgRolesUser: [
+ "DELETE /orgs/{org}/organization-roles/users/{username}"
+ ],
+ revokeOrgRoleTeam: [
+ "DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
+ ],
+ revokeOrgRoleUser: [
+ "DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
+ ],
+ setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
+ setPublicMembershipForAuthenticatedUser: [
+ "PUT /orgs/{org}/public_members/{username}"
+ ],
+ unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
+ update: ["PATCH /orgs/{org}"],
+ updateMembershipForAuthenticatedUser: [
+ "PATCH /user/memberships/orgs/{org}"
+ ],
+ updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
+ updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
+ updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
+ updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
+ },
+ packages: {
+ deletePackageForAuthenticatedUser: [
+ "DELETE /user/packages/{package_type}/{package_name}"
+ ],
+ deletePackageForOrg: [
+ "DELETE /orgs/{org}/packages/{package_type}/{package_name}"
+ ],
+ deletePackageForUser: [
+ "DELETE /users/{username}/packages/{package_type}/{package_name}"
+ ],
+ deletePackageVersionForAuthenticatedUser: [
+ "DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
+ ],
+ deletePackageVersionForOrg: [
+ "DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
+ ],
+ deletePackageVersionForUser: [
+ "DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
+ ],
+ getAllPackageVersionsForAPackageOwnedByAnOrg: [
+ "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
+ {},
+ { renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
+ ],
+ getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
+ "GET /user/packages/{package_type}/{package_name}/versions",
+ {},
+ {
+ renamed: [
+ "packages",
+ "getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
+ ]
+ }
+ ],
+ getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
+ "GET /user/packages/{package_type}/{package_name}/versions"
+ ],
+ getAllPackageVersionsForPackageOwnedByOrg: [
+ "GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
+ ],
+ getAllPackageVersionsForPackageOwnedByUser: [
+ "GET /users/{username}/packages/{package_type}/{package_name}/versions"
+ ],
+ getPackageForAuthenticatedUser: [
+ "GET /user/packages/{package_type}/{package_name}"
+ ],
+ getPackageForOrganization: [
+ "GET /orgs/{org}/packages/{package_type}/{package_name}"
+ ],
+ getPackageForUser: [
+ "GET /users/{username}/packages/{package_type}/{package_name}"
+ ],
+ getPackageVersionForAuthenticatedUser: [
+ "GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
+ ],
+ getPackageVersionForOrganization: [
+ "GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
+ ],
+ getPackageVersionForUser: [
+ "GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
+ ],
+ listDockerMigrationConflictingPackagesForAuthenticatedUser: [
+ "GET /user/docker/conflicts"
+ ],
+ listDockerMigrationConflictingPackagesForOrganization: [
+ "GET /orgs/{org}/docker/conflicts"
+ ],
+ listDockerMigrationConflictingPackagesForUser: [
+ "GET /users/{username}/docker/conflicts"
+ ],
+ listPackagesForAuthenticatedUser: ["GET /user/packages"],
+ listPackagesForOrganization: ["GET /orgs/{org}/packages"],
+ listPackagesForUser: ["GET /users/{username}/packages"],
+ restorePackageForAuthenticatedUser: [
+ "POST /user/packages/{package_type}/{package_name}/restore{?token}"
+ ],
+ restorePackageForOrg: [
+ "POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
+ ],
+ restorePackageForUser: [
+ "POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
+ ],
+ restorePackageVersionForAuthenticatedUser: [
+ "POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
+ ],
+ restorePackageVersionForOrg: [
+ "POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
+ ],
+ restorePackageVersionForUser: [
+ "POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
+ ]
+ },
+ projects: {
+ addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
+ createCard: ["POST /projects/columns/{column_id}/cards"],
+ createColumn: ["POST /projects/{project_id}/columns"],
+ createForAuthenticatedUser: ["POST /user/projects"],
+ createForOrg: ["POST /orgs/{org}/projects"],
+ createForRepo: ["POST /repos/{owner}/{repo}/projects"],
+ delete: ["DELETE /projects/{project_id}"],
+ deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
+ deleteColumn: ["DELETE /projects/columns/{column_id}"],
+ get: ["GET /projects/{project_id}"],
+ getCard: ["GET /projects/columns/cards/{card_id}"],
+ getColumn: ["GET /projects/columns/{column_id}"],
+ getPermissionForUser: [
+ "GET /projects/{project_id}/collaborators/{username}/permission"
+ ],
+ listCards: ["GET /projects/columns/{column_id}/cards"],
+ listCollaborators: ["GET /projects/{project_id}/collaborators"],
+ listColumns: ["GET /projects/{project_id}/columns"],
+ listForOrg: ["GET /orgs/{org}/projects"],
+ listForRepo: ["GET /repos/{owner}/{repo}/projects"],
+ listForUser: ["GET /users/{username}/projects"],
+ moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
+ moveColumn: ["POST /projects/columns/{column_id}/moves"],
+ removeCollaborator: [
+ "DELETE /projects/{project_id}/collaborators/{username}"
+ ],
+ update: ["PATCH /projects/{project_id}"],
+ updateCard: ["PATCH /projects/columns/cards/{card_id}"],
+ updateColumn: ["PATCH /projects/columns/{column_id}"]
+ },
+ pulls: {
+ checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
+ create: ["POST /repos/{owner}/{repo}/pulls"],
+ createReplyForReviewComment: [
+ "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
+ ],
+ createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
+ createReviewComment: [
+ "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
+ ],
+ deletePendingReview: [
+ "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
+ ],
+ deleteReviewComment: [
+ "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
+ ],
+ dismissReview: [
+ "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
+ ],
+ get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
+ getReview: [
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
+ ],
+ getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
+ list: ["GET /repos/{owner}/{repo}/pulls"],
+ listCommentsForReview: [
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
+ ],
+ listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
+ listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
+ listRequestedReviewers: [
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
+ ],
+ listReviewComments: [
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
+ ],
+ listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
+ listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
+ merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
+ removeRequestedReviewers: [
+ "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
+ ],
+ requestReviewers: [
+ "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
+ ],
+ submitReview: [
+ "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
+ ],
+ update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
+ updateBranch: [
+ "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
+ ],
+ updateReview: [
+ "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
+ ],
+ updateReviewComment: [
+ "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
+ ]
+ },
+ rateLimit: { get: ["GET /rate_limit"] },
+ reactions: {
+ createForCommitComment: [
+ "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
+ ],
+ createForIssue: [
+ "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
+ ],
+ createForIssueComment: [
+ "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
+ ],
+ createForPullRequestReviewComment: [
+ "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
+ ],
+ createForRelease: [
+ "POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
+ ],
+ createForTeamDiscussionCommentInOrg: [
+ "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
+ ],
+ createForTeamDiscussionInOrg: [
+ "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
+ ],
+ deleteForCommitComment: [
+ "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
+ ],
+ deleteForIssue: [
+ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
+ ],
+ deleteForIssueComment: [
+ "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
+ ],
+ deleteForPullRequestComment: [
+ "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
+ ],
+ deleteForRelease: [
+ "DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
+ ],
+ deleteForTeamDiscussion: [
+ "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
+ ],
+ deleteForTeamDiscussionComment: [
+ "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
+ ],
+ listForCommitComment: [
+ "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
+ ],
+ listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
+ listForIssueComment: [
+ "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
+ ],
+ listForPullRequestReviewComment: [
+ "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
+ ],
+ listForRelease: [
+ "GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
+ ],
+ listForTeamDiscussionCommentInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
+ ],
+ listForTeamDiscussionInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
+ ]
+ },
+ repos: {
+ acceptInvitation: [
+ "PATCH /user/repository_invitations/{invitation_id}",
+ {},
+ { renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
+ ],
+ acceptInvitationForAuthenticatedUser: [
+ "PATCH /user/repository_invitations/{invitation_id}"
+ ],
+ addAppAccessRestrictions: [
+ "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
+ {},
+ { mapToData: "apps" }
+ ],
+ addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
+ addStatusCheckContexts: [
+ "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
+ {},
+ { mapToData: "contexts" }
+ ],
+ addTeamAccessRestrictions: [
+ "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
+ {},
+ { mapToData: "teams" }
+ ],
+ addUserAccessRestrictions: [
+ "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
+ {},
+ { mapToData: "users" }
+ ],
+ cancelPagesDeployment: [
+ "POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
+ ],
+ checkAutomatedSecurityFixes: [
+ "GET /repos/{owner}/{repo}/automated-security-fixes"
+ ],
+ checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
+ checkVulnerabilityAlerts: [
+ "GET /repos/{owner}/{repo}/vulnerability-alerts"
+ ],
+ codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
+ compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
+ compareCommitsWithBasehead: [
+ "GET /repos/{owner}/{repo}/compare/{basehead}"
+ ],
+ createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
+ createCommitComment: [
+ "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
+ ],
+ createCommitSignatureProtection: [
+ "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
+ ],
+ createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
+ createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
+ createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
+ createDeploymentBranchPolicy: [
+ "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
+ ],
+ createDeploymentProtectionRule: [
+ "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
+ ],
+ createDeploymentStatus: [
+ "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
+ ],
+ createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
+ createForAuthenticatedUser: ["POST /user/repos"],
+ createFork: ["POST /repos/{owner}/{repo}/forks"],
+ createInOrg: ["POST /orgs/{org}/repos"],
+ createOrUpdateCustomPropertiesValues: [
+ "PATCH /repos/{owner}/{repo}/properties/values"
+ ],
+ createOrUpdateEnvironment: [
+ "PUT /repos/{owner}/{repo}/environments/{environment_name}"
+ ],
+ createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
+ createOrgRuleset: ["POST /orgs/{org}/rulesets"],
+ createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
+ createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
+ createRelease: ["POST /repos/{owner}/{repo}/releases"],
+ createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
+ createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
+ createUsingTemplate: [
+ "POST /repos/{template_owner}/{template_repo}/generate"
+ ],
+ createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
+ declineInvitation: [
+ "DELETE /user/repository_invitations/{invitation_id}",
+ {},
+ { renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
+ ],
+ declineInvitationForAuthenticatedUser: [
+ "DELETE /user/repository_invitations/{invitation_id}"
+ ],
+ delete: ["DELETE /repos/{owner}/{repo}"],
+ deleteAccessRestrictions: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
+ ],
+ deleteAdminBranchProtection: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
+ ],
+ deleteAnEnvironment: [
+ "DELETE /repos/{owner}/{repo}/environments/{environment_name}"
+ ],
+ deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
+ deleteBranchProtection: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
+ ],
+ deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
+ deleteCommitSignatureProtection: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
+ ],
+ deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
+ deleteDeployment: [
+ "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
+ ],
+ deleteDeploymentBranchPolicy: [
+ "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
+ ],
+ deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
+ deleteInvitation: [
+ "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
+ ],
+ deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
+ deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
+ deletePullRequestReviewProtection: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
+ ],
+ deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
+ deleteReleaseAsset: [
+ "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
+ ],
+ deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
+ deleteTagProtection: [
+ "DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
+ ],
+ deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
+ disableAutomatedSecurityFixes: [
+ "DELETE /repos/{owner}/{repo}/automated-security-fixes"
+ ],
+ disableDeploymentProtectionRule: [
+ "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
+ ],
+ disablePrivateVulnerabilityReporting: [
+ "DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
+ ],
+ disableVulnerabilityAlerts: [
+ "DELETE /repos/{owner}/{repo}/vulnerability-alerts"
+ ],
+ downloadArchive: [
+ "GET /repos/{owner}/{repo}/zipball/{ref}",
+ {},
+ { renamed: ["repos", "downloadZipballArchive"] }
+ ],
+ downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
+ downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
+ enableAutomatedSecurityFixes: [
+ "PUT /repos/{owner}/{repo}/automated-security-fixes"
+ ],
+ enablePrivateVulnerabilityReporting: [
+ "PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
+ ],
+ enableVulnerabilityAlerts: [
+ "PUT /repos/{owner}/{repo}/vulnerability-alerts"
+ ],
+ generateReleaseNotes: [
+ "POST /repos/{owner}/{repo}/releases/generate-notes"
+ ],
+ get: ["GET /repos/{owner}/{repo}"],
+ getAccessRestrictions: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
+ ],
+ getAdminBranchProtection: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
+ ],
+ getAllDeploymentProtectionRules: [
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
+ ],
+ getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
+ getAllStatusCheckContexts: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
+ ],
+ getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
+ getAppsWithAccessToProtectedBranch: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
+ ],
+ getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
+ getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
+ getBranchProtection: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection"
+ ],
+ getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
+ getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
+ getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
+ getCollaboratorPermissionLevel: [
+ "GET /repos/{owner}/{repo}/collaborators/{username}/permission"
+ ],
+ getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
+ getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
+ getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
+ getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
+ getCommitSignatureProtection: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
+ ],
+ getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
+ getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
+ getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
+ getCustomDeploymentProtectionRule: [
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
+ ],
+ getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
+ getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
+ getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
+ getDeploymentBranchPolicy: [
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
+ ],
+ getDeploymentStatus: [
+ "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
+ ],
+ getEnvironment: [
+ "GET /repos/{owner}/{repo}/environments/{environment_name}"
+ ],
+ getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
+ getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
+ getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
+ getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
+ getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
+ getOrgRulesets: ["GET /orgs/{org}/rulesets"],
+ getPages: ["GET /repos/{owner}/{repo}/pages"],
+ getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
+ getPagesDeployment: [
+ "GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
+ ],
+ getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
+ getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
+ getPullRequestReviewProtection: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
+ ],
+ getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
+ getReadme: ["GET /repos/{owner}/{repo}/readme"],
+ getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
+ getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
+ getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
+ getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
+ getRepoRuleSuite: [
+ "GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
+ ],
+ getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
+ getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
+ getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
+ getStatusChecksProtection: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
+ ],
+ getTeamsWithAccessToProtectedBranch: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
+ ],
+ getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
+ getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
+ getUsersWithAccessToProtectedBranch: [
+ "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
+ ],
+ getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
+ getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
+ getWebhookConfigForRepo: [
+ "GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
+ ],
+ getWebhookDelivery: [
+ "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
+ ],
+ listActivities: ["GET /repos/{owner}/{repo}/activity"],
+ listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
+ listBranches: ["GET /repos/{owner}/{repo}/branches"],
+ listBranchesForHeadCommit: [
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
+ ],
+ listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
+ listCommentsForCommit: [
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
+ ],
+ listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
+ listCommitStatusesForRef: [
+ "GET /repos/{owner}/{repo}/commits/{ref}/statuses"
+ ],
+ listCommits: ["GET /repos/{owner}/{repo}/commits"],
+ listContributors: ["GET /repos/{owner}/{repo}/contributors"],
+ listCustomDeploymentRuleIntegrations: [
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
+ ],
+ listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
+ listDeploymentBranchPolicies: [
+ "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
+ ],
+ listDeploymentStatuses: [
+ "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
+ ],
+ listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
+ listForAuthenticatedUser: ["GET /user/repos"],
+ listForOrg: ["GET /orgs/{org}/repos"],
+ listForUser: ["GET /users/{username}/repos"],
+ listForks: ["GET /repos/{owner}/{repo}/forks"],
+ listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
+ listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
+ listLanguages: ["GET /repos/{owner}/{repo}/languages"],
+ listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
+ listPublic: ["GET /repositories"],
+ listPullRequestsAssociatedWithCommit: [
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
+ ],
+ listReleaseAssets: [
+ "GET /repos/{owner}/{repo}/releases/{release_id}/assets"
+ ],
+ listReleases: ["GET /repos/{owner}/{repo}/releases"],
+ listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
+ listTags: ["GET /repos/{owner}/{repo}/tags"],
+ listTeams: ["GET /repos/{owner}/{repo}/teams"],
+ listWebhookDeliveries: [
+ "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
+ ],
+ listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
+ merge: ["POST /repos/{owner}/{repo}/merges"],
+ mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
+ pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
+ redeliverWebhookDelivery: [
+ "POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
+ ],
+ removeAppAccessRestrictions: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
+ {},
+ { mapToData: "apps" }
+ ],
+ removeCollaborator: [
+ "DELETE /repos/{owner}/{repo}/collaborators/{username}"
+ ],
+ removeStatusCheckContexts: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
+ {},
+ { mapToData: "contexts" }
+ ],
+ removeStatusCheckProtection: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
+ ],
+ removeTeamAccessRestrictions: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
+ {},
+ { mapToData: "teams" }
+ ],
+ removeUserAccessRestrictions: [
+ "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
+ {},
+ { mapToData: "users" }
+ ],
+ renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
+ replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
+ requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
+ setAdminBranchProtection: [
+ "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
+ ],
+ setAppAccessRestrictions: [
+ "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
+ {},
+ { mapToData: "apps" }
+ ],
+ setStatusCheckContexts: [
+ "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
+ {},
+ { mapToData: "contexts" }
+ ],
+ setTeamAccessRestrictions: [
+ "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
+ {},
+ { mapToData: "teams" }
+ ],
+ setUserAccessRestrictions: [
+ "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
+ {},
+ { mapToData: "users" }
+ ],
+ testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
+ transfer: ["POST /repos/{owner}/{repo}/transfer"],
+ update: ["PATCH /repos/{owner}/{repo}"],
+ updateBranchProtection: [
+ "PUT /repos/{owner}/{repo}/branches/{branch}/protection"
+ ],
+ updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
+ updateDeploymentBranchPolicy: [
+ "PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
+ ],
+ updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
+ updateInvitation: [
+ "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
+ ],
+ updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
+ updatePullRequestReviewProtection: [
+ "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
+ ],
+ updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
+ updateReleaseAsset: [
+ "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
+ ],
+ updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
+ updateStatusCheckPotection: [
+ "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
+ {},
+ { renamed: ["repos", "updateStatusCheckProtection"] }
+ ],
+ updateStatusCheckProtection: [
+ "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
+ ],
+ updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
+ updateWebhookConfigForRepo: [
+ "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
+ ],
+ uploadReleaseAsset: [
+ "POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
+ { baseUrl: "https://uploads.github.com" }
+ ]
+ },
+ search: {
+ code: ["GET /search/code"],
+ commits: ["GET /search/commits"],
+ issuesAndPullRequests: ["GET /search/issues"],
+ labels: ["GET /search/labels"],
+ repos: ["GET /search/repositories"],
+ topics: ["GET /search/topics"],
+ users: ["GET /search/users"]
+ },
+ secretScanning: {
+ getAlert: [
+ "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
+ ],
+ listAlertsForEnterprise: [
+ "GET /enterprises/{enterprise}/secret-scanning/alerts"
+ ],
+ listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
+ listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
+ listLocationsForAlert: [
+ "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
+ ],
+ updateAlert: [
+ "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
+ ]
+ },
+ securityAdvisories: {
+ createFork: [
+ "POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
+ ],
+ createPrivateVulnerabilityReport: [
+ "POST /repos/{owner}/{repo}/security-advisories/reports"
+ ],
+ createRepositoryAdvisory: [
+ "POST /repos/{owner}/{repo}/security-advisories"
+ ],
+ createRepositoryAdvisoryCveRequest: [
+ "POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
+ ],
+ getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
+ getRepositoryAdvisory: [
+ "GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
+ ],
+ listGlobalAdvisories: ["GET /advisories"],
+ listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
+ listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
+ updateRepositoryAdvisory: [
+ "PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
+ ]
+ },
+ teams: {
+ addOrUpdateMembershipForUserInOrg: [
+ "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
+ ],
+ addOrUpdateProjectPermissionsInOrg: [
+ "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
+ ],
+ addOrUpdateRepoPermissionsInOrg: [
+ "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
+ ],
+ checkPermissionsForProjectInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
+ ],
+ checkPermissionsForRepoInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
+ ],
+ create: ["POST /orgs/{org}/teams"],
+ createDiscussionCommentInOrg: [
+ "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
+ ],
+ createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
+ deleteDiscussionCommentInOrg: [
+ "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
+ ],
+ deleteDiscussionInOrg: [
+ "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
+ ],
+ deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
+ getByName: ["GET /orgs/{org}/teams/{team_slug}"],
+ getDiscussionCommentInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
+ ],
+ getDiscussionInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
+ ],
+ getMembershipForUserInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
+ ],
+ list: ["GET /orgs/{org}/teams"],
+ listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
+ listDiscussionCommentsInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
+ ],
+ listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
+ listForAuthenticatedUser: ["GET /user/teams"],
+ listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
+ listPendingInvitationsInOrg: [
+ "GET /orgs/{org}/teams/{team_slug}/invitations"
+ ],
+ listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
+ listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
+ removeMembershipForUserInOrg: [
+ "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
+ ],
+ removeProjectInOrg: [
+ "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
+ ],
+ removeRepoInOrg: [
+ "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
+ ],
+ updateDiscussionCommentInOrg: [
+ "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
+ ],
+ updateDiscussionInOrg: [
+ "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
+ ],
+ updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
+ },
+ users: {
+ addEmailForAuthenticated: [
+ "POST /user/emails",
+ {},
+ { renamed: ["users", "addEmailForAuthenticatedUser"] }
+ ],
+ addEmailForAuthenticatedUser: ["POST /user/emails"],
+ addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
+ block: ["PUT /user/blocks/{username}"],
+ checkBlocked: ["GET /user/blocks/{username}"],
+ checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
+ checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
+ createGpgKeyForAuthenticated: [
+ "POST /user/gpg_keys",
+ {},
+ { renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
+ ],
+ createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
+ createPublicSshKeyForAuthenticated: [
+ "POST /user/keys",
+ {},
+ { renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
+ ],
+ createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
+ createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
+ deleteEmailForAuthenticated: [
+ "DELETE /user/emails",
+ {},
+ { renamed: ["users", "deleteEmailForAuthenticatedUser"] }
+ ],
+ deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
+ deleteGpgKeyForAuthenticated: [
+ "DELETE /user/gpg_keys/{gpg_key_id}",
+ {},
+ { renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
+ ],
+ deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
+ deletePublicSshKeyForAuthenticated: [
+ "DELETE /user/keys/{key_id}",
+ {},
+ { renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
+ ],
+ deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
+ deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
+ deleteSshSigningKeyForAuthenticatedUser: [
+ "DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
+ ],
+ follow: ["PUT /user/following/{username}"],
+ getAuthenticated: ["GET /user"],
+ getByUsername: ["GET /users/{username}"],
+ getContextForUser: ["GET /users/{username}/hovercard"],
+ getGpgKeyForAuthenticated: [
+ "GET /user/gpg_keys/{gpg_key_id}",
+ {},
+ { renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
+ ],
+ getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
+ getPublicSshKeyForAuthenticated: [
+ "GET /user/keys/{key_id}",
+ {},
+ { renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
+ ],
+ getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
+ getSshSigningKeyForAuthenticatedUser: [
+ "GET /user/ssh_signing_keys/{ssh_signing_key_id}"
+ ],
+ list: ["GET /users"],
+ listBlockedByAuthenticated: [
+ "GET /user/blocks",
+ {},
+ { renamed: ["users", "listBlockedByAuthenticatedUser"] }
+ ],
+ listBlockedByAuthenticatedUser: ["GET /user/blocks"],
+ listEmailsForAuthenticated: [
+ "GET /user/emails",
+ {},
+ { renamed: ["users", "listEmailsForAuthenticatedUser"] }
+ ],
+ listEmailsForAuthenticatedUser: ["GET /user/emails"],
+ listFollowedByAuthenticated: [
+ "GET /user/following",
+ {},
+ { renamed: ["users", "listFollowedByAuthenticatedUser"] }
+ ],
+ listFollowedByAuthenticatedUser: ["GET /user/following"],
+ listFollowersForAuthenticatedUser: ["GET /user/followers"],
+ listFollowersForUser: ["GET /users/{username}/followers"],
+ listFollowingForUser: ["GET /users/{username}/following"],
+ listGpgKeysForAuthenticated: [
+ "GET /user/gpg_keys",
+ {},
+ { renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
+ ],
+ listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
+ listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
+ listPublicEmailsForAuthenticated: [
+ "GET /user/public_emails",
+ {},
+ { renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
+ ],
+ listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
+ listPublicKeysForUser: ["GET /users/{username}/keys"],
+ listPublicSshKeysForAuthenticated: [
+ "GET /user/keys",
+ {},
+ { renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
+ ],
+ listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
+ listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
+ listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
+ listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
+ listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
+ setPrimaryEmailVisibilityForAuthenticated: [
+ "PATCH /user/email/visibility",
+ {},
+ { renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
+ ],
+ setPrimaryEmailVisibilityForAuthenticatedUser: [
+ "PATCH /user/email/visibility"
+ ],
+ unblock: ["DELETE /user/blocks/{username}"],
+ unfollow: ["DELETE /user/following/{username}"],
+ updateAuthenticated: ["PATCH /user"]
+ }
+};
+var endpoints_default = Endpoints;
+
+// pkg/dist-src/endpoints-to-methods.js
+var endpointMethodsMap = /* @__PURE__ */ new Map();
+for (const [scope, endpoints] of Object.entries(endpoints_default)) {
+ for (const [methodName, endpoint] of Object.entries(endpoints)) {
+ const [route, defaults, decorations] = endpoint;
+ const [method, url] = route.split(/ /);
+ const endpointDefaults = Object.assign(
+ {
+ method,
+ url
+ },
+ defaults
+ );
+ if (!endpointMethodsMap.has(scope)) {
+ endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
+ }
+ endpointMethodsMap.get(scope).set(methodName, {
+ scope,
+ methodName,
+ endpointDefaults,
+ decorations
+ });
+ }
+}
+var handler = {
+ has({ scope }, methodName) {
+ return endpointMethodsMap.get(scope).has(methodName);
+ },
+ getOwnPropertyDescriptor(target, methodName) {
+ return {
+ value: this.get(target, methodName),
+ // ensures method is in the cache
+ configurable: true,
+ writable: true,
+ enumerable: true
+ };
+ },
+ defineProperty(target, methodName, descriptor) {
+ Object.defineProperty(target.cache, methodName, descriptor);
+ return true;
+ },
+ deleteProperty(target, methodName) {
+ delete target.cache[methodName];
+ return true;
+ },
+ ownKeys({ scope }) {
+ return [...endpointMethodsMap.get(scope).keys()];
+ },
+ set(target, methodName, value) {
+ return target.cache[methodName] = value;
+ },
+ get({ octokit, scope, cache }, methodName) {
+ if (cache[methodName]) {
+ return cache[methodName];
+ }
+ const method = endpointMethodsMap.get(scope).get(methodName);
+ if (!method) {
+ return void 0;
+ }
+ const { endpointDefaults, decorations } = method;
+ if (decorations) {
+ cache[methodName] = decorate(
+ octokit,
+ scope,
+ methodName,
+ endpointDefaults,
+ decorations
+ );
+ } else {
+ cache[methodName] = octokit.request.defaults(endpointDefaults);
+ }
+ return cache[methodName];
+ }
+};
+function endpointsToMethods(octokit) {
+ const newMethods = {};
+ for (const scope of endpointMethodsMap.keys()) {
+ newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
+ }
+ return newMethods;
+}
+function decorate(octokit, scope, methodName, defaults, decorations) {
+ const requestWithDefaults = octokit.request.defaults(defaults);
+ function withDecorations(...args) {
+ let options = requestWithDefaults.endpoint.merge(...args);
+ if (decorations.mapToData) {
+ options = Object.assign({}, options, {
+ data: options[decorations.mapToData],
+ [decorations.mapToData]: void 0
+ });
+ return requestWithDefaults(options);
+ }
+ if (decorations.renamed) {
+ const [newScope, newMethodName] = decorations.renamed;
+ octokit.log.warn(
+ `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
+ );
+ }
+ if (decorations.deprecated) {
+ octokit.log.warn(decorations.deprecated);
+ }
+ if (decorations.renamedParameters) {
+ const options2 = requestWithDefaults.endpoint.merge(...args);
+ for (const [name, alias] of Object.entries(
+ decorations.renamedParameters
+ )) {
+ if (name in options2) {
+ octokit.log.warn(
+ `"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
+ );
+ if (!(alias in options2)) {
+ options2[alias] = options2[name];
+ }
+ delete options2[name];
+ }
+ }
+ return requestWithDefaults(options2);
+ }
+ return requestWithDefaults(...args);
+ }
+ return Object.assign(withDecorations, requestWithDefaults);
+}
+
+// pkg/dist-src/index.js
+function restEndpointMethods(octokit) {
+ const api = endpointsToMethods(octokit);
+ return {
+ rest: api
+ };
+}
+restEndpointMethods.VERSION = VERSION;
+function legacyRestEndpointMethods(octokit) {
+ const api = endpointsToMethods(octokit);
+ return {
+ ...api,
+ rest: api
+ };
+}
+legacyRestEndpointMethods.VERSION = VERSION;
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 7770:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const AlertInterfaces = __nccwpck_require__(6228);
+class AlertApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Alert-api', options);
+ }
+ /**
+ * Get an alert.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} alertId - ID of alert to retrieve
+ * @param {string} repository - Name or id of a repository that alert is part of
+ * @param {string} ref
+ * @param {AlertInterfaces.ExpandOption} expand - Expand alert attributes. Possible options are {ValidationFingerprint, None}
+ */
+ getAlert(project, alertId, repository, ref, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ alertId: alertId,
+ repository: repository
+ };
+ let queryValues = {
+ ref: ref,
+ expand: expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "e21b4630-b7d2-4031-99e3-3ad328cc4a7f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, AlertInterfaces.TypeInfo.Alert, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get alerts for a repository
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repository - The name or ID of the repository
+ * @param {number} top - The maximum number of alerts to return
+ * @param {string} orderBy - Must be "id" "firstSeen" "lastSeen" "fixedOn" or "severity" Defaults to "id"
+ * @param {AlertInterfaces.SearchCriteria} criteria - Options to limit the alerts returned
+ * @param {string} continuationToken - If there are more alerts than can be returned, a continuation token is placed in the "x-ms-continuationtoken" header. Use that token here to get the next page of alerts
+ */
+ getAlerts(project, repository, top, orderBy, criteria, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repository: repository
+ };
+ let queryValues = {
+ top: top,
+ orderBy: orderBy,
+ criteria: criteria,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "e21b4630-b7d2-4031-99e3-3ad328cc4a7f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, AlertInterfaces.TypeInfo.Alert, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get an alert.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} alertId - ID of alert to retrieve
+ * @param {string} repository - Name or id of a repository that alert is part of
+ * @param {string} ref
+ * @param {AlertInterfaces.ExpandOption} expand - Expand alert attributes. Possible options are {ValidationFingerprint, None}
+ */
+ getAlertSarif(project, alertId, repository, ref, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ alertId: alertId,
+ repository: repository
+ };
+ let queryValues = {
+ ref: ref,
+ expand: expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "e21b4630-b7d2-4031-99e3-3ad328cc4a7f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the status of an alert
+ *
+ * @param {AlertInterfaces.AlertStateUpdate} stateUpdate - The new status of the alert
+ * @param {string} project - Project ID or project name
+ * @param {number} alertId - The ID of the alert
+ * @param {string} repository - The name or ID of the repository
+ */
+ updateAlert(stateUpdate, project, alertId, repository) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ alertId: alertId,
+ repository: repository
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "e21b4630-b7d2-4031-99e3-3ad328cc4a7f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, stateUpdate, options);
+ let ret = this.formatResponse(res.result, AlertInterfaces.TypeInfo.Alert, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get instances of an alert.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} alertId - ID of alert to retrieve
+ * @param {string} repository - Name or id of a repository that alert is part of
+ * @param {string} ref
+ */
+ getAlertInstances(project, alertId, repository, ref) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ alertId: alertId,
+ repository: repository
+ };
+ let queryValues = {
+ ref: ref,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "f451ba96-0e95-458a-8dd5-3df894770a49", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, AlertInterfaces.TypeInfo.AlertAnalysisInstance, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Upload a Sarif containing security alerts
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} project - Project ID or project name
+ * @param {string} repository - The name or ID of a repository
+ */
+ uploadSarif(customHeaders, contentStream, project, repository) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repository: repository
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "2a141cae-a50d-4c22-b41b-13f77748d035", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} repository
+ * @param {AlertInterfaces.AlertType} alertType
+ */
+ getUxFilters(project, repository, alertType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (alertType == null) {
+ throw new TypeError('alertType can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repository: repository
+ };
+ let queryValues = {
+ alertType: alertType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Alert", "8f90675b-f794-434d-8f2c-cfae0a11c02a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, AlertInterfaces.TypeInfo.UxFilters, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the status of the Sarif processing job
+ *
+ * @param {number} sarifId - Sarif ID returned when the Sarif was uploaded
+ */
+ getSarif(sarifId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ sarifId: sarifId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "Alert", "a04689e7-0f81-48a2-8d18-40654c47494c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, AlertInterfaces.TypeInfo.SarifUploadStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.AlertApi = AlertApi;
+
+
+/***/ }),
+
+/***/ 9893:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const BuildInterfaces = __nccwpck_require__(2167);
+class BuildApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Build-api', options);
+ }
+ /**
+ * Associates an artifact with a build.
+ *
+ * @param {BuildInterfaces.BuildArtifact} artifact - The artifact.
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ createArtifact(artifact, project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.5", "build", "1db06c96-014e-44e1-ac91-90b2d4b3e984", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, artifact, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a specific artifact for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} artifactName - The name of the artifact.
+ */
+ getArtifact(project, buildId, artifactName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactName == null) {
+ throw new TypeError('artifactName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ artifactName: artifactName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.5", "build", "1db06c96-014e-44e1-ac91-90b2d4b3e984", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a specific artifact for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} artifactName - The name of the artifact.
+ */
+ getArtifactContentZip(project, buildId, artifactName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactName == null) {
+ throw new TypeError('artifactName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ artifactName: artifactName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.5", "build", "1db06c96-014e-44e1-ac91-90b2d4b3e984", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all artifacts for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ getArtifacts(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.5", "build", "1db06c96-014e-44e1-ac91-90b2d4b3e984", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a file from the build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} artifactName - The name of the artifact.
+ * @param {string} fileId - The primary key for the file.
+ * @param {string} fileName - The name that the file will be set to.
+ */
+ getFile(project, buildId, artifactName, fileId, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactName == null) {
+ throw new TypeError('artifactName can not be null or undefined');
+ }
+ if (fileId == null) {
+ throw new TypeError('fileId can not be null or undefined');
+ }
+ if (fileName == null) {
+ throw new TypeError('fileName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ artifactName: artifactName,
+ fileId: fileId,
+ fileName: fileName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.5", "build", "1db06c96-014e-44e1-ac91-90b2d4b3e984", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the list of attachments of a specific type that are associated with a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} type - The type of attachment.
+ */
+ getAttachments(project, buildId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "f2192269-89fa-4f94-baf6-8fb128c55159", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a specific attachment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} timelineId - The ID of the timeline.
+ * @param {string} recordId - The ID of the timeline record.
+ * @param {string} type - The type of the attachment.
+ * @param {string} name - The name of the attachment.
+ */
+ getAttachment(project, buildId, timelineId, recordId, type, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "af5122d3-3438-485e-a25a-2dbbfde84ee6", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {BuildInterfaces.DefinitionResourceReference[]} resources
+ * @param {string} project - Project ID or project name
+ */
+ authorizeProjectResources(resources, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "398c85bc-81aa-4822-947c-a194a05f0fef", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, resources, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} type
+ * @param {string} id
+ */
+ getProjectResources(project, type, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ type: type,
+ id: id,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "398c85bc-81aa-4822-947c-a194a05f0fef", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a badge that indicates the status of the most recent build for a definition. Note that this API is deprecated. Prefer StatusBadgeController.GetStatusBadge.
+ *
+ * @param {string} project - The project ID or name.
+ * @param {number} definitionId - The ID of the definition.
+ * @param {string} branchName - The name of the branch.
+ */
+ getBadge(project, definitionId, branchName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ branchName: branchName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "de6a4df8-22cd-44ee-af2d-39f6aa7a4261", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of branches for the given source code repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ * @param {string} repository - The vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories.
+ * @param {string} branchName - If supplied, the name of the branch to check for specifically.
+ */
+ listBranches(project, providerName, serviceEndpointId, repository, branchName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName
+ };
+ let queryValues = {
+ serviceEndpointId: serviceEndpointId,
+ repository: repository,
+ branchName: branchName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "e05d4403-9b81-4244-8763-20fde28d1976", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a badge that indicates the status of the most recent build for the specified branch.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repoType - The repository type.
+ * @param {string} repoId - The repository ID.
+ * @param {string} branchName - The branch name.
+ */
+ getBuildBadge(project, repoType, repoId, branchName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repoType: repoType
+ };
+ let queryValues = {
+ repoId: repoId,
+ branchName: branchName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "21b3b9ce-fad5-4567-9ad0-80679794e003", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a badge that indicates the status of the most recent build for the specified branch.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repoType - The repository type.
+ * @param {string} repoId - The repository ID.
+ * @param {string} branchName - The branch name.
+ */
+ getBuildBadgeData(project, repoType, repoId, branchName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repoType: repoType
+ };
+ let queryValues = {
+ repoId: repoId,
+ branchName: branchName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "21b3b9ce-fad5-4567-9ad0-80679794e003", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all retention leases that apply to a specific build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ getRetentionLeasesForBuild(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "3da19a6a-f088-45c4-83ce-2ad3a87be6c4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ deleteBuild(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "0cd358e1-9217-4d94-8269-1c1ee6f93dcf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a build
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} propertyFilters
+ */
+ getBuild(project, buildId, propertyFilters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ propertyFilters: propertyFilters,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "0cd358e1-9217-4d94-8269-1c1ee6f93dcf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Build, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of builds.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number[]} definitions - A comma-delimited list of definition IDs. If specified, filters to builds for these definitions.
+ * @param {number[]} queues - A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues.
+ * @param {string} buildNumber - If specified, filters to builds that match this build number. Append * to do a prefix search.
+ * @param {Date} minTime - If specified, filters to builds that finished/started/queued after this date based on the queryOrder specified.
+ * @param {Date} maxTime - If specified, filters to builds that finished/started/queued before this date based on the queryOrder specified.
+ * @param {string} requestedFor - If specified, filters to builds requested for the specified user.
+ * @param {BuildInterfaces.BuildReason} reasonFilter - If specified, filters to builds that match this reason.
+ * @param {BuildInterfaces.BuildStatus} statusFilter - If specified, filters to builds that match this status.
+ * @param {BuildInterfaces.BuildResult} resultFilter - If specified, filters to builds that match this result.
+ * @param {string[]} tagFilters - A comma-delimited list of tags. If specified, filters to builds that have the specified tags.
+ * @param {string[]} properties - A comma-delimited list of properties to retrieve.
+ * @param {number} top - The maximum number of builds to return.
+ * @param {string} continuationToken - A continuation token, returned by a previous call to this method, that can be used to return the next set of builds.
+ * @param {number} maxBuildsPerDefinition - The maximum number of builds to return per definition.
+ * @param {BuildInterfaces.QueryDeletedOption} deletedFilter - Indicates whether to exclude, include, or only return deleted builds.
+ * @param {BuildInterfaces.BuildQueryOrder} queryOrder - The order in which builds should be returned.
+ * @param {string} branchName - If specified, filters to builds that built branches that built this branch.
+ * @param {number[]} buildIds - A comma-delimited list that specifies the IDs of builds to retrieve.
+ * @param {string} repositoryId - If specified, filters to builds that built from this repository.
+ * @param {string} repositoryType - If specified, filters to builds that built from repositories of this type.
+ */
+ getBuilds(project, definitions, queues, buildNumber, minTime, maxTime, requestedFor, reasonFilter, statusFilter, resultFilter, tagFilters, properties, top, continuationToken, maxBuildsPerDefinition, deletedFilter, queryOrder, branchName, buildIds, repositoryId, repositoryType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ definitions: definitions && definitions.join(","),
+ queues: queues && queues.join(","),
+ buildNumber: buildNumber,
+ minTime: minTime,
+ maxTime: maxTime,
+ requestedFor: requestedFor,
+ reasonFilter: reasonFilter,
+ statusFilter: statusFilter,
+ resultFilter: resultFilter,
+ tagFilters: tagFilters && tagFilters.join(","),
+ properties: properties && properties.join(","),
+ '$top': top,
+ continuationToken: continuationToken,
+ maxBuildsPerDefinition: maxBuildsPerDefinition,
+ deletedFilter: deletedFilter,
+ queryOrder: queryOrder,
+ branchName: branchName,
+ buildIds: buildIds && buildIds.join(","),
+ repositoryId: repositoryId,
+ repositoryType: repositoryType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "0cd358e1-9217-4d94-8269-1c1ee6f93dcf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Build, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Queues a build
+ *
+ * @param {BuildInterfaces.Build} build
+ * @param {string} project - Project ID or project name
+ * @param {boolean} ignoreWarnings
+ * @param {string} checkInTicket
+ * @param {number} sourceBuildId
+ * @param {number} definitionId - Optional definition id to queue a build without a body. Ignored if there's a valid body
+ */
+ queueBuild(build, project, ignoreWarnings, checkInTicket, sourceBuildId, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ ignoreWarnings: ignoreWarnings,
+ checkInTicket: checkInTicket,
+ sourceBuildId: sourceBuildId,
+ definitionId: definitionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "0cd358e1-9217-4d94-8269-1c1ee6f93dcf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, build, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Build, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a build.
+ *
+ * @param {BuildInterfaces.Build} build - The build.
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {boolean} retry
+ */
+ updateBuild(build, project, buildId, retry) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ retry: retry,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "0cd358e1-9217-4d94-8269-1c1ee6f93dcf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, build, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Build, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates multiple builds.
+ *
+ * @param {BuildInterfaces.Build[]} builds - The builds to update.
+ * @param {string} project - Project ID or project name
+ */
+ updateBuilds(builds, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "0cd358e1-9217-4d94-8269-1c1ee6f93dcf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, builds, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Build, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the changes associated with a build
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} continuationToken
+ * @param {number} top - The maximum number of changes to return
+ * @param {boolean} includeSourceChange
+ */
+ getBuildChanges(project, buildId, continuationToken, top, includeSourceChange) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ '$top': top,
+ includeSourceChange: includeSourceChange,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "54572c7b-bbd3-45d4-80dc-28be08941620", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Change, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the changes made to the repository between two given builds.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} fromBuildId - The ID of the first build.
+ * @param {number} toBuildId - The ID of the last build.
+ * @param {number} top - The maximum number of changes to return.
+ */
+ getChangesBetweenBuilds(project, fromBuildId, toBuildId, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ fromBuildId: fromBuildId,
+ toBuildId: toBuildId,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "f10f0ea5-18a1-43ec-a8fb-2042c7be9b43", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Change, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a controller
+ *
+ * @param {number} controllerId
+ */
+ getBuildController(controllerId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ controllerId: controllerId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "fcac1932-2ee1-437f-9b6f-7f696be858f6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildController, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets controller, optionally filtered by name
+ *
+ * @param {string} name
+ */
+ getBuildControllers(name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ name: name,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "fcac1932-2ee1-437f-9b6f-7f696be858f6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildController, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new definition.
+ *
+ * @param {BuildInterfaces.BuildDefinition} definition - The definition.
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionToCloneId
+ * @param {number} definitionToCloneRevision
+ */
+ createDefinition(definition, project, definitionToCloneId, definitionToCloneRevision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ definitionToCloneId: definitionToCloneId,
+ definitionToCloneRevision: definitionToCloneRevision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "dbeaf647-6167-421a-bda9-c9327b25e2e6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, definition, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a definition and all associated builds.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ */
+ deleteDefinition(project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "dbeaf647-6167-421a-bda9-c9327b25e2e6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a definition, optionally at a specific revision.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {number} revision - The revision number to retrieve. If this is not specified, the latest version will be returned.
+ * @param {Date} minMetricsTime - If specified, indicates the date from which metrics should be included.
+ * @param {string[]} propertyFilters - A comma-delimited list of properties to include in the results.
+ * @param {boolean} includeLatestBuilds
+ */
+ getDefinition(project, definitionId, revision, minMetricsTime, propertyFilters, includeLatestBuilds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ revision: revision,
+ minMetricsTime: minMetricsTime,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ includeLatestBuilds: includeLatestBuilds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "dbeaf647-6167-421a-bda9-c9327b25e2e6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of definitions.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} name - If specified, filters to definitions whose names match this pattern.
+ * @param {string} repositoryId - A repository ID. If specified, filters to definitions that use this repository.
+ * @param {string} repositoryType - If specified, filters to definitions that have a repository of this type.
+ * @param {BuildInterfaces.DefinitionQueryOrder} queryOrder - Indicates the order in which definitions should be returned.
+ * @param {number} top - The maximum number of definitions to return.
+ * @param {string} continuationToken - A continuation token, returned by a previous call to this method, that can be used to return the next set of definitions.
+ * @param {Date} minMetricsTime - If specified, indicates the date from which metrics should be included.
+ * @param {number[]} definitionIds - A comma-delimited list that specifies the IDs of definitions to retrieve.
+ * @param {string} path - If specified, filters to definitions under this folder.
+ * @param {Date} builtAfter - If specified, filters to definitions that have builds after this date.
+ * @param {Date} notBuiltAfter - If specified, filters to definitions that do not have builds after this date.
+ * @param {boolean} includeAllProperties - Indicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned.
+ * @param {boolean} includeLatestBuilds - Indicates whether to return the latest and latest completed builds for this definition.
+ * @param {string} taskIdFilter - If specified, filters to definitions that use the specified task.
+ * @param {number} processType - If specified, filters to definitions with the given process type.
+ * @param {string} yamlFilename - If specified, filters to YAML definitions that match the given filename. To use this filter includeAllProperties should be set to true
+ */
+ getDefinitions(project, name, repositoryId, repositoryType, queryOrder, top, continuationToken, minMetricsTime, definitionIds, path, builtAfter, notBuiltAfter, includeAllProperties, includeLatestBuilds, taskIdFilter, processType, yamlFilename) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ name: name,
+ repositoryId: repositoryId,
+ repositoryType: repositoryType,
+ queryOrder: queryOrder,
+ '$top': top,
+ continuationToken: continuationToken,
+ minMetricsTime: minMetricsTime,
+ definitionIds: definitionIds && definitionIds.join(","),
+ path: path,
+ builtAfter: builtAfter,
+ notBuiltAfter: notBuiltAfter,
+ includeAllProperties: includeAllProperties,
+ includeLatestBuilds: includeLatestBuilds,
+ taskIdFilter: taskIdFilter,
+ processType: processType,
+ yamlFilename: yamlFilename,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "dbeaf647-6167-421a-bda9-c9327b25e2e6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinitionReference, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Restores a deleted definition
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The identifier of the definition to restore.
+ * @param {boolean} deleted - When false, restores a deleted definition.
+ */
+ restoreDefinition(project, definitionId, deleted) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (deleted == null) {
+ throw new TypeError('deleted can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ deleted: deleted,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "dbeaf647-6167-421a-bda9-c9327b25e2e6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, null, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates an existing build definition. In order for this operation to succeed, the value of the "Revision" property of the request body must match the existing build definition's. It is recommended that you obtain the existing build definition by using GET, modify the build definition as necessary, and then submit the modified definition with PUT.
+ *
+ * @param {BuildInterfaces.BuildDefinition} definition - The new version of the definition. Its "Revision" property must match the existing definition for the update to be accepted.
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {number} secretsSourceDefinitionId
+ * @param {number} secretsSourceDefinitionRevision
+ */
+ updateDefinition(definition, project, definitionId, secretsSourceDefinitionId, secretsSourceDefinitionRevision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ secretsSourceDefinitionId: secretsSourceDefinitionId,
+ secretsSourceDefinitionRevision: secretsSourceDefinitionRevision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "build", "dbeaf647-6167-421a-bda9-c9327b25e2e6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, definition, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the contents of a file in the given source code repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ * @param {string} repository - If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories.
+ * @param {string} commitOrBranch - The identifier of the commit or branch from which a file's contents are retrieved.
+ * @param {string} path - The path to the file to retrieve, relative to the root of the repository.
+ */
+ getFileContents(project, providerName, serviceEndpointId, repository, commitOrBranch, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName
+ };
+ let queryValues = {
+ serviceEndpointId: serviceEndpointId,
+ repository: repository,
+ commitOrBranch: commitOrBranch,
+ path: path,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "29d12225-b1d9-425f-b668-6c594a981313", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new folder.
+ *
+ * @param {BuildInterfaces.Folder} folder - The folder.
+ * @param {string} project - Project ID or project name
+ * @param {string} path - The full path of the folder.
+ */
+ createFolder(folder, project, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "a906531b-d2da-4f55-bda7-f3e676cc50d9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, folder, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Folder, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a definition folder. Definitions and their corresponding builds will also be deleted.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} path - The full path to the folder.
+ */
+ deleteFolder(project, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "a906531b-d2da-4f55-bda7-f3e676cc50d9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of build definition folders.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} path - The path to start with.
+ * @param {BuildInterfaces.FolderQueryOrder} queryOrder - The order in which folders should be returned.
+ */
+ getFolders(project, path, queryOrder) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ path: path
+ };
+ let queryValues = {
+ queryOrder: queryOrder,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "a906531b-d2da-4f55-bda7-f3e676cc50d9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Folder, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates an existing folder at given existing path
+ *
+ * @param {BuildInterfaces.Folder} folder - The new version of the folder.
+ * @param {string} project - Project ID or project name
+ * @param {string} path - The full path to the folder.
+ */
+ updateFolder(folder, project, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "a906531b-d2da-4f55-bda7-f3e676cc50d9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, folder, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Folder, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets pipeline general settings.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getBuildGeneralSettings(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "c4aefd19-30ff-405b-80ad-aca021e7242a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates pipeline general settings.
+ *
+ * @param {BuildInterfaces.PipelineGeneralSettings} newSettings
+ * @param {string} project - Project ID or project name
+ */
+ updateBuildGeneralSettings(newSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "c4aefd19-30ff-405b-80ad-aca021e7242a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, newSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the retention history for the project collection. This includes pipelines that have custom retention rules that may prevent the retention job from cleaning them up, runs per pipeline with retention type, files associated with pipelines owned by the collection with retention type, and the number of files per pipeline.
+ *
+ * @param {number} daysToLookback
+ */
+ getRetentionHistory(daysToLookback) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ daysToLookback: daysToLookback,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "1a9c48be-0ef5-4ec2-b94f-f053bdd2d3bf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildRetentionHistory, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the latest build for a definition, optionally scoped to a specific branch.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} definition - definition name with optional leading folder path, or the definition id
+ * @param {string} branchName - optional parameter that indicates the specific branch to use. If not specified, the default branch is used.
+ */
+ getLatestBuild(project, definition, branchName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definition: definition
+ };
+ let queryValues = {
+ branchName: branchName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "54481611-01f4-47f3-998f-160da0f0c229", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Build, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds new leases for pipeline runs.
+ *
+ * @param {BuildInterfaces.NewRetentionLease[]} newLeases
+ * @param {string} project - Project ID or project name
+ */
+ addRetentionLeases(newLeases, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, newLeases, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes specific retention leases.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number[]} ids
+ */
+ deleteRetentionLeasesById(project, ids) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ids == null) {
+ throw new TypeError('ids can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ ids: ids && ids.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the details of the retention lease given a lease id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} leaseId
+ */
+ getRetentionLease(project, leaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ leaseId: leaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns any leases matching the specified MinimalRetentionLeases
+ *
+ * @param {string} project - Project ID or project name
+ * @param {BuildInterfaces.MinimalRetentionLease[]} leasesToFetch - List of JSON-serialized MinimalRetentionLeases separated by '|'
+ */
+ getRetentionLeasesByMinimalRetentionLeases(project, leasesToFetch) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (leasesToFetch == null) {
+ throw new TypeError('leasesToFetch can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ leasesToFetch: leasesToFetch && leasesToFetch.join("|"),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns any leases owned by the specified entity, optionally scoped to a single pipeline definition and run.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} ownerId
+ * @param {number} definitionId - An optional parameter to limit the search to a specific pipeline definition.
+ * @param {number} runId - An optional parameter to limit the search to a single pipeline run. Requires definitionId.
+ */
+ getRetentionLeasesByOwnerId(project, ownerId, definitionId, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ ownerId: ownerId,
+ definitionId: definitionId,
+ runId: runId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns any leases owned by the specified user, optionally scoped to a single pipeline definition and run.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} userOwnerId - The user id to search for.
+ * @param {number} definitionId - An optional parameter to limit the search to a specific pipeline definition.
+ * @param {number} runId - An optional parameter to limit the search to a single pipeline run. Requires definitionId.
+ */
+ getRetentionLeasesByUserId(project, userOwnerId, definitionId, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (userOwnerId == null) {
+ throw new TypeError('userOwnerId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ userOwnerId: userOwnerId,
+ definitionId: definitionId,
+ runId: runId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the duration or pipeline protection status of a retention lease.
+ *
+ * @param {BuildInterfaces.RetentionLeaseUpdate} leaseUpdate - The new data for the retention lease.
+ * @param {string} project - Project ID or project name
+ * @param {number} leaseId - The ID of the lease to update.
+ */
+ updateRetentionLease(leaseUpdate, project, leaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ leaseId: leaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "272051e4-9af1-45b5-ae22-8d960a5539d4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, leaseUpdate, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RetentionLease, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets an individual log file for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {number} logId - The ID of the log file.
+ * @param {number} startLine - The start line.
+ * @param {number} endLine - The end line.
+ */
+ getBuildLog(project, buildId, logId, startLine, endLine) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ logId: logId
+ };
+ let queryValues = {
+ startLine: startLine,
+ endLine: endLine,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "35a80daf-7f30-45fc-86e8-6b813d9c90df", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets an individual log file for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {number} logId - The ID of the log file.
+ * @param {number} startLine - The start line.
+ * @param {number} endLine - The end line.
+ */
+ getBuildLogLines(project, buildId, logId, startLine, endLine) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ logId: logId
+ };
+ let queryValues = {
+ startLine: startLine,
+ endLine: endLine,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "35a80daf-7f30-45fc-86e8-6b813d9c90df", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the logs for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ getBuildLogs(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "35a80daf-7f30-45fc-86e8-6b813d9c90df", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the logs for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ getBuildLogsZip(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "35a80daf-7f30-45fc-86e8-6b813d9c90df", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets an individual log file for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {number} logId - The ID of the log file.
+ * @param {number} startLine - The start line.
+ * @param {number} endLine - The end line.
+ */
+ getBuildLogZip(project, buildId, logId, startLine, endLine) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ logId: logId
+ };
+ let queryValues = {
+ startLine: startLine,
+ endLine: endLine,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "35a80daf-7f30-45fc-86e8-6b813d9c90df", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets build metrics for a project.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} metricAggregationType - The aggregation type to use (hourly, daily).
+ * @param {Date} minMetricsTime - The date from which to calculate metrics.
+ */
+ getProjectMetrics(project, metricAggregationType, minMetricsTime) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ metricAggregationType: metricAggregationType
+ };
+ let queryValues = {
+ minMetricsTime: minMetricsTime,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "7433fae7-a6bc-41dc-a6e2-eef9005ce41a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildMetric, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets build metrics for a definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {Date} minMetricsTime - The date from which to calculate metrics.
+ */
+ getDefinitionMetrics(project, definitionId, minMetricsTime) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ minMetricsTime: minMetricsTime,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "d973b939-0ce0-4fec-91d8-da3940fa1827", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildMetric, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all build definition options supported by the system.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getBuildOptionDefinitions(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "591cb5a4-2d46-4f3a-a697-5cd42b6bd332", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildOptionDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the contents of a directory in the given source code repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ * @param {string} repository - If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories.
+ * @param {string} commitOrBranch - The identifier of the commit or branch from which a file's contents are retrieved.
+ * @param {string} path - The path contents to list, relative to the root of the repository.
+ */
+ getPathContents(project, providerName, serviceEndpointId, repository, commitOrBranch, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName
+ };
+ let queryValues = {
+ serviceEndpointId: serviceEndpointId,
+ repository: repository,
+ commitOrBranch: commitOrBranch,
+ path: path,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "7944d6fb-df01-4709-920a-7a189aa34037", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets properties for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string[]} filter - A comma-delimited list of properties. If specified, filters to these specific properties.
+ */
+ getBuildProperties(project, buildId, filter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ filter: filter && filter.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "0a6312e9-0627-49b7-8083-7d74a64849c9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates properties for a build.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} document - A json-patch document describing the properties to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ updateBuildProperties(customHeaders, document, project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "0a6312e9-0627-49b7-8083-7d74a64849c9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, document, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets properties for a definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {string[]} filter - A comma-delimited list of properties. If specified, filters to these specific properties.
+ */
+ getDefinitionProperties(project, definitionId, filter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ filter: filter && filter.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "d9826ad7-2a68-46a9-a6e9-677698777895", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates properties for a definition.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} document - A json-patch document describing the properties to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ */
+ updateDefinitionProperties(customHeaders, document, project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "d9826ad7-2a68-46a9-a6e9-677698777895", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, document, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a pull request object from source provider.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} pullRequestId - Vendor-specific id of the pull request.
+ * @param {string} repositoryId - Vendor-specific identifier or the name of the repository that contains the pull request.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ */
+ getPullRequest(project, providerName, pullRequestId, repositoryId, serviceEndpointId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ repositoryId: repositoryId,
+ serviceEndpointId: serviceEndpointId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "d8763ec7-9ff0-4fb4-b2b2-9d757906ff14", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a build report.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} type
+ */
+ getBuildReport(project, buildId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ type: type,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "45bcaa88-67e1-4042-a035-56d3b4a7d44c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a build report.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} type
+ */
+ getBuildReportHtmlContent(project, buildId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ type: type,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "45bcaa88-67e1-4042-a035-56d3b4a7d44c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/html", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of source code repositories.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ * @param {string} repository - If specified, the vendor-specific identifier or the name of a single repository to get.
+ * @param {BuildInterfaces.ResultSet} resultSet - 'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.
+ * @param {boolean} pageResults - If set to true, this will limit the set of results and will return a continuation token to continue the query.
+ * @param {string} continuationToken - When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories.
+ */
+ listRepositories(project, providerName, serviceEndpointId, repository, resultSet, pageResults, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName
+ };
+ let queryValues = {
+ serviceEndpointId: serviceEndpointId,
+ repository: repository,
+ resultSet: resultSet,
+ pageResults: pageResults,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "d44d1680-f978-4834-9b93-8c6e132329c9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {BuildInterfaces.DefinitionResourceReference[]} resources
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId
+ */
+ authorizeDefinitionResources(resources, project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "ea623316-1967-45eb-89ab-e9e6110cf2d6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, resources, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId
+ */
+ getDefinitionResources(project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "ea623316-1967-45eb-89ab-e9e6110cf2d6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets information about build resources in the system.
+ *
+ */
+ getResourceUsage() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "3813d06c-9e36-4ea1-aac3-61a485d60e3d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the project's retention settings.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getRetentionSettings(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "dadb46e7-5851-4c72-820e-ae8abb82f59f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the project's retention settings.
+ *
+ * @param {BuildInterfaces.UpdateProjectRetentionSettingModel} updateModel
+ * @param {string} project - Project ID or project name
+ */
+ updateRetentionSettings(updateModel, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "dadb46e7-5851-4c72-820e-ae8abb82f59f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all revisions of a definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ */
+ getDefinitionRevisions(project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "7c116775-52e5-453e-8c5d-914d9762d8c4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinitionRevision, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the build settings.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getBuildSettings(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the build settings.
+ *
+ * @param {BuildInterfaces.BuildSettings} settings - The new settings.
+ * @param {string} project - Project ID or project name
+ */
+ updateBuildSettings(settings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, settings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of source providers and their capabilities.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ listSourceProviders(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "3ce81729-954f-423d-a581-9fea01d25186", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.SourceProviderAttributes, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a build stage
+ *
+ * @param {BuildInterfaces.UpdateStageParameters} updateParameters
+ * @param {number} buildId
+ * @param {string} stageRefName
+ * @param {string} project - Project ID or project name
+ */
+ updateStage(updateParameters, buildId, stageRefName, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ stageRefName: stageRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "b8aac6c9-744b-46e1-88fc-3550969f9313", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the build status for a definition, optionally scoped to a specific branch, stage, job, and configuration.
If there are more than one, then it is required to pass in a stageName value when specifying a jobName, and the same rule then applies for both if passing a configuration parameter.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} definition - Either the definition name with optional leading folder path, or the definition id.
+ * @param {string} branchName - Only consider the most recent build for this branch. If not specified, the default branch is used.
+ * @param {string} stageName - Use this stage within the pipeline to render the status.
+ * @param {string} jobName - Use this job within a stage of the pipeline to render the status.
+ * @param {string} configuration - Use this job configuration to render the status
+ * @param {string} label - Replaces the default text on the left side of the badge.
+ */
+ getStatusBadge(project, definition, branchName, stageName, jobName, configuration, label) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definition: definition
+ };
+ let queryValues = {
+ branchName: branchName,
+ stageName: stageName,
+ jobName: jobName,
+ configuration: configuration,
+ label: label,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "07acfdce-4757-4439-b422-ddd13a2fcc10", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a tag to a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} tag - The tag to add.
+ */
+ addBuildTag(project, buildId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "6e6114b2-8161-44c8-8f6c-c5505782427f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds tags to a build.
+ *
+ * @param {string[]} tags - The tags to add. Request body is composed directly from listed tags.
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ addBuildTags(tags, project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "6e6114b2-8161-44c8-8f6c-c5505782427f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, tags, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a tag from a build. NOTE: This API will not work for tags with special characters. To remove tags with special characters, use the PATCH method instead (in 6.0+)
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {string} tag - The tag to remove.
+ */
+ deleteBuildTag(project, buildId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "6e6114b2-8161-44c8-8f6c-c5505782427f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the tags for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ getBuildTags(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "6e6114b2-8161-44c8-8f6c-c5505782427f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds/Removes tags from a build.
+ *
+ * @param {BuildInterfaces.UpdateTagParameters} updateParameters - The tags to add/remove.
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ */
+ updateBuildTags(updateParameters, project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "6e6114b2-8161-44c8-8f6c-c5505782427f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a tag to a definition
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {string} tag - The tag to add.
+ */
+ addDefinitionTag(project, definitionId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "cb894432-134a-4d31-a839-83beceaace4b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds multiple tags to a definition.
+ *
+ * @param {string[]} tags - The tags to add.
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ */
+ addDefinitionTags(tags, project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "cb894432-134a-4d31-a839-83beceaace4b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, tags, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a tag from a definition. NOTE: This API will not work for tags with special characters. To remove tags with special characters, use the PATCH method instead (in 6.0+)
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {string} tag - The tag to remove.
+ */
+ deleteDefinitionTag(project, definitionId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "cb894432-134a-4d31-a839-83beceaace4b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the tags for a definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {number} revision - The definition revision number. If not specified, uses the latest revision of the definition.
+ */
+ getDefinitionTags(project, definitionId, revision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ revision: revision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "cb894432-134a-4d31-a839-83beceaace4b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds/Removes tags from a definition.
+ *
+ * @param {BuildInterfaces.UpdateTagParameters} updateParameters - The tags to add/remove.
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ */
+ updateDefinitionTags(updateParameters, project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "cb894432-134a-4d31-a839-83beceaace4b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a tag from builds, definitions, and from the tag store
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} tag - The tag to remove.
+ */
+ deleteTag(project, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "d84ac5c6-edc7-43d5-adc9-1b34be5dea09", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of all build tags in the project.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getTags(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "d84ac5c6-edc7-43d5-adc9-1b34be5dea09", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a build definition template.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} templateId - The ID of the template.
+ */
+ deleteTemplate(project, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ templateId: templateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "e884571e-7f92-4d6a-9274-3f5649900835", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a specific build definition template.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} templateId - The ID of the requested template.
+ */
+ getTemplate(project, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ templateId: templateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "e884571e-7f92-4d6a-9274-3f5649900835", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinitionTemplate, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all definition templates.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getTemplates(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "e884571e-7f92-4d6a-9274-3f5649900835", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinitionTemplate, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates an existing build definition template.
+ *
+ * @param {BuildInterfaces.BuildDefinitionTemplate} template - The new version of the template.
+ * @param {string} project - Project ID or project name
+ * @param {string} templateId - The ID of the template.
+ */
+ saveTemplate(template, project, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ templateId: templateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "build", "e884571e-7f92-4d6a-9274-3f5649900835", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, template, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.BuildDefinitionTemplate, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets details for a build
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} timelineId
+ * @param {number} changeId
+ * @param {string} planId
+ */
+ getBuildTimeline(project, buildId, timelineId, changeId, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId,
+ timelineId: timelineId
+ };
+ let queryValues = {
+ changeId: changeId,
+ planId: planId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "8baac422-4c6e-4de5-8532-db96d92acffa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.Timeline, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Recreates the webhooks for the specified triggers in the given source code repository.
+ *
+ * @param {BuildInterfaces.DefinitionTriggerType[]} triggerTypes - The types of triggers to restore webhooks for.
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ * @param {string} repository - If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.
+ */
+ restoreWebhooks(triggerTypes, project, providerName, serviceEndpointId, repository) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName
+ };
+ let queryValues = {
+ serviceEndpointId: serviceEndpointId,
+ repository: repository,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "793bceb8-9736-4030-bd2f-fb3ce6d6b478", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, triggerTypes, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of webhooks installed in the given source code repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} providerName - The name of the source provider.
+ * @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
+ * @param {string} repository - If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.
+ */
+ listWebhooks(project, providerName, serviceEndpointId, repository) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ providerName: providerName
+ };
+ let queryValues = {
+ serviceEndpointId: serviceEndpointId,
+ repository: repository,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "8f20ff82-9498-4812-9f6e-9c01bdc50e99", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, BuildInterfaces.TypeInfo.RepositoryWebhook, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the work items associated with a build. Only work items in the same project are returned.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {number} top - The maximum number of work items to return.
+ */
+ getBuildWorkItemsRefs(project, buildId, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "5a21f5d2-5642-47e4-a0bd-1356e6731bee", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the work items associated with a build, filtered to specific commits.
+ *
+ * @param {string[]} commitIds - A comma-delimited list of commit IDs.
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - The ID of the build.
+ * @param {number} top - The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified.
+ */
+ getBuildWorkItemsRefsFromCommits(commitIds, project, buildId, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "5a21f5d2-5642-47e4-a0bd-1356e6731bee", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, commitIds, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all the work items between two builds.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} fromBuildId - The ID of the first build.
+ * @param {number} toBuildId - The ID of the last build.
+ * @param {number} top - The maximum number of work items to return.
+ */
+ getWorkItemsBetweenBuilds(project, fromBuildId, toBuildId, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (fromBuildId == null) {
+ throw new TypeError('fromBuildId can not be null or undefined');
+ }
+ if (toBuildId == null) {
+ throw new TypeError('toBuildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ fromBuildId: fromBuildId,
+ toBuildId: toBuildId,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "build", "52ba8915-5518-42e3-a4bb-b0182d159e2d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Converts a definition to YAML, optionally at a specific revision.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - The ID of the definition.
+ * @param {number} revision - The revision number to retrieve. If this is not specified, the latest version will be returned.
+ * @param {Date} minMetricsTime - If specified, indicates the date from which metrics should be included.
+ * @param {string[]} propertyFilters - A comma-delimited list of properties to include in the results.
+ * @param {boolean} includeLatestBuilds
+ */
+ getDefinitionYaml(project, definitionId, revision, minMetricsTime, propertyFilters, includeLatestBuilds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ revision: revision,
+ minMetricsTime: minMetricsTime,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ includeLatestBuilds: includeLatestBuilds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "build", "7c3df3a1-7e51-4150-8cf7-540347f8697f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+BuildApi.RESOURCE_AREA_ID = "965220d5-5bb9-42cf-8d67-9b146df2a5a4";
+exports.BuildApi = BuildApi;
+
+
+/***/ }),
+
+/***/ 273:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const vsom = __nccwpck_require__(9686);
+const serm = __nccwpck_require__(5817);
+const rm = __nccwpck_require__(7405);
+const hm = __nccwpck_require__(5538);
+class ClientApiBase {
+ constructor(baseUrl, handlers, userAgent, options) {
+ this.baseUrl = baseUrl;
+ this.http = new hm.HttpClient(userAgent, handlers, options);
+ this.rest = new rm.RestClient(userAgent, null, handlers, options);
+ this.vsoClient = new vsom.VsoClient(baseUrl, this.rest);
+ this.userAgent = userAgent;
+ }
+ createAcceptHeader(type, apiVersion) {
+ return type + (apiVersion ? (';api-version=' + apiVersion) : '');
+ }
+ createRequestOptions(type, apiVersion) {
+ let options = {};
+ options.acceptHeader = this.createAcceptHeader(type, apiVersion);
+ return options;
+ }
+ formatResponse(data, responseTypeMetadata, isCollection) {
+ let serializationData = {
+ responseTypeMetadata: responseTypeMetadata,
+ responseIsCollection: isCollection
+ };
+ let deserializedResult = serm.ContractSerializer.deserialize(data, serializationData.responseTypeMetadata, false, serializationData.responseIsCollection);
+ return deserializedResult;
+ }
+}
+exports.ClientApiBase = ClientApiBase;
+
+
+/***/ }),
+
+/***/ 4020:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const CoreInterfaces = __nccwpck_require__(3931);
+const OperationsInterfaces = __nccwpck_require__(3052);
+class CoreApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Core-api', options);
+ }
+ /**
+ * Removes the avatar for the project.
+ *
+ * @param {string} projectId - The ID or name of the project.
+ */
+ removeProjectAvatar(projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "54b2a2a0-859b-4d05-827c-ec4c862f641a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Sets the avatar for the project.
+ *
+ * @param {CoreInterfaces.ProjectAvatar} avatarBlob - The avatar blob data object to upload.
+ * @param {string} projectId - The ID or name of the project.
+ */
+ setProjectAvatar(avatarBlob, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "54b2a2a0-859b-4d05-827c-ec4c862f641a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, avatarBlob, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {CoreInterfaces.WebApiConnectedServiceDetails} connectedServiceCreationData
+ * @param {string} projectId
+ */
+ createConnectedService(connectedServiceCreationData, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "b4f70219-e18b-42c5-abe3-98b07d35525e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, connectedServiceCreationData, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.WebApiConnectedService, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} projectId
+ * @param {string} name
+ */
+ getConnectedServiceDetails(projectId, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "b4f70219-e18b-42c5-abe3-98b07d35525e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.WebApiConnectedServiceDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} projectId
+ * @param {CoreInterfaces.ConnectedServiceKind} kind
+ */
+ getConnectedServices(projectId, kind) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ let queryValues = {
+ kind: kind,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "b4f70219-e18b-42c5-abe3-98b07d35525e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.WebApiConnectedService, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {CoreInterfaces.IdentityData} mruData
+ * @param {string} mruName
+ */
+ createIdentityMru(mruData, mruName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ mruName: mruName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "5ead0b70-2572-4697-97e9-f341069a783a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, mruData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {CoreInterfaces.IdentityData} mruData
+ * @param {string} mruName
+ */
+ deleteIdentityMru(mruData, mruName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ mruName: mruName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "5ead0b70-2572-4697-97e9-f341069a783a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} mruName
+ */
+ getIdentityMru(mruName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ mruName: mruName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "5ead0b70-2572-4697-97e9-f341069a783a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {CoreInterfaces.IdentityData} mruData
+ * @param {string} mruName
+ */
+ updateIdentityMru(mruData, mruName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ mruName: mruName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "5ead0b70-2572-4697-97e9-f341069a783a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, mruData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of members for a specific team.
+ *
+ * @param {string} projectId - The name or ID (GUID) of the team project the team belongs to.
+ * @param {string} teamId - The name or ID (GUID) of the team .
+ * @param {number} top
+ * @param {number} skip
+ */
+ getTeamMembersWithExtendedProperties(projectId, teamId, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId,
+ teamId: teamId
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "294c494c-2600-4d7e-b76c-3dd50c3c95be", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a process by ID.
+ *
+ * @param {string} processId - ID for a process.
+ */
+ getProcessById(processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "93878975-88c5-4e6a-8abb-7ddd77a8a7d8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.Process, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of processes.
+ *
+ */
+ getProcesses() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "93878975-88c5-4e6a-8abb-7ddd77a8a7d8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.Process, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get project collection with the specified id or name.
+ *
+ * @param {string} collectionId
+ */
+ getProjectCollection(collectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ collectionId: collectionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "8031090f-ef1d-4af6-85fc-698cd75d42bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.TeamProjectCollection, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get project collection references for this application.
+ *
+ * @param {number} top
+ * @param {number} skip
+ */
+ getProjectCollections(top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "8031090f-ef1d-4af6-85fc-698cd75d42bf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the history of changes to the project.
+ *
+ * @param {number} minRevision - The minimum revision number to return in the history.
+ */
+ getProjectHistoryEntries(minRevision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ minRevision: minRevision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "6488a877-4749-4954-82ea-7340d36be9f2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.ProjectInfo, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get project with the specified id or name, optionally including capabilities.
+ *
+ * @param {string} projectId
+ * @param {boolean} includeCapabilities - Include capabilities (such as source control) in the team project result (default: false).
+ * @param {boolean} includeHistory - Search within renamed projects (that had such name in the past).
+ */
+ getProject(projectId, includeCapabilities, includeHistory) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ let queryValues = {
+ includeCapabilities: includeCapabilities,
+ includeHistory: includeHistory,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "core", "603fe2ac-9723-48b9-88ad-09305aa6c6e1", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.TeamProject, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all projects in the organization that the authenticated user has access to.
+ *
+ * @param {any} stateFilter - Filter on team projects in a specific team project state (default: WellFormed).
+ * @param {number} top
+ * @param {number} skip
+ * @param {string} continuationToken
+ * @param {boolean} getDefaultTeamImageUrl
+ */
+ getProjects(stateFilter, top, skip, continuationToken, getDefaultTeamImageUrl) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ stateFilter: stateFilter,
+ '$top': top,
+ '$skip': skip,
+ continuationToken: continuationToken,
+ getDefaultTeamImageUrl: getDefaultTeamImageUrl,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "core", "603fe2ac-9723-48b9-88ad-09305aa6c6e1", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, CoreInterfaces.TypeInfo.TeamProjectReference, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status.
+ *
+ * @param {CoreInterfaces.TeamProject} projectToCreate - The project to create.
+ */
+ queueCreateProject(projectToCreate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "core", "603fe2ac-9723-48b9-88ad-09305aa6c6e1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, projectToCreate, options);
+ let ret = this.formatResponse(res.result, OperationsInterfaces.TypeInfo.OperationReference, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status.
+ *
+ * @param {string} projectId - The project id of the project to delete.
+ */
+ queueDeleteProject(projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "core", "603fe2ac-9723-48b9-88ad-09305aa6c6e1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, OperationsInterfaces.TypeInfo.OperationReference, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update an existing project's name, abbreviation, description, or restore a project.
+ *
+ * @param {CoreInterfaces.TeamProject} projectUpdate - The updates for the project. The state must be set to wellFormed to restore the project.
+ * @param {string} projectId - The project id of the project to update.
+ */
+ updateProject(projectUpdate, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "core", "603fe2ac-9723-48b9-88ad-09305aa6c6e1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, projectUpdate, options);
+ let ret = this.formatResponse(res.result, OperationsInterfaces.TypeInfo.OperationReference, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a collection of team project properties for multiple projects.
+ *
+ * @param {string[]} projectIds - A comma-delimited string of team project IDs
+ * @param {string[]} properties
+ */
+ getProjectsProperties(projectIds, properties) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (projectIds == null) {
+ throw new TypeError('projectIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ projectIds: projectIds && projectIds.join(","),
+ properties: properties && properties.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "0a3ffdfc-fe94-47a6-bb27-79bf3f762eac", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a collection of team project properties.
+ *
+ * @param {string} projectId - The team project ID.
+ * @param {string[]} keys - A comma-delimited string of team project property names. Wildcard characters ("?" and "*") are supported. If no key is specified, all properties will be returned.
+ */
+ getProjectProperties(projectId, keys) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ let queryValues = {
+ keys: keys && keys.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "4976a71a-4487-49aa-8aab-a1eda469037a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create, update, and delete team project properties.
+ *
+ * @param {string} projectId - The team project ID.
+ * @param {VSSInterfaces.JsonPatchDocument} patchDocument - A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name.
+ */
+ setProjectProperties(customHeaders, projectId, patchDocument) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "core", "4976a71a-4487-49aa-8aab-a1eda469037a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, patchDocument, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {CoreInterfaces.Proxy} proxy
+ */
+ createOrUpdateProxy(proxy) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "ec1f4311-f2b4-4c15-b2b8-8990b80d2908", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, proxy, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} proxyUrl
+ * @param {string} site
+ */
+ deleteProxy(proxyUrl, site) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (proxyUrl == null) {
+ throw new TypeError('proxyUrl can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ proxyUrl: proxyUrl,
+ site: site,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "ec1f4311-f2b4-4c15-b2b8-8990b80d2908", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} proxyUrl
+ */
+ getProxies(proxyUrl) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ proxyUrl: proxyUrl,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "core", "ec1f4311-f2b4-4c15-b2b8-8990b80d2908", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of all teams.
+ *
+ * @param {boolean} mine - If true, then return all teams requesting user is member. Otherwise return all teams user has read access.
+ * @param {number} top - Maximum number of teams to return.
+ * @param {number} skip - Number of teams to skip.
+ * @param {boolean} expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
+ */
+ getAllTeams(mine, top, skip, expandIdentity) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ '$mine': mine,
+ '$top': top,
+ '$skip': skip,
+ '$expandIdentity': expandIdentity,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "core", "7a4d9ee9-3433-4347-b47a-7a80f1cf307e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a team in a team project.
+ *
+ * @param {CoreInterfaces.WebApiTeam} team - The team data used to create the team.
+ * @param {string} projectId - The name or ID (GUID) of the team project in which to create the team.
+ */
+ createTeam(team, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "core", "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, team, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a team.
+ *
+ * @param {string} projectId - The name or ID (GUID) of the team project containing the team to delete.
+ * @param {string} teamId - The name or ID of the team to delete.
+ */
+ deleteTeam(projectId, teamId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId,
+ teamId: teamId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "core", "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a specific team.
+ *
+ * @param {string} projectId - The name or ID (GUID) of the team project containing the team.
+ * @param {string} teamId - The name or ID (GUID) of the team.
+ * @param {boolean} expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
+ */
+ getTeam(projectId, teamId, expandIdentity) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId,
+ teamId: teamId
+ };
+ let queryValues = {
+ '$expandIdentity': expandIdentity,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "core", "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of teams.
+ *
+ * @param {string} projectId
+ * @param {boolean} mine - If true return all the teams requesting user is member, otherwise return all the teams user has read access.
+ * @param {number} top - Maximum number of teams to return.
+ * @param {number} skip - Number of teams to skip.
+ * @param {boolean} expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
+ */
+ getTeams(projectId, mine, top, skip, expandIdentity) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId
+ };
+ let queryValues = {
+ '$mine': mine,
+ '$top': top,
+ '$skip': skip,
+ '$expandIdentity': expandIdentity,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "core", "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a team's name and/or description.
+ *
+ * @param {CoreInterfaces.WebApiTeam} teamData
+ * @param {string} projectId - The name or ID (GUID) of the team project containing the team to update.
+ * @param {string} teamId - The name of ID of the team to update.
+ */
+ updateTeam(teamData, projectId, teamId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId,
+ teamId: teamId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "core", "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, teamData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+CoreApi.RESOURCE_AREA_ID = "79134c72-4a58-4b42-976c-04e7115f32bf";
+exports.CoreApi = CoreApi;
+
+
+/***/ }),
+
+/***/ 7539:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const DashboardInterfaces = __nccwpck_require__(6890);
+class DashboardApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Dashboard-api', options);
+ }
+ /**
+ * Create the supplied dashboard.
+ *
+ * @param {DashboardInterfaces.Dashboard} dashboard - The initial state of the dashboard
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ createDashboard(dashboard, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Dashboard", "454b3e51-2e6e-48d4-ad81-978154089351", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, dashboard, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Dashboard, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of the dashboard to delete.
+ */
+ deleteDashboard(teamContext, dashboardId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Dashboard", "454b3e51-2e6e-48d4-ad81-978154089351", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a dashboard by its ID.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId
+ */
+ getDashboard(teamContext, dashboardId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Dashboard", "454b3e51-2e6e-48d4-ad81-978154089351", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Dashboard, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of dashboards under a project.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getDashboardsByProject(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Dashboard", "454b3e51-2e6e-48d4-ad81-978154089351", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Dashboard, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied.
+ *
+ * @param {DashboardInterfaces.Dashboard} dashboard - The Configuration of the dashboard to replace.
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of the dashboard to replace.
+ */
+ replaceDashboard(dashboard, teamContext, dashboardId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Dashboard", "454b3e51-2e6e-48d4-ad81-978154089351", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, dashboard, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Dashboard, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content.
+ *
+ * @param {DashboardInterfaces.DashboardGroup} group
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ replaceDashboards(group, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Dashboard", "454b3e51-2e6e-48d4-ad81-978154089351", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, group, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.DashboardGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a widget on the specified dashboard.
+ *
+ * @param {DashboardInterfaces.Widget} widget - State of the widget to add
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of dashboard the widget will be added to.
+ */
+ createWidget(widget, teamContext, dashboardId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Dashboard", "bdcff53a-8355-4172-a00a-40497ea23afc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, widget, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Widget, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete the specified widget.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of the dashboard containing the widget.
+ * @param {string} widgetId - ID of the widget to update.
+ */
+ deleteWidget(teamContext, dashboardId, widgetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId,
+ widgetId: widgetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Dashboard", "bdcff53a-8355-4172-a00a-40497ea23afc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Dashboard, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the current state of the specified widget.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of the dashboard containing the widget.
+ * @param {string} widgetId - ID of the widget to read.
+ */
+ getWidget(teamContext, dashboardId, widgetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId,
+ widgetId: widgetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Dashboard", "bdcff53a-8355-4172-a00a-40497ea23afc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Widget, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Override the state of the specified widget.
+ *
+ * @param {DashboardInterfaces.Widget} widget - State to be written for the widget.
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of the dashboard containing the widget.
+ * @param {string} widgetId - ID of the widget to update.
+ */
+ replaceWidget(widget, teamContext, dashboardId, widgetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId,
+ widgetId: widgetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Dashboard", "bdcff53a-8355-4172-a00a-40497ea23afc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, widget, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Widget, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Perform a partial update of the specified widget.
+ *
+ * @param {DashboardInterfaces.Widget} widget - Description of the widget changes to apply. All non-null fields will be replaced.
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} dashboardId - ID of the dashboard containing the widget.
+ * @param {string} widgetId - ID of the widget to update.
+ */
+ updateWidget(widget, teamContext, dashboardId, widgetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ dashboardId: dashboardId,
+ widgetId: widgetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Dashboard", "bdcff53a-8355-4172-a00a-40497ea23afc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, widget, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.Widget, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the widget metadata satisfying the specified contribution ID.
+ *
+ * @param {string} contributionId - The ID of Contribution for the Widget
+ * @param {string} project - Project ID or project name
+ */
+ getWidgetMetadata(contributionId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ contributionId: contributionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Dashboard", "6b3628d3-e96f-4fc7-b176-50240b03b515", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.WidgetMetadataResponse, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all available widget metadata in alphabetical order, including widgets marked with isVisibleFromCatalog == false.
+ *
+ * @param {DashboardInterfaces.WidgetScope} scope
+ * @param {string} project - Project ID or project name
+ */
+ getWidgetTypes(scope, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (scope == null) {
+ throw new TypeError('scope can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ '$scope': scope,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Dashboard", "6b3628d3-e96f-4fc7-b176-50240b03b515", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, DashboardInterfaces.TypeInfo.WidgetTypesResponse, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+DashboardApi.RESOURCE_AREA_ID = "31c84e0a-3ece-48fd-a29d-100849af99ba";
+exports.DashboardApi = DashboardApi;
+
+
+/***/ }),
+
+/***/ 4605:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const ExtensionManagementInterfaces = __nccwpck_require__(7357);
+const GalleryInterfaces = __nccwpck_require__(8905);
+class ExtensionManagementApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-ExtensionManagement-api', options);
+ }
+ /**
+ * @param {string} itemId
+ * @param {boolean} testCommerce
+ * @param {boolean} isFreeOrTrialInstall
+ * @param {boolean} isAccountOwner
+ * @param {boolean} isLinked
+ * @param {boolean} isConnectedServer
+ * @param {boolean} isBuyOperationValid
+ */
+ getAcquisitionOptions(itemId, testCommerce, isFreeOrTrialInstall, isAccountOwner, isLinked, isConnectedServer, isBuyOperationValid) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (itemId == null) {
+ throw new TypeError('itemId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ itemId: itemId,
+ testCommerce: testCommerce,
+ isFreeOrTrialInstall: isFreeOrTrialInstall,
+ isAccountOwner: isAccountOwner,
+ isLinked: isLinked,
+ isConnectedServer: isConnectedServer,
+ isBuyOperationValid: isBuyOperationValid,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "288dff58-d13b-468e-9671-0fb754e9398c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.AcquisitionOptions, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ExtensionManagementInterfaces.ExtensionAcquisitionRequest} acquisitionRequest
+ */
+ requestAcquisition(acquisitionRequest) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "da616457-eed3-4672-92d7-18d21f5c1658", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, acquisitionRequest, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.ExtensionAcquisitionRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ */
+ getAuditLog(publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "23a312e0-562d-42fb-a505-5a046b5635db", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.ExtensionAuditLog, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} registrationId
+ */
+ registerAuthorization(publisherName, extensionName, registrationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ registrationId: registrationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "f21cfc80-d2d2-4248-98bb-7820c74c4606", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} doc
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} scopeType
+ * @param {string} scopeValue
+ * @param {string} collectionName
+ */
+ createDocumentByName(doc, publisherName, extensionName, scopeType, scopeValue, collectionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ scopeType: scopeType,
+ scopeValue: scopeValue,
+ collectionName: collectionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "bbe06c18-1c8b-4fcd-b9c6-1535aaab8749", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, doc, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} scopeType
+ * @param {string} scopeValue
+ * @param {string} collectionName
+ * @param {string} documentId
+ */
+ deleteDocumentByName(publisherName, extensionName, scopeType, scopeValue, collectionName, documentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ scopeType: scopeType,
+ scopeValue: scopeValue,
+ collectionName: collectionName,
+ documentId: documentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "bbe06c18-1c8b-4fcd-b9c6-1535aaab8749", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} scopeType
+ * @param {string} scopeValue
+ * @param {string} collectionName
+ * @param {string} documentId
+ */
+ getDocumentByName(publisherName, extensionName, scopeType, scopeValue, collectionName, documentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ scopeType: scopeType,
+ scopeValue: scopeValue,
+ collectionName: collectionName,
+ documentId: documentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "bbe06c18-1c8b-4fcd-b9c6-1535aaab8749", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} scopeType
+ * @param {string} scopeValue
+ * @param {string} collectionName
+ */
+ getDocumentsByName(publisherName, extensionName, scopeType, scopeValue, collectionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ scopeType: scopeType,
+ scopeValue: scopeValue,
+ collectionName: collectionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "bbe06c18-1c8b-4fcd-b9c6-1535aaab8749", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} doc
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} scopeType
+ * @param {string} scopeValue
+ * @param {string} collectionName
+ */
+ setDocumentByName(doc, publisherName, extensionName, scopeType, scopeValue, collectionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ scopeType: scopeType,
+ scopeValue: scopeValue,
+ collectionName: collectionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "bbe06c18-1c8b-4fcd-b9c6-1535aaab8749", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, doc, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} doc
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} scopeType
+ * @param {string} scopeValue
+ * @param {string} collectionName
+ */
+ updateDocumentByName(doc, publisherName, extensionName, scopeType, scopeValue, collectionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ scopeType: scopeType,
+ scopeValue: scopeValue,
+ collectionName: collectionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "bbe06c18-1c8b-4fcd-b9c6-1535aaab8749", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, doc, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Query for one or more data collections for the specified extension. Note: the token used for authorization must have been issued on behalf of the specified extension.
+ *
+ * @param {ExtensionManagementInterfaces.ExtensionDataCollectionQuery} collectionQuery
+ * @param {string} publisherName - Name of the publisher. Example: "fabrikam".
+ * @param {string} extensionName - Name of the extension. Example: "ops-tools".
+ */
+ queryCollectionsByName(collectionQuery, publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "56c331f1-ce53-4318-adfd-4db5c52a7a2e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, collectionQuery, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * List state and version information for all installed extensions.
+ *
+ * @param {boolean} includeDisabled - If true (the default), include disabled extensions in the results.
+ * @param {boolean} includeErrors - If true, include installed extensions in an error state in the results.
+ * @param {boolean} includeInstallationIssues
+ * @param {boolean} forceRefresh
+ */
+ getStates(includeDisabled, includeErrors, includeInstallationIssues, forceRefresh) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ includeDisabled: includeDisabled,
+ includeErrors: includeErrors,
+ includeInstallationIssues: includeInstallationIssues,
+ forceRefresh: forceRefresh,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "92755d3d-9a8a-42b3-8a4d-87359fe5aa93", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.ExtensionState, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ExtensionManagementInterfaces.InstalledExtensionQuery} query
+ */
+ queryExtensions(query) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "046c980f-1345-4ce2-bf85-b46d10ff4cfd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.InstalledExtension, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * List the installed extensions in the account / project collection.
+ *
+ * @param {boolean} includeDisabledExtensions - If true (the default), include disabled extensions in the results.
+ * @param {boolean} includeErrors - If true, include installed extensions with errors.
+ * @param {string[]} assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
+ * @param {boolean} includeInstallationIssues
+ */
+ getInstalledExtensions(includeDisabledExtensions, includeErrors, assetTypes, includeInstallationIssues) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ includeDisabledExtensions: includeDisabledExtensions,
+ includeErrors: includeErrors,
+ assetTypes: assetTypes && assetTypes.join(":"),
+ includeInstallationIssues: includeInstallationIssues,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "275424d0-c844-4fe2-bda6-04933a1357d8", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.InstalledExtension, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update an installed extension. Typically this API is used to enable or disable an extension.
+ *
+ * @param {ExtensionManagementInterfaces.InstalledExtension} extension
+ */
+ updateInstalledExtension(extension) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "275424d0-c844-4fe2-bda6-04933a1357d8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, extension, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.InstalledExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get an installed extension by its publisher and extension name.
+ *
+ * @param {string} publisherName - Name of the publisher. Example: "fabrikam".
+ * @param {string} extensionName - Name of the extension. Example: "ops-tools".
+ * @param {string[]} assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
+ */
+ getInstalledExtensionByName(publisherName, extensionName, assetTypes) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ assetTypes: assetTypes && assetTypes.join(":"),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "fb0da285-f23e-4b56-8b53-3ef5f9f6de66", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.InstalledExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Install the specified extension into the account / project collection.
+ *
+ * @param {string} publisherName - Name of the publisher. Example: "fabrikam".
+ * @param {string} extensionName - Name of the extension. Example: "ops-tools".
+ * @param {string} version
+ */
+ installExtensionByName(publisherName, extensionName, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "fb0da285-f23e-4b56-8b53-3ef5f9f6de66", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.InstalledExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Uninstall the specified extension from the account / project collection.
+ *
+ * @param {string} publisherName - Name of the publisher. Example: "fabrikam".
+ * @param {string} extensionName - Name of the extension. Example: "ops-tools".
+ * @param {string} reason
+ * @param {string} reasonCode
+ */
+ uninstallExtensionByName(publisherName, extensionName, reason, reasonCode) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ reason: reason,
+ reasonCode: reasonCode,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "fb0da285-f23e-4b56-8b53-3ef5f9f6de66", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} userId
+ */
+ getPolicies(userId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ userId: userId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "e5cc8c09-407b-4867-8319-2ae3338cbf6f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.UserExtensionPolicy, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} rejectMessage
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} requesterId
+ * @param {ExtensionManagementInterfaces.ExtensionRequestState} state
+ */
+ resolveRequest(rejectMessage, publisherName, extensionName, requesterId, state) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (state == null) {
+ throw new TypeError('state can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ requesterId: requesterId
+ };
+ let queryValues = {
+ state: state,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "aa93e1f3-511c-4364-8b9c-eb98818f2e0b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, rejectMessage, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getRequests() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "216b978f-b164-424e-ada2-b77561e842b7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.RequestedExtension, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} rejectMessage
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {ExtensionManagementInterfaces.ExtensionRequestState} state
+ */
+ resolveAllRequests(rejectMessage, publisherName, extensionName, state) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (state == null) {
+ throw new TypeError('state can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ state: state,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "ba93e1f3-511c-4364-8b9c-eb98818f2e0b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, rejectMessage, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ */
+ deleteRequest(publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "f5afca1e-a728-4294-aa2d-4af0173431b5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} requestMessage
+ */
+ requestExtension(publisherName, extensionName, requestMessage) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "f5afca1e-a728-4294-aa2d-4af0173431b5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, requestMessage, options);
+ let ret = this.formatResponse(res.result, ExtensionManagementInterfaces.TypeInfo.RequestedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getToken() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "ExtensionManagement", "3a2e24ed-1d6f-4cb2-9f3b-45a96bbfaf50", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+ExtensionManagementApi.RESOURCE_AREA_ID = "6c2b0933-3600-42ae-bf8b-93d4f7e83594";
+exports.ExtensionManagementApi = ExtensionManagementApi;
+
+
+/***/ }),
+
+/***/ 3193:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const FeatureManagementInterfaces = __nccwpck_require__(7278);
+class FeatureManagementApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-FeatureManagement-api', options);
+ }
+ /**
+ * Get a specific feature by its id
+ *
+ * @param {string} featureId - The contribution id of the feature
+ */
+ getFeature(featureId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ featureId: featureId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "c4209f25-7a27-41dd-9f04-06080c7b6afd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of all defined features
+ *
+ * @param {string} targetContributionId - Optional target contribution. If null/empty, return all features. If specified include the features that target the specified contribution.
+ */
+ getFeatures(targetContributionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ targetContributionId: targetContributionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "c4209f25-7a27-41dd-9f04-06080c7b6afd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the state of the specified feature for the given user/all-users scope
+ *
+ * @param {string} featureId - Contribution id of the feature
+ * @param {string} userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
+ */
+ getFeatureState(featureId, userScope) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ featureId: featureId,
+ userScope: userScope
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "98911314-3f9b-4eaf-80e8-83900d8e85d9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureState, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Set the state of a feature
+ *
+ * @param {FeatureManagementInterfaces.ContributedFeatureState} feature - Posted feature state object. Should specify the effective value.
+ * @param {string} featureId - Contribution id of the feature
+ * @param {string} userScope - User-Scope at which to set the value. Should be "me" for the current user or "host" for all users.
+ * @param {string} reason - Reason for changing the state
+ * @param {string} reasonCode - Short reason code
+ */
+ setFeatureState(feature, featureId, userScope, reason, reasonCode) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ featureId: featureId,
+ userScope: userScope
+ };
+ let queryValues = {
+ reason: reason,
+ reasonCode: reasonCode,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "98911314-3f9b-4eaf-80e8-83900d8e85d9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, feature, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureState, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the state of the specified feature for the given named scope
+ *
+ * @param {string} featureId - Contribution id of the feature
+ * @param {string} userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
+ * @param {string} scopeName - Scope at which to get the feature setting for (e.g. "project" or "team")
+ * @param {string} scopeValue - Value of the scope (e.g. the project or team id)
+ */
+ getFeatureStateForScope(featureId, userScope, scopeName, scopeValue) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ featureId: featureId,
+ userScope: userScope,
+ scopeName: scopeName,
+ scopeValue: scopeValue
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "dd291e43-aa9f-4cee-8465-a93c78e414a4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureState, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Set the state of a feature at a specific scope
+ *
+ * @param {FeatureManagementInterfaces.ContributedFeatureState} feature - Posted feature state object. Should specify the effective value.
+ * @param {string} featureId - Contribution id of the feature
+ * @param {string} userScope - User-Scope at which to set the value. Should be "me" for the current user or "host" for all users.
+ * @param {string} scopeName - Scope at which to get the feature setting for (e.g. "project" or "team")
+ * @param {string} scopeValue - Value of the scope (e.g. the project or team id)
+ * @param {string} reason - Reason for changing the state
+ * @param {string} reasonCode - Short reason code
+ */
+ setFeatureStateForScope(feature, featureId, userScope, scopeName, scopeValue, reason, reasonCode) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ featureId: featureId,
+ userScope: userScope,
+ scopeName: scopeName,
+ scopeValue: scopeValue
+ };
+ let queryValues = {
+ reason: reason,
+ reasonCode: reasonCode,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "dd291e43-aa9f-4cee-8465-a93c78e414a4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, feature, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureState, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the effective state for a list of feature ids
+ *
+ * @param {FeatureManagementInterfaces.ContributedFeatureStateQuery} query - Features to query along with current scope values
+ */
+ queryFeatureStates(query) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "2b4486ad-122b-400c-ae65-17b6672c1f9d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureStateQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the states of the specified features for the default scope
+ *
+ * @param {FeatureManagementInterfaces.ContributedFeatureStateQuery} query - Query describing the features to query.
+ * @param {string} userScope
+ */
+ queryFeatureStatesForDefaultScope(query, userScope) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ userScope: userScope
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "3f810f28-03e2-4239-b0bc-788add3005e5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureStateQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the states of the specified features for the specific named scope
+ *
+ * @param {FeatureManagementInterfaces.ContributedFeatureStateQuery} query - Query describing the features to query.
+ * @param {string} userScope
+ * @param {string} scopeName
+ * @param {string} scopeValue
+ */
+ queryFeatureStatesForNamedScope(query, userScope, scopeName, scopeValue) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ userScope: userScope,
+ scopeName: scopeName,
+ scopeValue: scopeValue
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "FeatureManagement", "f29e997b-c2da-4d15-8380-765788a1a74c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, FeatureManagementInterfaces.TypeInfo.ContributedFeatureStateQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.FeatureManagementApi = FeatureManagementApi;
+
+
+/***/ }),
+
+/***/ 7558:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+* ---------------------------------------------------------
+* Copyright(C) Microsoft Corporation. All rights reserved.
+* ---------------------------------------------------------
+*
+* ---------------------------------------------------------
+* Generated file, DO NOT EDIT
+* ---------------------------------------------------------
+*/
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+const stream = __nccwpck_require__(2781);
+const zlib = __nccwpck_require__(9796);
+const httpm = __nccwpck_require__(5538);
+const FileContainerApiBase = __nccwpck_require__(5145);
+const FileContainerInterfaces = __nccwpck_require__(6110);
+class FileContainerApi extends FileContainerApiBase.FileContainerApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, options);
+ }
+ /**
+ * @param {number} containerId
+ * @param {string} scope
+ * @param {string} itemPath
+ * @param {string} downloadFileName
+ */
+ getItem(containerId, scope, itemPath, downloadFileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ containerId: containerId
+ };
+ let queryValues = {
+ scope: scope,
+ itemPath: itemPath,
+ '$format': "OctetStream",
+ downloadFileName: downloadFileName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("4.0-preview.4", "Container", "e4f5c81e-e250-447b-9fef-bd48471bea5e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/octet-stream', verData.apiVersion);
+ let res = yield this.http.get(url);
+ let rres = {};
+ let statusCode = res.message.statusCode;
+ rres.statusCode = statusCode;
+ // not found leads to null obj returned
+ if (statusCode == httpm.HttpCodes.NotFound) {
+ resolve(rres);
+ }
+ if (statusCode > 299) {
+ let msg;
+ // if exception/error in body, attempt to get better error
+ let contents = yield res.readBody();
+ let obj;
+ if (contents && contents.length > 0) {
+ obj = JSON.parse(contents);
+ if (options && options.responseProcessor) {
+ rres.result = options.responseProcessor(obj);
+ }
+ else {
+ rres.result = obj;
+ }
+ }
+ if (obj && obj.message) {
+ msg = obj.message;
+ }
+ else {
+ msg = "Failed request: (" + statusCode + ") " + res.message.url;
+ }
+ reject(new Error(msg));
+ }
+ else {
+ // if the response is gzipped, unzip it
+ if (res.message.headers["content-encoding"] === "gzip") {
+ let unzipStream = zlib.createGunzip();
+ res.message.pipe(unzipStream);
+ rres.result = unzipStream;
+ }
+ else {
+ rres.result = res.message;
+ }
+ resolve(rres);
+ }
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ createItem(contentStream, uncompressedLength, containerId, itemPath, scope, options) {
+ return new Promise((resolve, reject) => {
+ let chunkStream = new ChunkStream(this, uncompressedLength, containerId, itemPath, scope, options);
+ chunkStream.on('finish', () => {
+ resolve(chunkStream.getItem());
+ });
+ contentStream.pipe(chunkStream);
+ });
+ }
+ // used by ChunkStream
+ _createItem(customHeaders, contentStream, containerId, itemPath, scope, onResult) {
+ var routeValues = {
+ containerId: containerId
+ };
+ var queryValues = {
+ itemPath: itemPath,
+ scope: scope,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "";
+ this.vsoClient.getVersioningData("4.0-preview.4", "Container", "e4f5c81e-e250-447b-9fef-bd48471bea5e", routeValues, queryValues)
+ .then((versioningData) => {
+ var url = versioningData.requestUrl;
+ var serializationData = { responseTypeMetadata: FileContainerInterfaces.TypeInfo.FileContainerItem, responseIsCollection: false };
+ let options = this.createRequestOptions('application/octet-stream', versioningData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ this.rest.uploadStream('PUT', url, contentStream, options)
+ .then((res) => {
+ let ret = this.formatResponse(res.result, FileContainerInterfaces.TypeInfo.FileContainerItem, false);
+ onResult(null, res.statusCode, ret);
+ })
+ .catch((err) => {
+ onResult(err, err.statusCode, null);
+ });
+ }, (error) => {
+ onResult(error, error.statusCode, null);
+ });
+ }
+}
+exports.FileContainerApi = FileContainerApi;
+class ChunkStream extends stream.Writable {
+ constructor(api, uncompressedLength, containerId, itemPath, scope, options) {
+ super();
+ this._buffer = new Buffer(ChunkStream.ChunkSize);
+ this._length = 0;
+ this._startRange = 0;
+ this._bytesToSend = 0;
+ this._totalReceived = 0;
+ this._api = api;
+ this._options = options || {};
+ this._uncompressedLength = uncompressedLength;
+ this._containerId = containerId;
+ this._itemPath = itemPath;
+ this._scope = scope;
+ this._bytesToSend = this._options.isGzipped ? this._options.compressedLength : uncompressedLength;
+ }
+ _write(data, encoding, callback) {
+ let chunk = data;
+ if (!chunk) {
+ if (this._length == 0) {
+ callback();
+ }
+ else {
+ // last chunk
+ this._sendChunk(callback);
+ }
+ return;
+ }
+ let newBuffer = null;
+ if (this._length + chunk.length > ChunkStream.ChunkSize) {
+ // overflow
+ let overflowPosition = chunk.length - (ChunkStream.ChunkSize - this._length);
+ chunk.copy(this._buffer, this._length, 0, overflowPosition);
+ this._length += overflowPosition;
+ newBuffer = chunk.slice(overflowPosition);
+ }
+ else {
+ chunk.copy(this._buffer, this._length, 0, chunk.length);
+ this._length += chunk.length;
+ }
+ this._totalReceived += chunk.length;
+ if (this._length >= ChunkStream.ChunkSize || this._totalReceived >= this._bytesToSend) {
+ this._sendChunk(callback, newBuffer);
+ }
+ else {
+ callback();
+ }
+ }
+ _sendChunk(callback, newBuffer) {
+ let endRange = this._startRange + this._length;
+ let headers = {
+ "Content-Range": "bytes " + this._startRange + "-" + (endRange - 1) + "/" + this._bytesToSend,
+ "Content-Length": this._length
+ };
+ if (this._options.isGzipped) {
+ headers["Accept-Encoding"] = "gzip";
+ headers["Content-Encoding"] = "gzip";
+ headers["x-tfs-filelength"] = this._uncompressedLength;
+ }
+ this._startRange = endRange;
+ this._api._createItem(headers, new BufferStream(this._buffer, this._length), this._containerId, this._itemPath, this._scope, (err, statusCode, item) => {
+ if (newBuffer) {
+ this._length = newBuffer.length;
+ newBuffer.copy(this._buffer);
+ }
+ else {
+ this._length = 0;
+ }
+ this._item = item;
+ callback(err);
+ });
+ }
+ getItem() {
+ return this._item;
+ }
+}
+ChunkStream.ChunkSize = (16 * 1024 * 1024);
+class BufferStream extends stream.Readable {
+ constructor(buffer, length) {
+ super();
+ this._position = 0;
+ this._length = 0;
+ this._buffer = buffer;
+ this._length = length;
+ }
+ _read(size) {
+ if (this._position >= this._length) {
+ this.push(null);
+ return;
+ }
+ let end = Math.min(this._position + size, this._length);
+ this.push(this._buffer.slice(this._position, end));
+ this._position = end;
+ }
+}
+
+
+/***/ }),
+
+/***/ 5145:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const FileContainerInterfaces = __nccwpck_require__(6110);
+class FileContainerApiBase extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-FileContainer-api', options);
+ }
+ /**
+ * Creates the specified items in the referenced container.
+ *
+ * @param {VSSInterfaces.VssJsonCollectionWrapperV} items
+ * @param {number} containerId
+ * @param {string} scope - A guid representing the scope of the container. This is often the project id.
+ */
+ createItems(items, containerId, scope) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ containerId: containerId
+ };
+ let queryValues = {
+ scope: scope,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Container", "e4f5c81e-e250-447b-9fef-bd48471bea5e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, items, options);
+ let ret = this.formatResponse(res.result, FileContainerInterfaces.TypeInfo.FileContainerItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the specified items in a container.
+ *
+ * @param {number} containerId - Container Id.
+ * @param {string} itemPath - Path to delete.
+ * @param {string} scope - A guid representing the scope of the container. This is often the project id.
+ */
+ deleteItem(containerId, itemPath, scope) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (itemPath == null) {
+ throw new TypeError('itemPath can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ containerId: containerId
+ };
+ let queryValues = {
+ itemPath: itemPath,
+ scope: scope,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Container", "e4f5c81e-e250-447b-9fef-bd48471bea5e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets containers filtered by a comma separated list of artifact uris within the same scope, if not specified returns all containers
+ *
+ * @param {string} scope - A guid representing the scope of the container. This is often the project id.
+ * @param {string} artifactUris
+ */
+ getContainers(scope, artifactUris) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ scope: scope,
+ artifactUris: artifactUris,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Container", "e4f5c81e-e250-447b-9fef-bd48471bea5e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, FileContainerInterfaces.TypeInfo.FileContainer, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} containerId
+ * @param {string} scope
+ * @param {string} itemPath
+ * @param {boolean} metadata
+ * @param {string} format
+ * @param {string} downloadFileName
+ * @param {boolean} includeDownloadTickets
+ * @param {boolean} isShallow
+ * @param {boolean} ignoreRequestedMediaType
+ * @param {boolean} includeBlobMetadata
+ * @param {boolean} saveAbsolutePath
+ */
+ getItems(containerId, scope, itemPath, metadata, format, downloadFileName, includeDownloadTickets, isShallow, ignoreRequestedMediaType, includeBlobMetadata, saveAbsolutePath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ containerId: containerId
+ };
+ let queryValues = {
+ scope: scope,
+ itemPath: itemPath,
+ metadata: metadata,
+ '$format': format,
+ downloadFileName: downloadFileName,
+ includeDownloadTickets: includeDownloadTickets,
+ isShallow: isShallow,
+ ignoreRequestedMediaType: ignoreRequestedMediaType,
+ includeBlobMetadata: includeBlobMetadata,
+ saveAbsolutePath: saveAbsolutePath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Container", "e4f5c81e-e250-447b-9fef-bd48471bea5e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, FileContainerInterfaces.TypeInfo.FileContainerItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.FileContainerApiBase = FileContainerApiBase;
+
+
+/***/ }),
+
+/***/ 1939:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const compatBase = __nccwpck_require__(946);
+const GalleryInterfaces = __nccwpck_require__(8905);
+class GalleryApi extends compatBase.GalleryCompatHttpClientBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Gallery-api', options);
+ }
+ /**
+ * @param {string} extensionId
+ * @param {string} accountName
+ */
+ shareExtensionById(extensionId, accountName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId,
+ accountName: accountName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "1f19631b-a0b4-4a03-89c2-d79785d24360", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} extensionId
+ * @param {string} accountName
+ */
+ unshareExtensionById(extensionId, accountName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId,
+ accountName: accountName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "1f19631b-a0b4-4a03-89c2-d79785d24360", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} accountName
+ */
+ shareExtension(publisherName, extensionName, accountName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ accountName: accountName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "a1e66d8f-f5de-4d16-8309-91a4e015ee46", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} accountName
+ */
+ unshareExtension(publisherName, extensionName, accountName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ accountName: accountName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "a1e66d8f-f5de-4d16-8309-91a4e015ee46", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} itemId
+ * @param {string} installationTarget
+ * @param {boolean} testCommerce
+ * @param {boolean} isFreeOrTrialInstall
+ */
+ getAcquisitionOptions(itemId, installationTarget, testCommerce, isFreeOrTrialInstall) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (installationTarget == null) {
+ throw new TypeError('installationTarget can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ itemId: itemId
+ };
+ let queryValues = {
+ installationTarget: installationTarget,
+ testCommerce: testCommerce,
+ isFreeOrTrialInstall: isFreeOrTrialInstall,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "9d0a0105-075e-4760-aa15-8bcf54d1bd7d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.AcquisitionOptions, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionAcquisitionRequest} acquisitionRequest
+ */
+ requestAcquisition(acquisitionRequest) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "3adb1f2d-e328-446e-be73-9f6d98071c45", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, acquisitionRequest, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionAcquisitionRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ * @param {string} assetType
+ * @param {string} accountToken
+ * @param {boolean} acceptDefault
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ getAssetByName(customHeaders, publisherName, extensionName, version, assetType, accountToken, acceptDefault, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version,
+ assetType: assetType
+ };
+ let queryValues = {
+ accountToken: accountToken,
+ acceptDefault: acceptDefault,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "7529171f-a002-4180-93ba-685f358a0482", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} extensionId
+ * @param {string} version
+ * @param {string} assetType
+ * @param {string} accountToken
+ * @param {boolean} acceptDefault
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ getAsset(customHeaders, extensionId, version, assetType, accountToken, acceptDefault, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId,
+ version: version,
+ assetType: assetType
+ };
+ let queryValues = {
+ accountToken: accountToken,
+ acceptDefault: acceptDefault,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "5d545f3d-ef47-488b-8be3-f5ee1517856c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ * @param {string} assetType
+ * @param {string} accountToken
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ getAssetAuthenticated(customHeaders, publisherName, extensionName, version, assetType, accountToken, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version,
+ assetType: assetType
+ };
+ let queryValues = {
+ accountToken: accountToken,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "506aff36-2622-4f70-8063-77cce6366d20", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} azurePublisherId
+ */
+ associateAzurePublisher(publisherName, azurePublisherId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (azurePublisherId == null) {
+ throw new TypeError('azurePublisherId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ azurePublisherId: azurePublisherId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ */
+ queryAssociatedAzurePublisher(publisherName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} languages
+ */
+ getCategories(languages) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ languages: languages,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} categoryName
+ * @param {string} languages
+ * @param {string} product
+ */
+ getCategoryDetails(categoryName, languages, product) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ categoryName: categoryName
+ };
+ let queryValues = {
+ languages: languages,
+ product: product,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "75d3c04d-84d2-4973-acd2-22627587dabc", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} product
+ * @param {string} categoryId
+ * @param {number} lcid
+ * @param {string} source
+ * @param {string} productVersion
+ * @param {string} skus
+ * @param {string} subSkus
+ * @param {string} productArchitecture
+ */
+ getCategoryTree(product, categoryId, lcid, source, productVersion, skus, subSkus, productArchitecture) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ product: product,
+ categoryId: categoryId
+ };
+ let queryValues = {
+ lcid: lcid,
+ source: source,
+ productVersion: productVersion,
+ skus: skus,
+ subSkus: subSkus,
+ productArchitecture: productArchitecture,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "1102bb42-82b0-4955-8d8a-435d6b4cedd3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} product
+ * @param {number} lcid
+ * @param {string} source
+ * @param {string} productVersion
+ * @param {string} skus
+ * @param {string} subSkus
+ */
+ getRootCategories(product, lcid, source, productVersion, skus, subSkus) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ product: product
+ };
+ let queryValues = {
+ lcid: lcid,
+ source: source,
+ productVersion: productVersion,
+ skus: skus,
+ subSkus: subSkus,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "31fba831-35b2-46f6-a641-d05de5a877d8", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ */
+ getCertificate(publisherName, extensionName, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ */
+ getContentVerificationLog(publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "c0f1c7c4-3557-4ffb-b774-1e48c4865e99", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.CustomerSupportRequest} customerSupportRequest
+ */
+ createSupportRequest(customerSupportRequest) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "8eded385-026a-4c15-b810-b8eb402771f1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, customerSupportRequest, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ */
+ createDraftForEditExtension(publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "02b33873-4e61-496e-83a2-59d1df46b7d8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDraft, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionDraftPatch} draftPatch
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} draftId
+ */
+ performEditExtensionDraftOperation(draftPatch, publisherName, extensionName, draftId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ draftId: draftId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "02b33873-4e61-496e-83a2-59d1df46b7d8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, draftPatch, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDraft, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} draftId
+ * @param {String} fileName - Header to pass the filename of the uploaded data
+ */
+ updatePayloadInDraftForEditExtension(customHeaders, contentStream, publisherName, extensionName, draftId, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ draftId: draftId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ customHeaders["X-Market-UploadFileName"] = "fileName";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "02b33873-4e61-496e-83a2-59d1df46b7d8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDraft, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} draftId
+ * @param {string} assetType
+ */
+ addAssetForEditExtensionDraft(customHeaders, contentStream, publisherName, extensionName, draftId, assetType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ draftId: draftId,
+ assetType: assetType
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "f1db9c47-6619-4998-a7e5-d7f9f41a4617", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName
+ * @param {String} product - Header to pass the product type of the payload file
+ * @param {String} fileName - Header to pass the filename of the uploaded data
+ */
+ createDraftForNewExtension(customHeaders, contentStream, publisherName, product, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ customHeaders["X-Market-UploadFileProduct"] = "product";
+ customHeaders["X-Market-UploadFileName"] = "fileName";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "b3ab127d-ebb9-4d22-b611-4e09593c8d79", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDraft, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionDraftPatch} draftPatch
+ * @param {string} publisherName
+ * @param {string} draftId
+ */
+ performNewExtensionDraftOperation(draftPatch, publisherName, draftId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ draftId: draftId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "b3ab127d-ebb9-4d22-b611-4e09593c8d79", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, draftPatch, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDraft, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName
+ * @param {string} draftId
+ * @param {String} fileName - Header to pass the filename of the uploaded data
+ */
+ updatePayloadInDraftForNewExtension(customHeaders, contentStream, publisherName, draftId, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ draftId: draftId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ customHeaders["X-Market-UploadFileName"] = "fileName";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "b3ab127d-ebb9-4d22-b611-4e09593c8d79", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDraft, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName
+ * @param {string} draftId
+ * @param {string} assetType
+ */
+ addAssetForNewExtensionDraft(customHeaders, contentStream, publisherName, draftId, assetType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ draftId: draftId,
+ assetType: assetType
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} draftId
+ * @param {string} assetType
+ * @param {string} extensionName
+ */
+ getAssetFromEditExtensionDraft(publisherName, draftId, assetType, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (extensionName == null) {
+ throw new TypeError('extensionName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ draftId: draftId,
+ assetType: assetType
+ };
+ let queryValues = {
+ extensionName: extensionName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} draftId
+ * @param {string} assetType
+ */
+ getAssetFromNewExtensionDraft(publisherName, draftId, assetType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ draftId: draftId,
+ assetType: assetType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence.
+ *
+ * @param {string} publisherName - Name of the publisher
+ * @param {string} extensionName - Name of the extension
+ * @param {number} count - Count of events to fetch, applies to each event type.
+ * @param {Date} afterDate - Fetch events that occurred on or after this date
+ * @param {string} include - Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events
+ * @param {string} includeProperty - Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events
+ */
+ getExtensionEvents(publisherName, extensionName, count, afterDate, include, includeProperty) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ count: count,
+ afterDate: afterDate,
+ include: include,
+ includeProperty: includeProperty,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "3d13c499-2168-4d06-bef4-14aba185dcd5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionEvents, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * API endpoint to publish extension install/uninstall events. This is meant to be invoked by EMS only for sending us data related to install/uninstall of an extension.
+ *
+ * @param {GalleryInterfaces.ExtensionEvents[]} extensionEvents
+ */
+ publishExtensionEvents(extensionEvents) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "0bf2bd3a-70e0-4d5d-8bf7-bd4a9c2ab6e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, extensionEvents, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionQuery} extensionQuery
+ * @param {string} accountToken
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ queryExtensions(customHeaders, extensionQuery, accountToken, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ accountToken: accountToken,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "eb9d5ee1-6d43-456b-b80e-8a96fbc014b6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.create(url, extensionQuery, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionQueryResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} extensionType
+ * @param {string} reCaptchaToken
+ */
+ createExtension(customHeaders, contentStream, extensionType, reCaptchaToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ extensionType: extensionType,
+ reCaptchaToken: reCaptchaToken,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "a41192c8-9525-4b58-bc86-179fa549d80d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} extensionId
+ * @param {string} version
+ */
+ deleteExtensionById(extensionId, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId
+ };
+ let queryValues = {
+ version: version,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "a41192c8-9525-4b58-bc86-179fa549d80d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} extensionId
+ * @param {string} version
+ * @param {GalleryInterfaces.ExtensionQueryFlags} flags
+ */
+ getExtensionById(extensionId, version, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId
+ };
+ let queryValues = {
+ version: version,
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "a41192c8-9525-4b58-bc86-179fa549d80d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} extensionId
+ * @param {string} reCaptchaToken
+ */
+ updateExtensionById(extensionId, reCaptchaToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId
+ };
+ let queryValues = {
+ reCaptchaToken: reCaptchaToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "a41192c8-9525-4b58-bc86-179fa549d80d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName
+ * @param {string} extensionType
+ * @param {string} reCaptchaToken
+ */
+ createExtensionWithPublisher(customHeaders, contentStream, publisherName, extensionType, reCaptchaToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ extensionType: extensionType,
+ reCaptchaToken: reCaptchaToken,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ */
+ deleteExtension(publisherName, extensionName, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ version: version,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ * @param {GalleryInterfaces.ExtensionQueryFlags} flags
+ * @param {string} accountToken
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ getExtension(customHeaders, publisherName, extensionName, version, flags, accountToken, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ version: version,
+ flags: flags,
+ accountToken: accountToken,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * REST endpoint to update an extension.
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName - Name of the publisher
+ * @param {string} extensionName - Name of the extension
+ * @param {string} extensionType
+ * @param {string} reCaptchaToken
+ * @param {boolean} bypassScopeCheck - This parameter decides if the scope change check needs to be invoked or not
+ */
+ updateExtension(customHeaders, contentStream, publisherName, extensionName, extensionType, reCaptchaToken, bypassScopeCheck) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ extensionType: extensionType,
+ reCaptchaToken: reCaptchaToken,
+ bypassScopeCheck: bypassScopeCheck,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {GalleryInterfaces.PublishedExtensionFlags} flags
+ */
+ updateExtensionProperties(publisherName, extensionName, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (flags == null) {
+ throw new TypeError('flags can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, null, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} hostType
+ * @param {string} hostName
+ */
+ shareExtensionWithHost(publisherName, extensionName, hostType, hostName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ hostType: hostType,
+ hostName: hostName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "328a3af8-d124-46e9-9483-01690cd415b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} hostType
+ * @param {string} hostName
+ */
+ unshareExtensionWithHost(publisherName, extensionName, hostType, hostName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ hostType: hostType,
+ hostName: hostName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "328a3af8-d124-46e9-9483-01690cd415b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.AzureRestApiRequestModel} azureRestApiRequestModel
+ */
+ extensionValidator(azureRestApiRequestModel) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "05e8a5e1-8c59-4c2c-8856-0ff087d1a844", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, azureRestApiRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Send Notification
+ *
+ * @param {GalleryInterfaces.NotificationsData} notificationData - Denoting the data needed to send notification
+ */
+ sendNotifications(notificationData) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "eab39817-413c-4602-a49f-07ad00844980", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, notificationData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * This endpoint gets hit when you download a VSTS extension from the Web UI
+ *
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ * @param {string} accountToken
+ * @param {boolean} acceptDefault
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ getPackage(customHeaders, publisherName, extensionName, version, accountToken, acceptDefault, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version
+ };
+ let queryValues = {
+ accountToken: accountToken,
+ acceptDefault: acceptDefault,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "7cb576f8-1cae-4c4b-b7b1-e4af5759e965", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ * @param {string} assetType
+ * @param {string} assetToken
+ * @param {string} accountToken
+ * @param {boolean} acceptDefault
+ * @param {String} accountTokenHeader - Header to pass the account token
+ */
+ getAssetWithToken(customHeaders, publisherName, extensionName, version, assetType, assetToken, accountToken, acceptDefault, accountTokenHeader) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version,
+ assetType: assetType,
+ assetToken: assetToken
+ };
+ let queryValues = {
+ accountToken: accountToken,
+ acceptDefault: acceptDefault,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["X-Market-AccountToken"] = "accountTokenHeader";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "364415a1-0077-4a41-a7a0-06edd4497492", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete publisher asset like logo
+ *
+ * @param {string} publisherName - Internal name of the publisher
+ * @param {string} assetType - Type of asset. Default value is 'logo'.
+ */
+ deletePublisherAsset(publisherName, assetType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ assetType: assetType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "21143299-34f9-4c62-8ca8-53da691192f9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get publisher asset like logo as a stream
+ *
+ * @param {string} publisherName - Internal name of the publisher
+ * @param {string} assetType - Type of asset. Default value is 'logo'.
+ */
+ getPublisherAsset(publisherName, assetType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ assetType: assetType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "21143299-34f9-4c62-8ca8-53da691192f9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values.
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} publisherName - Internal name of the publisher
+ * @param {string} assetType - Type of asset. Default value is 'logo'.
+ * @param {String} fileName - Header to pass the filename of the uploaded data
+ */
+ updatePublisherAsset(customHeaders, contentStream, publisherName, assetType, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ assetType: assetType,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ customHeaders["X-Market-UploadFileName"] = "fileName";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "21143299-34f9-4c62-8ca8-53da691192f9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ */
+ fetchDomainToken(publisherName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "67a609ef-fa74-4b52-8664-78d76f7b3634", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ */
+ verifyDomainToken(publisherName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "67a609ef-fa74-4b52-8664-78d76f7b3634", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.PublisherQuery} publisherQuery
+ */
+ queryPublishers(publisherQuery) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "2ad6ee0a-b53f-4034-9d1d-d009fda1212e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, publisherQuery, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublisherQueryResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.Publisher} publisher
+ */
+ createPublisher(publisher) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4ddec66a-e4f6-4f5d-999e-9e77710d7ff4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, publisher, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Publisher, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ */
+ deletePublisher(publisherName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4ddec66a-e4f6-4f5d-999e-9e77710d7ff4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {number} flags
+ */
+ getPublisher(publisherName, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4ddec66a-e4f6-4f5d-999e-9e77710d7ff4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Publisher, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.Publisher} publisher
+ * @param {string} publisherName
+ */
+ updatePublisher(publisher, publisherName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4ddec66a-e4f6-4f5d-999e-9e77710d7ff4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, publisher, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Publisher, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Endpoint to add/modify publisher membership. Currently Supports only addition/modification of 1 user at a time Works only for adding members of same tenant.
+ *
+ * @param {GalleryInterfaces.PublisherUserRoleAssignmentRef[]} roleAssignments - List of user identifiers(email address) and role to be added. Currently only one entry is supported.
+ * @param {string} publisherName - The name/id of publisher to which users have to be added
+ * @param {boolean} limitToCallerIdentityDomain - Should cross tenant addtions be allowed or not.
+ */
+ updatePublisherMembers(roleAssignments, publisherName, limitToCallerIdentityDomain) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ let queryValues = {
+ limitToCallerIdentityDomain: limitToCallerIdentityDomain,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4ddec66a-e4f6-4f5d-999e-9e77710d7ff4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, roleAssignments, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublisherRoleAssignment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ */
+ getPublisherWithoutToken(publisherName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "215a2ed8-458a-4850-ad5a-45f1dabc3461", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Publisher, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of questions with their responses associated with an extension.
+ *
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ * @param {number} count - Number of questions to retrieve (defaults to 10).
+ * @param {number} page - Page number from which set of questions are to be retrieved.
+ * @param {Date} afterDate - If provided, results questions are returned which were posted after this date
+ */
+ getQuestions(publisherName, extensionName, count, page, afterDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ count: count,
+ page: page,
+ afterDate: afterDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "c010d03d-812c-4ade-ae07-c1862475eda5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.QuestionsResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Flags a concern with an existing question for an extension.
+ *
+ * @param {GalleryInterfaces.Concern} concern - User reported concern with a question for the extension.
+ * @param {string} pubName - Name of the publisher who published the extension.
+ * @param {string} extName - Name of the extension.
+ * @param {number} questionId - Identifier of the question to be updated for the extension.
+ */
+ reportQuestion(concern, pubName, extName, questionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ pubName: pubName,
+ extName: extName,
+ questionId: questionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "784910cd-254a-494d-898b-0728549b2f10", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, concern, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Concern, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new question for an extension.
+ *
+ * @param {GalleryInterfaces.Question} question - Question to be created for the extension.
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ */
+ createQuestion(question, publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "6d1d9741-eca8-4701-a3a5-235afc82dfa4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, question, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Question, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes an existing question and all its associated responses for an extension. (soft delete)
+ *
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ * @param {number} questionId - Identifier of the question to be deleted for the extension.
+ */
+ deleteQuestion(publisherName, extensionName, questionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ questionId: questionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "6d1d9741-eca8-4701-a3a5-235afc82dfa4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates an existing question for an extension.
+ *
+ * @param {GalleryInterfaces.Question} question - Updated question to be set for the extension.
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ * @param {number} questionId - Identifier of the question to be updated for the extension.
+ */
+ updateQuestion(question, publisherName, extensionName, questionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ questionId: questionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "6d1d9741-eca8-4701-a3a5-235afc82dfa4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, question, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Question, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new response for a given question for an extension.
+ *
+ * @param {GalleryInterfaces.Response} response - Response to be created for the extension.
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ * @param {number} questionId - Identifier of the question for which response is to be created for the extension.
+ */
+ createResponse(response, publisherName, extensionName, questionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ questionId: questionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "7f8ae5e0-46b0-438f-b2e8-13e8513517bd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, response, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Response, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a response for an extension. (soft delete)
+ *
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ * @param {number} questionId - Identifies the question whose response is to be deleted.
+ * @param {number} responseId - Identifies the response to be deleted.
+ */
+ deleteResponse(publisherName, extensionName, questionId, responseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ questionId: questionId,
+ responseId: responseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "7f8ae5e0-46b0-438f-b2e8-13e8513517bd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates an existing response for a given question for an extension.
+ *
+ * @param {GalleryInterfaces.Response} response - Updated response to be set for the extension.
+ * @param {string} publisherName - Name of the publisher who published the extension.
+ * @param {string} extensionName - Name of the extension.
+ * @param {number} questionId - Identifier of the question for which response is to be updated for the extension.
+ * @param {number} responseId - Identifier of the response which has to be updated.
+ */
+ updateResponse(response, publisherName, extensionName, questionId, responseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ questionId: questionId,
+ responseId: responseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "7f8ae5e0-46b0-438f-b2e8-13e8513517bd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, response, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Response, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns extension reports
+ *
+ * @param {string} publisherName - Name of the publisher who published the extension
+ * @param {string} extensionName - Name of the extension
+ * @param {number} days - Last n days report. If afterDate and days are specified, days will take priority
+ * @param {number} count - Number of events to be returned
+ * @param {Date} afterDate - Use if you want to fetch events newer than the specified date
+ */
+ getExtensionReports(publisherName, extensionName, days, count, afterDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ days: days,
+ count: count,
+ afterDate: afterDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "79e0c74f-157f-437e-845f-74fbb4121d4c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of reviews associated with an extension
+ *
+ * @param {string} publisherName - Name of the publisher who published the extension
+ * @param {string} extensionName - Name of the extension
+ * @param {number} count - Number of reviews to retrieve (defaults to 5)
+ * @param {GalleryInterfaces.ReviewFilterOptions} filterOptions - FilterOptions to filter out empty reviews etcetera, defaults to none
+ * @param {Date} beforeDate - Use if you want to fetch reviews older than the specified date, defaults to null
+ * @param {Date} afterDate - Use if you want to fetch reviews newer than the specified date, defaults to null
+ */
+ getReviews(publisherName, extensionName, count, filterOptions, beforeDate, afterDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ count: count,
+ filterOptions: filterOptions,
+ beforeDate: beforeDate,
+ afterDate: afterDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "5b3f819f-f247-42ad-8c00-dd9ab9ab246d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ReviewsResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a summary of the reviews
+ *
+ * @param {string} pubName - Name of the publisher who published the extension
+ * @param {string} extName - Name of the extension
+ * @param {Date} beforeDate - Use if you want to fetch summary of reviews older than the specified date, defaults to null
+ * @param {Date} afterDate - Use if you want to fetch summary of reviews newer than the specified date, defaults to null
+ */
+ getReviewsSummary(pubName, extName, beforeDate, afterDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ pubName: pubName,
+ extName: extName
+ };
+ let queryValues = {
+ beforeDate: beforeDate,
+ afterDate: afterDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "b7b44e21-209e-48f0-ae78-04727fc37d77", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new review for an extension
+ *
+ * @param {GalleryInterfaces.Review} review - Review to be created for the extension
+ * @param {string} pubName - Name of the publisher who published the extension
+ * @param {string} extName - Name of the extension
+ */
+ createReview(review, pubName, extName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ pubName: pubName,
+ extName: extName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, review, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.Review, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a review
+ *
+ * @param {string} pubName - Name of the publisher who published the extension
+ * @param {string} extName - Name of the extension
+ * @param {number} reviewId - Id of the review which needs to be updated
+ */
+ deleteReview(pubName, extName, reviewId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ pubName: pubName,
+ extName: extName,
+ reviewId: reviewId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates or Flags a review
+ *
+ * @param {GalleryInterfaces.ReviewPatch} reviewPatch - ReviewPatch object which contains the changes to be applied to the review
+ * @param {string} pubName - Name of the publisher who published the extension
+ * @param {string} extName - Name of the extension
+ * @param {number} reviewId - Id of the review which needs to be updated
+ */
+ updateReview(reviewPatch, pubName, extName, reviewId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ pubName: pubName,
+ extName: extName,
+ reviewId: reviewId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, reviewPatch, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ReviewPatch, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionCategory} category
+ */
+ createCategory(category) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "476531a3-7024-4516-a76a-ed64d3008ad6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, category, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all setting entries for the given user/all-users scope
+ *
+ * @param {string} userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
+ * @param {string} key - Optional key under which to filter all the entries
+ */
+ getGalleryUserSettings(userScope, key) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ userScope: userScope,
+ key: key
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "9b75ece3-7960-401c-848b-148ac01ca350", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Set all setting entries for the given user/all-users scope
+ *
+ * @param {{ [key: string] : any; }} entries - A key-value pair of all settings that need to be set
+ * @param {string} userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
+ */
+ setGalleryUserSettings(entries, userScope) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ userScope: userScope
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "9b75ece3-7960-401c-848b-148ac01ca350", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, entries, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} keyType
+ * @param {number} expireCurrentSeconds
+ */
+ generateKey(keyType, expireCurrentSeconds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ keyType: keyType
+ };
+ let queryValues = {
+ expireCurrentSeconds: expireCurrentSeconds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "92ed5cf4-c38b-465a-9059-2f2fb7c624b5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} keyType
+ */
+ getSigningKey(keyType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ keyType: keyType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "92ed5cf4-c38b-465a-9059-2f2fb7c624b5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionStatisticUpdate} extensionStatisticsUpdate
+ * @param {string} publisherName
+ * @param {string} extensionName
+ */
+ updateExtensionStatistics(extensionStatisticsUpdate, publisherName, extensionName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "a0ea3204-11e9-422d-a9ca-45851cc41400", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, extensionStatisticsUpdate, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {number} days
+ * @param {GalleryInterfaces.ExtensionStatsAggregateType} aggregate
+ * @param {Date} afterDate
+ */
+ getExtensionDailyStats(publisherName, extensionName, days, aggregate, afterDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ let queryValues = {
+ days: days,
+ aggregate: aggregate,
+ afterDate: afterDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "ae06047e-51c5-4fb4-ab65-7be488544416", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDailyStats, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats.
+ *
+ * @param {string} publisherName - Name of the publisher
+ * @param {string} extensionName - Name of the extension
+ * @param {string} version - Version of the extension
+ */
+ getExtensionDailyStatsAnonymous(publisherName, extensionName, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4fa7adb6-ca65-4075-a232-5f28323288ea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.ExtensionDailyStats, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Increments a daily statistic associated with the extension
+ *
+ * @param {string} publisherName - Name of the publisher
+ * @param {string} extensionName - Name of the extension
+ * @param {string} version - Version of the extension
+ * @param {string} statType - Type of stat to increment
+ * @param {string} targetPlatform
+ */
+ incrementExtensionDailyStat(publisherName, extensionName, version, statType, targetPlatform) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (statType == null) {
+ throw new TypeError('statType can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version
+ };
+ let queryValues = {
+ statType: statType,
+ targetPlatform: targetPlatform,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "4fa7adb6-ca65-4075-a232-5f28323288ea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} publisherName
+ * @param {string} extensionName
+ * @param {string} version
+ * @param {string} targetPlatform
+ */
+ getVerificationLog(publisherName, extensionName, version, targetPlatform) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName,
+ version: version
+ };
+ let queryValues = {
+ targetPlatform: targetPlatform,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "c5523abe-b843-437f-875b-5833064efe4d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} itemName
+ * @param {string} version
+ * @param {GalleryInterfaces.VSCodeWebExtensionStatisicsType} statType
+ */
+ updateVSCodeWebExtensionStatistics(itemName, version, statType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ itemName: itemName,
+ version: version,
+ statType: statType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "gallery", "205c91a8-7841-4fd3-ae4f-5a745d5a8df5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+GalleryApi.RESOURCE_AREA_ID = "69d21c00-f135-441b-b5ce-3626378e0819";
+exports.GalleryApi = GalleryApi;
+
+
+/***/ }),
+
+/***/ 946:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+* ---------------------------------------------------------
+* Copyright(C) Microsoft Corporation. All rights reserved.
+* ---------------------------------------------------------
+*
+* ---------------------------------------------------------
+* Generated file, DO NOT EDIT
+* ---------------------------------------------------------
+*/
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const GalleryInterfaces = __nccwpck_require__(8905);
+class GalleryCompatHttpClientBase extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, userAgent, options) {
+ super(baseUrl, handlers, userAgent, options);
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionPackage} extensionPackage
+ */
+ createExtensionJson(extensionPackage) {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.1-preview.1", "gallery", "a41192c8-9525-4b58-bc86-179fa549d80d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, extensionPackage, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionPackage} extensionPackage
+ * @param {string} extensionId
+ */
+ updateExtensionByIdJson(extensionPackage, extensionId) {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ extensionId: extensionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.1-preview.1", "gallery", "a41192c8-9525-4b58-bc86-179fa549d80d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, extensionPackage, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionPackage} extensionPackage
+ * @param {string} publisherName
+ */
+ createExtensionWithPublisherJson(extensionPackage, publisherName) {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.1-preview.1", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, extensionPackage, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ }
+ /**
+ * @param {GalleryInterfaces.ExtensionPackage} extensionPackage
+ * @param {string} publisherName
+ * @param {string} extensionName
+ */
+ updateExtensionJson(extensionPackage, publisherName, extensionName) {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ publisherName: publisherName,
+ extensionName: extensionName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.1-preview.1", "gallery", "e11ea35a-16fe-4b80-ab11-c4cab88a0966", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, extensionPackage, options);
+ let ret = this.formatResponse(res.result, GalleryInterfaces.TypeInfo.PublishedExtension, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ }
+}
+exports.GalleryCompatHttpClientBase = GalleryCompatHttpClientBase;
+
+
+/***/ }),
+
+/***/ 4996:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const GitInterfaces = __nccwpck_require__(9803);
+class GitApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Git-api', options);
+ }
+ /**
+ * Create an annotated tag.
+ *
+ * @param {GitInterfaces.GitAnnotatedTag} tagObject - Object containing details of tag to be created.
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - ID or name of the repository.
+ */
+ createAnnotatedTag(tagObject, project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "5e8a8081-3851-4626-b677-9891cc04102e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, tagObject, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitAnnotatedTag, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get an annotated tag.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - ID or name of the repository.
+ * @param {string} objectId - ObjectId (Sha1Id) of tag to get.
+ */
+ getAnnotatedTag(project, repositoryId, objectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ objectId: objectId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "5e8a8081-3851-4626-b677-9891cc04102e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitAnnotatedTag, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a single blob.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
+ * @param {string} fileName - Provide a fileName to use for a download.
+ * @param {boolean} resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
+ */
+ getBlob(repositoryId, sha1, project, download, fileName, resolveLfs) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ sha1: sha1
+ };
+ let queryValues = {
+ download: download,
+ fileName: fileName,
+ resolveLfs: resolveLfs,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "7b28e929-2c99-405d-9c5c-6167a06e6816", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a single blob.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
+ * @param {string} fileName - Provide a fileName to use for a download.
+ * @param {boolean} resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
+ */
+ getBlobContent(repositoryId, sha1, project, download, fileName, resolveLfs) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ sha1: sha1
+ };
+ let queryValues = {
+ download: download,
+ fileName: fileName,
+ resolveLfs: resolveLfs,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "7b28e929-2c99-405d-9c5c-6167a06e6816", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets one or more blobs in a zip file download.
+ *
+ * @param {string[]} blobIds - Blob IDs (SHA1 hashes) to be returned in the zip file.
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {string} filename
+ */
+ getBlobsZip(blobIds, repositoryId, project, filename) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ filename: filename,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "7b28e929-2c99-405d-9c5c-6167a06e6816", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a single blob.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
+ * @param {string} fileName - Provide a fileName to use for a download.
+ * @param {boolean} resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
+ */
+ getBlobZip(repositoryId, sha1, project, download, fileName, resolveLfs) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ sha1: sha1
+ };
+ let queryValues = {
+ download: download,
+ fileName: fileName,
+ resolveLfs: resolveLfs,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "7b28e929-2c99-405d-9c5c-6167a06e6816", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve statistics about a single branch.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} name - Name of the branch.
+ * @param {string} project - Project ID or project name
+ * @param {GitInterfaces.GitVersionDescriptor} baseVersionDescriptor - Identifies the commit or branch to use as the base.
+ */
+ getBranch(repositoryId, name, project, baseVersionDescriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (name == null) {
+ throw new TypeError('name can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ name: name,
+ baseVersionDescriptor: baseVersionDescriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d5b216de-d8d5-4d32-ae76-51df755b16d3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitBranchStats, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve statistics about all branches within a repository.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {GitInterfaces.GitVersionDescriptor} baseVersionDescriptor - Identifies the commit or branch to use as the base.
+ */
+ getBranches(repositoryId, project, baseVersionDescriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ baseVersionDescriptor: baseVersionDescriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d5b216de-d8d5-4d32-ae76-51df755b16d3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitBranchStats, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {GitInterfaces.GitQueryBranchStatsCriteria} searchCriteria
+ * @param {string} repositoryId
+ * @param {string} project - Project ID or project name
+ */
+ getBranchStatsBatch(searchCriteria, repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d5b216de-d8d5-4d32-ae76-51df755b16d3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, searchCriteria, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitBranchStats, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve changes for a particular commit.
+ *
+ * @param {string} commitId - The id of the commit.
+ * @param {string} repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
+ * @param {string} project - Project ID or project name
+ * @param {number} top - The maximum number of changes to return.
+ * @param {number} skip - The number of changes to skip.
+ */
+ getChanges(commitId, repositoryId, project, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ commitId: commitId,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ top: top,
+ skip: skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "5bf884f5-3e07-42e9-afb8-1b872267bf16", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitChanges, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve one conflict for a cherry pick by ID
+ *
+ * @param {string} repositoryId
+ * @param {number} cherryPickId
+ * @param {number} conflictId
+ * @param {string} project - Project ID or project name
+ */
+ getCherryPickConflict(repositoryId, cherryPickId, conflictId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ cherryPickId: cherryPickId,
+ conflictId: conflictId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1fe5aab2-d4c0-4b2f-a030-f3831e7aca26", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all conflicts for a cherry pick
+ *
+ * @param {string} repositoryId
+ * @param {number} cherryPickId
+ * @param {string} project - Project ID or project name
+ * @param {string} continuationToken
+ * @param {number} top
+ * @param {boolean} excludeResolved
+ * @param {boolean} onlyResolved
+ * @param {boolean} includeObsolete
+ */
+ getCherryPickConflicts(repositoryId, cherryPickId, project, continuationToken, top, excludeResolved, onlyResolved, includeObsolete) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ cherryPickId: cherryPickId
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ '$top': top,
+ excludeResolved: excludeResolved,
+ onlyResolved: onlyResolved,
+ includeObsolete: includeObsolete,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1fe5aab2-d4c0-4b2f-a030-f3831e7aca26", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update merge conflict resolution
+ *
+ * @param {GitInterfaces.GitConflict} conflict
+ * @param {string} repositoryId
+ * @param {number} cherryPickId
+ * @param {number} conflictId
+ * @param {string} project - Project ID or project name
+ */
+ updateCherryPickConflict(conflict, repositoryId, cherryPickId, conflictId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ cherryPickId: cherryPickId,
+ conflictId: conflictId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1fe5aab2-d4c0-4b2f-a030-f3831e7aca26", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, conflict, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update multiple merge conflict resolutions
+ *
+ * @param {GitInterfaces.GitConflict[]} conflictUpdates
+ * @param {string} repositoryId
+ * @param {number} cherryPickId
+ * @param {string} project - Project ID or project name
+ */
+ updateCherryPickConflicts(conflictUpdates, repositoryId, cherryPickId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ cherryPickId: cherryPickId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1fe5aab2-d4c0-4b2f-a030-f3831e7aca26", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, conflictUpdates, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflictUpdateResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Given a commitId, returns a list of commits that are in the same cherry-pick family.
+ *
+ * @param {string} repositoryNameOrId
+ * @param {string} commitId
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeLinks
+ */
+ getCherryPickRelationships(repositoryNameOrId, commitId, project, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId,
+ commitId: commitId
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "8af142a4-27c2-4168-9e82-46b8629aaa0d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Cherry pick a specific commit or commits that are associated to a pull request into a new branch.
+ *
+ * @param {GitInterfaces.GitAsyncRefOperationParameters} cherryPickToCreate
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - ID of the repository.
+ */
+ createCherryPick(cherryPickToCreate, project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "033bad68-9a14-43d1-90e0-59cb8856fef6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, cherryPickToCreate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCherryPick, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve information about a cherry pick operation by cherry pick Id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} cherryPickId - ID of the cherry pick.
+ * @param {string} repositoryId - ID of the repository.
+ */
+ getCherryPick(project, cherryPickId, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ cherryPickId: cherryPickId,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "033bad68-9a14-43d1-90e0-59cb8856fef6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCherryPick, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve information about a cherry pick operation for a specific branch. This operation is expensive due to the underlying object structure, so this API only looks at the 1000 most recent cherry pick operations.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - ID of the repository.
+ * @param {string} refName - The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation.
+ */
+ getCherryPickForRefName(project, repositoryId, refName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (refName == null) {
+ throw new TypeError('refName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ refName: refName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "033bad68-9a14-43d1-90e0-59cb8856fef6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCherryPick, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} diffCommonCommit - If true, diff between common and target commits. If false, diff between base and target commits.
+ * @param {number} top - Maximum number of changes to return. Defaults to 100.
+ * @param {number} skip - Number of changes to skip
+ * @param {GitInterfaces.GitBaseVersionDescriptor} baseVersionDescriptor - Descriptor for base commit.
+ * @param {GitInterfaces.GitTargetVersionDescriptor} targetVersionDescriptor - Descriptor for target commit.
+ */
+ getCommitDiffs(repositoryId, project, diffCommonCommit, top, skip, baseVersionDescriptor, targetVersionDescriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ diffCommonCommit: diffCommonCommit,
+ '$top': top,
+ '$skip': skip,
+ };
+ if (baseVersionDescriptor) {
+ queryValues.baseVersionType = baseVersionDescriptor.versionType;
+ queryValues.baseVersion = baseVersionDescriptor.version;
+ queryValues.baseVersionOptions = baseVersionDescriptor.versionOptions;
+ }
+ if (targetVersionDescriptor) {
+ queryValues.targetVersionType = targetVersionDescriptor.versionType;
+ queryValues.targetVersion = targetVersionDescriptor.version;
+ queryValues.targetVersionOptions = targetVersionDescriptor.versionOptions;
+ }
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "615588d5-c0c7-4b88-88f8-e625306446e8", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitDiffs, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a particular commit.
+ *
+ * @param {string} commitId - The id of the commit.
+ * @param {string} repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
+ * @param {string} project - Project ID or project name
+ * @param {number} changeCount - The number of changes to include in the result.
+ */
+ getCommit(commitId, repositoryId, project, changeCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ commitId: commitId,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ changeCount: changeCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "c2570c3b-5b3f-41b8-98bf-5407bfde8d58", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommit, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve git commits for a project
+ *
+ * @param {string} repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
+ * @param {GitInterfaces.GitQueryCommitsCriteria} searchCriteria
+ * @param {string} project - Project ID or project name
+ * @param {number} skip
+ * @param {number} top
+ */
+ getCommits(repositoryId, searchCriteria, project, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (searchCriteria == null) {
+ throw new TypeError('searchCriteria can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ searchCriteria: searchCriteria,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "c2570c3b-5b3f-41b8-98bf-5407bfde8d58", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a list of commits associated with a particular push.
+ *
+ * @param {string} repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
+ * @param {number} pushId - The id of the push.
+ * @param {string} project - Project ID or project name
+ * @param {number} top - The maximum number of commits to return ("get the top x commits").
+ * @param {number} skip - The number of commits to skip.
+ * @param {boolean} includeLinks - Set to false to avoid including REST Url links for resources. Defaults to true.
+ */
+ getPushCommits(repositoryId, pushId, project, top, skip, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (pushId == null) {
+ throw new TypeError('pushId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ pushId: pushId,
+ top: top,
+ skip: skip,
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "c2570c3b-5b3f-41b8-98bf-5407bfde8d58", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve git commits for a project matching the search criteria
+ *
+ * @param {GitInterfaces.GitQueryCommitsCriteria} searchCriteria - Search options
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {number} skip - Number of commits to skip.
+ * @param {number} top - Maximum number of commits to return.
+ * @param {boolean} includeStatuses - True to include additional commit status information.
+ */
+ getCommitsBatch(searchCriteria, repositoryId, project, skip, top, includeStatuses) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ '$skip': skip,
+ '$top': top,
+ includeStatuses: includeStatuses,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "6400dfb2-0bcb-462b-b992-5a57f8f1416c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, searchCriteria, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve deleted git repositories.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getDeletedRepositories(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "2b6869c4-cb25-42b5-b7a3-0d3e6be0a11a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitDeletedRepository, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the file diffs for each of the specified files
+ *
+ * @param {GitInterfaces.FileDiffsCriteria} fileDiffsCriteria - List of file parameters objects
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The name or ID of the repository
+ */
+ getFileDiffs(fileDiffsCriteria, project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "c4c5a7e6-e9f3-4730-a92b-84baacff694b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, fileDiffsCriteria, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.FileDiff, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all forks of a repository in the collection.
+ *
+ * @param {string} repositoryNameOrId - The name or ID of the repository.
+ * @param {string} collectionId - Team project collection ID.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeLinks - True to include links.
+ */
+ getForks(repositoryNameOrId, collectionId, project, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId,
+ collectionId: collectionId
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "158c0340-bf6f-489c-9625-d572a1480d57", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepositoryRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the repositories endpoint
+ *
+ * @param {GitInterfaces.GitForkSyncRequestParameters} syncParams - Source repository and ref mapping.
+ * @param {string} repositoryNameOrId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeLinks - True to include links
+ */
+ createForkSyncRequest(syncParams, repositoryNameOrId, project, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1703f858-b9d1-46af-ab62-483e9e1055b5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, syncParams, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitForkSyncRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a specific fork sync operation's details.
+ *
+ * @param {string} repositoryNameOrId - The name or ID of the repository.
+ * @param {number} forkSyncOperationId - OperationId of the sync request.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeLinks - True to include links.
+ */
+ getForkSyncRequest(repositoryNameOrId, forkSyncOperationId, project, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId,
+ forkSyncOperationId: forkSyncOperationId
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1703f858-b9d1-46af-ab62-483e9e1055b5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitForkSyncRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all requested fork sync operations on this repository.
+ *
+ * @param {string} repositoryNameOrId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeAbandoned - True to include abandoned requests.
+ * @param {boolean} includeLinks - True to include links.
+ */
+ getForkSyncRequests(repositoryNameOrId, project, includeAbandoned, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId
+ };
+ let queryValues = {
+ includeAbandoned: includeAbandoned,
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "1703f858-b9d1-46af-ab62-483e9e1055b5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitForkSyncRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create an import request.
+ *
+ * @param {GitInterfaces.GitImportRequest} importRequest - The import request to create.
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The name or ID of the repository.
+ */
+ createImportRequest(importRequest, project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "01828ddc-3600-4a41-8633-99b3a73a0eb3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, importRequest, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitImportRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a particular import request.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {number} importRequestId - The unique identifier for the import request.
+ */
+ getImportRequest(project, repositoryId, importRequestId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ importRequestId: importRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "01828ddc-3600-4a41-8633-99b3a73a0eb3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitImportRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve import requests for a repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {boolean} includeAbandoned - True to include abandoned import requests in the results.
+ */
+ queryImportRequests(project, repositoryId, includeAbandoned) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ includeAbandoned: includeAbandoned,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "01828ddc-3600-4a41-8633-99b3a73a0eb3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitImportRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retry or abandon a failed import request.
+ *
+ * @param {GitInterfaces.GitImportRequest} importRequestToUpdate - The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned.
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {number} importRequestId - The unique identifier for the import request to update.
+ */
+ updateImportRequest(importRequestToUpdate, project, repositoryId, importRequestId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ importRequestId: importRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "01828ddc-3600-4a41-8633-99b3a73a0eb3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, importRequestToUpdate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitImportRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} path - The item path.
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - The path scope. The default is null.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - The recursion level of this request. The default is 'none', no recursion.
+ * @param {boolean} includeContentMetadata - Set to true to include content metadata. Default is false.
+ * @param {boolean} latestProcessedChange - Set to true to include the latest changes. Default is false.
+ * @param {boolean} download - Set to true to download the response as a file. Default is false.
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - Version descriptor. Default is the default branch for the repository.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ * @param {boolean} resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
+ * @param {boolean} sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
+ */
+ getItem(repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ path: path,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ includeContentMetadata: includeContentMetadata,
+ latestProcessedChange: latestProcessedChange,
+ download: download,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ resolveLfs: resolveLfs,
+ sanitize: sanitize,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "fb93c0db-47ed-4a31-8c20-47552878fb44", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitItem, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} path - The item path.
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - The path scope. The default is null.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - The recursion level of this request. The default is 'none', no recursion.
+ * @param {boolean} includeContentMetadata - Set to true to include content metadata. Default is false.
+ * @param {boolean} latestProcessedChange - Set to true to include the latest changes. Default is false.
+ * @param {boolean} download - Set to true to download the response as a file. Default is false.
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - Version descriptor. Default is the default branch for the repository.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ * @param {boolean} resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
+ * @param {boolean} sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
+ */
+ getItemContent(repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ path: path,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ includeContentMetadata: includeContentMetadata,
+ latestProcessedChange: latestProcessedChange,
+ download: download,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ resolveLfs: resolveLfs,
+ sanitize: sanitize,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "fb93c0db-47ed-4a31-8c20-47552878fb44", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - The path scope. The default is null.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - The recursion level of this request. The default is 'none', no recursion.
+ * @param {boolean} includeContentMetadata - Set to true to include content metadata. Default is false.
+ * @param {boolean} latestProcessedChange - Set to true to include the latest changes. Default is false.
+ * @param {boolean} download - Set to true to download the response as a file. Default is false.
+ * @param {boolean} includeLinks - Set to true to include links to items. Default is false.
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - Version descriptor. Default is the default branch for the repository.
+ * @param {boolean} zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
+ */
+ getItems(repositoryId, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, includeLinks, versionDescriptor, zipForUnix) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ includeContentMetadata: includeContentMetadata,
+ latestProcessedChange: latestProcessedChange,
+ download: download,
+ includeLinks: includeLinks,
+ versionDescriptor: versionDescriptor,
+ zipForUnix: zipForUnix,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "fb93c0db-47ed-4a31-8c20-47552878fb44", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} path - The item path.
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - The path scope. The default is null.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - The recursion level of this request. The default is 'none', no recursion.
+ * @param {boolean} includeContentMetadata - Set to true to include content metadata. Default is false.
+ * @param {boolean} latestProcessedChange - Set to true to include the latest changes. Default is false.
+ * @param {boolean} download - Set to true to download the response as a file. Default is false.
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - Version descriptor. Default is the default branch for the repository.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ * @param {boolean} resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
+ * @param {boolean} sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
+ */
+ getItemText(repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ path: path,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ includeContentMetadata: includeContentMetadata,
+ latestProcessedChange: latestProcessedChange,
+ download: download,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ resolveLfs: resolveLfs,
+ sanitize: sanitize,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "fb93c0db-47ed-4a31-8c20-47552878fb44", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} path - The item path.
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - The path scope. The default is null.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - The recursion level of this request. The default is 'none', no recursion.
+ * @param {boolean} includeContentMetadata - Set to true to include content metadata. Default is false.
+ * @param {boolean} latestProcessedChange - Set to true to include the latest changes. Default is false.
+ * @param {boolean} download - Set to true to download the response as a file. Default is false.
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - Version descriptor. Default is the default branch for the repository.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ * @param {boolean} resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
+ * @param {boolean} sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
+ */
+ getItemZip(repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ path: path,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ includeContentMetadata: includeContentMetadata,
+ latestProcessedChange: latestProcessedChange,
+ download: download,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ resolveLfs: resolveLfs,
+ sanitize: sanitize,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "fb93c0db-47ed-4a31-8c20-47552878fb44", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path
+ *
+ * @param {GitInterfaces.GitItemRequestData} requestData - Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
+ * @param {string} repositoryId - The name or ID of the repository
+ * @param {string} project - Project ID or project name
+ */
+ getItemsBatch(requestData, repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "630fd2e4-fb88-4f85-ad21-13f3fd1fbca9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, requestData, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Find the merge bases of two commits, optionally across forks. If otherRepositoryId is not specified, the merge bases will only be calculated within the context of the local repositoryNameOrId.
+ *
+ * @param {string} repositoryNameOrId - ID or name of the local repository.
+ * @param {string} commitId - First commit, usually the tip of the target branch of the potential merge.
+ * @param {string} otherCommitId - Other commit, usually the tip of the source branch of the potential merge.
+ * @param {string} project - Project ID or project name
+ * @param {string} otherCollectionId - The collection ID where otherCommitId lives.
+ * @param {string} otherRepositoryId - The repository ID where otherCommitId lives.
+ */
+ getMergeBases(repositoryNameOrId, commitId, otherCommitId, project, otherCollectionId, otherRepositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (otherCommitId == null) {
+ throw new TypeError('otherCommitId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId,
+ commitId: commitId
+ };
+ let queryValues = {
+ otherCommitId: otherCommitId,
+ otherCollectionId: otherCollectionId,
+ otherRepositoryId: otherRepositoryId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "7cf2abb6-c964-4f7e-9872-f78c66e72e9c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Request a git merge operation. Currently we support merging only 2 commits.
+ *
+ * @param {GitInterfaces.GitMergeParameters} mergeParameters - Parents commitIds and merge commit messsage.
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryNameOrId - The name or ID of the repository.
+ * @param {boolean} includeLinks - True to include links
+ */
+ createMergeRequest(mergeParameters, project, repositoryNameOrId, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "985f7ae9-844f-4906-9897-7ef41516c0e2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, mergeParameters, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitMerge, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a specific merge operation's details.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryNameOrId - The name or ID of the repository.
+ * @param {number} mergeOperationId - OperationId of the merge request.
+ * @param {boolean} includeLinks - True to include links
+ */
+ getMergeRequest(project, repositoryNameOrId, mergeOperationId, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryNameOrId: repositoryNameOrId,
+ mergeOperationId: mergeOperationId
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "985f7ae9-844f-4906-9897-7ef41516c0e2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitMerge, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Attach a new file to a pull request.
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} fileName - The name of the file.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ createAttachment(customHeaders, contentStream, fileName, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fileName: fileName,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965d9361-878b-413b-a494-45d5b5fd8ab7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.Attachment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a pull request attachment.
+ *
+ * @param {string} fileName - The name of the attachment to delete.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ deleteAttachment(fileName, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fileName: fileName,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965d9361-878b-413b-a494-45d5b5fd8ab7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the file content of a pull request attachment.
+ *
+ * @param {string} fileName - The name of the attachment.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getAttachmentContent(fileName, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fileName: fileName,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965d9361-878b-413b-a494-45d5b5fd8ab7", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of files attached to a given pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getAttachments(repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965d9361-878b-413b-a494-45d5b5fd8ab7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.Attachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the file content of a pull request attachment.
+ *
+ * @param {string} fileName - The name of the attachment.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getAttachmentZip(fileName, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fileName: fileName,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965d9361-878b-413b-a494-45d5b5fd8ab7", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a like on a comment.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - The ID of the thread that contains the comment.
+ * @param {number} commentId - The ID of the comment.
+ * @param {string} project - Project ID or project name
+ */
+ createLike(repositoryId, pullRequestId, threadId, commentId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "5f2e2851-1389-425b-a00b-fb2adb3ef31b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a like on a comment.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - The ID of the thread that contains the comment.
+ * @param {number} commentId - The ID of the comment.
+ * @param {string} project - Project ID or project name
+ */
+ deleteLike(repositoryId, pullRequestId, threadId, commentId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "5f2e2851-1389-425b-a00b-fb2adb3ef31b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get likes for a comment.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - The ID of the thread that contains the comment.
+ * @param {number} commentId - The ID of the comment.
+ * @param {string} project - Project ID or project name
+ */
+ getLikes(repositoryId, pullRequestId, threadId, commentId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "5f2e2851-1389-425b-a00b-fb2adb3ef31b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the commits for the specified iteration of a pull request.
+ *
+ * @param {string} repositoryId - ID or name of the repository.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the iteration from which to get the commits.
+ * @param {string} project - Project ID or project name
+ * @param {number} top - Maximum number of commits to return. The maximum number of commits that can be returned per batch is 500.
+ * @param {number} skip - Number of commits to skip.
+ */
+ getPullRequestIterationCommits(repositoryId, pullRequestId, iterationId, project, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId
+ };
+ let queryValues = {
+ top: top,
+ skip: skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "e7ea0883-095f-4926-b5fb-f24691c26fb9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the commits for the specified pull request.
+ *
+ * @param {string} repositoryId - ID or name of the repository.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestCommits(repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "52823034-34a8-4576-922c-8d8b77e9e4c4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitCommitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve one conflict for a pull request by ID
+ *
+ * @param {string} repositoryId
+ * @param {number} pullRequestId
+ * @param {number} conflictId
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestConflict(repositoryId, pullRequestId, conflictId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ conflictId: conflictId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d840fb74-bbef-42d3-b250-564604c054a4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all conflicts for a pull request
+ *
+ * @param {string} repositoryId - The repository of the Pull Request.
+ * @param {number} pullRequestId - The pull request ID.
+ * @param {string} project - Project ID or project name
+ * @param {number} skip - Conflicts to skip.
+ * @param {number} top - Conflicts to return after skip.
+ * @param {boolean} includeObsolete - Includes obsolete conflicts.
+ * @param {boolean} excludeResolved - Excludes conflicts already resolved.
+ * @param {boolean} onlyResolved - Returns only the conflicts that are resolved.
+ */
+ getPullRequestConflicts(repositoryId, pullRequestId, project, skip, top, includeObsolete, excludeResolved, onlyResolved) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ '$skip': skip,
+ '$top': top,
+ includeObsolete: includeObsolete,
+ excludeResolved: excludeResolved,
+ onlyResolved: onlyResolved,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d840fb74-bbef-42d3-b250-564604c054a4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update merge conflict resolution
+ *
+ * @param {GitInterfaces.GitConflict} conflict
+ * @param {string} repositoryId
+ * @param {number} pullRequestId
+ * @param {number} conflictId
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestConflict(conflict, repositoryId, pullRequestId, conflictId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ conflictId: conflictId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d840fb74-bbef-42d3-b250-564604c054a4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, conflict, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update multiple merge conflict resolutions
+ *
+ * @param {GitInterfaces.GitConflict[]} conflictUpdates
+ * @param {string} repositoryId
+ * @param {number} pullRequestId
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestConflicts(conflictUpdates, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "d840fb74-bbef-42d3-b250-564604c054a4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, conflictUpdates, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflictUpdateResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve the changes made in a pull request between two iterations.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration.
Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. Allowed values are between 1 and the maximum iteration on this pull request.
+ * @param {string} project - Project ID or project name
+ * @param {number} top - Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000.
+ * @param {number} skip - Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100.
+ * @param {number} compareTo - ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches
+ */
+ getPullRequestIterationChanges(repositoryId, pullRequestId, iterationId, project, top, skip, compareTo) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ '$compareTo': compareTo,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4216bdcf-b6b1-4d59-8b82-c34cc183fc8b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestIterationChanges, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the specified iteration for a pull request.
+ *
+ * @param {string} repositoryId - ID or name of the repository.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration to return.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestIteration(repositoryId, pullRequestId, iterationId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "git", "d43911ee-6958-46b0-a42b-8445b8a0d004", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestIteration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the list of iterations for the specified pull request.
+ *
+ * @param {string} repositoryId - ID or name of the repository.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeCommits - If true, include the commits associated with each iteration in the response.
+ */
+ getPullRequestIterations(repositoryId, pullRequestId, project, includeCommits) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ includeCommits: includeCommits,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "git", "d43911ee-6958-46b0-a42b-8445b8a0d004", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestIteration, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body.
+ *
+ * @param {GitInterfaces.GitPullRequestStatus} status - Pull request status to create.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration.
+ * @param {string} project - Project ID or project name
+ */
+ createPullRequestIterationStatus(status, repositoryId, pullRequestId, iterationId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "75cf11c5-979f-4038-a76e-058a06adf2bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, status, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete pull request iteration status.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration.
+ * @param {number} statusId - ID of the pull request status.
+ * @param {string} project - Project ID or project name
+ */
+ deletePullRequestIterationStatus(repositoryId, pullRequestId, iterationId, statusId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId,
+ statusId: statusId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "75cf11c5-979f-4038-a76e-058a06adf2bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the specific pull request iteration status by ID. The status ID is unique within the pull request across all iterations.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration.
+ * @param {number} statusId - ID of the pull request status.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestIterationStatus(repositoryId, pullRequestId, iterationId, statusId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId,
+ statusId: statusId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "75cf11c5-979f-4038-a76e-058a06adf2bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all the statuses associated with a pull request iteration.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestIterationStatuses(repositoryId, pullRequestId, iterationId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "75cf11c5-979f-4038-a76e-058a06adf2bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestStatus, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update pull request iteration statuses collection. The only supported operation type is `remove`.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} patchDocument - Operations to apply to the pull request statuses in JSON Patch format.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} iterationId - ID of the pull request iteration.
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestIterationStatuses(customHeaders, patchDocument, repositoryId, pullRequestId, iterationId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ iterationId: iterationId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "75cf11c5-979f-4038-a76e-058a06adf2bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, patchDocument, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a label for a specified pull request. The only required field is the name of the new label.
+ *
+ * @param {TfsCoreInterfaces.WebApiCreateTagRequestData} label - Label to assign to the pull request.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - Project ID or project name.
+ */
+ createPullRequestLabel(label, repositoryId, pullRequestId, project, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ projectId: projectId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "f22387e3-984e-4c52-9c6d-fbb8f14c812d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, label, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a label from the set of those assigned to the pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} labelIdOrName - The name or ID of the label requested.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - Project ID or project name.
+ */
+ deletePullRequestLabels(repositoryId, pullRequestId, labelIdOrName, project, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ labelIdOrName: labelIdOrName
+ };
+ let queryValues = {
+ projectId: projectId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "f22387e3-984e-4c52-9c6d-fbb8f14c812d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves a single label that has been assigned to a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} labelIdOrName - The name or ID of the label requested.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - Project ID or project name.
+ */
+ getPullRequestLabel(repositoryId, pullRequestId, labelIdOrName, project, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ labelIdOrName: labelIdOrName
+ };
+ let queryValues = {
+ projectId: projectId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "f22387e3-984e-4c52-9c6d-fbb8f14c812d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all the labels assigned to a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - Project ID or project name.
+ */
+ getPullRequestLabels(repositoryId, pullRequestId, project, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ projectId: projectId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "f22387e3-984e-4c52-9c6d-fbb8f14c812d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get external properties of the pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestProperties(repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "48a52185-5b9e-4736-9dc1-bb1e2feac80b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create or update pull request external properties. The patch operation can be `add`, `replace` or `remove`. For `add` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For `replace` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For `remove` operation, the path cannot be empty. If the path does not exist, no action will be performed.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} patchDocument - Properties to add, replace or remove in JSON Patch format.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestProperties(customHeaders, patchDocument, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "48a52185-5b9e-4736-9dc1-bb1e2feac80b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, patchDocument, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests.
+ *
+ * @param {GitInterfaces.GitPullRequestQuery} queries - The list of queries to perform.
+ * @param {string} repositoryId - ID of the repository.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestQuery(queries, repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "b3a6eebe-9cf0-49ea-b6cb-1a4c5f5007b0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, queries, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a reviewer to a pull request or cast a vote.
+ *
+ * @param {GitInterfaces.IdentityRefWithVote} reviewer - Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} reviewerId - ID of the reviewer.
+ * @param {string} project - Project ID or project name
+ */
+ createPullRequestReviewer(reviewer, repositoryId, pullRequestId, reviewerId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ reviewerId: reviewerId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, reviewer, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add reviewers to a pull request.
+ *
+ * @param {VSSInterfaces.IdentityRef[]} reviewers - Reviewers to add to the pull request.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ createPullRequestReviewers(reviewers, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, reviewers, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add an unmaterialized identity to the reviewers of a pull request.
+ *
+ * @param {GitInterfaces.IdentityRefWithVote} reviewer - Reviewer to add to the pull request.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ createUnmaterializedPullRequestReviewer(reviewer, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, reviewer, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Remove a reviewer from a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} reviewerId - ID of the reviewer to remove.
+ * @param {string} project - Project ID or project name
+ */
+ deletePullRequestReviewer(repositoryId, pullRequestId, reviewerId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ reviewerId: reviewerId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve information about a particular reviewer on a pull request
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} reviewerId - ID of the reviewer.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestReviewer(repositoryId, pullRequestId, reviewerId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ reviewerId: reviewerId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve the reviewers for a pull request
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestReviewers(repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Edit a reviewer entry. These fields are patchable: isFlagged, hasDeclined
+ *
+ * @param {GitInterfaces.IdentityRefWithVote} reviewer - Reviewer data.
If the reviewer's ID is included here, it must match the reviewerID parameter.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} reviewerId - ID of the reviewer.
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestReviewer(reviewer, repositoryId, pullRequestId, reviewerId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ reviewerId: reviewerId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, reviewer, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.
+ *
+ * @param {GitInterfaces.IdentityRefWithVote[]} patchVotes - IDs of the reviewers whose votes will be reset to zero
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestReviewers(patchVotes, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "4b6702c7-aa35-4b89-9c96-b9abf6d3e540", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, patchVotes, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a pull request.
+ *
+ * @param {number} pullRequestId - The ID of the pull request to retrieve.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestById(pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "01a46dea-7d46-4d40-bc84-319e7c260d99", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all pull requests matching a specified criteria.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {GitInterfaces.GitPullRequestSearchCriteria} searchCriteria - Pull requests will be returned that match this search criteria.
+ * @param {number} maxCommentLength - Not used.
+ * @param {number} skip - The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
+ * @param {number} top - The number of pull requests to retrieve.
+ */
+ getPullRequestsByProject(project, searchCriteria, maxCommentLength, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (searchCriteria == null) {
+ throw new TypeError('searchCriteria can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ searchCriteria: searchCriteria,
+ maxCommentLength: maxCommentLength,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "a5d28130-9cd2-40fa-9f08-902e7daa9efb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a pull request.
+ *
+ * @param {GitInterfaces.GitPullRequest} gitPullRequestToCreate - The pull request to create.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} supportsIterations - If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.
+ */
+ createPullRequest(gitPullRequestToCreate, repositoryId, project, supportsIterations) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ supportsIterations: supportsIterations,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "9946fd70-0d40-406e-b686-b4744cbbcc37", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, gitPullRequestToCreate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - The ID of the pull request to retrieve.
+ * @param {string} project - Project ID or project name
+ * @param {number} maxCommentLength - Not used.
+ * @param {number} skip - Not used.
+ * @param {number} top - Not used.
+ * @param {boolean} includeCommits - If true, the pull request will be returned with the associated commits.
+ * @param {boolean} includeWorkItemRefs - If true, the pull request will be returned with the associated work item references.
+ */
+ getPullRequest(repositoryId, pullRequestId, project, maxCommentLength, skip, top, includeCommits, includeWorkItemRefs) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ maxCommentLength: maxCommentLength,
+ '$skip': skip,
+ '$top': top,
+ includeCommits: includeCommits,
+ includeWorkItemRefs: includeWorkItemRefs,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "9946fd70-0d40-406e-b686-b4744cbbcc37", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all pull requests matching a specified criteria.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {GitInterfaces.GitPullRequestSearchCriteria} searchCriteria - Pull requests will be returned that match this search criteria.
+ * @param {string} project - Project ID or project name
+ * @param {number} maxCommentLength - Not used.
+ * @param {number} skip - The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
+ * @param {number} top - The number of pull requests to retrieve.
+ */
+ getPullRequests(repositoryId, searchCriteria, project, maxCommentLength, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (searchCriteria == null) {
+ throw new TypeError('searchCriteria can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ searchCriteria: searchCriteria,
+ maxCommentLength: maxCommentLength,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "9946fd70-0d40-406e-b686-b4744cbbcc37", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a pull request
+ *
+ * @param {GitInterfaces.GitPullRequest} gitPullRequestToUpdate - The pull request content that should be updated.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request to update.
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequest(gitPullRequestToUpdate, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "9946fd70-0d40-406e-b686-b4744cbbcc37", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, gitPullRequestToUpdate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Sends an e-mail notification about a specific pull request to a set of recipients
+ *
+ * @param {GitInterfaces.ShareNotificationContext} userMessage
+ * @param {string} repositoryId - ID of the git repository.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ sharePullRequest(userMessage, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "696f3a82-47c9-487f-9117-b9d00972ca84", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, userMessage, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a pull request status.
+ *
+ * @param {GitInterfaces.GitPullRequestStatus} status - Pull request status to create.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ createPullRequestStatus(status, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, status, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete pull request status.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} statusId - ID of the pull request status.
+ * @param {string} project - Project ID or project name
+ */
+ deletePullRequestStatus(repositoryId, pullRequestId, statusId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ statusId: statusId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} statusId - ID of the pull request status.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestStatus(repositoryId, pullRequestId, statusId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ statusId: statusId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all the statuses associated with a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestStatuses(repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestStatus, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update pull request statuses collection. The only supported operation type is `remove`.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} patchDocument - Operations to apply to the pull request statuses in JSON Patch format.
+ * @param {string} repositoryId - The repository ID of the pull request’s target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ updatePullRequestStatuses(customHeaders, patchDocument, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, patchDocument, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a comment on a specific thread in a pull request (up to 500 comments can be created per thread).
+ *
+ * @param {GitInterfaces.Comment} comment - The comment to create. Comments can be up to 150,000 characters.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread that the desired comment is in.
+ * @param {string} project - Project ID or project name
+ */
+ createComment(comment, repositoryId, pullRequestId, threadId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, comment, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a comment associated with a specific thread in a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread that the desired comment is in.
+ * @param {number} commentId - ID of the comment.
+ * @param {string} project - Project ID or project name
+ */
+ deleteComment(repositoryId, pullRequestId, threadId, commentId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a comment associated with a specific thread in a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread that the desired comment is in.
+ * @param {number} commentId - ID of the comment.
+ * @param {string} project - Project ID or project name
+ */
+ getComment(repositoryId, pullRequestId, threadId, commentId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all comments associated with a specific thread in a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread.
+ * @param {string} project - Project ID or project name
+ */
+ getComments(repositoryId, pullRequestId, threadId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.Comment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a comment associated with a specific thread in a pull request.
+ *
+ * @param {GitInterfaces.Comment} comment - The comment content that should be updated. Comments can be up to 150,000 characters.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread that the desired comment is in.
+ * @param {number} commentId - ID of the comment to update.
+ * @param {string} project - Project ID or project name
+ */
+ updateComment(comment, repositoryId, pullRequestId, threadId, commentId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, comment, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a thread in a pull request.
+ *
+ * @param {GitInterfaces.GitPullRequestCommentThread} commentThread - The thread to create. Thread must contain at least one comment.
+ * @param {string} repositoryId - Repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ createThread(commentThread, repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "ab6e2e5d-a0b7-4153-b64a-a4efe0d49449", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, commentThread, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestCommentThread, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a thread in a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread.
+ * @param {string} project - Project ID or project name
+ * @param {number} iteration - If specified, thread position will be tracked using this iteration as the right side of the diff.
+ * @param {number} baseIteration - If specified, thread position will be tracked using this iteration as the left side of the diff.
+ */
+ getPullRequestThread(repositoryId, pullRequestId, threadId, project, iteration, baseIteration) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId
+ };
+ let queryValues = {
+ '$iteration': iteration,
+ '$baseIteration': baseIteration,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "ab6e2e5d-a0b7-4153-b64a-a4efe0d49449", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestCommentThread, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all threads in a pull request.
+ *
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ * @param {number} iteration - If specified, thread positions will be tracked using this iteration as the right side of the diff.
+ * @param {number} baseIteration - If specified, thread positions will be tracked using this iteration as the left side of the diff.
+ */
+ getThreads(repositoryId, pullRequestId, project, iteration, baseIteration) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ let queryValues = {
+ '$iteration': iteration,
+ '$baseIteration': baseIteration,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "ab6e2e5d-a0b7-4153-b64a-a4efe0d49449", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestCommentThread, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a thread in a pull request.
+ *
+ * @param {GitInterfaces.GitPullRequestCommentThread} commentThread - The thread content that should be updated.
+ * @param {string} repositoryId - The repository ID of the pull request's target branch.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {number} threadId - ID of the thread to update.
+ * @param {string} project - Project ID or project name
+ */
+ updateThread(commentThread, repositoryId, pullRequestId, threadId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId,
+ threadId: threadId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "ab6e2e5d-a0b7-4153-b64a-a4efe0d49449", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, commentThread, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPullRequestCommentThread, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a list of work items associated with a pull request.
+ *
+ * @param {string} repositoryId - ID or name of the repository.
+ * @param {number} pullRequestId - ID of the pull request.
+ * @param {string} project - Project ID or project name
+ */
+ getPullRequestWorkItemRefs(repositoryId, pullRequestId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pullRequestId: pullRequestId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "0a637fcc-5370-4ce8-b0e8-98091f5f9482", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Push changes to the repository.
+ *
+ * @param {GitInterfaces.GitPush} push
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ */
+ createPush(push, repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "git", "ea98d07b-3c87-4971-8ede-a613694ffb55", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, push, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPush, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves a particular push.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {number} pushId - ID of the push.
+ * @param {string} project - Project ID or project name
+ * @param {number} includeCommits - The number of commits to include in the result.
+ * @param {boolean} includeRefUpdates - If true, include the list of refs that were updated by the push.
+ */
+ getPush(repositoryId, pushId, project, includeCommits, includeRefUpdates) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ pushId: pushId
+ };
+ let queryValues = {
+ includeCommits: includeCommits,
+ includeRefUpdates: includeRefUpdates,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "git", "ea98d07b-3c87-4971-8ede-a613694ffb55", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPush, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves pushes associated with the specified repository.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {number} skip - Number of pushes to skip.
+ * @param {number} top - Number of pushes to return.
+ * @param {GitInterfaces.GitPushSearchCriteria} searchCriteria - Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
+ */
+ getPushes(repositoryId, project, skip, top, searchCriteria) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ '$skip': skip,
+ '$top': top,
+ searchCriteria: searchCriteria,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "git", "ea98d07b-3c87-4971-8ede-a613694ffb55", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitPush, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Destroy (hard delete) a soft-deleted Git repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The ID of the repository.
+ */
+ deleteRepositoryFromRecycleBin(project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "a663da97-81db-4eb3-8b83-287670f63073", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve soft-deleted git repositories from the recycle bin.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getRecycleBinRepositories(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "a663da97-81db-4eb3-8b83-287670f63073", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitDeletedRepository, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.
+ *
+ * @param {GitInterfaces.GitRecycleBinRepositoryDetails} repositoryDetails
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The ID of the repository.
+ */
+ restoreRepositoryFromRecycleBin(repositoryDetails, project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "a663da97-81db-4eb3-8b83-287670f63073", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, repositoryDetails, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepository, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Queries the provided repository for its refs and returns them.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {string} filter - [optional] A filter to apply to the refs (starts with).
+ * @param {boolean} includeLinks - [optional] Specifies if referenceLinks should be included in the result. default is false.
+ * @param {boolean} includeStatuses - [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false.
+ * @param {boolean} includeMyBranches - [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter.
+ * @param {boolean} latestStatusesOnly - [optional] True to include only the tip commit status for each ref. This option requires `includeStatuses` to be true. The default value is false.
+ * @param {boolean} peelTags - [optional] Annotated tags will populate the PeeledObjectId property. default is false.
+ * @param {string} filterContains - [optional] A filter to apply to the refs (contains).
+ */
+ getRefs(repositoryId, project, filter, includeLinks, includeStatuses, includeMyBranches, latestStatusesOnly, peelTags, filterContains) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ filter: filter,
+ includeLinks: includeLinks,
+ includeStatuses: includeStatuses,
+ includeMyBranches: includeMyBranches,
+ latestStatusesOnly: latestStatusesOnly,
+ peelTags: peelTags,
+ filterContains: filterContains,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "2d874a60-a811-4f62-9c9f-963a6ea0a55b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Lock or Unlock a branch.
+ *
+ * @param {GitInterfaces.GitRefUpdate} newRefInfo - The ref update action (lock/unlock) to perform
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} filter - The name of the branch to lock/unlock
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - ID or name of the team project. Optional if specifying an ID for repository.
+ */
+ updateRef(newRefInfo, repositoryId, filter, project, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (filter == null) {
+ throw new TypeError('filter can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ filter: filter,
+ projectId: projectId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "2d874a60-a811-4f62-9c9f-963a6ea0a55b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, newRefInfo, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRef, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creating, updating, or deleting refs(branches).
+ *
+ * @param {GitInterfaces.GitRefUpdate[]} refUpdates - List of ref updates to attempt to perform
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - ID or name of the team project. Optional if specifying an ID for repository.
+ */
+ updateRefs(refUpdates, repositoryId, project, projectId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ projectId: projectId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "2d874a60-a811-4f62-9c9f-963a6ea0a55b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, refUpdates, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRefUpdateResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a ref favorite
+ *
+ * @param {GitInterfaces.GitRefFavorite} favorite - The ref favorite to create.
+ * @param {string} project - Project ID or project name
+ */
+ createFavorite(favorite, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "876f70af-5792-485a-a1c7-d0a7b2f42bbb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, favorite, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRefFavorite, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the refs favorite specified
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} favoriteId - The Id of the ref favorite to delete.
+ */
+ deleteRefFavorite(project, favoriteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ favoriteId: favoriteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "876f70af-5792-485a-a1c7-d0a7b2f42bbb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the refs favorite for a favorite Id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} favoriteId - The Id of the requested ref favorite.
+ */
+ getRefFavorite(project, favoriteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ favoriteId: favoriteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "876f70af-5792-485a-a1c7-d0a7b2f42bbb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRefFavorite, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the refs favorites for a repo and an identity.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - The id of the repository.
+ * @param {string} identityId - The id of the identity whose favorites are to be retrieved. If null, the requesting identity is used.
+ */
+ getRefFavorites(project, repositoryId, identityId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ repositoryId: repositoryId,
+ identityId: identityId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "876f70af-5792-485a-a1c7-d0a7b2f42bbb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRefFavorite, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a git repository in a team project.
+ *
+ * @param {GitInterfaces.GitRepositoryCreateOptions} gitRepositoryToCreate - Specify the repo name, team project and/or parent repository. Team project information can be omitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id).
+ * @param {string} project - Project ID or project name
+ * @param {string} sourceRef - [optional] Specify the source refs to use while creating a fork repo
+ */
+ createRepository(gitRepositoryToCreate, project, sourceRef) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ sourceRef: sourceRef,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "225f7195-f9c7-4d14-ab28-a83f7ff77e1f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, gitRepositoryToCreate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepository, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a git repository
+ *
+ * @param {string} repositoryId - The ID of the repository.
+ * @param {string} project - Project ID or project name
+ */
+ deleteRepository(repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "225f7195-f9c7-4d14-ab28-a83f7ff77e1f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve git repositories.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeLinks - [optional] True to include reference links. The default value is false.
+ * @param {boolean} includeAllUrls - [optional] True to include all remote URLs. The default value is false.
+ * @param {boolean} includeHidden - [optional] True to include hidden repositories. The default value is false.
+ */
+ getRepositories(project, includeLinks, includeAllUrls, includeHidden) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ includeLinks: includeLinks,
+ includeAllUrls: includeAllUrls,
+ includeHidden: includeHidden,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "225f7195-f9c7-4d14-ab28-a83f7ff77e1f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepository, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a git repository.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {string} project - Project ID or project name
+ */
+ getRepository(repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "225f7195-f9c7-4d14-ab28-a83f7ff77e1f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepository, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a git repository.
+ *
+ * @param {string} repositoryId - The name or ID of the repository.
+ * @param {boolean} includeParent - True to include parent repository. Only available in authenticated calls.
+ * @param {string} project - Project ID or project name
+ */
+ getRepositoryWithParent(repositoryId, includeParent, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (includeParent == null) {
+ throw new TypeError('includeParent can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ includeParent: includeParent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "225f7195-f9c7-4d14-ab28-a83f7ff77e1f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepository, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the Git repository with either a new repo name or a new default branch.
+ *
+ * @param {GitInterfaces.GitRepository} newRepositoryInfo - Specify a new repo name or a new default branch of the repository
+ * @param {string} repositoryId - The ID of the repository.
+ * @param {string} project - Project ID or project name
+ */
+ updateRepository(newRepositoryInfo, repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "225f7195-f9c7-4d14-ab28-a83f7ff77e1f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, newRepositoryInfo, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRepository, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve one conflict for a revert by ID
+ *
+ * @param {string} repositoryId
+ * @param {number} revertId
+ * @param {number} conflictId
+ * @param {string} project - Project ID or project name
+ */
+ getRevertConflict(repositoryId, revertId, conflictId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ revertId: revertId,
+ conflictId: conflictId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "10d7ae6d-1050-446d-852a-bd5d99f834bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all conflicts for a revert
+ *
+ * @param {string} repositoryId
+ * @param {number} revertId
+ * @param {string} project - Project ID or project name
+ * @param {string} continuationToken
+ * @param {number} top
+ * @param {boolean} excludeResolved
+ * @param {boolean} onlyResolved
+ * @param {boolean} includeObsolete
+ */
+ getRevertConflicts(repositoryId, revertId, project, continuationToken, top, excludeResolved, onlyResolved, includeObsolete) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ revertId: revertId
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ '$top': top,
+ excludeResolved: excludeResolved,
+ onlyResolved: onlyResolved,
+ includeObsolete: includeObsolete,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "10d7ae6d-1050-446d-852a-bd5d99f834bf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update merge conflict resolution
+ *
+ * @param {GitInterfaces.GitConflict} conflict
+ * @param {string} repositoryId
+ * @param {number} revertId
+ * @param {number} conflictId
+ * @param {string} project - Project ID or project name
+ */
+ updateRevertConflict(conflict, repositoryId, revertId, conflictId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ revertId: revertId,
+ conflictId: conflictId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "10d7ae6d-1050-446d-852a-bd5d99f834bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, conflict, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflict, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update multiple merge conflict resolutions
+ *
+ * @param {GitInterfaces.GitConflict[]} conflictUpdates
+ * @param {string} repositoryId
+ * @param {number} revertId
+ * @param {string} project - Project ID or project name
+ */
+ updateRevertConflicts(conflictUpdates, repositoryId, revertId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ revertId: revertId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "10d7ae6d-1050-446d-852a-bd5d99f834bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, conflictUpdates, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitConflictUpdateResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.
+ *
+ * @param {GitInterfaces.GitAsyncRefOperationParameters} revertToCreate
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - ID of the repository.
+ */
+ createRevert(revertToCreate, project, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "bc866058-5449-4715-9cf1-a510b6ff193c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, revertToCreate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRevert, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve information about a revert operation by revert Id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} revertId - ID of the revert operation.
+ * @param {string} repositoryId - ID of the repository.
+ */
+ getRevert(project, revertId, repositoryId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ revertId: revertId,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "bc866058-5449-4715-9cf1-a510b6ff193c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRevert, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve information about a revert operation for a specific branch.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId - ID of the repository.
+ * @param {string} refName - The GitAsyncRefOperationParameters generatedRefName used for the revert operation.
+ */
+ getRevertForRefName(project, repositoryId, refName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (refName == null) {
+ throw new TypeError('refName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ refName: refName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "bc866058-5449-4715-9cf1-a510b6ff193c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitRevert, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create Git commit status.
+ *
+ * @param {GitInterfaces.GitStatus} gitCommitStatusToCreate - Git commit status object to create.
+ * @param {string} commitId - ID of the Git commit.
+ * @param {string} repositoryId - ID of the repository.
+ * @param {string} project - Project ID or project name
+ */
+ createCommitStatus(gitCommitStatusToCreate, commitId, repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ commitId: commitId,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "428dd4fb-fda5-4722-af02-9313b80305da", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, gitCommitStatusToCreate, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get statuses associated with the Git commit.
+ *
+ * @param {string} commitId - ID of the Git commit.
+ * @param {string} repositoryId - ID of the repository.
+ * @param {string} project - Project ID or project name
+ * @param {number} top - Optional. The number of statuses to retrieve. Default is 1000.
+ * @param {number} skip - Optional. The number of statuses to ignore. Default is 0. For example, to retrieve results 101-150, set top to 50 and skip to 100.
+ * @param {boolean} latestOnly - The flag indicates whether to get only latest statuses grouped by `Context.Name` and `Context.Genre`.
+ */
+ getStatuses(commitId, repositoryId, project, top, skip, latestOnly) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ commitId: commitId,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ top: top,
+ skip: skip,
+ latestOnly: latestOnly,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "428dd4fb-fda5-4722-af02-9313b80305da", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitStatus, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a pull request suggestion for a particular repository or team project.
+ *
+ * @param {string} repositoryId - ID of the git repository.
+ * @param {string} project - Project ID or project name
+ */
+ getSuggestions(repositoryId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "9393b4fb-4445-4919-972b-9ad16f442d83", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
+ *
+ * @param {string} repositoryId - Repository Id.
+ * @param {string} sha1 - SHA1 hash of the tree object.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - Project Id.
+ * @param {boolean} recursive - Search recursively. Include trees underneath this tree. Default is false.
+ * @param {string} fileName - Name to use if a .zip file is returned. Default is the object ID.
+ */
+ getTree(repositoryId, sha1, project, projectId, recursive, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ sha1: sha1
+ };
+ let queryValues = {
+ projectId: projectId,
+ recursive: recursive,
+ fileName: fileName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "729f6437-6f92-44ec-8bee-273a7111063c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, GitInterfaces.TypeInfo.GitTreeRef, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
+ *
+ * @param {string} repositoryId - Repository Id.
+ * @param {string} sha1 - SHA1 hash of the tree object.
+ * @param {string} project - Project ID or project name
+ * @param {string} projectId - Project Id.
+ * @param {boolean} recursive - Search recursively. Include trees underneath this tree. Default is false.
+ * @param {string} fileName - Name to use if a .zip file is returned. Default is the object ID.
+ */
+ getTreeZip(repositoryId, sha1, project, projectId, recursive, fileName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId,
+ sha1: sha1
+ };
+ let queryValues = {
+ projectId: projectId,
+ recursive: recursive,
+ fileName: fileName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "git", "729f6437-6f92-44ec-8bee-273a7111063c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+GitApi.RESOURCE_AREA_ID = "4e080c62-fa21-4fbc-8fef-2a10a2b38049";
+exports.GitApi = GitApi;
+
+
+/***/ }),
+
+/***/ 4771:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const LocationsInterfaces = __nccwpck_require__(3215);
+class LocationsApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Locations-api', options);
+ }
+ /**
+ * This was copied and adapted from TeamFoundationConnectionService.Connect()
+ *
+ * @param {VSSInterfaces.ConnectOptions} connectOptions
+ * @param {number} lastChangeId - Obsolete 32-bit LastChangeId
+ * @param {number} lastChangeId64 - Non-truncated 64-bit LastChangeId
+ */
+ getConnectionData(connectOptions, lastChangeId, lastChangeId64) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ connectOptions: connectOptions,
+ lastChangeId: lastChangeId,
+ lastChangeId64: lastChangeId64,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "00d9565f-ed9c-4a06-9a50-00e7896ccab4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, LocationsInterfaces.TypeInfo.ConnectionData, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} areaId
+ * @param {string} enterpriseName
+ * @param {string} organizationName
+ */
+ getResourceArea(areaId, enterpriseName, organizationName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ areaId: areaId
+ };
+ let queryValues = {
+ enterpriseName: enterpriseName,
+ organizationName: organizationName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "e81700f7-3be2-46de-8624-2eb35882fcaa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} areaId
+ * @param {string} hostId
+ */
+ getResourceAreaByHost(areaId, hostId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (hostId == null) {
+ throw new TypeError('hostId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ areaId: areaId
+ };
+ let queryValues = {
+ hostId: hostId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "e81700f7-3be2-46de-8624-2eb35882fcaa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} enterpriseName
+ * @param {string} organizationName
+ */
+ getResourceAreas(enterpriseName, organizationName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ enterpriseName: enterpriseName,
+ organizationName: organizationName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "e81700f7-3be2-46de-8624-2eb35882fcaa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} hostId
+ */
+ getResourceAreasByHost(hostId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (hostId == null) {
+ throw new TypeError('hostId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ hostId: hostId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "e81700f7-3be2-46de-8624-2eb35882fcaa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} serviceType
+ * @param {string} identifier
+ */
+ deleteServiceDefinition(serviceType, identifier) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ serviceType: serviceType,
+ identifier: identifier
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "d810a47d-f4f4-4a62-a03f-fa1860585c4c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Finds a given service definition.
+ *
+ * @param {string} serviceType
+ * @param {string} identifier
+ * @param {boolean} allowFaultIn - If true, we will attempt to fault in a host instance mapping if in SPS.
+ * @param {boolean} previewFaultIn - If true, we will calculate and return a host instance mapping, but not persist it.
+ */
+ getServiceDefinition(serviceType, identifier, allowFaultIn, previewFaultIn) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ serviceType: serviceType,
+ identifier: identifier
+ };
+ let queryValues = {
+ allowFaultIn: allowFaultIn,
+ previewFaultIn: previewFaultIn,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "d810a47d-f4f4-4a62-a03f-fa1860585c4c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, LocationsInterfaces.TypeInfo.ServiceDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} serviceType
+ */
+ getServiceDefinitions(serviceType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ serviceType: serviceType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "d810a47d-f4f4-4a62-a03f-fa1860585c4c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, LocationsInterfaces.TypeInfo.ServiceDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {VSSInterfaces.VssJsonCollectionWrapperV} serviceDefinitions
+ */
+ updateServiceDefinitions(serviceDefinitions) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Location", "d810a47d-f4f4-4a62-a03f-fa1860585c4c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, serviceDefinitions, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.LocationsApi = LocationsApi;
+
+
+/***/ }),
+
+/***/ 2190:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const ManagementInterfaces = __nccwpck_require__(1012);
+class ManagementApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Management-api', options);
+ }
+ /**
+ * Delete the billing info for an organization.
+ *
+ * @param {string} organizationId
+ */
+ deleteBillingInfo(organizationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Default",
+ organizationId: organizationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "de45fbc6-60fd-46e2-95ef-490ad08d656a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete the meter usage history from Primary SU for an organization.
+ *
+ * @param {string} organizationId
+ */
+ deleteMeterUsageHistory(organizationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "MeterUsageHistory",
+ organizationId: organizationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "de45fbc6-60fd-46e2-95ef-490ad08d656a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the billing info for an organization.
+ *
+ * @param {string} organizationId - Organization ID to get billing info for.
+ */
+ getBillingInfo(organizationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Default",
+ organizationId: organizationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "de45fbc6-60fd-46e2-95ef-490ad08d656a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.BillingInfo, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Save the billing info for an organization.
+ *
+ * @param {ManagementInterfaces.BillingInfo} billingInfo
+ * @param {string} organizationId
+ */
+ saveBillingInfo(billingInfo, organizationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Default",
+ organizationId: organizationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "de45fbc6-60fd-46e2-95ef-490ad08d656a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, billingInfo, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all billable committers details, including those not matched with a VSID.
+ *
+ * @param {Date} billingDate - The date to query, or if not provided, today
+ */
+ getBillableCommitterDetails(billingDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Details",
+ };
+ let queryValues = {
+ billingDate: billingDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "e58d8091-3d07-48b1-9527-7d6295fd4081", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.BillableCommitterDetails, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getLastMeterUsage() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Last",
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "e58d8091-3d07-48b1-9527-7d6295fd4081", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.MeterUsage, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get commiters used when calculating billing information.
+ *
+ * @param {Date} billingDate - The date to query, or if not provided, today
+ */
+ getMeterUsage(billingDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Default",
+ };
+ let queryValues = {
+ billingDate: billingDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "e58d8091-3d07-48b1-9527-7d6295fd4081", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.MeterUsage, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ManagementInterfaces.MeterUsage} meterUsage
+ */
+ setBillingSnapshot(meterUsage) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "Default",
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "e58d8091-3d07-48b1-9527-7d6295fd4081", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, meterUsage, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the current status of Advanced Security for the organization
+ *
+ * @param {boolean} includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
+ */
+ getOrgEnablementStatus(includeAllProperties) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ includeAllProperties: includeAllProperties,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "d0c0450f-8882-46f4-a5a8-e48fea3095b0", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.AdvSecEnablementSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the status of Advanced Security for the organization
+ *
+ * @param {ManagementInterfaces.AdvSecEnablementSettingsUpdate} savedAdvSecEnablementStatus - The new status
+ */
+ updateOrgEnablementStatus(savedAdvSecEnablementStatus) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "d0c0450f-8882-46f4-a5a8-e48fea3095b0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, savedAdvSecEnablementStatus, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
+ *
+ */
+ getEstimatedOrgBillablePushers() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "10a9e9c3-89bf-4312-92ed-139ddbcd2e28", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the current status of Advanced Security for a project
+ *
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
+ */
+ getProjectEnablementStatus(project, includeAllProperties) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ includeAllProperties: includeAllProperties,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "6b9a4b47-5f2d-40f3-8286-b0152079074d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.AdvSecEnablementSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the status of Advanced Security for the project
+ *
+ * @param {ManagementInterfaces.AdvSecEnablementSettingsUpdate} savedAdvSecEnablementStatus - The new status
+ * @param {string} project - Project ID or project name
+ */
+ updateProjectEnablementStatus(savedAdvSecEnablementStatus, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "6b9a4b47-5f2d-40f3-8286-b0152079074d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, savedAdvSecEnablementStatus, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getEstimatedProjectBillablePushers(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "bf09cb40-ecf4-4496-8cf7-9ec60c64fd3e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Determine if Advanced Security is enabled for a repository
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repository - The name or ID of the repository
+ * @param {boolean} includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
+ */
+ getRepoEnablementStatus(project, repository, includeAllProperties) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repository: repository
+ };
+ let queryValues = {
+ includeAllProperties: includeAllProperties,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "d11a1c2b-b904-43dc-b970-bf42486262db", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ManagementInterfaces.TypeInfo.AdvSecEnablementStatus, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the enablement of Advanced Security for a repository
+ *
+ * @param {ManagementInterfaces.AdvSecEnablementStatusUpdate} savedAdvSecEnablementStatus - new status
+ * @param {string} project - Project ID or project name
+ * @param {string} repository - Name or ID of the repository
+ */
+ updateRepoAdvSecEnablementStatus(savedAdvSecEnablementStatus, project, repository) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repository: repository
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "d11a1c2b-b904-43dc-b970-bf42486262db", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, savedAdvSecEnablementStatus, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} repository - The name or ID of the repository
+ */
+ getEstimatedRepoBillableCommitters(project, repository) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repository: repository
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "Management", "b60f1ebf-ae77-4557-bd7f-ae3d5598dd1f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.ManagementApi = ManagementApi;
+
+
+/***/ }),
+
+/***/ 8221:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const NotificationInterfaces = __nccwpck_require__(269);
+const VSSInterfaces = __nccwpck_require__(4498);
+class NotificationApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Notification-api', options);
+ }
+ /**
+ * @param {NotificationInterfaces.BatchNotificationOperation} operation
+ */
+ performBatchNotificationOperations(operation) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "8f3c6ab2-5bae-4537-b16e-f84e0955599e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, operation, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of diagnostic logs for this service.
+ *
+ * @param {string} source - ID specifying which type of logs to check diagnostics for.
+ * @param {string} entryId - The ID of the specific log to query for.
+ * @param {Date} startTime - Start time for the time range to query in.
+ * @param {Date} endTime - End time for the time range to query in.
+ */
+ listLogs(source, entryId, startTime, endTime) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ source: source,
+ entryId: entryId
+ };
+ let queryValues = {
+ startTime: startTime,
+ endTime: endTime,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "991842f3-eb16-4aea-ac81-81353ef2b75c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.INotificationDiagnosticLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the diagnostics settings for a subscription.
+ *
+ * @param {string} subscriptionId - The id of the notifications subscription.
+ */
+ getSubscriptionDiagnostics(subscriptionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriptionId: subscriptionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "20f1929d-4be7-4c2e-a74e-d47640ff3418", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.SubscriptionDiagnostics, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the diagnostics settings for a subscription.
+ *
+ * @param {NotificationInterfaces.UpdateSubscripitonDiagnosticsParameters} updateParameters
+ * @param {string} subscriptionId - The id of the notifications subscription.
+ */
+ updateSubscriptionDiagnostics(updateParameters, subscriptionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriptionId: subscriptionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "20f1929d-4be7-4c2e-a74e-d47640ff3418", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.SubscriptionDiagnostics, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Publish an event. This request must be directed to the service "extmgmt".
+ *
+ * @param {VSSInterfaces.VssNotificationEvent} notificationEvent
+ */
+ publishEvent(notificationEvent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "14c57b7a-c0e6-4555-9f51-e067188fdd8e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, notificationEvent, options);
+ let ret = this.formatResponse(res.result, VSSInterfaces.TypeInfo.VssNotificationEvent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Tranform a notification event.
+ *
+ * @param {NotificationInterfaces.EventTransformRequest} transformRequest - Object to be transformed.
+ */
+ transformEvent(transformRequest) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "9463a800-1b44-450e-9083-f948ea174b45", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, transformRequest, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NotificationInterfaces.FieldValuesQuery} inputValuesQuery
+ * @param {string} eventType
+ */
+ queryEventTypes(inputValuesQuery, eventType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ eventType: eventType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "b5bbdd21-c178-4398-b6db-0166d910028a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, inputValuesQuery, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationEventField, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a specific event type.
+ *
+ * @param {string} eventType - The ID of the event type.
+ */
+ getEventType(eventType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ eventType: eventType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationEventType, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * List available event types for this service. Optionally filter by only event types for the specified publisher.
+ *
+ * @param {string} publisherId - Limit to event types for this publisher
+ */
+ listEventTypes(publisherId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ publisherId: publisherId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationEventType, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} notificationId
+ */
+ getNotificationReasons(notificationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ notificationId: notificationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "19824fa9-1c76-40e6-9cce-cf0b9ca1cb60", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationReason, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} notificationIds
+ */
+ listNotificationReasons(notificationIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ notificationIds: notificationIds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "19824fa9-1c76-40e6-9cce-cf0b9ca1cb60", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationReason, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getSettings() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "cbe076d8-2803-45ff-8d8d-44653686ea2a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationAdminSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NotificationInterfaces.NotificationAdminSettingsUpdateParameters} updateParameters
+ */
+ updateSettings(updateParameters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "cbe076d8-2803-45ff-8d8d-44653686ea2a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationAdminSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get delivery preferences of a notifications subscriber.
+ *
+ * @param {string} subscriberId - ID of the user or group.
+ */
+ getSubscriber(subscriberId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriberId: subscriberId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "4d5caff1-25ba-430b-b808-7a1f352cc197", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscriber, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update delivery preferences of a notifications subscriber.
+ *
+ * @param {NotificationInterfaces.NotificationSubscriberUpdateParameters} updateParameters
+ * @param {string} subscriberId - ID of the user or group.
+ */
+ updateSubscriber(updateParameters, subscriberId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriberId: subscriberId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "4d5caff1-25ba-430b-b808-7a1f352cc197", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscriber, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions.
+ *
+ * @param {NotificationInterfaces.SubscriptionQuery} subscriptionQuery
+ */
+ querySubscriptions(subscriptionQuery) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "6864db85-08c0-4006-8e8e-cc1bebe31675", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, subscriptionQuery, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscription, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a new subscription.
+ *
+ * @param {NotificationInterfaces.NotificationSubscriptionCreateParameters} createParameters
+ */
+ createSubscription(createParameters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "70f911d6-abac-488c-85b3-a206bf57e165", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, createParameters, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscription, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a subscription.
+ *
+ * @param {string} subscriptionId
+ */
+ deleteSubscription(subscriptionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriptionId: subscriptionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "70f911d6-abac-488c-85b3-a206bf57e165", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a notification subscription by its ID.
+ *
+ * @param {string} subscriptionId
+ * @param {NotificationInterfaces.SubscriptionQueryFlags} queryFlags
+ */
+ getSubscription(subscriptionId, queryFlags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriptionId: subscriptionId
+ };
+ let queryValues = {
+ queryFlags: queryFlags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "70f911d6-abac-488c-85b3-a206bf57e165", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscription, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of notification subscriptions, either by subscription IDs or by all subscriptions for a given user or group.
+ *
+ * @param {string} targetId - User or Group ID
+ * @param {string[]} ids - List of subscription IDs
+ * @param {NotificationInterfaces.SubscriptionQueryFlags} queryFlags
+ */
+ listSubscriptions(targetId, ids, queryFlags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ targetId: targetId,
+ ids: ids && ids.join(","),
+ queryFlags: queryFlags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "70f911d6-abac-488c-85b3-a206bf57e165", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscription, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more.
+ *
+ * @param {NotificationInterfaces.NotificationSubscriptionUpdateParameters} updateParameters
+ * @param {string} subscriptionId
+ */
+ updateSubscription(updateParameters, subscriptionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriptionId: subscriptionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "70f911d6-abac-488c-85b3-a206bf57e165", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscription, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get available subscription templates.
+ *
+ */
+ getSubscriptionTemplates() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "fa5d24ba-7484-4f3d-888d-4ec6b1974082", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, NotificationInterfaces.TypeInfo.NotificationSubscriptionTemplate, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Publish an event. This request is only for the Token service since it's a deploy only service.
+ *
+ * @param {VSSInterfaces.VssNotificationEvent} notificationEvent
+ */
+ publishTokenEvent(notificationEvent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "31dc86a2-67e8-4452-99a4-2b301ba28291", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, notificationEvent, options);
+ let ret = this.formatResponse(res.result, VSSInterfaces.TypeInfo.VssNotificationEvent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions.
+ *
+ * @param {NotificationInterfaces.SubscriptionUserSettings} userSettings
+ * @param {string} subscriptionId
+ * @param {string} userId - ID of the user
+ */
+ updateSubscriptionUserSettings(userSettings, subscriptionId, userId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ subscriptionId: subscriptionId,
+ userId: userId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "notification", "ed5a3dff-aeb5-41b1-b4f7-89e66e58b62e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, userSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.NotificationApi = NotificationApi;
+
+
+/***/ }),
+
+/***/ 266:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const PolicyInterfaces = __nccwpck_require__(8555);
+class PolicyApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Policy-api', options);
+ }
+ /**
+ * Create a policy configuration of a given policy type.
+ *
+ * @param {PolicyInterfaces.PolicyConfiguration} configuration - The policy configuration to create.
+ * @param {string} project - Project ID or project name
+ */
+ createPolicyConfiguration(configuration, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "dad91cbe-d183-45f8-9c6e-9c1164472121", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, configuration, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a policy configuration by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} configurationId - ID of the policy configuration to delete.
+ */
+ deletePolicyConfiguration(project, configurationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ configurationId: configurationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "dad91cbe-d183-45f8-9c6e-9c1164472121", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a policy configuration by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} configurationId - ID of the policy configuration
+ */
+ getPolicyConfiguration(project, configurationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ configurationId: configurationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "dad91cbe-d183-45f8-9c6e-9c1164472121", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of policy configurations in a project.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} scope - [Provided for legacy reasons] The scope on which a subset of policies is defined.
+ * @param {string} policyType - Filter returned policies to only this type
+ */
+ getPolicyConfigurations(project, scope, policyType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ scope: scope,
+ policyType: policyType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "dad91cbe-d183-45f8-9c6e-9c1164472121", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyConfiguration, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a policy configuration by its ID.
+ *
+ * @param {PolicyInterfaces.PolicyConfiguration} configuration - The policy configuration to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} configurationId - ID of the existing policy configuration to be updated.
+ */
+ updatePolicyConfiguration(configuration, project, configurationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ configurationId: configurationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "dad91cbe-d183-45f8-9c6e-9c1164472121", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, configuration, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the present evaluation state of a policy.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} evaluationId - ID of the policy evaluation to be retrieved.
+ */
+ getPolicyEvaluation(project, evaluationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ evaluationId: evaluationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "46aecb7a-5d2c-4647-897b-0209505a9fe4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyEvaluationRecord, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Requeue the policy evaluation.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} evaluationId - ID of the policy evaluation to be retrieved.
+ */
+ requeuePolicyEvaluation(project, evaluationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ evaluationId: evaluationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "46aecb7a-5d2c-4647-897b-0209505a9fe4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, null, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyEvaluationRecord, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves a list of all the policy evaluation statuses for a specific pull request.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} artifactId - A string which uniquely identifies the target of a policy evaluation.
+ * @param {boolean} includeNotApplicable - Some policies might determine that they do not apply to a specific pull request. Setting this parameter to true will return evaluation records even for policies which don't apply to this pull request.
+ * @param {number} top - The number of policy evaluation records to retrieve.
+ * @param {number} skip - The number of policy evaluation records to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
+ */
+ getPolicyEvaluations(project, artifactId, includeNotApplicable, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactId == null) {
+ throw new TypeError('artifactId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ artifactId: artifactId,
+ includeNotApplicable: includeNotApplicable,
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "c23ddff5-229c-4d04-a80b-0fdce9f360c8", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyEvaluationRecord, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a specific revision of a given policy by ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} configurationId - The policy configuration ID.
+ * @param {number} revisionId - The revision ID.
+ */
+ getPolicyConfigurationRevision(project, configurationId, revisionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ configurationId: configurationId,
+ revisionId: revisionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "fe1e68a2-60d3-43cb-855b-85e41ae97c95", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all revisions for a given policy.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} configurationId - The policy configuration ID.
+ * @param {number} top - The number of revisions to retrieve.
+ * @param {number} skip - The number of revisions to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
+ */
+ getPolicyConfigurationRevisions(project, configurationId, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ configurationId: configurationId
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "fe1e68a2-60d3-43cb-855b-85e41ae97c95", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, PolicyInterfaces.TypeInfo.PolicyConfiguration, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a specific policy type by ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} typeId - The policy ID.
+ */
+ getPolicyType(project, typeId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ typeId: typeId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "44096322-2d3d-466a-bb30-d1b7de69f61f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve all available policy types.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getPolicyTypes(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "policy", "44096322-2d3d-466a-bb30-d1b7de69f61f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+PolicyApi.RESOURCE_AREA_ID = "fb13a388-40dd-4a04-b530-013a739c72ef";
+exports.PolicyApi = PolicyApi;
+
+
+/***/ }),
+
+/***/ 8101:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+* ---------------------------------------------------------
+* Copyright(C) Microsoft Corporation. All rights reserved.
+* ---------------------------------------------------------
+*
+* ---------------------------------------------------------
+* Generated file, DO NOT EDIT
+* ---------------------------------------------------------
+*/
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const ProfileInterfaces = __nccwpck_require__(879);
+class ProfileApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Profile-api', options);
+ }
+ /**
+ * @param {string} id
+ * @param {string} descriptor
+ */
+ deleteProfileAttribute(id, descriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ descriptor: descriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.2", "Profile", "1392b6ac-d511-492e-af5b-2263e5545a5d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} id
+ * @param {string} descriptor
+ */
+ getProfileAttribute(id, descriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ descriptor: descriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.2", "Profile", "1392b6ac-d511-492e-af5b-2263e5545a5d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.ProfileAttribute, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} id
+ * @param {string} partition
+ * @param {string} modifiedSince
+ * @param {string} modifiedAfterRevision
+ * @param {boolean} withCoreAttributes
+ * @param {string} coreAttributes
+ */
+ getProfileAttributes(id, partition, modifiedSince, modifiedAfterRevision, withCoreAttributes, coreAttributes) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ partition: partition,
+ modifiedSince: modifiedSince,
+ modifiedAfterRevision: modifiedAfterRevision,
+ withCoreAttributes: withCoreAttributes,
+ coreAttributes: coreAttributes,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.2", "Profile", "1392b6ac-d511-492e-af5b-2263e5545a5d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.ProfileAttribute, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} container
+ * @param {string} id
+ * @param {string} descriptor
+ */
+ setProfileAttribute(container, id, descriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ descriptor: descriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.2", "Profile", "1392b6ac-d511-492e-af5b-2263e5545a5d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, container, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {VSSInterfaces.VssJsonCollectionWrapperV[]>} attributesCollection
+ * @param {string} id
+ */
+ setProfileAttributes(attributesCollection, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.2", "Profile", "1392b6ac-d511-492e-af5b-2263e5545a5d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, attributesCollection, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} id
+ * @param {string} size
+ * @param {string} format
+ */
+ getAvatar(id, size, format) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ size: size,
+ format: format,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "67436615-b382-462a-b659-5367a492fb3c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.Avatar, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} container
+ * @param {string} id
+ * @param {string} size
+ * @param {string} format
+ * @param {string} displayName
+ */
+ getAvatarPreview(container, id, size, format, displayName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ size: size,
+ format: format,
+ displayName: displayName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "67436615-b382-462a-b659-5367a492fb3c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, container, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.Avatar, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} id
+ */
+ resetAvatar(id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "67436615-b382-462a-b659-5367a492fb3c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} container
+ * @param {string} id
+ */
+ setAvatar(container, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "67436615-b382-462a-b659-5367a492fb3c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, container, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Lookup up country/region based on provided IPv4, null if using the remote IPv4 address.
+ *
+ * @param {string} ipaddress - IPv4 address to be used for reverse lookup, null if using RemoteIPAddress in request context
+ */
+ getGeoRegion(ipaddress) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ ipaddress: ipaddress,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "3bcda9c0-3078-48a5-a1e0-83bd05931ad0", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create profile
+ *
+ * @param {ProfileInterfaces.CreateProfileContext} createProfileContext - Context for profile creation
+ * @param {boolean} autoCreate - Create profile automatically
+ */
+ createProfile(createProfileContext, autoCreate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ autoCreate: autoCreate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.3", "Profile", "f83735dc-483f-4238-a291-d45f6080a9af", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, createProfileContext, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.Profile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} id
+ * @param {boolean} details
+ * @param {boolean} withAttributes
+ * @param {string} partition
+ * @param {string} coreAttributes
+ * @param {boolean} forceRefresh
+ */
+ getProfile(id, details, withAttributes, partition, coreAttributes, forceRefresh) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ details: details,
+ withAttributes: withAttributes,
+ partition: partition,
+ coreAttributes: coreAttributes,
+ forceRefresh: forceRefresh,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.3", "Profile", "f83735dc-483f-4238-a291-d45f6080a9af", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.Profile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update profile
+ *
+ * @param {ProfileInterfaces.Profile} profile - Update profile
+ * @param {string} id - Profile ID
+ */
+ updateProfile(profile, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.3", "Profile", "f83735dc-483f-4238-a291-d45f6080a9af", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, profile, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getRegions() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "92d8d1c9-26b8-4774-a929-d640a73da524", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getSupportedLcids() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "d5bd1aa6-c269-4bcd-ad32-75fa17475584", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {boolean} includeAvatar
+ */
+ getUserDefaults(includeAvatar) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ includeAvatar: includeAvatar,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "b583a356-1da7-4237-9f4c-1deb2edbc7e8", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.Profile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} id
+ */
+ refreshUserDefaults(id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "Profile", "b583a356-1da7-4237-9f4c-1deb2edbc7e8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, options);
+ let ret = this.formatResponse(res.result, ProfileInterfaces.TypeInfo.Profile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.ProfileApi = ProfileApi;
+
+
+/***/ }),
+
+/***/ 1682:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const ProjectAnalysisInterfaces = __nccwpck_require__(4323);
+class ProjectAnalysisApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-ProjectAnalysis-api', options);
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ */
+ getProjectLanguageAnalytics(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "projectanalysis", "5b02a779-1867-433f-90b7-d23ed5e33e57", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProjectAnalysisInterfaces.TypeInfo.ProjectLanguageAnalytics, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {Date} fromDate
+ * @param {ProjectAnalysisInterfaces.AggregationType} aggregationType
+ */
+ getProjectActivityMetrics(project, fromDate, aggregationType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (fromDate == null) {
+ throw new TypeError('fromDate can not be null or undefined');
+ }
+ if (aggregationType == null) {
+ throw new TypeError('aggregationType can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ fromDate: fromDate,
+ aggregationType: aggregationType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "projectanalysis", "e40ae584-9ea6-4f06-a7c7-6284651b466b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProjectAnalysisInterfaces.TypeInfo.ProjectActivityMetrics, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves git activity metrics for repositories matching a specified criteria.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {Date} fromDate - Date from which, the trends are to be fetched.
+ * @param {ProjectAnalysisInterfaces.AggregationType} aggregationType - Bucket size on which, trends are to be aggregated.
+ * @param {number} skip - The number of repositories to ignore.
+ * @param {number} top - The number of repositories for which activity metrics are to be retrieved.
+ */
+ getGitRepositoriesActivityMetrics(project, fromDate, aggregationType, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (fromDate == null) {
+ throw new TypeError('fromDate can not be null or undefined');
+ }
+ if (aggregationType == null) {
+ throw new TypeError('aggregationType can not be null or undefined');
+ }
+ if (skip == null) {
+ throw new TypeError('skip can not be null or undefined');
+ }
+ if (top == null) {
+ throw new TypeError('top can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ fromDate: fromDate,
+ aggregationType: aggregationType,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "projectanalysis", "df7fbbca-630a-40e3-8aa3-7a3faf66947e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProjectAnalysisInterfaces.TypeInfo.RepositoryActivityMetrics, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} repositoryId
+ * @param {Date} fromDate
+ * @param {ProjectAnalysisInterfaces.AggregationType} aggregationType
+ */
+ getRepositoryActivityMetrics(project, repositoryId, fromDate, aggregationType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (fromDate == null) {
+ throw new TypeError('fromDate can not be null or undefined');
+ }
+ if (aggregationType == null) {
+ throw new TypeError('aggregationType can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ repositoryId: repositoryId
+ };
+ let queryValues = {
+ fromDate: fromDate,
+ aggregationType: aggregationType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "projectanalysis", "df7fbbca-630a-40e3-8aa3-7a3faf66947e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ProjectAnalysisInterfaces.TypeInfo.RepositoryActivityMetrics, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+ProjectAnalysisApi.RESOURCE_AREA_ID = "7658fa33-b1bf-4580-990f-fac5896773d3";
+exports.ProjectAnalysisApi = ProjectAnalysisApi;
+
+
+/***/ }),
+
+/***/ 3075:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const ReleaseInterfaces = __nccwpck_require__(7421);
+class ReleaseApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Release-api', options);
+ }
+ /**
+ * Returns the artifact details that automation agent requires
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ */
+ getAgentArtifactDefinitions(project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "f2571c27-bf50-4938-b396-32d109ddef26", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.AgentArtifactDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of approvals
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} assignedToFilter - Approvals assigned to this user.
+ * @param {ReleaseInterfaces.ApprovalStatus} statusFilter - Approvals with this status. Default is 'pending'.
+ * @param {number[]} releaseIdsFilter - Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4.
+ * @param {ReleaseInterfaces.ApprovalType} typeFilter - Approval with this type.
+ * @param {number} top - Number of approvals to get. Default is 50.
+ * @param {number} continuationToken - Gets the approvals after the continuation token provided.
+ * @param {ReleaseInterfaces.ReleaseQueryOrder} queryOrder - Gets the results in the defined order of created approvals. Default is 'descending'.
+ * @param {boolean} includeMyGroupApprovals - 'true' to include my group approvals. Default is 'false'.
+ */
+ getApprovals(project, assignedToFilter, statusFilter, releaseIdsFilter, typeFilter, top, continuationToken, queryOrder, includeMyGroupApprovals) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ assignedToFilter: assignedToFilter,
+ statusFilter: statusFilter,
+ releaseIdsFilter: releaseIdsFilter && releaseIdsFilter.join(","),
+ typeFilter: typeFilter,
+ top: top,
+ continuationToken: continuationToken,
+ queryOrder: queryOrder,
+ includeMyGroupApprovals: includeMyGroupApprovals,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Release", "b47c6458-e73b-47cb-a770-4df1e8813a91", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseApproval, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get approval history.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} approvalStepId - Id of the approval.
+ */
+ getApprovalHistory(project, approvalStepId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ approvalStepId: approvalStepId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Release", "250c7158-852e-4130-a00f-a0cce9b72d05", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseApproval, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get an approval.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} approvalId - Id of the approval.
+ * @param {boolean} includeHistory - 'true' to include history of the approval. Default is 'false'.
+ */
+ getApproval(project, approvalId, includeHistory) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ approvalId: approvalId
+ };
+ let queryValues = {
+ includeHistory: includeHistory,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Release", "9328e074-59fb-465a-89d9-b09c82ee5109", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseApproval, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update status of an approval
+ *
+ * @param {ReleaseInterfaces.ReleaseApproval} approval - ReleaseApproval object having status, approver and comments.
+ * @param {string} project - Project ID or project name
+ * @param {number} approvalId - Id of the approval.
+ */
+ updateReleaseApproval(approval, project, approvalId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ approvalId: approvalId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Release", "9328e074-59fb-465a-89d9-b09c82ee5109", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, approval, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseApproval, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ReleaseInterfaces.ReleaseApproval[]} approvals
+ * @param {string} project - Project ID or project name
+ */
+ updateReleaseApprovals(approvals, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Release", "c957584a-82aa-4131-8222-6d47f78bfa7a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, approvals, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseApproval, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a task attachment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of the release environment.
+ * @param {number} attemptId - Attempt number of deployment.
+ * @param {string} timelineId - Timeline Id of the task.
+ * @param {string} recordId - Record Id of attachment.
+ * @param {string} type - Type of the attachment.
+ * @param {string} name - Name of the attachment.
+ */
+ getTaskAttachmentContent(project, releaseId, environmentId, attemptId, timelineId, recordId, type, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ attemptId: attemptId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c4071f6d-3697-46ca-858e-8b10ff09e52f", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a release task attachment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of the release environment.
+ * @param {number} attemptId - Attempt number of deployment.
+ * @param {string} planId - Plan Id of the deploy phase.
+ * @param {string} timelineId - Timeline Id of the task.
+ * @param {string} recordId - Record Id of attachment.
+ * @param {string} type - Type of the attachment.
+ * @param {string} name - Name of the attachment.
+ */
+ getReleaseTaskAttachmentContent(project, releaseId, environmentId, attemptId, planId, timelineId, recordId, type, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ attemptId: attemptId,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "60b86efb-7b8c-4853-8f9f-aa142b77b479", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the task attachments.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of the release environment.
+ * @param {number} attemptId - Attempt number of deployment.
+ * @param {string} timelineId - Timeline Id of the task.
+ * @param {string} type - Type of the attachment.
+ */
+ getTaskAttachments(project, releaseId, environmentId, attemptId, timelineId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ attemptId: attemptId,
+ timelineId: timelineId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "214111ee-2415-4df2-8ed2-74417f7d61f9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseTaskAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the release task attachments.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of the release environment.
+ * @param {number} attemptId - Attempt number of deployment.
+ * @param {string} planId - Plan Id of the deploy phase.
+ * @param {string} type - Type of the attachment.
+ */
+ getReleaseTaskAttachments(project, releaseId, environmentId, attemptId, planId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ attemptId: attemptId,
+ planId: planId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "a4d06688-0dfa-4895-82a5-f43ec9452306", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseTaskAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} artifactType
+ * @param {string} sourceId
+ * @param {string} artifactVersionId
+ * @param {string} project - Project ID or project name
+ */
+ getAutoTriggerIssues(artifactType, sourceId, artifactVersionId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactType == null) {
+ throw new TypeError('artifactType can not be null or undefined');
+ }
+ if (sourceId == null) {
+ throw new TypeError('sourceId can not be null or undefined');
+ }
+ if (artifactVersionId == null) {
+ throw new TypeError('artifactVersionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ artifactType: artifactType,
+ sourceId: sourceId,
+ artifactVersionId: artifactVersionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c1a68497-69da-40fb-9423-cab19cfeeca9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.AutoTriggerIssue, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a badge that indicates the status of the most recent deployment for an environment.
+ *
+ * @param {string} projectId - The ID of the Project.
+ * @param {number} releaseDefinitionId - The ID of the Release Definition.
+ * @param {number} environmentId - The ID of the Environment.
+ * @param {string} branchName - The name of the branch.
+ */
+ getDeploymentBadge(projectId, releaseDefinitionId, environmentId, branchName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ projectId: projectId,
+ releaseDefinitionId: releaseDefinitionId,
+ environmentId: environmentId,
+ branchName: branchName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "1a60a35d-b8c9-45fb-bf67-da0829711147", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} baseReleaseId
+ * @param {number} top
+ * @param {string} artifactAlias
+ */
+ getReleaseChanges(project, releaseId, baseReleaseId, top, artifactAlias) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ let queryValues = {
+ baseReleaseId: baseReleaseId,
+ '$top': top,
+ artifactAlias: artifactAlias,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "8dcf9fe9-ca37-4113-8ee1-37928e98407c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Change, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId
+ * @param {string[]} propertyFilters
+ */
+ getDefinitionEnvironments(project, taskGroupId, propertyFilters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ taskGroupId: taskGroupId,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "12b5d21a-f54c-430e-a8c1-7515d196890e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a release definition
+ *
+ * @param {ReleaseInterfaces.ReleaseDefinition} releaseDefinition - release definition object to create.
+ * @param {string} project - Project ID or project name
+ */
+ createReleaseDefinition(releaseDefinition, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, releaseDefinition, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a release definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the release definition.
+ * @param {string} comment - Comment for deleting a release definition.
+ * @param {boolean} forceDelete - 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'.
+ */
+ deleteReleaseDefinition(project, definitionId, comment, forceDelete) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ comment: comment,
+ forceDelete: forceDelete,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a release definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the release definition.
+ * @param {string[]} propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definition will contain values for the specified property Ids (if they exist). If not set, properties will not be included.
+ */
+ getReleaseDefinition(project, definitionId, propertyFilters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get release definition of a given revision.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the release definition.
+ * @param {number} revision - Revision number of the release definition.
+ */
+ getReleaseDefinitionRevision(project, definitionId, revision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (revision == null) {
+ throw new TypeError('revision can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ let queryValues = {
+ revision: revision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of release definitions.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} searchText - Get release definitions with names containing searchText.
+ * @param {ReleaseInterfaces.ReleaseDefinitionExpands} expand - The properties that should be expanded in the list of Release definitions.
+ * @param {string} artifactType - Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild.
+ * @param {string} artifactSourceId - Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions.
+ * @param {number} top - Number of release definitions to get.
+ * @param {string} continuationToken - Gets the release definitions after the continuation token provided.
+ * @param {ReleaseInterfaces.ReleaseDefinitionQueryOrder} queryOrder - Gets the results in the defined order. Default is 'IdAscending'.
+ * @param {string} path - Gets the release definitions under the specified path.
+ * @param {boolean} isExactNameMatch - 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'.
+ * @param {string[]} tagFilter - A comma-delimited list of tags. Only release definitions with these tags will be returned.
+ * @param {string[]} propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definitions will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release Definition from results irrespective of whether it has property set or not.
+ * @param {string[]} definitionIdFilter - A comma-delimited list of release definitions to retrieve.
+ * @param {boolean} isDeleted - 'true' to get release definitions that has been deleted. Default is 'false'
+ * @param {boolean} searchTextContainsFolderName - 'true' to get the release definitions under the folder with name as specified in searchText. Default is 'false'.
+ */
+ getReleaseDefinitions(project, searchText, expand, artifactType, artifactSourceId, top, continuationToken, queryOrder, path, isExactNameMatch, tagFilter, propertyFilters, definitionIdFilter, isDeleted, searchTextContainsFolderName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ searchText: searchText,
+ '$expand': expand,
+ artifactType: artifactType,
+ artifactSourceId: artifactSourceId,
+ '$top': top,
+ continuationToken: continuationToken,
+ queryOrder: queryOrder,
+ path: path,
+ isExactNameMatch: isExactNameMatch,
+ tagFilter: tagFilter && tagFilter.join(","),
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ definitionIdFilter: definitionIdFilter && definitionIdFilter.join(","),
+ isDeleted: isDeleted,
+ searchTextContainsFolderName: searchTextContainsFolderName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Undelete a release definition.
+ *
+ * @param {ReleaseInterfaces.ReleaseDefinitionUndeleteParameter} releaseDefinitionUndeleteParameter - Object for undelete release definition.
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the release definition to be undeleted
+ */
+ undeleteReleaseDefinition(releaseDefinitionUndeleteParameter, project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, releaseDefinitionUndeleteParameter, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a release definition.
+ *
+ * @param {ReleaseInterfaces.ReleaseDefinition} releaseDefinition - Release definition object to update.
+ * @param {string} project - Project ID or project name
+ */
+ updateReleaseDefinition(releaseDefinition, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "d8f96f24-8ea7-4cb6-baab-2df8fc515665", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, releaseDefinition, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId
+ * @param {number} definitionEnvironmentId
+ * @param {string} createdBy
+ * @param {Date} minModifiedTime
+ * @param {Date} maxModifiedTime
+ * @param {ReleaseInterfaces.DeploymentStatus} deploymentStatus
+ * @param {ReleaseInterfaces.DeploymentOperationStatus} operationStatus
+ * @param {boolean} latestAttemptsOnly
+ * @param {ReleaseInterfaces.ReleaseQueryOrder} queryOrder
+ * @param {number} top
+ * @param {number} continuationToken
+ * @param {string} createdFor
+ * @param {Date} minStartedTime
+ * @param {Date} maxStartedTime
+ * @param {string} sourceBranch
+ */
+ getDeployments(project, definitionId, definitionEnvironmentId, createdBy, minModifiedTime, maxModifiedTime, deploymentStatus, operationStatus, latestAttemptsOnly, queryOrder, top, continuationToken, createdFor, minStartedTime, maxStartedTime, sourceBranch) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ definitionId: definitionId,
+ definitionEnvironmentId: definitionEnvironmentId,
+ createdBy: createdBy,
+ minModifiedTime: minModifiedTime,
+ maxModifiedTime: maxModifiedTime,
+ deploymentStatus: deploymentStatus,
+ operationStatus: operationStatus,
+ latestAttemptsOnly: latestAttemptsOnly,
+ queryOrder: queryOrder,
+ '$top': top,
+ continuationToken: continuationToken,
+ createdFor: createdFor,
+ minStartedTime: minStartedTime,
+ maxStartedTime: maxStartedTime,
+ sourceBranch: sourceBranch,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "b005ef73-cddc-448e-9ba2-5193bf36b19f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Deployment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ReleaseInterfaces.DeploymentQueryParameters} queryParameters
+ * @param {string} project - Project ID or project name
+ */
+ getDeploymentsForMultipleEnvironments(queryParameters, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "b005ef73-cddc-448e-9ba2-5193bf36b19f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, queryParameters, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Deployment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a release environment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of the release environment.
+ * @param {ReleaseInterfaces.ReleaseEnvironmentExpands} expand - A property that should be expanded in the environment.
+ */
+ getReleaseEnvironment(project, releaseId, environmentId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "Release", "a7e426b1-03dc-48af-9dfe-c98bac612dcb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseEnvironment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the status of a release environment
+ *
+ * @param {ReleaseInterfaces.ReleaseEnvironmentUpdateMetadata} environmentUpdateData - Environment update meta data.
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of release environment.
+ */
+ updateReleaseEnvironment(environmentUpdateData, project, releaseId, environmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.7", "Release", "a7e426b1-03dc-48af-9dfe-c98bac612dcb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, environmentUpdateData, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseEnvironment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a definition environment template
+ *
+ * @param {ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate} template - Definition environment template to create
+ * @param {string} project - Project ID or project name
+ */
+ createDefinitionEnvironmentTemplate(template, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "6b03b696-824e-4479-8eb2-6644a51aba89", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, template, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinitionEnvironmentTemplate, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a definition environment template
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} templateId - Id of the definition environment template
+ */
+ deleteDefinitionEnvironmentTemplate(project, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (templateId == null) {
+ throw new TypeError('templateId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ templateId: templateId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "6b03b696-824e-4479-8eb2-6644a51aba89", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a definition environment template
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} templateId - Id of the definition environment template
+ */
+ getDefinitionEnvironmentTemplate(project, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (templateId == null) {
+ throw new TypeError('templateId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ templateId: templateId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "6b03b696-824e-4479-8eb2-6644a51aba89", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinitionEnvironmentTemplate, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of definition environment templates
+ *
+ * @param {string} project - Project ID or project name
+ * @param {boolean} isDeleted - 'true' to get definition environment templates that have been deleted. Default is 'false'
+ */
+ listDefinitionEnvironmentTemplates(project, isDeleted) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ isDeleted: isDeleted,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "6b03b696-824e-4479-8eb2-6644a51aba89", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinitionEnvironmentTemplate, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Undelete a release definition environment template.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} templateId - Id of the definition environment template to be undeleted
+ */
+ undeleteReleaseDefinitionEnvironmentTemplate(project, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (templateId == null) {
+ throw new TypeError('templateId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ templateId: templateId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "Release", "6b03b696-824e-4479-8eb2-6644a51aba89", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, null, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinitionEnvironmentTemplate, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ReleaseInterfaces.FavoriteItem[]} favoriteItems
+ * @param {string} project - Project ID or project name
+ * @param {string} scope
+ * @param {string} identityId
+ */
+ createFavorites(favoriteItems, project, scope, identityId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ scope: scope
+ };
+ let queryValues = {
+ identityId: identityId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "938f7222-9acb-48fe-b8a3-4eda04597171", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, favoriteItems, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} scope
+ * @param {string} identityId
+ * @param {string} favoriteItemIds
+ */
+ deleteFavorites(project, scope, identityId, favoriteItemIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ scope: scope
+ };
+ let queryValues = {
+ identityId: identityId,
+ favoriteItemIds: favoriteItemIds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "938f7222-9acb-48fe-b8a3-4eda04597171", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} scope
+ * @param {string} identityId
+ */
+ getFavorites(project, scope, identityId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ scope: scope
+ };
+ let queryValues = {
+ identityId: identityId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "938f7222-9acb-48fe-b8a3-4eda04597171", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} flightName
+ */
+ getFlightAssignments(flightName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ flightName: flightName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "409d301f-3046-46f3-beb9-4357fbce0a8c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new folder.
+ *
+ * @param {ReleaseInterfaces.Folder} folder - folder.
+ * @param {string} project - Project ID or project name
+ * @param {string} path - Path of the folder.
+ */
+ createFolder(folder, project, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ path: path
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "f7ddf76d-ce0c-4d68-94ff-becaec5d9dea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, folder, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Folder, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a definition folder for given folder name and path and all it's existing definitions.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} path - Path of the folder to delete.
+ */
+ deleteFolder(project, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ path: path
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "f7ddf76d-ce0c-4d68-94ff-becaec5d9dea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets folders.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} path - Path of the folder.
+ * @param {ReleaseInterfaces.FolderPathQueryOrder} queryOrder - Gets the results in the defined order. Default is 'None'.
+ */
+ getFolders(project, path, queryOrder) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ path: path
+ };
+ let queryValues = {
+ queryOrder: queryOrder,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "f7ddf76d-ce0c-4d68-94ff-becaec5d9dea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Folder, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates an existing folder at given existing path.
+ *
+ * @param {ReleaseInterfaces.Folder} folder - folder.
+ * @param {string} project - Project ID or project name
+ * @param {string} path - Path of the folder to update.
+ */
+ updateFolder(folder, project, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ path: path
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "f7ddf76d-ce0c-4d68-94ff-becaec5d9dea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, folder, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Folder, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the gate for a deployment.
+ *
+ * @param {ReleaseInterfaces.GateUpdateMetadata} gateUpdateMetadata - Metadata to patch the Release Gates.
+ * @param {string} project - Project ID or project name
+ * @param {number} gateStepId - Gate step Id.
+ */
+ updateGates(gateUpdateMetadata, project, gateStepId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ gateStepId: gateStepId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "2666a539-2001-4f80-bcc7-0379956749d4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, gateUpdateMetadata, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseGates, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ */
+ getReleaseHistory(project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "23f461c8-629a-4144-a076-3054fa5f268a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseRevision, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {FormInputInterfaces.InputValuesQuery} query
+ * @param {string} project - Project ID or project name
+ */
+ getInputValues(query, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "71dd499b-317d-45ea-9134-140ea1932b5e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} sourceId
+ */
+ getIssues(project, buildId, sourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ let queryValues = {
+ sourceId: sourceId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "cd42261a-f5c6-41c8-9259-f078989b9f25", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.AutoTriggerIssue, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets gate logs
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of release environment.
+ * @param {number} gateId - Id of the gate.
+ * @param {number} taskId - ReleaseTask Id for the log.
+ */
+ getGateLog(project, releaseId, environmentId, gateId, taskId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ gateId: gateId,
+ taskId: taskId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "dec7ca5a-7f7f-4797-8bf1-8efc0dc93b28", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get logs for a release Id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ */
+ getLogs(project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "c37fbab5-214b-48e4-a55b-cb6b4f6e4038", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets logs
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of release environment.
+ * @param {number} taskId - ReleaseTask Id for the log.
+ * @param {number} attemptId - Id of the attempt.
+ */
+ getLog(project, releaseId, environmentId, taskId, attemptId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ taskId: taskId
+ };
+ let queryValues = {
+ attemptId: attemptId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "e71ba1ed-c0a4-4a28-a61f-2dd5f68cf3fd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the task log of a release as a plain text file.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of release environment.
+ * @param {number} attemptId
+ * @param {string} timelineId
+ * @param {number} taskId - ReleaseTask Id for the log.
+ * @param {number} startLine - Starting line number for logs
+ * @param {number} endLine - Ending line number for logs
+ */
+ getTaskLog2(project, releaseId, environmentId, attemptId, timelineId, taskId, startLine, endLine) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ attemptId: attemptId,
+ timelineId: timelineId,
+ taskId: taskId
+ };
+ let queryValues = {
+ startLine: startLine,
+ endLine: endLine,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "2577e6c3-6999-4400-bc69-fe1d837755fe", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the task log of a release as a plain text file.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} environmentId - Id of release environment.
+ * @param {number} releaseDeployPhaseId - Release deploy phase Id.
+ * @param {number} taskId - ReleaseTask Id for the log.
+ * @param {number} startLine - Starting line number for logs
+ * @param {number} endLine - Ending line number for logs
+ */
+ getTaskLog(project, releaseId, environmentId, releaseDeployPhaseId, taskId, startLine, endLine) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ releaseDeployPhaseId: releaseDeployPhaseId,
+ taskId: taskId
+ };
+ let queryValues = {
+ startLine: startLine,
+ endLine: endLine,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "17c91af7-09fd-4256-bff1-c24ee4f73bc0", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get manual intervention for a given release and manual intervention id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} manualInterventionId - Id of the manual intervention.
+ */
+ getManualIntervention(project, releaseId, manualInterventionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ manualInterventionId: manualInterventionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "616c46e4-f370-4456-adaa-fbaf79c7b79e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ManualIntervention, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * List all manual interventions for a given release.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ */
+ getManualInterventions(project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "616c46e4-f370-4456-adaa-fbaf79c7b79e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ManualIntervention, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update manual intervention.
+ *
+ * @param {ReleaseInterfaces.ManualInterventionUpdateMetadata} manualInterventionUpdateMetadata - Meta data to update manual intervention.
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} manualInterventionId - Id of the manual intervention.
+ */
+ updateManualIntervention(manualInterventionUpdateMetadata, project, releaseId, manualInterventionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ manualInterventionId: manualInterventionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "616c46e4-f370-4456-adaa-fbaf79c7b79e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, manualInterventionUpdateMetadata, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ManualIntervention, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {Date} minMetricsTime
+ */
+ getMetrics(project, minMetricsTime) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ minMetricsTime: minMetricsTime,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "cd1502bb-3c73-4e11-80a6-d11308dceae5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets Org pipeline release settings
+ *
+ */
+ getOrgPipelineReleaseSettings() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "d156c759-ca4e-492b-90d4-db03971796ea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates Org pipeline release settings
+ *
+ * @param {ReleaseInterfaces.OrgPipelineReleaseSettingsUpdateParameters} newSettings
+ */
+ updateOrgPipelineReleaseSettings(newSettings) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "d156c759-ca4e-492b-90d4-db03971796ea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, newSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets pipeline release settings
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getPipelineReleaseSettings(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "e816b9f4-f9fe-46ba-bdcc-a9af6abf3144", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates pipeline release settings
+ *
+ * @param {ReleaseInterfaces.ProjectPipelineReleaseSettingsUpdateParameters} newSettings
+ * @param {string} project - Project ID or project name
+ */
+ updatePipelineReleaseSettings(newSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "e816b9f4-f9fe-46ba-bdcc-a9af6abf3144", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, newSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} artifactType
+ * @param {string} artifactSourceId
+ */
+ getReleaseProjects(artifactType, artifactSourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactType == null) {
+ throw new TypeError('artifactType can not be null or undefined');
+ }
+ if (artifactSourceId == null) {
+ throw new TypeError('artifactSourceId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ artifactType: artifactType,
+ artifactSourceId: artifactSourceId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "917ace4a-79d1-45a7-987c-7be4db4268fa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of releases
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Releases from this release definition Id.
+ * @param {number} definitionEnvironmentId
+ * @param {string} searchText - Releases with names containing searchText.
+ * @param {string} createdBy - Releases created by this user.
+ * @param {ReleaseInterfaces.ReleaseStatus} statusFilter - Releases that have this status.
+ * @param {number} environmentStatusFilter
+ * @param {Date} minCreatedTime - Releases that were created after this time.
+ * @param {Date} maxCreatedTime - Releases that were created before this time.
+ * @param {ReleaseInterfaces.ReleaseQueryOrder} queryOrder - Gets the results in the defined order of created date for releases. Default is descending.
+ * @param {number} top - Number of releases to get. Default is 50.
+ * @param {number} continuationToken - Gets the releases after the continuation token provided.
+ * @param {ReleaseInterfaces.ReleaseExpands} expand - The property that should be expanded in the list of releases.
+ * @param {string} artifactTypeId - Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild.
+ * @param {string} sourceId - Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions.
+ * @param {string} artifactVersionId - Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId.
+ * @param {string} sourceBranchFilter - Releases with given sourceBranchFilter will be returned.
+ * @param {boolean} isDeleted - Gets the soft deleted releases, if true.
+ * @param {string[]} tagFilter - A comma-delimited list of tags. Only releases with these tags will be returned.
+ * @param {string[]} propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Releases will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release from results irrespective of whether it has property set or not.
+ * @param {number[]} releaseIdFilter - A comma-delimited list of releases Ids. Only releases with these Ids will be returned.
+ * @param {string} path - Releases under this folder path will be returned
+ */
+ getReleases(project, definitionId, definitionEnvironmentId, searchText, createdBy, statusFilter, environmentStatusFilter, minCreatedTime, maxCreatedTime, queryOrder, top, continuationToken, expand, artifactTypeId, sourceId, artifactVersionId, sourceBranchFilter, isDeleted, tagFilter, propertyFilters, releaseIdFilter, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ definitionId: definitionId,
+ definitionEnvironmentId: definitionEnvironmentId,
+ searchText: searchText,
+ createdBy: createdBy,
+ statusFilter: statusFilter,
+ environmentStatusFilter: environmentStatusFilter,
+ minCreatedTime: minCreatedTime,
+ maxCreatedTime: maxCreatedTime,
+ queryOrder: queryOrder,
+ '$top': top,
+ continuationToken: continuationToken,
+ '$expand': expand,
+ artifactTypeId: artifactTypeId,
+ sourceId: sourceId,
+ artifactVersionId: artifactVersionId,
+ sourceBranchFilter: sourceBranchFilter,
+ isDeleted: isDeleted,
+ tagFilter: tagFilter && tagFilter.join(","),
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ releaseIdFilter: releaseIdFilter && releaseIdFilter.join(","),
+ path: path,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Release, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a release.
+ *
+ * @param {ReleaseInterfaces.ReleaseStartMetadata} releaseStartMetadata - Metadata to create a release.
+ * @param {string} project - Project ID or project name
+ */
+ createRelease(releaseStartMetadata, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, releaseStartMetadata, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Release, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Soft delete a release
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {string} comment - Comment for deleting a release.
+ */
+ deleteRelease(project, releaseId, comment) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ let queryValues = {
+ comment: comment,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a Release
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {ReleaseInterfaces.ApprovalFilters} approvalFilters - A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default
+ * @param {string[]} propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Release will contain values for the specified property Ids (if they exist). If not set, properties will not be included.
+ * @param {ReleaseInterfaces.SingleReleaseExpands} expand - A property that should be expanded in the release.
+ * @param {number} topGateRecords - Number of release gate records to get. Default is 5.
+ */
+ getRelease(project, releaseId, approvalFilters, propertyFilters, expand, topGateRecords) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ let queryValues = {
+ approvalFilters: approvalFilters,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ '$expand': expand,
+ '$topGateRecords': topGateRecords,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Release, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get release summary of a given definition Id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the definition to get release summary.
+ * @param {number} releaseCount - Count of releases to be included in summary.
+ * @param {boolean} includeArtifact - Include artifact details.Default is 'false'.
+ * @param {number[]} definitionEnvironmentIdsFilter
+ */
+ getReleaseDefinitionSummary(project, definitionId, releaseCount, includeArtifact, definitionEnvironmentIdsFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (definitionId == null) {
+ throw new TypeError('definitionId can not be null or undefined');
+ }
+ if (releaseCount == null) {
+ throw new TypeError('releaseCount can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ definitionId: definitionId,
+ releaseCount: releaseCount,
+ includeArtifact: includeArtifact,
+ definitionEnvironmentIdsFilter: definitionEnvironmentIdsFilter && definitionEnvironmentIdsFilter.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinitionSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get release for a given revision number.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release.
+ * @param {number} definitionSnapshotRevision - Definition snapshot revision number.
+ */
+ getReleaseRevision(project, releaseId, definitionSnapshotRevision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (definitionSnapshotRevision == null) {
+ throw new TypeError('definitionSnapshotRevision can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ let queryValues = {
+ definitionSnapshotRevision: definitionSnapshotRevision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Undelete a soft deleted release.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of release to be undeleted.
+ * @param {string} comment - Any comment for undeleting.
+ */
+ undeleteRelease(project, releaseId, comment) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (comment == null) {
+ throw new TypeError('comment can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ let queryValues = {
+ comment: comment,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a complete release object.
+ *
+ * @param {ReleaseInterfaces.Release} release - Release object for update.
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release to update.
+ */
+ updateRelease(release, project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, release, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Release, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update few properties of a release.
+ *
+ * @param {ReleaseInterfaces.ReleaseUpdateMetadata} releaseUpdateMetadata - Properties of release to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId - Id of the release to update.
+ */
+ updateReleaseResource(releaseUpdateMetadata, project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.8", "Release", "a166fde7-27ad-408e-ba75-703c2cc9d500", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, releaseUpdateMetadata, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.Release, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the release settings
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getReleaseSettings(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c63c3718-7cfd-41e0-b89b-81c1ca143437", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the release settings
+ *
+ * @param {ReleaseInterfaces.ReleaseSettings} releaseSettings
+ * @param {string} project - Project ID or project name
+ */
+ updateReleaseSettings(releaseSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c63c3718-7cfd-41e0-b89b-81c1ca143437", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, releaseSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get release definition for a given definitionId and revision
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the definition.
+ * @param {number} revision - Id of the revision.
+ */
+ getDefinitionRevision(project, definitionId, revision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId,
+ revision: revision
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "258b82e0-9d41-43f3-86d6-fef14ddd44bc", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get revision history for a release definition
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId - Id of the definition.
+ */
+ getReleaseDefinitionHistory(project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "258b82e0-9d41-43f3-86d6-fef14ddd44bc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseDefinitionRevision, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ */
+ getSummaryMailSections(project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "224e92b2-8d13-4c14-b120-13d877c516f8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.SummaryMailSection, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ReleaseInterfaces.MailMessage} mailMessage
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ */
+ sendSummaryMail(mailMessage, project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "224e92b2-8d13-4c14-b120-13d877c516f8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, mailMessage, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} definitionId
+ */
+ getSourceBranches(project, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "0e5def23-78b3-461f-8198-1558f25041c8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a tag to a definition
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseDefinitionId
+ * @param {string} tag
+ */
+ addDefinitionTag(project, releaseDefinitionId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseDefinitionId: releaseDefinitionId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "3d21b4c8-c32e-45b2-a7cb-770a369012f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, null, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds multiple tags to a definition
+ *
+ * @param {string[]} tags
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseDefinitionId
+ */
+ addDefinitionTags(tags, project, releaseDefinitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseDefinitionId: releaseDefinitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "3d21b4c8-c32e-45b2-a7cb-770a369012f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, tags, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a tag from a definition
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseDefinitionId
+ * @param {string} tag
+ */
+ deleteDefinitionTag(project, releaseDefinitionId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseDefinitionId: releaseDefinitionId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "3d21b4c8-c32e-45b2-a7cb-770a369012f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the tags for a definition
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseDefinitionId
+ */
+ getDefinitionTags(project, releaseDefinitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseDefinitionId: releaseDefinitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "3d21b4c8-c32e-45b2-a7cb-770a369012f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a tag to a releaseId
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {string} tag
+ */
+ addReleaseTag(project, releaseId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c5b602b6-d1b3-4363-8a51-94384f78068f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, null, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds tag to a release
+ *
+ * @param {string[]} tags
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ */
+ addReleaseTags(tags, project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c5b602b6-d1b3-4363-8a51-94384f78068f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, tags, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a tag from a release
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {string} tag
+ */
+ deleteReleaseTag(project, releaseId, tag) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ tag: tag
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c5b602b6-d1b3-4363-8a51-94384f78068f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the tags for a release
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ */
+ getReleaseTags(project, releaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "c5b602b6-d1b3-4363-8a51-94384f78068f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ */
+ getTags(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "86cee25a-68ba-4ba3-9171-8ad6ffc6df93", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} environmentId
+ * @param {number} releaseDeployPhaseId
+ */
+ getTasksForTaskGroup(project, releaseId, environmentId, releaseDeployPhaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ releaseDeployPhaseId: releaseDeployPhaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "4259191d-4b0a-4409-9fb3-09f22ab9bc47", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseTask, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} environmentId
+ * @param {number} attemptId
+ * @param {string} timelineId
+ */
+ getTasks2(project, releaseId, environmentId, attemptId, timelineId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId,
+ attemptId: attemptId,
+ timelineId: timelineId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "4259291d-4b0a-4409-9fb3-04f22ab9bc47", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseTask, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} environmentId
+ * @param {number} attemptId
+ */
+ getTasks(project, releaseId, environmentId, attemptId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId,
+ environmentId: environmentId
+ };
+ let queryValues = {
+ attemptId: attemptId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Release", "36b276e0-3c70-4320-a63c-1a2e1466a0d1", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ReleaseTask, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ */
+ getArtifactTypeDefinitions(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "8efc2a3c-1fc8-4f6d-9822-75e98cecb48f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ArtifactTypeDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseDefinitionId
+ */
+ getArtifactVersions(project, releaseDefinitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseDefinitionId == null) {
+ throw new TypeError('releaseDefinitionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseDefinitionId: releaseDefinitionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "30fc787e-a9e0-4a07-9fbc-3e903aa051d2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ArtifactVersionQueryResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {ReleaseInterfaces.Artifact[]} artifacts
+ * @param {string} project - Project ID or project name
+ */
+ getArtifactVersionsForSources(artifacts, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "30fc787e-a9e0-4a07-9fbc-3e903aa051d2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, artifacts, options);
+ let ret = this.formatResponse(res.result, ReleaseInterfaces.TypeInfo.ArtifactVersionQueryResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} baseReleaseId
+ * @param {number} top
+ * @param {string} artifactAlias
+ */
+ getReleaseWorkItemsRefs(project, releaseId, baseReleaseId, top, artifactAlias) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ releaseId: releaseId
+ };
+ let queryValues = {
+ baseReleaseId: baseReleaseId,
+ '$top': top,
+ artifactAlias: artifactAlias,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Release", "4f165cc0-875c-4768-b148-f12f78769fab", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+ReleaseApi.RESOURCE_AREA_ID = "efc2f575-36ef-48e9-b672-0c6fb4a48ac5";
+exports.ReleaseApi = ReleaseApi;
+
+
+/***/ }),
+
+/***/ 806:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const SecurityRolesInterfaces = __nccwpck_require__(6573);
+class SecurityRolesApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-SecurityRoles-api', options);
+ }
+ /**
+ * @param {string} scopeId
+ * @param {string} resourceId
+ */
+ getRoleAssignments(scopeId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeId: scopeId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "securityroles", "9461c234-c84c-4ed2-b918-2f0f92ad0a35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, SecurityRolesInterfaces.TypeInfo.RoleAssignment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeId
+ * @param {string} resourceId
+ * @param {string} identityId
+ */
+ removeRoleAssignment(scopeId, resourceId, identityId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeId: scopeId,
+ resourceId: resourceId,
+ identityId: identityId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "securityroles", "9461c234-c84c-4ed2-b918-2f0f92ad0a35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string[]} identityIds
+ * @param {string} scopeId
+ * @param {string} resourceId
+ */
+ removeRoleAssignments(identityIds, scopeId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeId: scopeId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "securityroles", "9461c234-c84c-4ed2-b918-2f0f92ad0a35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, identityIds, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {SecurityRolesInterfaces.UserRoleAssignmentRef} roleAssignment
+ * @param {string} scopeId
+ * @param {string} resourceId
+ * @param {string} identityId
+ */
+ setRoleAssignment(roleAssignment, scopeId, resourceId, identityId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeId: scopeId,
+ resourceId: resourceId,
+ identityId: identityId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "securityroles", "9461c234-c84c-4ed2-b918-2f0f92ad0a35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, roleAssignment, options);
+ let ret = this.formatResponse(res.result, SecurityRolesInterfaces.TypeInfo.RoleAssignment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {SecurityRolesInterfaces.UserRoleAssignmentRef[]} roleAssignments
+ * @param {string} scopeId
+ * @param {string} resourceId
+ */
+ setRoleAssignments(roleAssignments, scopeId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeId: scopeId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "securityroles", "9461c234-c84c-4ed2-b918-2f0f92ad0a35", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, roleAssignments, options);
+ let ret = this.formatResponse(res.result, SecurityRolesInterfaces.TypeInfo.RoleAssignment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeId
+ */
+ getRoleDefinitions(scopeId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeId: scopeId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.2-preview.1", "securityroles", "f4cc9a86-453c-48d2-b44d-d3bd5c105f4f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.SecurityRolesApi = SecurityRolesApi;
+
+
+/***/ }),
+
+/***/ 5817:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+* Module for handling serialization and deserialization of data contracts
+* (contracts sent from the server using the VSO default REST api serialization settings)
+*/
+var ContractSerializer;
+(function (ContractSerializer) {
+ var _legacyDateRegExp;
+ /**
+ * Process a contract in its raw form (e.g. date fields are Dates, and Enums are numbers) and
+ * return a pure JSON object that can be posted to REST endpoint.
+ *
+ * @param data The object to serialize
+ * @param contractMetadata The type info/metadata for the contract type being serialized
+ * @param preserveOriginal If true, don't modify the original object. False modifies the original object (the return value points to the data argument).
+ */
+ function serialize(data, contractMetadata, preserveOriginal) {
+ if (data && contractMetadata) {
+ if (Array.isArray(data)) {
+ return _getTranslatedArray(data, contractMetadata, true, preserveOriginal);
+ }
+ else {
+ return _getTranslatedObject(data, contractMetadata, true, preserveOriginal);
+ }
+ }
+ else {
+ return data;
+ }
+ }
+ ContractSerializer.serialize = serialize;
+ /**
+ * Process a pure JSON object (e.g. that came from a REST call) and transform it into a JS object
+ * where date strings are converted to Date objects and enum values are converted from strings into
+ * their numerical value.
+ *
+ * @param data The object to deserialize
+ * @param contractMetadata The type info/metadata for the contract type being deserialize
+ * @param preserveOriginal If true, don't modify the original object. False modifies the original object (the return value points to the data argument).
+ * @param unwrapWrappedCollections If true check for wrapped arrays (REST apis will not return arrays directly as the root result but will instead wrap them in a { values: [], count: 0 } object.
+ */
+ function deserialize(data, contractMetadata, preserveOriginal, unwrapWrappedCollections) {
+ if (data) {
+ if (unwrapWrappedCollections && Array.isArray(data.value)) {
+ // Wrapped json array - unwrap it and send the array as the result
+ data = data.value;
+ }
+ if (contractMetadata) {
+ if (Array.isArray(data)) {
+ data = _getTranslatedArray(data, contractMetadata, false, preserveOriginal);
+ }
+ else {
+ data = _getTranslatedObject(data, contractMetadata, false, preserveOriginal);
+ }
+ }
+ }
+ return data;
+ }
+ ContractSerializer.deserialize = deserialize;
+ function _getTranslatedArray(array, typeMetadata, serialize, preserveOriginal) {
+ var resultArray = array;
+ var arrayCopy = [];
+ var i;
+ for (i = 0; i < array.length; i++) {
+ var item = array[i];
+ var processedItem;
+ // handle arrays of arrays
+ if (Array.isArray(item)) {
+ processedItem = _getTranslatedArray(item, typeMetadata, serialize, preserveOriginal);
+ }
+ else {
+ processedItem = _getTranslatedObject(item, typeMetadata, serialize, preserveOriginal);
+ }
+ if (preserveOriginal) {
+ arrayCopy.push(processedItem);
+ if (processedItem !== item) {
+ resultArray = arrayCopy;
+ }
+ }
+ else {
+ array[i] = processedItem;
+ }
+ }
+ return resultArray;
+ }
+ function _getTranslatedObject(typeObject, typeMetadata, serialize, preserveOriginal) {
+ var processedItem = typeObject, copiedItem = false;
+ if (typeObject && typeMetadata.fields) {
+ for (var fieldName in typeMetadata.fields) {
+ var fieldMetadata = typeMetadata.fields[fieldName];
+ var fieldValue = typeObject[fieldName];
+ var translatedValue = _getTranslatedField(fieldValue, fieldMetadata, serialize, preserveOriginal);
+ if (fieldValue !== translatedValue) {
+ if (preserveOriginal && !copiedItem) {
+ processedItem = this._extend({}, typeObject);
+ copiedItem = true;
+ }
+ processedItem[fieldName] = translatedValue;
+ }
+ }
+ }
+ return processedItem;
+ }
+ function _getTranslatedField(fieldValue, fieldMetadata, serialize, preserveOriginal) {
+ if (!fieldValue) {
+ return fieldValue;
+ }
+ if (fieldMetadata.isArray) {
+ if (Array.isArray(fieldValue)) {
+ var newArray = [], processedArray = fieldValue;
+ for (var index = 0; index < fieldValue.length; index++) {
+ var arrayValue = fieldValue[index];
+ var processedValue = arrayValue;
+ if (fieldMetadata.isDate) {
+ processedValue = _getTranslatedDateValue(arrayValue, serialize);
+ }
+ else if (fieldMetadata.enumType) {
+ processedValue = _getTranslatedEnumValue(fieldMetadata.enumType, arrayValue, serialize);
+ }
+ else if (fieldMetadata.typeInfo) {
+ if (Array.isArray(arrayValue)) {
+ processedValue = _getTranslatedArray(arrayValue, fieldMetadata.typeInfo, serialize, preserveOriginal);
+ }
+ else {
+ processedValue = _getTranslatedObject(arrayValue, fieldMetadata.typeInfo, serialize, preserveOriginal);
+ }
+ }
+ if (preserveOriginal) {
+ newArray.push(processedValue);
+ if (processedValue !== arrayValue) {
+ processedArray = newArray;
+ }
+ }
+ else {
+ fieldValue[index] = processedValue;
+ }
+ }
+ return processedArray;
+ }
+ else {
+ return fieldValue;
+ }
+ }
+ else if (fieldMetadata.isDictionary) {
+ var dictionaryModified = false;
+ var newDictionary = {};
+ for (var key in fieldValue) {
+ var dictionaryValue = fieldValue[key];
+ var newKey = key, newValue = dictionaryValue;
+ if (fieldMetadata.dictionaryKeyIsDate) {
+ newKey = _getTranslatedDateValue(key, serialize);
+ }
+ else if (fieldMetadata.dictionaryKeyEnumType) {
+ newKey = _getTranslatedEnumValue(fieldMetadata.dictionaryKeyEnumType, key, serialize);
+ }
+ if (fieldMetadata.dictionaryValueIsDate) {
+ newValue = _getTranslatedDateValue(dictionaryValue, serialize);
+ }
+ else if (fieldMetadata.dictionaryValueEnumType) {
+ newValue = _getTranslatedEnumValue(fieldMetadata.dictionaryValueEnumType, dictionaryValue, serialize);
+ }
+ else if (fieldMetadata.dictionaryValueTypeInfo) {
+ newValue = _getTranslatedObject(newValue, fieldMetadata.dictionaryValueTypeInfo, serialize, preserveOriginal);
+ }
+ else if (fieldMetadata.dictionaryValueFieldInfo) {
+ newValue = _getTranslatedField(dictionaryValue, fieldMetadata.dictionaryValueFieldInfo, serialize, preserveOriginal);
+ }
+ newDictionary[newKey] = newValue;
+ if (key !== newKey || dictionaryValue !== newValue) {
+ dictionaryModified = true;
+ }
+ }
+ return dictionaryModified ? newDictionary : fieldValue;
+ }
+ else {
+ if (fieldMetadata.isDate) {
+ return _getTranslatedDateValue(fieldValue, serialize);
+ }
+ else if (fieldMetadata.enumType) {
+ return _getTranslatedEnumValue(fieldMetadata.enumType, fieldValue, serialize);
+ }
+ else if (fieldMetadata.typeInfo) {
+ return _getTranslatedObject(fieldValue, fieldMetadata.typeInfo, serialize, preserveOriginal);
+ }
+ else {
+ return fieldValue;
+ }
+ }
+ }
+ function _getTranslatedEnumValue(enumType, valueToConvert, serialize) {
+ if (serialize && typeof valueToConvert === "number") {
+ // Serialize: number --> String
+ // Because webapi handles the numerical value for enums, there is no need to convert to string.
+ // Let this fall through to return the numerical value.
+ }
+ else if (!serialize && typeof valueToConvert === "string") {
+ // Deserialize: String --> number
+ var result = 0;
+ if (valueToConvert) {
+ var splitValue = valueToConvert.split(",");
+ for (var i = 0; i < splitValue.length; i++) {
+ var valuePart = splitValue[i];
+ //equivalent to jquery trim
+ //copied from https://github.com/HubSpot/youmightnotneedjquery/blob/ef987223c20e480fcbfb5924d96c11cd928e1226/comparisons/utils/trim/ie8.js
+ var enumName = valuePart.replace(/^\s+|\s+$/g, '') || "";
+ if (enumName) {
+ var resultPart = enumType.enumValues[enumName];
+ if (!resultPart) {
+ // No matching enum value. Try again but case insensitive
+ var lowerCaseEnumName = enumName.toLowerCase();
+ if (lowerCaseEnumName !== enumName) {
+ for (var name in enumType.enumValues) {
+ var value = enumType.enumValues[name];
+ if (name.toLowerCase() === lowerCaseEnumName) {
+ resultPart = value;
+ break;
+ }
+ }
+ }
+ }
+ if (resultPart) {
+ result |= resultPart;
+ }
+ }
+ }
+ }
+ return result;
+ }
+ return valueToConvert;
+ }
+ function _getTranslatedDateValue(valueToConvert, serialize) {
+ if (!serialize && typeof valueToConvert === "string") {
+ // Deserialize: String --> Date
+ var dateValue = new Date(valueToConvert);
+ if (isNaN(dateValue) && navigator.userAgent && /msie/i.test(navigator.userAgent)) {
+ dateValue = _convertLegacyIEDate(valueToConvert);
+ }
+ return dateValue;
+ }
+ return valueToConvert;
+ }
+ function _convertLegacyIEDate(dateStringValue) {
+ // IE 8/9 does not handle parsing dates in ISO form like:
+ // 2013-05-13T14:26:54.397Z
+ var match;
+ if (!_legacyDateRegExp) {
+ _legacyDateRegExp = new RegExp("(\\d+)-(\\d+)-(\\d+)T(\\d+):(\\d+):(\\d+).(\\d+)Z");
+ }
+ match = _legacyDateRegExp.exec(dateStringValue);
+ if (match) {
+ return new Date(Date.UTC(parseInt(match[1]), parseInt(match[2]) - 1, parseInt(match[3]), parseInt(match[4]), parseInt(match[5]), parseInt(match[6]), parseInt(match[7])));
+ }
+ else {
+ return null;
+ }
+ }
+ // jquery extend method in native javascript (used to clone objects)
+ // copied from https://github.com/HubSpot/youmightnotneedjquery/blob/ef987223c20e480fcbfb5924d96c11cd928e1226/comparisons/utils/extend/ie8.js
+ var _extend = function (out) {
+ out = out || {};
+ for (var i = 1; i < arguments.length; i++) {
+ if (!arguments[i])
+ continue;
+ for (var key in arguments[i]) {
+ if (arguments[i].hasOwnProperty(key))
+ out[key] = arguments[i][key];
+ }
+ }
+ return out;
+ };
+})(ContractSerializer = exports.ContractSerializer || (exports.ContractSerializer = {}));
+
+
+/***/ }),
+
+/***/ 5899:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const taskagentbasem = __nccwpck_require__(3390);
+const url = __nccwpck_require__(7310);
+class TaskAgentApi extends taskagentbasem.TaskAgentApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, options);
+ // hang on to the handlers in case we need to fall back to an account-level client
+ this._handlers = handlers;
+ this._options = options;
+ }
+ /**
+ * @param {string} taskId
+ * @param onResult callback function
+ */
+ deleteTaskDefinition(taskId) {
+ let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
+ .then((location) => {
+ if (location) {
+ // the resource exists at the url we were given. go!
+ return super.deleteTaskDefinition(taskId);
+ }
+ else {
+ // this is the case when the server doesn't support collection-level task definitions
+ var fallbackClient = this._getFallbackClient(this.baseUrl);
+ if (!fallbackClient) {
+ // couldn't convert
+ throw new Error("Failed to find api location for area: distributedtask id: 60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd");
+ }
+ else {
+ // use the fallback client
+ return fallbackClient.deleteTaskDefinition(taskId);
+ }
+ }
+ });
+ return promise;
+ }
+ /**
+ * @param {string} taskId
+ * @param {string} versionString
+ * @param {string[]} visibility
+ * @param {boolean} scopeLocal
+ * @param onResult callback function with the resulting ArrayBuffer
+ */
+ getTaskContentZip(taskId, versionString, visibility, scopeLocal) {
+ let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
+ .then((location) => {
+ if (location) {
+ // the resource exists at the url we were given. go!
+ return super.getTaskContentZip(taskId, versionString, visibility, scopeLocal);
+ }
+ else {
+ // this is the case when the server doesn't support collection-level task definitions
+ var fallbackClient = this._getFallbackClient(this.baseUrl);
+ if (!fallbackClient) {
+ // couldn't convert
+ throw new Error("Failed to find api location for area: distributedtask id: 60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd");
+ }
+ else {
+ // use the fallback client
+ return fallbackClient.getTaskContentZip(taskId, versionString, visibility, scopeLocal);
+ }
+ }
+ });
+ return promise;
+ }
+ /**
+ * @param {string} taskId
+ * @param {string} versionString
+ * @param {string[]} visibility
+ * @param {boolean} scopeLocal
+ * @param onResult callback function with the resulting TaskAgentInterfaces.TaskDefinition
+ */
+ getTaskDefinition(taskId, versionString, visibility, scopeLocal) {
+ let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
+ .then((location) => {
+ if (location) {
+ // the resource exists at the url we were given. go!
+ return super.getTaskDefinition(taskId, versionString, visibility, scopeLocal);
+ }
+ else {
+ // this is the case when the server doesn't support collection-level task definitions
+ var fallbackClient = this._getFallbackClient(this.baseUrl);
+ if (!fallbackClient) {
+ // couldn't convert
+ throw new Error("Failed to find api location for area: distributedtask id: 60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd");
+ }
+ else {
+ // use the fallback client
+ return fallbackClient.getTaskDefinition(taskId, versionString, visibility, scopeLocal);
+ }
+ }
+ });
+ return promise;
+ }
+ /**
+ * @param {string} taskId
+ * @param {string[]} visibility
+ * @param {boolean} scopeLocal
+ * @param onResult callback function with the resulting TaskAgentInterfaces.TaskDefinition[]
+ */
+ getTaskDefinitions(taskId, visibility, scopeLocal) {
+ let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
+ .then((location) => {
+ if (location) {
+ // the resource exists at the url we were given. go!
+ return super.getTaskDefinitions(taskId, visibility, scopeLocal);
+ }
+ else {
+ // this is the case when the server doesn't support collection-level task definitions
+ var fallbackClient = this._getFallbackClient(this.baseUrl);
+ if (!fallbackClient) {
+ // couldn't convert
+ throw new Error("Failed to find api location for area: distributedtask id: 60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd");
+ }
+ else {
+ // use the fallback client
+ return fallbackClient.getTaskDefinitions(taskId, visibility, scopeLocal);
+ }
+ }
+ });
+ return promise;
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream
+ * @param {string} taskId
+ * @param {boolean} overwrite
+ * @param onResult callback function
+ */
+ uploadTaskDefinition(customHeaders, contentStream, taskId, overwrite) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ taskId: taskId
+ };
+ let queryValues = {
+ overwrite: overwrite,
+ };
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("3.0-preview.1", "distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ resolve(res.result);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ _getFallbackClient(baseUrl) {
+ if (!this._fallbackClient) {
+ var accountUrl = this._getAccountUrl(baseUrl);
+ if (accountUrl) {
+ this._fallbackClient = new TaskAgentApi(accountUrl, this._handlers, this._options);
+ }
+ }
+ return this._fallbackClient;
+ }
+ _getAccountUrl(collectionUrl) {
+ // converts a collection URL to an account URL
+ // returns null if the conversion can't be made
+ var purl = url.parse(collectionUrl);
+ if (!purl.protocol || !purl.host) {
+ return null;
+ }
+ var accountUrl = purl.protocol + '//' + purl.host;
+ // purl.path is something like /DefaultCollection or /tfs/DefaultCollection or /DefaultCollection/
+ var splitPath = purl.path.split('/').slice(1);
+ if (splitPath.length === 0 || (splitPath.length === 1 && splitPath[0] === '')) {
+ return null;
+ }
+ // if the first segment of the path is tfs, the second is the collection. if the url ends in / there will be a third, empty entry
+ if (splitPath[0] === 'tfs' && (splitPath.length === 2 || (splitPath.length === 3 && splitPath[2].length === 0))) {
+ //on prem
+ accountUrl += '/' + 'tfs';
+ }
+ else if (splitPath.length === 2 && splitPath[0] === '') {
+ // /DefaultCollection/
+ return accountUrl;
+ }
+ else if (splitPath.length > 1) {
+ return null;
+ }
+ return accountUrl;
+ }
+}
+exports.TaskAgentApi = TaskAgentApi;
+
+
+/***/ }),
+
+/***/ 3390:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const TaskAgentInterfaces = __nccwpck_require__(9565);
+class TaskAgentApiBase extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-TaskAgent-api', options);
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentCloud} agentCloud
+ */
+ addAgentCloud(agentCloud) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "bfa72b3d-0fc6-43fb-932b-a7f6559f93b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, agentCloud, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} agentCloudId
+ */
+ deleteAgentCloud(agentCloudId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ agentCloudId: agentCloudId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "bfa72b3d-0fc6-43fb-932b-a7f6559f93b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} agentCloudId
+ */
+ getAgentCloud(agentCloudId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ agentCloudId: agentCloudId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "bfa72b3d-0fc6-43fb-932b-a7f6559f93b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getAgentClouds() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "bfa72b3d-0fc6-43fb-932b-a7f6559f93b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentCloud} updatedCloud
+ * @param {number} agentCloudId
+ */
+ updateAgentCloud(updatedCloud, agentCloudId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ agentCloudId: agentCloudId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "bfa72b3d-0fc6-43fb-932b-a7f6559f93b9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updatedCloud, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get agent cloud types.
+ *
+ */
+ getAgentCloudTypes() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "5932e193-f376-469d-9c3e-e5588ce12cb5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentCloudType, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} queueId
+ * @param {number} top
+ * @param {string} continuationToken
+ */
+ getAgentRequestsForQueue(project, queueId, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (top == null) {
+ throw new TypeError('top can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ queueId: queueId
+ };
+ let queryValues = {
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "f5f81ffb-f396-498d-85b1-5ada145e648a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentJobRequest} request
+ * @param {string} project - Project ID or project name
+ * @param {number} queueId
+ */
+ queueAgentRequest(request, project, queueId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ queueId: queueId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "f5f81ffb-f396-498d-85b1-5ada145e648a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, request, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds an agent to a pool. You probably don't want to call this endpoint directly. Instead, [configure an agent](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) using the agent download package.
+ *
+ * @param {TaskAgentInterfaces.TaskAgent} agent - Details about the agent being added
+ * @param {number} poolId - The agent pool in which to add the agent
+ */
+ addAgent(agent, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e298ef32-5878-4cab-993c-043836571f42", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, agent, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete an agent. You probably don't want to call this endpoint directly. Instead, [use the agent configuration script](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) to remove an agent from your organization.
+ *
+ * @param {number} poolId - The pool ID to remove the agent from
+ * @param {number} agentId - The agent ID to remove
+ */
+ deleteAgent(poolId, agentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ agentId: agentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e298ef32-5878-4cab-993c-043836571f42", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get information about an agent.
+ *
+ * @param {number} poolId - The agent pool containing the agent
+ * @param {number} agentId - The agent ID to get information about
+ * @param {boolean} includeCapabilities - Whether to include the agent's capabilities in the response
+ * @param {boolean} includeAssignedRequest - Whether to include details about the agent's current work
+ * @param {boolean} includeLastCompletedRequest - Whether to include details about the agents' most recent completed work
+ * @param {string[]} propertyFilters - Filter which custom properties will be returned
+ */
+ getAgent(poolId, agentId, includeCapabilities, includeAssignedRequest, includeLastCompletedRequest, propertyFilters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ agentId: agentId
+ };
+ let queryValues = {
+ includeCapabilities: includeCapabilities,
+ includeAssignedRequest: includeAssignedRequest,
+ includeLastCompletedRequest: includeLastCompletedRequest,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e298ef32-5878-4cab-993c-043836571f42", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agents.
+ *
+ * @param {number} poolId - The agent pool containing the agents
+ * @param {string} agentName - Filter on agent name
+ * @param {boolean} includeCapabilities - Whether to include the agents' capabilities in the response
+ * @param {boolean} includeAssignedRequest - Whether to include details about the agents' current work
+ * @param {boolean} includeLastCompletedRequest - Whether to include details about the agents' most recent completed work
+ * @param {string[]} propertyFilters - Filter which custom properties will be returned
+ * @param {string[]} demands - Filter by demands the agents can satisfy
+ */
+ getAgents(poolId, agentName, includeCapabilities, includeAssignedRequest, includeLastCompletedRequest, propertyFilters, demands) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ agentName: agentName,
+ includeCapabilities: includeCapabilities,
+ includeAssignedRequest: includeAssignedRequest,
+ includeLastCompletedRequest: includeLastCompletedRequest,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ demands: demands && demands.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e298ef32-5878-4cab-993c-043836571f42", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replace an agent. You probably don't want to call this endpoint directly. Instead, [use the agent configuration script](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) to remove and reconfigure an agent from your organization.
+ *
+ * @param {TaskAgentInterfaces.TaskAgent} agent - Updated details about the replacing agent
+ * @param {number} poolId - The agent pool to use
+ * @param {number} agentId - The agent to replace
+ */
+ replaceAgent(agent, poolId, agentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ agentId: agentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e298ef32-5878-4cab-993c-043836571f42", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, agent, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update agent details.
+ *
+ * @param {TaskAgentInterfaces.TaskAgent} agent - Updated details about the agent
+ * @param {number} poolId - The agent pool to use
+ * @param {number} agentId - The agent to update
+ */
+ updateAgent(agent, poolId, agentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ agentId: agentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e298ef32-5878-4cab-993c-043836571f42", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, agent, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns list of azure subscriptions
+ *
+ */
+ getAzureManagementGroups() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "39fe3bf2-7ee0-4198-a469-4a29929afa9c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns list of azure subscriptions
+ *
+ */
+ getAzureSubscriptions() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "bcd6189c-0303-471f-a8e1-acb22b74d700", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * GET a PAT token for managing (configuring, removing, tagging) deployment targets in a deployment group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group in which deployment targets are managed.
+ */
+ generateDeploymentGroupAccessToken(project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "3d197ba2-c3e9-4253-882f-0ee2440f8174", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a deployment group.
+ *
+ * @param {TaskAgentInterfaces.DeploymentGroupCreateParameter} deploymentGroup - Deployment group to create.
+ * @param {string} project - Project ID or project name
+ */
+ addDeploymentGroup(deploymentGroup, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "083c4d89-ab35-45af-aa11-7cf66895c53e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, deploymentGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a deployment group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group to be deleted.
+ */
+ deleteDeploymentGroup(project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "083c4d89-ab35-45af-aa11-7cf66895c53e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a deployment group by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group.
+ * @param {TaskAgentInterfaces.DeploymentGroupActionFilter} actionFilter - Get the deployment group only if this action can be performed on it.
+ * @param {TaskAgentInterfaces.DeploymentGroupExpands} expand - Include these additional details in the returned object.
+ */
+ getDeploymentGroup(project, deploymentGroupId, actionFilter, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ actionFilter: actionFilter,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "083c4d89-ab35-45af-aa11-7cf66895c53e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of deployment groups by name or IDs.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} name - Name of the deployment group.
+ * @param {TaskAgentInterfaces.DeploymentGroupActionFilter} actionFilter - Get only deployment groups on which this action can be performed.
+ * @param {TaskAgentInterfaces.DeploymentGroupExpands} expand - Include these additional details in the returned objects.
+ * @param {string} continuationToken - Get deployment groups with names greater than this continuationToken lexicographically.
+ * @param {number} top - Maximum number of deployment groups to return. Default is **1000**.
+ * @param {number[]} ids - Comma separated list of IDs of the deployment groups.
+ */
+ getDeploymentGroups(project, name, actionFilter, expand, continuationToken, top, ids) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ name: name,
+ actionFilter: actionFilter,
+ '$expand': expand,
+ continuationToken: continuationToken,
+ '$top': top,
+ ids: ids && ids.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "083c4d89-ab35-45af-aa11-7cf66895c53e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a deployment group.
+ *
+ * @param {TaskAgentInterfaces.DeploymentGroupUpdateParameter} deploymentGroup - Deployment group to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group.
+ */
+ updateDeploymentGroup(deploymentGroup, project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "083c4d89-ab35-45af-aa11-7cf66895c53e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, deploymentGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of deployment group metrics.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} deploymentGroupName - Name of the deployment group.
+ * @param {string} continuationToken - Get metrics for deployment groups with names greater than this continuationToken lexicographically.
+ * @param {number} top - Maximum number of deployment group metrics to return. Default is **50**.
+ */
+ getDeploymentGroupsMetrics(project, deploymentGroupName, continuationToken, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ deploymentGroupName: deploymentGroupName,
+ continuationToken: continuationToken,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "281c6308-427a-49e1-b83a-dac0f4862189", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentGroupMetrics, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {number} machineId
+ * @param {number} completedRequestCount
+ */
+ getAgentRequestsForDeploymentMachine(project, deploymentGroupId, machineId, completedRequestCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (machineId == null) {
+ throw new TypeError('machineId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ machineId: machineId,
+ completedRequestCount: completedRequestCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a3540e5b-f0dc-4668-963b-b752459be545", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {number[]} machineIds
+ * @param {number} completedRequestCount
+ */
+ getAgentRequestsForDeploymentMachines(project, deploymentGroupId, machineIds, completedRequestCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ machineIds: machineIds && machineIds.join(","),
+ completedRequestCount: completedRequestCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a3540e5b-f0dc-4668-963b-b752459be545", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ */
+ refreshDeploymentMachines(project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "91006ac4-0f68-4d82-a2bc-540676bd73ce", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * GET a PAT token for managing (configuring, removing, tagging) deployment agents in a deployment pool.
+ *
+ * @param {number} poolId - ID of the deployment pool in which deployment agents are managed.
+ */
+ generateDeploymentPoolAccessToken(poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "e077ee4a-399b-420b-841f-c43fbc058e0b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of deployment pool summaries.
+ *
+ * @param {string} poolName - Name of the deployment pool.
+ * @param {TaskAgentInterfaces.DeploymentPoolSummaryExpands} expands - Include these additional details in the returned objects.
+ * @param {number[]} poolIds - List of deployment pool ids.
+ */
+ getDeploymentPoolsSummary(poolName, expands, poolIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ poolName: poolName,
+ expands: expands,
+ poolIds: poolIds && poolIds.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6525d6c6-258f-40e0-a1a9-8a24a3957625", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentPoolSummary, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get agent requests for a deployment target.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group to which the target belongs.
+ * @param {number} targetId - ID of the deployment target.
+ * @param {number} completedRequestCount - Maximum number of completed requests to return. Default is **50**
+ */
+ getAgentRequestsForDeploymentTarget(project, deploymentGroupId, targetId, completedRequestCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (targetId == null) {
+ throw new TypeError('targetId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ targetId: targetId,
+ completedRequestCount: completedRequestCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2fac0be3-8c8f-4473-ab93-c1389b08a2c9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get agent requests for a list deployment targets.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group to which the targets belong.
+ * @param {number[]} targetIds - Comma separated list of IDs of the deployment targets.
+ * @param {number} ownerId - Id of owner of agent job request.
+ * @param {Date} completedOn - Datetime to return request after this time.
+ * @param {number} completedRequestCount - Maximum number of completed requests to return for each target. Default is **50**
+ */
+ getAgentRequestsForDeploymentTargets(project, deploymentGroupId, targetIds, ownerId, completedOn, completedRequestCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ targetIds: targetIds && targetIds.join(","),
+ ownerId: ownerId,
+ completedOn: completedOn,
+ completedRequestCount: completedRequestCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2fac0be3-8c8f-4473-ab93-c1389b08a2c9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Upgrade the deployment targets in a deployment group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group.
+ */
+ refreshDeploymentTargets(project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "1c1a817f-f23d-41c6-bf8d-14b638f64152", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector.
+ *
+ * @param {TaskAgentInterfaces.TaskDefinitionEndpoint} endpoint - Describes the URL to fetch.
+ */
+ queryEndpoint(endpoint) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "f223b809-8c33-4b7d-b53f-07232569b5d6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, endpoint, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get environment deployment execution history
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {string} continuationToken
+ * @param {number} top
+ */
+ getEnvironmentDeploymentExecutionRecords(project, environmentId, continuationToken, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ top: top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "51bb5d21-4305-4ea6-9dbb-b7488af73334", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.EnvironmentDeploymentExecutionRecord, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create an environment.
+ *
+ * @param {TaskAgentInterfaces.EnvironmentCreateParameter} environmentCreateParameter - Environment to create.
+ * @param {string} project - Project ID or project name
+ */
+ addEnvironment(environmentCreateParameter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8572b1fc-2482-47fa-8f74-7e3ed53ee54b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, environmentCreateParameter, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.EnvironmentInstance, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete the specified environment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId - ID of the environment.
+ */
+ deleteEnvironment(project, environmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8572b1fc-2482-47fa-8f74-7e3ed53ee54b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get an environment by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId - ID of the environment.
+ * @param {TaskAgentInterfaces.EnvironmentExpands} expands - Include these additional details in the returned objects.
+ */
+ getEnvironmentById(project, environmentId, expands) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ let queryValues = {
+ expands: expands,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8572b1fc-2482-47fa-8f74-7e3ed53ee54b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.EnvironmentInstance, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all environments.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} name
+ * @param {string} continuationToken
+ * @param {number} top
+ */
+ getEnvironments(project, name, continuationToken, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ name: name,
+ continuationToken: continuationToken,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8572b1fc-2482-47fa-8f74-7e3ed53ee54b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.EnvironmentInstance, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the specified environment.
+ *
+ * @param {TaskAgentInterfaces.EnvironmentUpdateParameter} environmentUpdateParameter - Environment data to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId - ID of the environment.
+ */
+ updateEnvironment(environmentUpdateParameter, project, environmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8572b1fc-2482-47fa-8f74-7e3ed53ee54b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, environmentUpdateParameter, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.EnvironmentInstance, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} hubName
+ * @param {boolean} includeEnterpriseUsersCount
+ * @param {boolean} includeHostedAgentMinutesCount
+ */
+ getTaskHubLicenseDetails(hubName, includeEnterpriseUsersCount, includeHostedAgentMinutesCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ hubName: hubName
+ };
+ let queryValues = {
+ includeEnterpriseUsersCount: includeEnterpriseUsersCount,
+ includeHostedAgentMinutesCount: includeHostedAgentMinutesCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "distributedtask", "f9f0f436-b8a1-4475-9041-1ccdbf8f0128", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskHubLicenseDetails} taskHubLicenseDetails
+ * @param {string} hubName
+ */
+ updateTaskHubLicenseDetails(taskHubLicenseDetails, hubName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ hubName: hubName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "distributedtask", "f9f0f436-b8a1-4475-9041-1ccdbf8f0128", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, taskHubLicenseDetails, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.InputValidationRequest} inputValidationRequest
+ */
+ validateInputs(inputValidationRequest) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "58475b1e-adaf-4155-9bc1-e04bf1fff4c2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, inputValidationRequest, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} requestId
+ * @param {string} lockToken
+ * @param {TaskAgentInterfaces.TaskResult} result
+ * @param {boolean} agentShuttingDown
+ */
+ deleteAgentRequest(poolId, requestId, lockToken, result, agentShuttingDown) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (lockToken == null) {
+ throw new TypeError('lockToken can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ requestId: requestId
+ };
+ let queryValues = {
+ lockToken: lockToken,
+ result: result,
+ agentShuttingDown: agentShuttingDown,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} requestId
+ * @param {boolean} includeStatus
+ */
+ getAgentRequest(poolId, requestId, includeStatus) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ requestId: requestId
+ };
+ let queryValues = {
+ includeStatus: includeStatus,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} top
+ * @param {string} continuationToken
+ */
+ getAgentRequests(poolId, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (top == null) {
+ throw new TypeError('top can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} agentId
+ * @param {number} completedRequestCount
+ */
+ getAgentRequestsForAgent(poolId, agentId, completedRequestCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (agentId == null) {
+ throw new TypeError('agentId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ agentId: agentId,
+ completedRequestCount: completedRequestCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number[]} agentIds
+ * @param {number} completedRequestCount
+ */
+ getAgentRequestsForAgents(poolId, agentIds, completedRequestCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ agentIds: agentIds && agentIds.join(","),
+ completedRequestCount: completedRequestCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {string} planId
+ * @param {string} jobId
+ */
+ getAgentRequestsForPlan(poolId, planId, jobId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (planId == null) {
+ throw new TypeError('planId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ planId: planId,
+ jobId: jobId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentJobRequest} request
+ * @param {number} poolId
+ */
+ queueAgentRequestByPool(request, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, request, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentJobRequest} request
+ * @param {number} poolId
+ * @param {number} requestId
+ * @param {string} lockToken
+ * @param {TaskAgentInterfaces.TaskAgentRequestUpdateOptions} updateOptions
+ */
+ updateAgentRequest(request, poolId, requestId, lockToken, updateOptions) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (lockToken == null) {
+ throw new TypeError('lockToken can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ requestId: requestId
+ };
+ let queryValues = {
+ lockToken: lockToken,
+ updateOptions: updateOptions,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "fc825784-c92a-4299-9221-998a02d1b54f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, request, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJobRequest, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.KubernetesResourceCreateParameters} createParameters
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ */
+ addKubernetesResource(createParameters, project, environmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "73fba52f-15ab-42b3-a538-ce67a9223a04", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, createParameters, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.KubernetesResource, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {number} resourceId
+ */
+ deleteKubernetesResource(project, environmentId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "73fba52f-15ab-42b3-a538-ce67a9223a04", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {number} resourceId
+ */
+ getKubernetesResource(project, environmentId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "73fba52f-15ab-42b3-a538-ce67a9223a04", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.KubernetesResource, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} machineGroupId
+ */
+ generateDeploymentMachineGroupAccessToken(project, machineGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ machineGroupId: machineGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "f8c7c0de-ac0d-469b-9cb1-c21f72d67693", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachineGroup} machineGroup
+ * @param {string} project - Project ID or project name
+ */
+ addDeploymentMachineGroup(machineGroup, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "d4adf50f-80c6-4ac8-9ca1-6e4e544286e9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, machineGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachineGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} machineGroupId
+ */
+ deleteDeploymentMachineGroup(project, machineGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ machineGroupId: machineGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "d4adf50f-80c6-4ac8-9ca1-6e4e544286e9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} machineGroupId
+ * @param {TaskAgentInterfaces.MachineGroupActionFilter} actionFilter
+ */
+ getDeploymentMachineGroup(project, machineGroupId, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ machineGroupId: machineGroupId
+ };
+ let queryValues = {
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "d4adf50f-80c6-4ac8-9ca1-6e4e544286e9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachineGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} machineGroupName
+ * @param {TaskAgentInterfaces.MachineGroupActionFilter} actionFilter
+ */
+ getDeploymentMachineGroups(project, machineGroupName, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ machineGroupName: machineGroupName,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "d4adf50f-80c6-4ac8-9ca1-6e4e544286e9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachineGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachineGroup} machineGroup
+ * @param {string} project - Project ID or project name
+ * @param {number} machineGroupId
+ */
+ updateDeploymentMachineGroup(machineGroup, project, machineGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ machineGroupId: machineGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "d4adf50f-80c6-4ac8-9ca1-6e4e544286e9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, machineGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachineGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} machineGroupId
+ * @param {string[]} tagFilters
+ */
+ getDeploymentMachineGroupMachines(project, machineGroupId, tagFilters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ machineGroupId: machineGroupId
+ };
+ let queryValues = {
+ tagFilters: tagFilters && tagFilters.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "966c3874-c347-4b18-a90c-d509116717fd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachine[]} deploymentMachines
+ * @param {string} project - Project ID or project name
+ * @param {number} machineGroupId
+ */
+ updateDeploymentMachineGroupMachines(deploymentMachines, project, machineGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ machineGroupId: machineGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "966c3874-c347-4b18-a90c-d509116717fd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, deploymentMachines, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachine} machine
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ */
+ addDeploymentMachine(machine, project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, machine, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {number} machineId
+ */
+ deleteDeploymentMachine(project, deploymentGroupId, machineId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ machineId: machineId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {number} machineId
+ * @param {TaskAgentInterfaces.DeploymentMachineExpands} expand
+ */
+ getDeploymentMachine(project, deploymentGroupId, machineId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ machineId: machineId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {string[]} tags
+ * @param {string} name
+ * @param {TaskAgentInterfaces.DeploymentMachineExpands} expand
+ */
+ getDeploymentMachines(project, deploymentGroupId, tags, name, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ tags: tags && tags.join(","),
+ name: name,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachine} machine
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {number} machineId
+ */
+ replaceDeploymentMachine(machine, project, deploymentGroupId, machineId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ machineId: machineId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, machine, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachine} machine
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ * @param {number} machineId
+ */
+ updateDeploymentMachine(machine, project, deploymentGroupId, machineId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ machineId: machineId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, machine, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.DeploymentMachine[]} machines
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId
+ */
+ updateDeploymentMachines(machines, project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6f6d406f-cfe6-409c-9327-7009928077e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, machines, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition} definition
+ * @param {number} poolId
+ */
+ createAgentPoolMaintenanceDefinition(definition, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "80572e16-58f0-4419-ac07-d19fde32195c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, definition, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} definitionId
+ */
+ deleteAgentPoolMaintenanceDefinition(poolId, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "80572e16-58f0-4419-ac07-d19fde32195c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} definitionId
+ */
+ getAgentPoolMaintenanceDefinition(poolId, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "80572e16-58f0-4419-ac07-d19fde32195c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ */
+ getAgentPoolMaintenanceDefinitions(poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "80572e16-58f0-4419-ac07-d19fde32195c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition} definition
+ * @param {number} poolId
+ * @param {number} definitionId
+ */
+ updateAgentPoolMaintenanceDefinition(definition, poolId, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ definitionId: definitionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "80572e16-58f0-4419-ac07-d19fde32195c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, definition, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} jobId
+ */
+ deleteAgentPoolMaintenanceJob(poolId, jobId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ jobId: jobId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "15e7ab6e-abce-4601-a6d8-e111fe148f46", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} jobId
+ */
+ getAgentPoolMaintenanceJob(poolId, jobId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ jobId: jobId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "15e7ab6e-abce-4601-a6d8-e111fe148f46", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceJob, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} jobId
+ */
+ getAgentPoolMaintenanceJobLogs(poolId, jobId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ jobId: jobId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "15e7ab6e-abce-4601-a6d8-e111fe148f46", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} definitionId
+ */
+ getAgentPoolMaintenanceJobs(poolId, definitionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ definitionId: definitionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "15e7ab6e-abce-4601-a6d8-e111fe148f46", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceJob, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentPoolMaintenanceJob} job
+ * @param {number} poolId
+ */
+ queueAgentPoolMaintenanceJob(job, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "15e7ab6e-abce-4601-a6d8-e111fe148f46", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, job, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceJob, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentPoolMaintenanceJob} job
+ * @param {number} poolId
+ * @param {number} jobId
+ */
+ updateAgentPoolMaintenanceJob(job, poolId, jobId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ jobId: jobId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "15e7ab6e-abce-4601-a6d8-e111fe148f46", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, job, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPoolMaintenanceJob, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} messageId
+ * @param {string} sessionId
+ */
+ deleteMessage(poolId, messageId, sessionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (sessionId == null) {
+ throw new TypeError('sessionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ messageId: messageId
+ };
+ let queryValues = {
+ sessionId: sessionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {string} sessionId
+ * @param {number} lastMessageId
+ */
+ getMessage(poolId, sessionId, lastMessageId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (sessionId == null) {
+ throw new TypeError('sessionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ sessionId: sessionId,
+ lastMessageId: lastMessageId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} agentId
+ */
+ refreshAgent(poolId, agentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (agentId == null) {
+ throw new TypeError('agentId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ agentId: agentId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ */
+ refreshAgents(poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentMessage} message
+ * @param {number} poolId
+ * @param {number} requestId
+ */
+ sendMessage(message, poolId, requestId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (requestId == null) {
+ throw new TypeError('requestId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ requestId: requestId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, message, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} packageType
+ * @param {string} platform
+ * @param {string} version
+ */
+ getPackage(packageType, platform, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ packageType: packageType,
+ platform: platform,
+ version: version
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "8ffcd551-079c-493a-9c02-54346299d144", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.PackageMetadata, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} packageType
+ * @param {string} platform
+ * @param {number} top
+ */
+ getPackages(packageType, platform, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ packageType: packageType,
+ platform: platform
+ };
+ let queryValues = {
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "8ffcd551-079c-493a-9c02-54346299d144", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.PackageMetadata, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ */
+ getAgentPoolMetadata(poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "0d62f887-9f53-48b9-9161-4c35d5735b0f", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {any} agentPoolMetadata
+ * @param {number} poolId
+ */
+ setAgentPoolMetadata(customHeaders, agentPoolMetadata, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "0d62f887-9f53-48b9-9161-4c35d5735b0f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.replace(url, agentPoolMetadata, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create an agent pool.
+ *
+ * @param {TaskAgentInterfaces.TaskAgentPool} pool - Details about the new agent pool
+ */
+ addAgentPool(pool) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a8c47e17-4d56-4a56-92bb-de7ea7dc65be", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, pool, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPool, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete an agent pool.
+ *
+ * @param {number} poolId - ID of the agent pool to delete
+ */
+ deleteAgentPool(poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a8c47e17-4d56-4a56-92bb-de7ea7dc65be", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get information about an agent pool.
+ *
+ * @param {number} poolId - An agent pool ID
+ * @param {string[]} properties - Agent pool properties (comma-separated)
+ * @param {TaskAgentInterfaces.TaskAgentPoolActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentPool(poolId, properties, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ let queryValues = {
+ properties: properties && properties.join(","),
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a8c47e17-4d56-4a56-92bb-de7ea7dc65be", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPool, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agent pools.
+ *
+ * @param {string} poolName - Filter by name
+ * @param {string[]} properties - Filter by agent pool properties (comma-separated)
+ * @param {TaskAgentInterfaces.TaskAgentPoolType} poolType - Filter by pool type
+ * @param {TaskAgentInterfaces.TaskAgentPoolActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentPools(poolName, properties, poolType, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ poolName: poolName,
+ properties: properties && properties.join(","),
+ poolType: poolType,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a8c47e17-4d56-4a56-92bb-de7ea7dc65be", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPool, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agent pools.
+ *
+ * @param {number[]} poolIds - pool Ids to fetch
+ * @param {TaskAgentInterfaces.TaskAgentPoolActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentPoolsByIds(poolIds, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (poolIds == null) {
+ throw new TypeError('poolIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ poolIds: poolIds && poolIds.join(","),
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a8c47e17-4d56-4a56-92bb-de7ea7dc65be", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPool, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update properties on an agent pool
+ *
+ * @param {TaskAgentInterfaces.TaskAgentPool} pool - Updated agent pool details
+ * @param {number} poolId - The agent pool to update
+ */
+ updateAgentPool(pool, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "a8c47e17-4d56-4a56-92bb-de7ea7dc65be", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, pool, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentPool, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a new agent queue to connect a project to an agent pool.
+ *
+ * @param {TaskAgentInterfaces.TaskAgentQueue} queue - Details about the queue to create
+ * @param {string} project - Project ID or project name
+ * @param {boolean} authorizePipelines - Automatically authorize this queue when using YAML
+ */
+ addAgentQueue(queue, project, authorizePipelines) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ authorizePipelines: authorizePipelines,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, queue, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentQueue, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a new team project.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ createTeamProject(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes an agent queue from a project.
+ *
+ * @param {number} queueId - The agent queue to remove
+ * @param {string} project - Project ID or project name
+ */
+ deleteAgentQueue(queueId, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ queueId: queueId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get information about an agent queue.
+ *
+ * @param {number} queueId - The agent queue to get information about
+ * @param {string} project - Project ID or project name
+ * @param {TaskAgentInterfaces.TaskAgentQueueActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentQueue(queueId, project, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ queueId: queueId
+ };
+ let queryValues = {
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentQueue, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agent queues.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} queueName - Filter on the agent queue name
+ * @param {TaskAgentInterfaces.TaskAgentQueueActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentQueues(project, queueName, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ queueName: queueName,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentQueue, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agent queues by their IDs
+ *
+ * @param {number[]} queueIds - A comma-separated list of agent queue IDs to retrieve
+ * @param {string} project - Project ID or project name
+ * @param {TaskAgentInterfaces.TaskAgentQueueActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentQueuesByIds(queueIds, project, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (queueIds == null) {
+ throw new TypeError('queueIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ queueIds: queueIds && queueIds.join(","),
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentQueue, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agent queues by their names
+ *
+ * @param {string[]} queueNames - A comma-separated list of agent names to retrieve
+ * @param {string} project - Project ID or project name
+ * @param {TaskAgentInterfaces.TaskAgentQueueActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentQueuesByNames(queueNames, project, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (queueNames == null) {
+ throw new TypeError('queueNames can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ queueNames: queueNames && queueNames.join(","),
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentQueue, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of agent queues by pool ids
+ *
+ * @param {number[]} poolIds - A comma-separated list of pool ids to get the corresponding queues for
+ * @param {string} project - Project ID or project name
+ * @param {TaskAgentInterfaces.TaskAgentQueueActionFilter} actionFilter - Filter by whether the calling user has use or manage permissions
+ */
+ getAgentQueuesForPools(poolIds, project, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (poolIds == null) {
+ throw new TypeError('poolIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ poolIds: poolIds && poolIds.join(","),
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "900fa995-c559-4923-aae7-f8424fe4fbea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentQueue, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} agentCloudId
+ */
+ getAgentCloudRequests(agentCloudId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ agentCloudId: agentCloudId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "20189bd7-5134-49c2-b8e9-f9e856eea2b2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentCloudRequest, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getResourceLimits() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "1f1f0557-c445-42a6-b4a0-0df605a3a0f8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} parallelismTag
+ * @param {boolean} poolIsHosted
+ * @param {boolean} includeRunningRequests
+ */
+ getResourceUsage(parallelismTag, poolIsHosted, includeRunningRequests) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ parallelismTag: parallelismTag,
+ poolIsHosted: poolIsHosted,
+ includeRunningRequests: includeRunningRequests,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "eae1d376-a8b1-4475-9041-1dfdbe8f0143", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.ResourceUsage, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId
+ */
+ getTaskGroupHistory(project, taskGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "100cc92a-b255-47fa-9ab3-e44a2985a3ac", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroupRevision, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a secure file
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} secureFileId - The unique secure file Id
+ */
+ deleteSecureFile(project, secureFileId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ secureFileId: secureFileId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a secure file by Id
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} secureFileId - The unique secure file Id
+ * @param {string} ticket - A valid download ticket
+ * @param {boolean} download - If download is true, the file is sent as attachement in the response body. If download is false, the response body contains the file stream.
+ */
+ downloadSecureFile(project, secureFileId, ticket, download) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ticket == null) {
+ throw new TypeError('ticket can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ secureFileId: secureFileId
+ };
+ let queryValues = {
+ ticket: ticket,
+ download: download,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a secure file
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} secureFileId - The unique secure file Id
+ * @param {boolean} includeDownloadTicket - If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response.
+ * @param {TaskAgentInterfaces.SecureFileActionFilter} actionFilter
+ */
+ getSecureFile(project, secureFileId, includeDownloadTicket, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ secureFileId: secureFileId
+ };
+ let queryValues = {
+ includeDownloadTicket: includeDownloadTicket,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get secure files
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} namePattern - Name of the secure file to match. Can include wildcards to match multiple files.
+ * @param {boolean} includeDownloadTickets - If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response.
+ * @param {TaskAgentInterfaces.SecureFileActionFilter} actionFilter - Filter by secure file permissions for View, Manage or Use action. Defaults to View.
+ */
+ getSecureFiles(project, namePattern, includeDownloadTickets, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ namePattern: namePattern,
+ includeDownloadTickets: includeDownloadTickets,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get secure files
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string[]} secureFileIds - A list of secure file Ids
+ * @param {boolean} includeDownloadTickets - If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response.
+ * @param {TaskAgentInterfaces.SecureFileActionFilter} actionFilter
+ */
+ getSecureFilesByIds(project, secureFileIds, includeDownloadTickets, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (secureFileIds == null) {
+ throw new TypeError('secureFileIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ secureFileIds: secureFileIds && secureFileIds.join(","),
+ includeDownloadTickets: includeDownloadTickets,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get secure files
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string[]} secureFileNames - A list of secure file Ids
+ * @param {boolean} includeDownloadTickets - If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response.
+ * @param {TaskAgentInterfaces.SecureFileActionFilter} actionFilter
+ */
+ getSecureFilesByNames(project, secureFileNames, includeDownloadTickets, actionFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (secureFileNames == null) {
+ throw new TypeError('secureFileNames can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ secureFileNames: secureFileNames && secureFileNames.join(","),
+ includeDownloadTickets: includeDownloadTickets,
+ actionFilter: actionFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Query secure files using a name pattern and a condition on file properties.
+ *
+ * @param {string} condition - The main condition syntax is described [here](https://go.microsoft.com/fwlink/?linkid=842996). Use the *property('property-name')* function to access the value of the specified property of a secure file. It returns null if the property is not set. E.g. ``` and( eq( property('devices'), '2' ), in( property('provisioning profile type'), 'ad hoc', 'development' ) ) ```
+ * @param {string} project - Project ID or project name
+ * @param {string} namePattern - Name of the secure file to match. Can include wildcards to match multiple files.
+ */
+ querySecureFilesByProperties(condition, project, namePattern) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ namePattern: namePattern,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, condition, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the name or properties of an existing secure file
+ *
+ * @param {TaskAgentInterfaces.SecureFile} secureFile - The secure file with updated name and/or properties
+ * @param {string} project - Project ID or project name
+ * @param {string} secureFileId - The unique secure file Id
+ */
+ updateSecureFile(secureFile, project, secureFileId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ secureFileId: secureFileId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, secureFile, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge.
+ *
+ * @param {TaskAgentInterfaces.SecureFile[]} secureFiles - A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored.
+ * @param {string} project - Project ID or project name
+ */
+ updateSecureFiles(secureFiles, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, secureFiles, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Upload a secure file, include the file stream in the request body
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} project - Project ID or project name
+ * @param {string} name - Name of the file to upload
+ * @param {boolean} authorizePipelines - If authorizePipelines is true, then the secure file is authorized for use by all pipelines in the project.
+ */
+ uploadSecureFile(customHeaders, contentStream, project, name, authorizePipelines) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (name == null) {
+ throw new TypeError('name can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ name: name,
+ authorizePipelines: authorizePipelines,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "adcfd8bc-b184-43ba-bd84-7c8c6a2ff421", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.SecureFile, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskAgentSession} session
+ * @param {number} poolId
+ */
+ createAgentSession(session, poolId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "134e239e-2df3-4794-a6f6-24f1f19ec8dc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, session, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentSession, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {string} sessionId
+ */
+ deleteAgentSession(poolId, sessionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ sessionId: sessionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "134e239e-2df3-4794-a6f6-24f1f19ec8dc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Register a deployment target to a deployment group. Generally this is called by agent configuration tool.
+ *
+ * @param {TaskAgentInterfaces.DeploymentMachine} machine - Deployment target to register.
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group to which the deployment target is registered.
+ */
+ addDeploymentTarget(machine, project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, machine, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group in which deployment target is deleted.
+ * @param {number} targetId - ID of the deployment target to delete.
+ */
+ deleteDeploymentTarget(project, deploymentGroupId, targetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ targetId: targetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a deployment target by its ID in a deployment group
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group to which deployment target belongs.
+ * @param {number} targetId - ID of the deployment target to return.
+ * @param {TaskAgentInterfaces.DeploymentTargetExpands} expand - Include these additional details in the returned objects.
+ */
+ getDeploymentTarget(project, deploymentGroupId, targetId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ targetId: targetId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of deployment targets in a deployment group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group.
+ * @param {string[]} tags - Get only the deployment targets that contain all these comma separted list of tags.
+ * @param {string} name - Name pattern of the deployment targets to return.
+ * @param {boolean} partialNameMatch - When set to true, treats **name** as pattern. Else treats it as absolute match. Default is **false**.
+ * @param {TaskAgentInterfaces.DeploymentTargetExpands} expand - Include these additional details in the returned objects.
+ * @param {TaskAgentInterfaces.TaskAgentStatusFilter} agentStatus - Get only deployment targets that have this status.
+ * @param {TaskAgentInterfaces.TaskAgentJobResultFilter} agentJobResult - Get only deployment targets that have this last job result.
+ * @param {string} continuationToken - Get deployment targets with names greater than this continuationToken lexicographically.
+ * @param {number} top - Maximum number of deployment targets to return. Default is **1000**.
+ * @param {boolean} enabled - Get only deployment targets that are enabled or disabled. Default is 'null' which returns all the targets.
+ * @param {string[]} propertyFilters
+ */
+ getDeploymentTargets(project, deploymentGroupId, tags, name, partialNameMatch, expand, agentStatus, agentJobResult, continuationToken, top, enabled, propertyFilters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ let queryValues = {
+ tags: tags && tags.join(","),
+ name: name,
+ partialNameMatch: partialNameMatch,
+ '$expand': expand,
+ agentStatus: agentStatus,
+ agentJobResult: agentJobResult,
+ continuationToken: continuationToken,
+ '$top': top,
+ enabled: enabled,
+ propertyFilters: propertyFilters && propertyFilters.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replace a deployment target in a deployment group. Generally this is called by agent configuration tool.
+ *
+ * @param {TaskAgentInterfaces.DeploymentMachine} machine - New deployment target.
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group in which deployment target is replaced.
+ * @param {number} targetId - ID of the deployment target to replace.
+ */
+ replaceDeploymentTarget(machine, project, deploymentGroupId, targetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ targetId: targetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, machine, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a deployment target and its agent properties in a deployment group. Generally this is called by agent configuration tool.
+ *
+ * @param {TaskAgentInterfaces.DeploymentMachine} machine - Deployment target to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group in which deployment target is updated.
+ * @param {number} targetId - ID of the deployment target to update.
+ */
+ updateDeploymentTarget(machine, project, deploymentGroupId, targetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId,
+ targetId: targetId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, machine, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update tags of a list of deployment targets in a deployment group.
+ *
+ * @param {TaskAgentInterfaces.DeploymentTargetUpdateParameter[]} machines - Deployment targets with tags to udpdate.
+ * @param {string} project - Project ID or project name
+ * @param {number} deploymentGroupId - ID of the deployment group in which deployment targets are updated.
+ */
+ updateDeploymentTargets(machines, project, deploymentGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ deploymentGroupId: deploymentGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "2f0aa599-c121-4256-a5fd-ba370e0ae7b6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, machines, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.DeploymentMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a task group.
+ *
+ * @param {TaskAgentInterfaces.TaskGroupCreateParameter} taskGroup - Task group object to create.
+ * @param {string} project - Project ID or project name
+ */
+ addTaskGroup(taskGroup, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, taskGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a task group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId - Id of the task group to be deleted.
+ * @param {string} comment - Comments to delete.
+ */
+ deleteTaskGroup(project, taskGroupId, comment) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ let queryValues = {
+ comment: comment,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get task group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId - Id of the task group.
+ * @param {string} versionSpec - version specification of the task group. examples: 1, 1.0.
+ * @param {TaskAgentInterfaces.TaskGroupExpands} expand - The properties that should be expanded. example $expand=Tasks will expand nested task groups.
+ */
+ getTaskGroup(project, taskGroupId, versionSpec, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (versionSpec == null) {
+ throw new TypeError('versionSpec can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ let queryValues = {
+ versionSpec: versionSpec,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId
+ * @param {number} revision
+ */
+ getTaskGroupRevision(project, taskGroupId, revision) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (revision == null) {
+ throw new TypeError('revision can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ let queryValues = {
+ revision: revision,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * List task groups.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId - Id of the task group.
+ * @param {boolean} expanded - 'true' to recursively expand task groups. Default is 'false'.
+ * @param {string} taskIdFilter - Guid of the taskId to filter.
+ * @param {boolean} deleted - 'true'to include deleted task groups. Default is 'false'.
+ * @param {number} top - Number of task groups to get.
+ * @param {Date} continuationToken - Gets the task groups after the continuation token provided.
+ * @param {TaskAgentInterfaces.TaskGroupQueryOrder} queryOrder - Gets the results in the defined order. Default is 'CreatedOnDescending'.
+ */
+ getTaskGroups(project, taskGroupId, expanded, taskIdFilter, deleted, top, continuationToken, queryOrder) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ let queryValues = {
+ expanded: expanded,
+ taskIdFilter: taskIdFilter,
+ deleted: deleted,
+ '$top': top,
+ continuationToken: continuationToken,
+ queryOrder: queryOrder,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.PublishTaskGroupMetadata} taskGroupMetadata
+ * @param {string} project - Project ID or project name
+ * @param {string} parentTaskGroupId
+ */
+ publishTaskGroup(taskGroupMetadata, project, parentTaskGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (parentTaskGroupId == null) {
+ throw new TypeError('parentTaskGroupId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ parentTaskGroupId: parentTaskGroupId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, taskGroupMetadata, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskGroup} taskGroup
+ * @param {string} project - Project ID or project name
+ */
+ undeleteTaskGroup(taskGroup, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, taskGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a task group.
+ *
+ * @param {TaskAgentInterfaces.TaskGroupUpdateParameter} taskGroup - Task group to update.
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId - Id of the task group to update.
+ */
+ updateTaskGroup(taskGroup, project, taskGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, taskGroup, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.TaskGroupUpdatePropertiesBase} taskGroupUpdateProperties
+ * @param {string} project - Project ID or project name
+ * @param {string} taskGroupId
+ * @param {boolean} disablePriorVersions
+ */
+ updateTaskGroupProperties(taskGroupUpdateProperties, project, taskGroupId, disablePriorVersions) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ taskGroupId: taskGroupId
+ };
+ let queryValues = {
+ disablePriorVersions: disablePriorVersions,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, taskGroupUpdateProperties, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} taskId
+ */
+ deleteTaskDefinition(taskId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ taskId: taskId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} taskId
+ * @param {string} versionString
+ * @param {string[]} visibility
+ * @param {boolean} scopeLocal
+ */
+ getTaskContentZip(taskId, versionString, visibility, scopeLocal) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ taskId: taskId,
+ versionString: versionString
+ };
+ let queryValues = {
+ visibility: visibility,
+ scopeLocal: scopeLocal,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} taskId
+ * @param {string} versionString
+ * @param {string[]} visibility
+ * @param {boolean} scopeLocal
+ */
+ getTaskDefinition(taskId, versionString, visibility, scopeLocal) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ taskId: taskId,
+ versionString: versionString
+ };
+ let queryValues = {
+ visibility: visibility,
+ scopeLocal: scopeLocal,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskDefinition, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} taskId
+ * @param {string[]} visibility
+ * @param {boolean} scopeLocal
+ * @param {boolean} allVersions
+ */
+ getTaskDefinitions(taskId, visibility, scopeLocal, allVersions) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ taskId: taskId
+ };
+ let queryValues = {
+ visibility: visibility,
+ scopeLocal: scopeLocal,
+ allVersions: allVersions,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {number} poolId
+ * @param {number} agentId
+ * @param {string} currentState
+ */
+ updateAgentUpdateState(poolId, agentId, currentState) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (currentState == null) {
+ throw new TypeError('currentState can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ agentId: agentId
+ };
+ let queryValues = {
+ currentState: currentState,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8cc1b02b-ae49-4516-b5ad-4f9b29967c30", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {{ [key: string] : string; }} userCapabilities
+ * @param {number} poolId
+ * @param {number} agentId
+ */
+ updateAgentUserCapabilities(userCapabilities, poolId, agentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ poolId: poolId,
+ agentId: agentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "30ba3ada-fedf-4da8-bbb5-dacf2f82e176", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, userCapabilities, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgent, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a variable group.
+ *
+ * @param {TaskAgentInterfaces.VariableGroupParameters} variableGroupParameters
+ */
+ addVariableGroup(variableGroupParameters) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "ef5b7057-ffc3-4c77-bbad-c10b4a4abcc7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, variableGroupParameters, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VariableGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a variable group
+ *
+ * @param {number} groupId - Id of the variable group.
+ * @param {string[]} projectIds
+ */
+ deleteVariableGroup(groupId, projectIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (projectIds == null) {
+ throw new TypeError('projectIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ groupId: groupId
+ };
+ let queryValues = {
+ projectIds: projectIds && projectIds.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "ef5b7057-ffc3-4c77-bbad-c10b4a4abcc7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a variable group.
+ *
+ * @param {TaskAgentInterfaces.VariableGroupProjectReference[]} variableGroupProjectReferences
+ * @param {number} variableGroupId
+ */
+ shareVariableGroup(variableGroupProjectReferences, variableGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (variableGroupId == null) {
+ throw new TypeError('variableGroupId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ variableGroupId: variableGroupId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "ef5b7057-ffc3-4c77-bbad-c10b4a4abcc7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, variableGroupProjectReferences, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a variable group.
+ *
+ * @param {TaskAgentInterfaces.VariableGroupParameters} variableGroupParameters
+ * @param {number} groupId - Id of the variable group to update.
+ */
+ updateVariableGroup(variableGroupParameters, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "ef5b7057-ffc3-4c77-bbad-c10b4a4abcc7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, variableGroupParameters, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VariableGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a variable group.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} groupId - Id of the variable group.
+ */
+ getVariableGroup(project, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "f5b09dd5-9d54-45a1-8b5a-1c8287d634cc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VariableGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get variable groups.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} groupName - Name of variable group.
+ * @param {TaskAgentInterfaces.VariableGroupActionFilter} actionFilter - Action filter for the variable group. It specifies the action which can be performed on the variable groups.
+ * @param {number} top - Number of variable groups to get.
+ * @param {number} continuationToken - Gets the variable groups after the continuation token provided.
+ * @param {TaskAgentInterfaces.VariableGroupQueryOrder} queryOrder - Gets the results in the defined order. Default is 'IdDescending'.
+ */
+ getVariableGroups(project, groupName, actionFilter, top, continuationToken, queryOrder) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ groupName: groupName,
+ actionFilter: actionFilter,
+ '$top': top,
+ continuationToken: continuationToken,
+ queryOrder: queryOrder,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "f5b09dd5-9d54-45a1-8b5a-1c8287d634cc", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VariableGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get variable groups by ids.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number[]} groupIds - Comma separated list of Ids of variable groups.
+ */
+ getVariableGroupsById(project, groupIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (groupIds == null) {
+ throw new TypeError('groupIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ groupIds: groupIds && groupIds.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "f5b09dd5-9d54-45a1-8b5a-1c8287d634cc", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VariableGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.VirtualMachineGroupCreateParameters} createParameters
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ */
+ addVirtualMachineGroup(createParameters, project, environmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "9e597901-4af7-4cc3-8d92-47d54db8ebfb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, createParameters, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VirtualMachineGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {number} resourceId
+ */
+ deleteVirtualMachineGroup(project, environmentId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "9e597901-4af7-4cc3-8d92-47d54db8ebfb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {number} resourceId
+ */
+ getVirtualMachineGroup(project, environmentId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "9e597901-4af7-4cc3-8d92-47d54db8ebfb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VirtualMachineGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.VirtualMachineGroup} resource
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ */
+ updateVirtualMachineGroup(resource, project, environmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "9e597901-4af7-4cc3-8d92-47d54db8ebfb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, resource, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VirtualMachineGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {number} resourceId
+ * @param {string} continuationToken
+ * @param {string} name
+ * @param {boolean} partialNameMatch
+ * @param {string[]} tags
+ * @param {number} top
+ */
+ getVirtualMachines(project, environmentId, resourceId, continuationToken, name, partialNameMatch, tags, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId,
+ resourceId: resourceId
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ name: name,
+ partialNameMatch: partialNameMatch,
+ tags: tags && tags.join(","),
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "48700676-2ba5-4282-8ec8-083280d169c7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VirtualMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.VirtualMachine[]} machines
+ * @param {string} project - Project ID or project name
+ * @param {number} environmentId
+ * @param {number} resourceId
+ */
+ updateVirtualMachines(machines, project, environmentId, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ environmentId: environmentId,
+ resourceId: resourceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "48700676-2ba5-4282-8ec8-083280d169c7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, machines, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.VirtualMachine, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} tenantId
+ * @param {string} redirectUri
+ * @param {TaskAgentInterfaces.AadLoginPromptOption} promptOption
+ * @param {string} completeCallbackPayload
+ * @param {boolean} completeCallbackByAuthCode
+ */
+ createAadOAuthRequest(tenantId, redirectUri, promptOption, completeCallbackPayload, completeCallbackByAuthCode) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (tenantId == null) {
+ throw new TypeError('tenantId can not be null or undefined');
+ }
+ if (redirectUri == null) {
+ throw new TypeError('redirectUri can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ tenantId: tenantId,
+ redirectUri: redirectUri,
+ promptOption: promptOption,
+ completeCallbackPayload: completeCallbackPayload,
+ completeCallbackByAuthCode: completeCallbackByAuthCode,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "9c63205e-3a0f-42a0-ad88-095200f13607", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ */
+ getVstsAadTenantId() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "9c63205e-3a0f-42a0-ad88-095200f13607", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * GET the Yaml schema used for Yaml file validation.
+ *
+ * @param {boolean} validateTaskNames - Whether the schema should validate that tasks are actually installed (useful for offline tools where you don't want validation).
+ */
+ getYamlSchema(validateTaskNames) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ validateTaskNames: validateTaskNames,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "1f9990b9-1dba-441f-9c2e-6485888c42b6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+TaskAgentApiBase.RESOURCE_AREA_ID = "a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd";
+exports.TaskAgentApiBase = TaskAgentApiBase;
+
+
+/***/ }),
+
+/***/ 2354:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const TaskAgentInterfaces = __nccwpck_require__(9565);
+class TaskApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Task-api', options);
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} type
+ */
+ getPlanAttachments(scopeIdentifier, hubName, planId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "eb55e5d6-2f30-4295-b5ed-38da50b1fc52", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {string} recordId
+ * @param {string} type
+ * @param {string} name
+ */
+ createAttachment(customHeaders, contentStream, scopeIdentifier, hubName, planId, timelineId, recordId, type, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "7898f959-9cdf-4096-b29e-7f293031629e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("PUT", url, contentStream, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAttachment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {string} recordId
+ * @param {string} type
+ * @param {string} name
+ * @param {string} artifactHash
+ * @param {number} length
+ */
+ createAttachmentFromArtifact(scopeIdentifier, hubName, planId, timelineId, recordId, type, name, artifactHash, length) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (artifactHash == null) {
+ throw new TypeError('artifactHash can not be null or undefined');
+ }
+ if (length == null) {
+ throw new TypeError('length can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ let queryValues = {
+ artifactHash: artifactHash,
+ length: length,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "7898f959-9cdf-4096-b29e-7f293031629e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAttachment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {string} recordId
+ * @param {string} type
+ * @param {string} name
+ */
+ getAttachment(scopeIdentifier, hubName, planId, timelineId, recordId, type, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "7898f959-9cdf-4096-b29e-7f293031629e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAttachment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {string} recordId
+ * @param {string} type
+ * @param {string} name
+ */
+ getAttachmentContent(scopeIdentifier, hubName, planId, timelineId, recordId, type, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "7898f959-9cdf-4096-b29e-7f293031629e", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {string} recordId
+ * @param {string} type
+ */
+ getAttachments(scopeIdentifier, hubName, planId, timelineId, recordId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "7898f959-9cdf-4096-b29e-7f293031629e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Append content to timeline record feed.
+ *
+ * @param {TaskAgentInterfaces.TimelineRecordFeedLinesWrapper} lines - Content to be appended to the timeline record feed.
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId - ID of the plan.
+ * @param {string} timelineId - ID of the task's timeline.
+ * @param {string} recordId - ID of the timeline record.
+ */
+ appendTimelineRecordFeed(lines, scopeIdentifier, hubName, planId, timelineId, recordId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "858983e4-19bd-4c5e-864c-507b59b58b12", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, lines, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {string} recordId
+ * @param {string} stepId
+ * @param {number} endLine
+ * @param {number} takeCount
+ * @param {string} continuationToken
+ */
+ getLines(scopeIdentifier, hubName, planId, timelineId, recordId, stepId, endLine, takeCount, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (stepId == null) {
+ throw new TypeError('stepId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId,
+ recordId: recordId
+ };
+ let queryValues = {
+ stepId: stepId,
+ endLine: endLine,
+ takeCount: takeCount,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "858983e4-19bd-4c5e-864c-507b59b58b12", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} orchestrationId
+ */
+ getJobInstance(scopeIdentifier, hubName, orchestrationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ orchestrationId: orchestrationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "0a1efd25-abda-43bd-9629-6c7bdd2e0d60", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskAgentJob, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Append a log to a task's log. The log should be sent in the body of the request as a TaskLog object stream.
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId - The ID of the plan.
+ * @param {number} logId - The ID of the log.
+ */
+ appendLogContent(customHeaders, contentStream, scopeIdentifier, hubName, planId, logId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ logId: logId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "46f5667d-263a-4684-91b1-dff7fdcf64e2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskLog, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {number} logId
+ * @param {string} serializedBlobId
+ * @param {number} lineCount
+ */
+ associateLog(scopeIdentifier, hubName, planId, logId, serializedBlobId, lineCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (serializedBlobId == null) {
+ throw new TypeError('serializedBlobId can not be null or undefined');
+ }
+ if (lineCount == null) {
+ throw new TypeError('lineCount can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ logId: logId
+ };
+ let queryValues = {
+ serializedBlobId: serializedBlobId,
+ lineCount: lineCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "46f5667d-263a-4684-91b1-dff7fdcf64e2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskLog, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a log and connect it to a pipeline run's execution plan.
+ *
+ * @param {TaskAgentInterfaces.TaskLog} log - An object that contains information about log's path.
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId - The ID of the plan.
+ */
+ createLog(log, scopeIdentifier, hubName, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "46f5667d-263a-4684-91b1-dff7fdcf64e2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, log, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskLog, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {number} logId
+ * @param {number} startLine
+ * @param {number} endLine
+ */
+ getLog(scopeIdentifier, hubName, planId, logId, startLine, endLine) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ logId: logId
+ };
+ let queryValues = {
+ startLine: startLine,
+ endLine: endLine,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "46f5667d-263a-4684-91b1-dff7fdcf64e2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ */
+ getLogs(scopeIdentifier, hubName, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "46f5667d-263a-4684-91b1-dff7fdcf64e2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ */
+ getPlanGroupsQueueMetrics(scopeIdentifier, hubName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "038fd4d5-cda7-44ca-92c0-935843fee1a7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskOrchestrationPlanGroupsQueueMetrics, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {{ [key: string] : string; }} claims
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} jobId
+ * @param {string} serviceConnectionId
+ */
+ createOidcToken(claims, scopeIdentifier, hubName, planId, jobId, serviceConnectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (serviceConnectionId == null) {
+ throw new TypeError('serviceConnectionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ jobId: jobId
+ };
+ let queryValues = {
+ serviceConnectionId: serviceConnectionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "69a319f4-28c1-4bfd-93e6-ea0ff5c6f1a2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, claims, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {TaskAgentInterfaces.PlanGroupStatus} statusFilter
+ * @param {number} count
+ */
+ getQueuedPlanGroups(scopeIdentifier, hubName, statusFilter, count) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName
+ };
+ let queryValues = {
+ statusFilter: statusFilter,
+ count: count,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "0dd73091-3e36-4f43-b443-1b76dd426d84", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskOrchestrationQueuedPlanGroup, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planGroup
+ */
+ getQueuedPlanGroup(scopeIdentifier, hubName, planGroup) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planGroup: planGroup
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "65fd0708-bc1e-447b-a731-0587c5464e5b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskOrchestrationQueuedPlanGroup, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ */
+ getPlan(scopeIdentifier, hubName, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "distributedtask", "5cecd946-d704-471e-a45f-3b4064fcfaba", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TaskOrchestrationPlan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {number} changeId
+ */
+ getRecords(scopeIdentifier, hubName, planId, timelineId, changeId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId
+ };
+ let queryValues = {
+ changeId: changeId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8893bc5b-35b2-4be7-83cb-99e683551db4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TimelineRecord, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update timeline records if they already exist, otherwise create new ones for the same timeline.
+ *
+ * @param {VSSInterfaces.VssJsonCollectionWrapperV} records - The array of timeline records to be updated.
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId - The ID of the plan.
+ * @param {string} timelineId - The ID of the timeline.
+ */
+ updateRecords(records, scopeIdentifier, hubName, planId, timelineId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "8893bc5b-35b2-4be7-83cb-99e683551db4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, records, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.TimelineRecord, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TaskAgentInterfaces.Timeline} timeline
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ */
+ createTimeline(timeline, scopeIdentifier, hubName, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "83597576-cc2c-453c-bea6-2882ae6a1653", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, timeline, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.Timeline, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ */
+ deleteTimeline(scopeIdentifier, hubName, planId, timelineId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "83597576-cc2c-453c-bea6-2882ae6a1653", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ * @param {string} timelineId
+ * @param {number} changeId
+ * @param {boolean} includeRecords
+ */
+ getTimeline(scopeIdentifier, hubName, planId, timelineId, changeId, includeRecords) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId,
+ timelineId: timelineId
+ };
+ let queryValues = {
+ changeId: changeId,
+ includeRecords: includeRecords,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "83597576-cc2c-453c-bea6-2882ae6a1653", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.Timeline, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} scopeIdentifier - The project GUID to scope the request
+ * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks"
+ * @param {string} planId
+ */
+ getTimelines(scopeIdentifier, hubName, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ scopeIdentifier: scopeIdentifier,
+ hubName: hubName,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "distributedtask", "83597576-cc2c-453c-bea6-2882ae6a1653", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TaskAgentInterfaces.TypeInfo.Timeline, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.TaskApi = TaskApi;
+
+
+/***/ }),
+
+/***/ 5742:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const TestInterfaces = __nccwpck_require__(3047);
+class TestApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Test-api', options);
+ }
+ /**
+ * Attach a file to test step result
+ *
+ * @param {TestInterfaces.TestAttachmentRequestModel} attachmentRequestModel - Attachment details TestAttachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test result that contains the iteration
+ * @param {number} iterationId - ID of the test result iteration.
+ * @param {string} actionPath - Hex value of test result action path.
+ */
+ createTestIterationResultAttachment(attachmentRequestModel, project, runId, testCaseResultId, iterationId, actionPath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (iterationId == null) {
+ throw new TypeError('iterationId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ iterationId: iterationId,
+ actionPath: actionPath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Attach a file to a test result.
+ *
+ * @param {TestInterfaces.TestAttachmentRequestModel} attachmentRequestModel - Attachment details TestAttachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test result against which attachment has to be uploaded.
+ */
+ createTestResultAttachment(attachmentRequestModel, project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Attach a file to a test result
+ *
+ * @param {TestInterfaces.TestAttachmentRequestModel} attachmentRequestModel - Attachment Request Model.
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test results that contains sub result.
+ * @param {number} testSubResultId - ID of the test sub results against which attachment has to be uploaded.
+ */
+ createTestSubResultAttachment(attachmentRequestModel, project, runId, testCaseResultId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a test result attachment by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the testCaseResultId.
+ * @param {number} testCaseResultId - ID of the test result whose attachment has to be downloaded.
+ * @param {number} attachmentId - ID of the test result attachment to be downloaded.
+ */
+ getTestResultAttachmentContent(project, runId, testCaseResultId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test result attachments reference.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test result.
+ */
+ getTestResultAttachments(project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a test result attachment by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the testCaseResultId.
+ * @param {number} testCaseResultId - ID of the test result whose attachment has to be downloaded.
+ * @param {number} attachmentId - ID of the test result attachment to be downloaded.
+ */
+ getTestResultAttachmentZip(project, runId, testCaseResultId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a test sub result attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test results that contains sub result.
+ * @param {number} attachmentId - ID of the test result attachment to be downloaded
+ * @param {number} testSubResultId - ID of the test sub result whose attachment has to be downloaded
+ */
+ getTestSubResultAttachmentContent(project, runId, testCaseResultId, attachmentId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test sub result attachments
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test results that contains sub result.
+ * @param {number} testSubResultId - ID of the test sub result whose attachment has to be downloaded
+ */
+ getTestSubResultAttachments(project, runId, testCaseResultId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a test sub result attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test results that contains sub result.
+ * @param {number} attachmentId - ID of the test result attachment to be downloaded
+ * @param {number} testSubResultId - ID of the test sub result whose attachment has to be downloaded
+ */
+ getTestSubResultAttachmentZip(project, runId, testCaseResultId, attachmentId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "2bffebe9-2f0f-4639-9af8-56129e9fed2d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Attach a file to a test run.
+ *
+ * @param {TestInterfaces.TestAttachmentRequestModel} attachmentRequestModel - Attachment details TestAttachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run against which attachment has to be uploaded.
+ */
+ createTestRunAttachment(attachmentRequestModel, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "4f004af4-a507-489c-9b13-cb62060beb11", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a test run attachment by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run whose attachment has to be downloaded.
+ * @param {number} attachmentId - ID of the test run attachment to be downloaded.
+ */
+ getTestRunAttachmentContent(project, runId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "4f004af4-a507-489c-9b13-cb62060beb11", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test run attachments reference.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run.
+ */
+ getTestRunAttachments(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "4f004af4-a507-489c-9b13-cb62060beb11", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Download a test run attachment by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run whose attachment has to be downloaded.
+ * @param {number} attachmentId - ID of the test run attachment to be downloaded.
+ */
+ getTestRunAttachmentZip(project, runId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "4f004af4-a507-489c-9b13-cb62060beb11", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ */
+ getBugsLinkedToTestResult(project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "6de20ca2-67de-4faf-97fa-38c5d585eb00", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get code coverage data for a build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - ID of the build for which code coverage data needs to be fetched.
+ * @param {number} flags - Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
+ */
+ getBuildCodeCoverage(project, buildId, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ if (flags == null) {
+ throw new TypeError('flags can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "77560e8a-4e8c-4d59-894e-a5f264c24444", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.BuildCoverage, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Code Coverage Summary for Build.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - ID of the build for which code coverage data needs to be fetched.
+ * @param {number} deltaBuildId - Delta Build id (optional)
+ */
+ getCodeCoverageSummary(project, buildId, deltaBuildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ deltaBuildId: deltaBuildId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "77560e8a-4e8c-4d59-894e-a5f264c24444", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.CodeCoverageSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary
+ *
+ * @param {TestInterfaces.CodeCoverageData} coverageData
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ */
+ updateCodeCoverageSummary(coverageData, project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "77560e8a-4e8c-4d59-894e-a5f264c24444", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, coverageData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get code coverage data for a test run
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run for which code coverage data needs to be fetched.
+ * @param {number} flags - Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
+ */
+ getTestRunCodeCoverage(project, runId, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (flags == null) {
+ throw new TypeError('flags can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "9629116f-3b89-4ed8-b358-d4694efda160", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.CustomTestFieldDefinition[]} newFields
+ * @param {string} project - Project ID or project name
+ */
+ addCustomFields(newFields, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "8ce1923b-f4c7-4e22-b93b-f6284e525ec2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, newFields, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.CustomTestFieldDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {TestInterfaces.CustomTestFieldScope} scopeFilter
+ */
+ queryCustomFields(project, scopeFilter) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (scopeFilter == null) {
+ throw new TypeError('scopeFilter can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ scopeFilter: scopeFilter,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "8ce1923b-f4c7-4e22-b93b-f6284e525ec2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.CustomTestFieldDefinition, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.ResultsFilter} filter
+ * @param {string} project - Project ID or project name
+ */
+ queryTestResultHistory(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "234616f5-429c-4e7b-9192-affd76731dfd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultHistory, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get iteration for a result
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test result that contains the iterations.
+ * @param {number} iterationId - Id of the test results Iteration.
+ * @param {boolean} includeActionResults - Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
+ */
+ getTestIteration(project, runId, testCaseResultId, iterationId, includeActionResults) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ iterationId: iterationId
+ };
+ let queryValues = {
+ includeActionResults: includeActionResults,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "73eb9074-3446-4c44-8296-2f811950ff8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestIterationDetailsModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get iterations for a result
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the test run that contains the result.
+ * @param {number} testCaseResultId - ID of the test result that contains the iterations.
+ * @param {boolean} includeActionResults - Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
+ */
+ getTestIterations(project, runId, testCaseResultId, includeActionResults) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ includeActionResults: includeActionResults,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "73eb9074-3446-4c44-8296-2f811950ff8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestIterationDetailsModel, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.LinkedWorkItemsQuery} workItemQuery
+ * @param {string} project - Project ID or project name
+ */
+ getLinkedWorkItemsByQuery(workItemQuery, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "a4dcb25b-9878-49ea-abfd-e440bd9b1dcd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemQuery, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test run message logs
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to get.
+ */
+ getTestRunLogs(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "a1e55200-637e-42e9-a7c0-7e5bfdedb1b3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestMessageLogDetails, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a test point.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan.
+ * @param {number} suiteId - ID of the suite that contains the point.
+ * @param {number} pointIds - ID of the test point to get.
+ * @param {string} witFields - Comma-separated list of work item field names.
+ */
+ getPoint(project, planId, suiteId, pointIds, witFields) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ pointIds: pointIds
+ };
+ let queryValues = {
+ witFields: witFields,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "3bcfd5c8-be62-488e-b1da-b8289ce9299c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestPoint, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test points.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan.
+ * @param {number} suiteId - ID of the suite that contains the points.
+ * @param {string} witFields - Comma-separated list of work item field names.
+ * @param {string} configurationId - Get test points for specific configuration.
+ * @param {string} testCaseId - Get test points for a specific test case, valid when configurationId is not set.
+ * @param {string} testPointIds - Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set.
+ * @param {boolean} includePointDetails - Include all properties for the test point.
+ * @param {number} skip - Number of test points to skip..
+ * @param {number} top - Number of test points to return.
+ */
+ getPoints(project, planId, suiteId, witFields, configurationId, testCaseId, testPointIds, includePointDetails, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ witFields: witFields,
+ configurationId: configurationId,
+ testCaseId: testCaseId,
+ testPointIds: testPointIds,
+ includePointDetails: includePointDetails,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "3bcfd5c8-be62-488e-b1da-b8289ce9299c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestPoint, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update test points.
+ *
+ * @param {TestInterfaces.PointUpdateModel} pointUpdateModel - Data to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan.
+ * @param {number} suiteId - ID of the suite that contains the points.
+ * @param {string} pointIds - ID of the test point to get. Use a comma-separated list of IDs to update multiple test points.
+ */
+ updateTestPoints(pointUpdateModel, project, planId, suiteId, pointIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ pointIds: pointIds
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "3bcfd5c8-be62-488e-b1da-b8289ce9299c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, pointUpdateModel, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestPoint, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test points using query.
+ *
+ * @param {TestInterfaces.TestPointsQuery} query - TestPointsQuery to get test points.
+ * @param {string} project - Project ID or project name
+ * @param {number} skip - Number of test points to skip..
+ * @param {number} top - Number of test points to return.
+ */
+ getPointsByQuery(query, project, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "b4264fd0-a5d1-43e2-82a5-b9c46b7da9ce", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestPointsQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {string} groupBy
+ * @param {string} filter
+ * @param {string} orderby
+ * @param {boolean} shouldIncludeResults
+ * @param {boolean} queryRunSummaryForInProgress
+ */
+ getTestResultDetailsForBuild(project, buildId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ groupBy: groupBy,
+ '$filter': filter,
+ '$orderby': orderby,
+ shouldIncludeResults: shouldIncludeResults,
+ queryRunSummaryForInProgress: queryRunSummaryForInProgress,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "efb387b0-10d5-42e7-be40-95e06ee9430f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultsDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvId
+ * @param {string} publishContext
+ * @param {string} groupBy
+ * @param {string} filter
+ * @param {string} orderby
+ * @param {boolean} shouldIncludeResults
+ * @param {boolean} queryRunSummaryForInProgress
+ */
+ getTestResultDetailsForRelease(project, releaseId, releaseEnvId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (releaseEnvId == null) {
+ throw new TypeError('releaseEnvId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvId: releaseEnvId,
+ publishContext: publishContext,
+ groupBy: groupBy,
+ '$filter': filter,
+ '$orderby': orderby,
+ shouldIncludeResults: shouldIncludeResults,
+ queryRunSummaryForInProgress: queryRunSummaryForInProgress,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "b834ec7e-35bb-450f-a3c8-802e70ca40dd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultsDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.TestResultDocument} document
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ publishTestResultDocument(document, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "370ca04b-8eec-4ca8-8ba3-d24dca228791", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, document, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {string[]} fields
+ * @param {string} continuationToken
+ */
+ getResultGroupsByBuild(project, buildId, publishContext, fields, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ if (publishContext == null) {
+ throw new TypeError('publishContext can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ fields: fields && fields.join(","),
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "d279d052-c55a-4204-b913-42f733b52958", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {string} publishContext
+ * @param {number} releaseEnvId
+ * @param {string[]} fields
+ * @param {string} continuationToken
+ */
+ getResultGroupsByRelease(project, releaseId, publishContext, releaseEnvId, fields, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (publishContext == null) {
+ throw new TypeError('publishContext can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ publishContext: publishContext,
+ releaseEnvId: releaseEnvId,
+ fields: fields && fields.join(","),
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "ef5ce5d4-a4e5-47ee-804c-354518f8d03f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test Result meta data details for corresponding testcasereferenceId
+ *
+ * @param {string[]} testReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
+ * @param {string} project - Project ID or project name
+ */
+ queryTestResultsMetaData(testReferenceIds, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "afa7830e-67a7-4336-8090-2b448ca80295", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testReferenceIds, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test result retention settings
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getResultRetentionSettings(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "a3206d9e-fa8d-42d3-88cb-f75c51e69cde", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.ResultRetentionSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update test result retention settings
+ *
+ * @param {TestInterfaces.ResultRetentionSettings} retentionSettings - Test result retention settings details to be updated
+ * @param {string} project - Project ID or project name
+ */
+ updateResultRetentionSettings(retentionSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "a3206d9e-fa8d-42d3-88cb-f75c51e69cde", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, retentionSettings, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.ResultRetentionSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add test results to a test run.
+ *
+ * @param {TestInterfaces.TestCaseResult[]} results - List of test results to add.
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test run ID into which test results to add.
+ */
+ addTestResultsToTestRun(results, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.6", "Test", "4637d869-3a76-4468-8057-0bb02aa385cf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, results, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a test result for a test run.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test run ID of a test result to fetch.
+ * @param {number} testCaseResultId - Test result ID.
+ * @param {TestInterfaces.ResultDetails} detailsToInclude - Details to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults.
+ */
+ getTestResultById(project, runId, testCaseResultId, detailsToInclude) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ detailsToInclude: detailsToInclude,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.6", "Test", "4637d869-3a76-4468-8057-0bb02aa385cf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestCaseResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test results for a test run.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test run ID of test results to fetch.
+ * @param {TestInterfaces.ResultDetails} detailsToInclude - Details to include with test results. Default is None. Other values are Iterations and WorkItems.
+ * @param {number} skip - Number of test results to skip from beginning.
+ * @param {number} top - Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
+ * @param {TestInterfaces.TestOutcome[]} outcomes - Comma separated list of test outcomes to filter test results.
+ */
+ getTestResults(project, runId, detailsToInclude, skip, top, outcomes) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ detailsToInclude: detailsToInclude,
+ '$skip': skip,
+ '$top': top,
+ outcomes: outcomes && outcomes.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.6", "Test", "4637d869-3a76-4468-8057-0bb02aa385cf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update test results in a test run.
+ *
+ * @param {TestInterfaces.TestCaseResult[]} results - List of test results to update.
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test run ID whose test results to update.
+ */
+ updateTestResults(results, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.6", "Test", "4637d869-3a76-4468-8057-0bb02aa385cf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, results, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * This API will return results by Ids with fields specified/trend for particular automated test method. We are still improving this API and have not finalized proper signature and contract.
+ *
+ * @param {TestInterfaces.TestResultsQuery} query
+ * @param {string} project - Project ID or project name
+ */
+ getTestResultsByQuery(query, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.6", "Test", "6711da49-8e6f-4d35-9f73-cef7a3c81a5b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultsQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {TestInterfaces.TestOutcome[]} outcomes
+ * @param {number} top
+ * @param {string} continuationToken
+ */
+ getTestResultsByBuild(project, buildId, publishContext, outcomes, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ outcomes: outcomes && outcomes.join(","),
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "3c191b88-615b-4be2-b7d9-5ff9141e91d4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvid
+ * @param {string} publishContext
+ * @param {TestInterfaces.TestOutcome[]} outcomes
+ * @param {number} top
+ * @param {string} continuationToken
+ */
+ getTestResultsByRelease(project, releaseId, releaseEnvid, publishContext, outcomes, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvid: releaseEnvid,
+ publishContext: publishContext,
+ outcomes: outcomes && outcomes.join(","),
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "ce01820b-83f3-4c15-a583-697a43292c4e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {boolean} includeFailureDetails
+ * @param {TestInterfaces.BuildReference} buildToCompare
+ */
+ queryTestResultsReportForBuild(project, buildId, publishContext, includeFailureDetails, buildToCompare) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ includeFailureDetails: includeFailureDetails,
+ buildToCompare: buildToCompare,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "000ef77b-fea2-498d-a10d-ad1a037f559f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvId
+ * @param {string} publishContext
+ * @param {boolean} includeFailureDetails
+ * @param {TestInterfaces.ReleaseReference} releaseToCompare
+ */
+ queryTestResultsReportForRelease(project, releaseId, releaseEnvId, publishContext, includeFailureDetails, releaseToCompare) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (releaseEnvId == null) {
+ throw new TypeError('releaseEnvId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvId: releaseEnvId,
+ publishContext: publishContext,
+ includeFailureDetails: includeFailureDetails,
+ releaseToCompare: releaseToCompare,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "85765790-ac68-494e-b268-af36c3929744", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.ReleaseReference[]} releases
+ * @param {string} project - Project ID or project name
+ */
+ queryTestResultsSummaryForReleases(releases, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "85765790-ac68-494e-b268-af36c3929744", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, releases, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestResultSummary, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.TestResultsContext} resultsContext
+ * @param {string} project - Project ID or project name
+ * @param {number[]} workItemIds
+ */
+ queryTestSummaryByRequirement(resultsContext, project, workItemIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ workItemIds: workItemIds && workItemIds.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "cd08294e-308d-4460-a46e-4cfdefba0b4b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, resultsContext, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestSummaryForWorkItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.TestResultTrendFilter} filter
+ * @param {string} project - Project ID or project name
+ */
+ queryResultTrendForBuild(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "fbc82a85-0786-4442-88bb-eb0fda6b01b0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.AggregatedDataForResultTrend, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.TestResultTrendFilter} filter
+ * @param {string} project - Project ID or project name
+ */
+ queryResultTrendForRelease(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "dd178e93-d8dd-4887-9635-d6b9560b7b6e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.AggregatedDataForResultTrend, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test run statistics , used when we want to get summary of a run by outcome.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to get.
+ */
+ getTestRunStatistics(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "0a42c424-d764-4a16-a2d5-5c85f87d0ae8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestRunStatistic, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create new test run.
+ *
+ * @param {TestInterfaces.RunCreateModel} testRun - Run details RunCreateModel
+ * @param {string} project - Project ID or project name
+ */
+ createTestRun(testRun, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "cadb3810-d47d-4a3c-a234-fe5f3be50138", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testRun, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestRun, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a test run by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to delete.
+ */
+ deleteTestRun(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "cadb3810-d47d-4a3c-a234-fe5f3be50138", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a test run by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to get.
+ * @param {boolean} includeDetails - Default value is true. It includes details like run statistics, release, build, test environment, post process state, and more.
+ */
+ getTestRunById(project, runId, includeDetails) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ includeDetails: includeDetails,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "cadb3810-d47d-4a3c-a234-fe5f3be50138", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestRun, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test runs.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} buildUri - URI of the build that the runs used.
+ * @param {string} owner - Team foundation ID of the owner of the runs.
+ * @param {string} tmiRunId
+ * @param {number} planId - ID of the test plan that the runs are a part of.
+ * @param {boolean} includeRunDetails - If true, include all the properties of the runs.
+ * @param {boolean} automated - If true, only returns automated runs.
+ * @param {number} skip - Number of test runs to skip.
+ * @param {number} top - Number of test runs to return.
+ */
+ getTestRuns(project, buildUri, owner, tmiRunId, planId, includeRunDetails, automated, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildUri: buildUri,
+ owner: owner,
+ tmiRunId: tmiRunId,
+ planId: planId,
+ includeRunDetails: includeRunDetails,
+ automated: automated,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "cadb3810-d47d-4a3c-a234-fe5f3be50138", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestRun, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {Date} minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
+ * @param {Date} maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
+ * @param {TestInterfaces.TestRunState} state - Current state of the Runs to be queried.
+ * @param {number[]} planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {boolean} isAutomated - Automation type of the Runs to be queried.
+ * @param {TestInterfaces.TestRunPublishContext} publishContext - PublishContext of the Runs to be queried.
+ * @param {number[]} buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {number[]} buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {string} branchName - Source Branch name of the Runs to be queried.
+ * @param {number[]} releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {number[]} releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {number[]} releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {number[]} releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
+ * @param {string} runTitle - Run Title of the Runs to be queried.
+ * @param {number} top - Number of runs to be queried. Limit is 100
+ * @param {string} continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
+ */
+ queryTestRuns(project, minLastUpdatedDate, maxLastUpdatedDate, state, planIds, isAutomated, publishContext, buildIds, buildDefIds, branchName, releaseIds, releaseDefIds, releaseEnvIds, releaseEnvDefIds, runTitle, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (minLastUpdatedDate == null) {
+ throw new TypeError('minLastUpdatedDate can not be null or undefined');
+ }
+ if (maxLastUpdatedDate == null) {
+ throw new TypeError('maxLastUpdatedDate can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ minLastUpdatedDate: minLastUpdatedDate,
+ maxLastUpdatedDate: maxLastUpdatedDate,
+ state: state,
+ planIds: planIds && planIds.join(","),
+ isAutomated: isAutomated,
+ publishContext: publishContext,
+ buildIds: buildIds && buildIds.join(","),
+ buildDefIds: buildDefIds && buildDefIds.join(","),
+ branchName: branchName,
+ releaseIds: releaseIds && releaseIds.join(","),
+ releaseDefIds: releaseDefIds && releaseDefIds.join(","),
+ releaseEnvIds: releaseEnvIds && releaseEnvIds.join(","),
+ releaseEnvDefIds: releaseEnvDefIds && releaseEnvDefIds.join(","),
+ runTitle: runTitle,
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "cadb3810-d47d-4a3c-a234-fe5f3be50138", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestRun, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update test run by its ID.
+ *
+ * @param {TestInterfaces.RunUpdateModel} runUpdateModel - Run details RunUpdateModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to update.
+ */
+ updateTestRun(runUpdateModel, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "cadb3810-d47d-4a3c-a234-fe5f3be50138", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, runUpdateModel, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestRun, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a test session
+ *
+ * @param {TestInterfaces.TestSession} testSession - Test session details for creation
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ createTestSession(testSession, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testSession, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestSession, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test sessions
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {number} period - Period in days from now, for which test sessions are fetched.
+ * @param {boolean} allSessions - If false, returns test sessions for current user. Otherwise, it returns test sessions for all users
+ * @param {boolean} includeAllProperties - If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.
+ * @param {TestInterfaces.TestSessionSource} source - Source of the test session.
+ * @param {boolean} includeOnlyCompletedSessions - If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states
+ */
+ getTestSessions(teamContext, period, allSessions, includeAllProperties, source, includeOnlyCompletedSessions) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ let queryValues = {
+ period: period,
+ allSessions: allSessions,
+ includeAllProperties: includeAllProperties,
+ source: source,
+ includeOnlyCompletedSessions: includeOnlyCompletedSessions,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestSession, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a test session
+ *
+ * @param {TestInterfaces.TestSession} testSession - Test session details for update
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ updateTestSession(testSession, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testSession, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestSession, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} sharedParameterId
+ */
+ deleteSharedParameter(project, sharedParameterId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ sharedParameterId: sharedParameterId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "8300eeca-0f8c-4eff-a089-d2dda409c41f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} sharedStepId
+ */
+ deleteSharedStep(project, sharedStepId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ sharedStepId: sharedStepId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "fabb3cc9-e3f8-40b7-8b62-24cc4b73fccf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add test cases to suite.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suite.
+ * @param {number} suiteId - ID of the test suite to which the test cases must be added.
+ * @param {string} testCaseIds - IDs of the test cases to add to the suite. Ids are specified in comma separated format.
+ */
+ addTestCasesToSuite(project, planId, suiteId, testCaseIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "TestCases",
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ testCaseIds: testCaseIds
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "a4a1ec1c-b03f-41ca-8857-704594ecf58e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a specific test case in a test suite with test case id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suites.
+ * @param {number} suiteId - ID of the suite that contains the test case.
+ * @param {number} testCaseIds - ID of the test case to get.
+ */
+ getTestCaseById(project, planId, suiteId, testCaseIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "TestCases",
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ testCaseIds: testCaseIds
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "a4a1ec1c-b03f-41ca-8857-704594ecf58e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all test cases in a suite.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suites.
+ * @param {number} suiteId - ID of the suite to get.
+ */
+ getTestCases(project, planId, suiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "TestCases",
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "a4a1ec1c-b03f-41ca-8857-704594ecf58e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suite.
+ * @param {number} suiteId - ID of the suite to get.
+ * @param {string} testCaseIds - IDs of the test cases to remove from the suite.
+ */
+ removeTestCasesFromSuiteUrl(project, planId, suiteId, testCaseIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "TestCases",
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ testCaseIds: testCaseIds
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "a4a1ec1c-b03f-41ca-8857-704594ecf58e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the properties of the test case association in a suite.
+ *
+ * @param {TestInterfaces.SuiteTestCaseUpdateModel} suiteTestCaseUpdateModel - Model for updation of the properties of test case suite association.
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suite.
+ * @param {number} suiteId - ID of the test suite to which the test cases must be added.
+ * @param {string} testCaseIds - IDs of the test cases to add to the suite. Ids are specified in comma separated format.
+ */
+ updateSuiteTestCases(suiteTestCaseUpdateModel, project, planId, suiteId, testCaseIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ action: "TestCases",
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ testCaseIds: testCaseIds
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "Test", "a4a1ec1c-b03f-41ca-8857-704594ecf58e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, suiteTestCaseUpdateModel, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a test case.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} testCaseId - Id of test case to delete.
+ */
+ deleteTestCase(project, testCaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testCaseId: testCaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "4d472e0f-e32c-4ef8-adf4-a4078772889c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get history of a test method using TestHistoryQuery
+ *
+ * @param {TestInterfaces.TestHistoryQuery} filter - TestHistoryQuery to get history
+ * @param {string} project - Project ID or project name
+ */
+ queryTestHistory(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "Test", "929fd86c-3e38-4d8c-b4b6-90df256e5971", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.TestHistoryQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.TestSettings} testSettings
+ * @param {string} project - Project ID or project name
+ */
+ createTestSettings(testSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "8133ce14-962f-42af-a5f9-6aa9defcb9c8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} testSettingsId
+ */
+ deleteTestSettings(project, testSettingsId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testSettingsId: testSettingsId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "8133ce14-962f-42af-a5f9-6aa9defcb9c8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} testSettingsId
+ */
+ getTestSettingsById(project, testSettingsId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testSettingsId: testSettingsId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "8133ce14-962f-42af-a5f9-6aa9defcb9c8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestInterfaces.WorkItemToTestLinks} workItemToTestLinks
+ * @param {string} project - Project ID or project name
+ */
+ addWorkItemToTestLinks(workItemToTestLinks, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "371b1655-ce05-412e-a113-64cc77bb78d2", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemToTestLinks, options);
+ let ret = this.formatResponse(res.result, TestInterfaces.TypeInfo.WorkItemToTestLinks, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} testName
+ * @param {number} workItemId
+ */
+ deleteTestMethodToWorkItemLink(project, testName, workItemId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testName == null) {
+ throw new TypeError('testName can not be null or undefined');
+ }
+ if (workItemId == null) {
+ throw new TypeError('workItemId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testName: testName,
+ workItemId: workItemId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "7b0bdee3-a354-47f9-a42c-89018d7808d5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} testName
+ */
+ queryTestMethodLinkedWorkItems(project, testName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testName == null) {
+ throw new TypeError('testName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testName: testName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "7b0bdee3-a354-47f9-a42c-89018d7808d5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} workItemCategory
+ * @param {string} automatedTestName
+ * @param {number} testCaseId
+ * @param {Date} maxCompleteDate
+ * @param {number} days
+ * @param {number} workItemCount
+ */
+ queryTestResultWorkItems(project, workItemCategory, automatedTestName, testCaseId, maxCompleteDate, days, workItemCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (workItemCategory == null) {
+ throw new TypeError('workItemCategory can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ workItemCategory: workItemCategory,
+ automatedTestName: automatedTestName,
+ testCaseId: testCaseId,
+ maxCompleteDate: maxCompleteDate,
+ days: days,
+ '$workItemCount': workItemCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "Test", "926ff5dc-137f-45f0-bd51-9412fa9810ce", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+TestApi.RESOURCE_AREA_ID = "c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e";
+exports.TestApi = TestApi;
+
+
+/***/ }),
+
+/***/ 8737:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const TestPlanInterfaces = __nccwpck_require__(8969);
+class TestPlanApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-TestPlan-api', options);
+ }
+ /**
+ * Create a test configuration.
+ *
+ * @param {TestPlanInterfaces.TestConfigurationCreateUpdateParameters} testConfigurationCreateUpdateParameters - TestConfigurationCreateUpdateParameters
+ * @param {string} project - Project ID or project name
+ */
+ createTestConfiguration(testConfigurationCreateUpdateParameters, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "8369318e-38fa-4e84-9043-4b2a75d2c256", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testConfigurationCreateUpdateParameters, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a test configuration by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} testConfiguartionId - ID of the test configuration to delete.
+ */
+ deleteTestConfguration(project, testConfiguartionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testConfiguartionId == null) {
+ throw new TypeError('testConfiguartionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testConfiguartionId: testConfiguartionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "8369318e-38fa-4e84-9043-4b2a75d2c256", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a test configuration
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} testConfigurationId - ID of the test configuration to get.
+ */
+ getTestConfigurationById(project, testConfigurationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testConfigurationId: testConfigurationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "8369318e-38fa-4e84-9043-4b2a75d2c256", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test configurations.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} continuationToken - If the list of configurations returned is not complete, a continuation token to query next batch of configurations is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test configurations.
+ */
+ getTestConfigurations(project, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "8369318e-38fa-4e84-9043-4b2a75d2c256", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestConfiguration, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a test configuration by its ID.
+ *
+ * @param {TestPlanInterfaces.TestConfigurationCreateUpdateParameters} testConfigurationCreateUpdateParameters - TestConfigurationCreateUpdateParameters
+ * @param {string} project - Project ID or project name
+ * @param {number} testConfiguartionId - ID of the test configuration to update.
+ */
+ updateTestConfiguration(testConfigurationCreateUpdateParameters, project, testConfiguartionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testConfiguartionId == null) {
+ throw new TypeError('testConfiguartionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testConfiguartionId: testConfiguartionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "8369318e-38fa-4e84-9043-4b2a75d2c256", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testConfigurationCreateUpdateParameters, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} planId
+ * @param {string} states
+ * @param {TestPlanInterfaces.UserFriendlyTestOutcome} outcome
+ * @param {string} configurations
+ * @param {string} testers
+ * @param {string} assignedTo
+ * @param {TestPlanInterfaces.TestEntityTypes} entity
+ */
+ getTestEntityCountByPlanId(project, planId, states, outcome, configurations, testers, assignedTo, entity) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId
+ };
+ let queryValues = {
+ states: states,
+ outcome: outcome,
+ configurations: configurations,
+ testers: testers,
+ assignedTo: assignedTo,
+ entity: entity,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "300578da-7b40-4c1e-9542-7aed6029e504", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a test plan.
+ *
+ * @param {TestPlanInterfaces.TestPlanCreateParams} testPlanCreateParams - A testPlanCreateParams object.TestPlanCreateParams
+ * @param {string} project - Project ID or project name
+ */
+ createTestPlan(testPlanCreateParams, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "0e292477-a0c2-47f3-a9b6-34f153d627f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testPlanCreateParams, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPlan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a test plan.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan to be deleted.
+ */
+ deleteTestPlan(project, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "0e292477-a0c2-47f3-a9b6-34f153d627f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a test plan by Id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan to get.
+ */
+ getTestPlanById(project, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "0e292477-a0c2-47f3-a9b6-34f153d627f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPlan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test plans
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} owner - Filter for test plan by owner ID or name
+ * @param {string} continuationToken - If the list of plans returned is not complete, a continuation token to query next batch of plans is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test plans.
+ * @param {boolean} includePlanDetails - Get all properties of the test plan
+ * @param {boolean} filterActivePlans - Get just the active plans
+ */
+ getTestPlans(project, owner, continuationToken, includePlanDetails, filterActivePlans) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ owner: owner,
+ continuationToken: continuationToken,
+ includePlanDetails: includePlanDetails,
+ filterActivePlans: filterActivePlans,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "0e292477-a0c2-47f3-a9b6-34f153d627f4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPlan, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a test plan.
+ *
+ * @param {TestPlanInterfaces.TestPlanUpdateParams} testPlanUpdateParams - A testPlanUpdateParams object.TestPlanUpdateParams
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan to be updated.
+ */
+ updateTestPlan(testPlanUpdateParams, project, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "0e292477-a0c2-47f3-a9b6-34f153d627f4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testPlanUpdateParams, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPlan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test suite entries in the test suite.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} suiteId - Id of the parent suite.
+ * @param {TestPlanInterfaces.SuiteEntryTypes} suiteEntryType
+ */
+ getSuiteEntries(project, suiteId, suiteEntryType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ suiteEntryType: suiteEntryType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "d6733edf-72f1-4252-925b-c560dfe9b75a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.SuiteEntry, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Reorder test suite entries in the test suite.
+ *
+ * @param {TestPlanInterfaces.SuiteEntryUpdateParams[]} suiteEntries - List of SuiteEntry to reorder.
+ * @param {string} project - Project ID or project name
+ * @param {number} suiteId - Id of the parent test suite.
+ */
+ reorderSuiteEntries(suiteEntries, project, suiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ suiteId: suiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "d6733edf-72f1-4252-925b-c560dfe9b75a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, suiteEntries, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.SuiteEntry, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create bulk requirement based test suites.
+ *
+ * @param {TestPlanInterfaces.TestSuiteCreateParams[]} testSuiteCreateParams - Parameters for suite creation
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan where requirement based suites need to be created.
+ * @param {number} parentSuiteId - ID of the parent suite under which requirement based suites will be created
+ */
+ createBulkTestSuites(testSuiteCreateParams, project, planId, parentSuiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ parentSuiteId: parentSuiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "1e58fbe6-1761-43ce-97f6-5492ec9d438e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testSuiteCreateParams, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestSuite, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create test suite.
+ *
+ * @param {TestPlanInterfaces.TestSuiteCreateParams} testSuiteCreateParams - Parameters for suite creation
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suites.
+ */
+ createTestSuite(testSuiteCreateParams, project, planId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "1046d5d3-ab61-4ca7-a65a-36118a978256", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testSuiteCreateParams, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestSuite, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete test suite.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suite.
+ * @param {number} suiteId - ID of the test suite to delete.
+ */
+ deleteTestSuite(project, planId, suiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "1046d5d3-ab61-4ca7-a65a-36118a978256", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test suite by suite id.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suites.
+ * @param {number} suiteId - ID of the suite to get.
+ * @param {TestPlanInterfaces.SuiteExpand} expand - Include the children suites and testers details
+ */
+ getTestSuiteById(project, planId, suiteId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ expand: expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "1046d5d3-ab61-4ca7-a65a-36118a978256", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestSuite, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test suites for plan.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan for which suites are requested.
+ * @param {TestPlanInterfaces.SuiteExpand} expand - Include the children suites and testers details.
+ * @param {string} continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
+ * @param {boolean} asTreeView - If the suites returned should be in a tree structure.
+ */
+ getTestSuitesForPlan(project, planId, expand, continuationToken, asTreeView) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId
+ };
+ let queryValues = {
+ expand: expand,
+ continuationToken: continuationToken,
+ asTreeView: asTreeView,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "1046d5d3-ab61-4ca7-a65a-36118a978256", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestSuite, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update test suite.
+ *
+ * @param {TestPlanInterfaces.TestSuiteUpdateParams} testSuiteUpdateParams - Parameters for suite updation
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan that contains the suites.
+ * @param {number} suiteId - ID of the parent suite.
+ */
+ updateTestSuite(testSuiteUpdateParams, project, planId, suiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "1046d5d3-ab61-4ca7-a65a-36118a978256", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testSuiteUpdateParams, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestSuite, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Find the list of all test suites in which a given test case is present. This is helpful if you need to find out which test suites are using a test case, when you need to make changes to a test case.
+ *
+ * @param {number} testCaseId - ID of the test case for which suites need to be fetched.
+ */
+ getSuitesByTestCaseId(testCaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testCaseId == null) {
+ throw new TypeError('testCaseId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ testCaseId: testCaseId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "a4080e84-f17b-4fad-84f1-7960b6525bf2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestSuite, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add test cases to a suite with specified configurations
+ *
+ * @param {TestPlanInterfaces.SuiteTestCaseCreateUpdateParameters[]} suiteTestCaseCreateUpdateParameters - SuiteTestCaseCreateUpdateParameters object.
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan to which test cases are to be added.
+ * @param {number} suiteId - ID of the test suite to which test cases are to be added.
+ */
+ addTestCasesToSuite(suiteTestCaseCreateUpdateParameters, project, planId, suiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.3", "testplan", "a9bd61ac-45cf-4d13-9441-43dcd01edf8d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, suiteTestCaseCreateUpdateParameters, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestCase, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a particular Test Case from a Suite.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan for which test cases are requested.
+ * @param {number} suiteId - ID of the test suite for which test cases are requested.
+ * @param {string} testCaseId - Test Case Id to be fetched.
+ * @param {string} witFields - Get the list of witFields.
+ * @param {boolean} returnIdentityRef - If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.
+ */
+ getTestCase(project, planId, suiteId, testCaseId, witFields, returnIdentityRef) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId,
+ testCaseId: testCaseId
+ };
+ let queryValues = {
+ witFields: witFields,
+ returnIdentityRef: returnIdentityRef,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.3", "testplan", "a9bd61ac-45cf-4d13-9441-43dcd01edf8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestCase, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Test Case List return those test cases which have all the configuration Ids as mentioned in the optional parameter. If configuration Ids is null, it return all the test cases
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan for which test cases are requested.
+ * @param {number} suiteId - ID of the test suite for which test cases are requested.
+ * @param {string} testIds - Test Case Ids to be fetched.
+ * @param {string} configurationIds - Fetch Test Cases which contains all the configuration Ids specified.
+ * @param {string} witFields - Get the list of witFields.
+ * @param {string} continuationToken - If the list of test cases returned is not complete, a continuation token to query next batch of test cases is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test cases.
+ * @param {boolean} returnIdentityRef - If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.
+ * @param {boolean} expand - If set to false, will get a smaller payload containing only basic details about the suite test case object
+ * @param {TestPlanInterfaces.ExcludeFlags} excludeFlags - Flag to exclude various values from payload. For example to remove point assignments pass exclude = 1. To remove extra information (links, test plan , test suite) pass exclude = 2. To remove both extra information and point assignments pass exclude = 3 (1 + 2).
+ * @param {boolean} isRecursive
+ */
+ getTestCaseList(project, planId, suiteId, testIds, configurationIds, witFields, continuationToken, returnIdentityRef, expand, excludeFlags, isRecursive) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ testIds: testIds,
+ configurationIds: configurationIds,
+ witFields: witFields,
+ continuationToken: continuationToken,
+ returnIdentityRef: returnIdentityRef,
+ expand: expand,
+ excludeFlags: excludeFlags,
+ isRecursive: isRecursive,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.3", "testplan", "a9bd61ac-45cf-4d13-9441-43dcd01edf8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestCase, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes test cases from a suite based on the list of test case Ids provided.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan from which test cases are to be removed.
+ * @param {number} suiteId - ID of the test suite from which test cases are to be removed.
+ * @param {string} testCaseIds - Test Case Ids to be removed.
+ */
+ removeTestCasesFromSuite(project, planId, suiteId, testCaseIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testCaseIds == null) {
+ throw new TypeError('testCaseIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ testCaseIds: testCaseIds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.3", "testplan", "a9bd61ac-45cf-4d13-9441-43dcd01edf8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes test cases from a suite based on the list of test case Ids provided. This API can be used to remove a larger number of test cases.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan from which test cases are to be removed.
+ * @param {number} suiteId - ID of the test suite from which test cases are to be removed.
+ * @param {string} testIds - Comma separated string of Test Case Ids to be removed.
+ */
+ removeTestCasesListFromSuite(project, planId, suiteId, testIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testIds == null) {
+ throw new TypeError('testIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ testIds: testIds,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.3", "testplan", "a9bd61ac-45cf-4d13-9441-43dcd01edf8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the configurations for test cases
+ *
+ * @param {TestPlanInterfaces.SuiteTestCaseCreateUpdateParameters[]} suiteTestCaseCreateUpdateParameters - A SuiteTestCaseCreateUpdateParameters object.
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan to which test cases are to be updated.
+ * @param {number} suiteId - ID of the test suite to which test cases are to be updated.
+ */
+ updateSuiteTestCases(suiteTestCaseCreateUpdateParameters, project, planId, suiteId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.3", "testplan", "a9bd61ac-45cf-4d13-9441-43dcd01edf8d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, suiteTestCaseCreateUpdateParameters, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestCase, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TestPlanInterfaces.CloneTestCaseParams} cloneRequestBody
+ * @param {string} project - Project ID or project name
+ */
+ cloneTestCase(cloneRequestBody, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "529b2b8d-82f4-4893-b1e4-1e74ea534673", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, cloneRequestBody, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.CloneTestCaseOperationInformation, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get clone information.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} cloneOperationId - Operation ID returned when we queue a clone operation
+ */
+ getTestCaseCloneInformation(project, cloneOperationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ cloneOperationId: cloneOperationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "529b2b8d-82f4-4893-b1e4-1e74ea534673", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.CloneTestCaseOperationInformation, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Exports a set of test cases from a suite to a file. Currently supported formats: xlsx
+ *
+ * @param {TestPlanInterfaces.ExportTestCaseParams} exportTestCaseRequestBody - A ExportTestCaseParams object.ExportTestCaseParams
+ * @param {string} project - Project ID or project name
+ */
+ exportTestCases(exportTestCaseRequestBody, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "3b9d1c87-6b1a-4e7d-9e7d-1a8e543112bb", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a test case.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} testCaseId - Id of test case to be deleted.
+ */
+ deleteTestCase(project, testCaseId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testCaseId: testCaseId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "29006fb5-816b-4ff7-a329-599943569229", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Clone test plan
+ *
+ * @param {TestPlanInterfaces.CloneTestPlanParams} cloneRequestBody - Plan Clone Request Body detail TestPlanCloneRequest
+ * @param {string} project - Project ID or project name
+ * @param {boolean} deepClone - Clones all the associated test cases as well
+ */
+ cloneTestPlan(cloneRequestBody, project, deepClone) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ deepClone: deepClone,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "e65df662-d8a3-46c7-ae1c-14e2d4df57e1", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, cloneRequestBody, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.CloneTestPlanOperationInformation, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get clone information.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} cloneOperationId - Operation ID returned when we queue a clone operation
+ */
+ getCloneInformation(project, cloneOperationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ cloneOperationId: cloneOperationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "e65df662-d8a3-46c7-ae1c-14e2d4df57e1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.CloneTestPlanOperationInformation, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a particular Test Point from a suite.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan for which test points are requested.
+ * @param {number} suiteId - ID of the test suite for which test points are requested.
+ * @param {string} pointId - ID of test point to be fetched.
+ * @param {boolean} returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
+ * @param {boolean} includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
+ */
+ getPoints(project, planId, suiteId, pointId, returnIdentityRef, includePointDetails) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (pointId == null) {
+ throw new TypeError('pointId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ pointId: pointId,
+ returnIdentityRef: returnIdentityRef,
+ includePointDetails: includePointDetails,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "52df686e-bae4-4334-b0ee-b6cf4e6f6b73", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPoint, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all the points inside a suite based on some filters
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan for which test points are requested.
+ * @param {number} suiteId - ID of the test suite for which test points are requested
+ * @param {string} testPointIds - ID of test points to fetch.
+ * @param {string} testCaseId - Get Test Points for specific test case Ids.
+ * @param {string} continuationToken - If the list of test point returned is not complete, a continuation token to query next batch of test points is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test points.
+ * @param {boolean} returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
+ * @param {boolean} includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
+ * @param {boolean} isRecursive - If set to true, will also fetch test points belonging to child suites recursively.
+ */
+ getPointsList(project, planId, suiteId, testPointIds, testCaseId, continuationToken, returnIdentityRef, includePointDetails, isRecursive) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ testPointIds: testPointIds,
+ testCaseId: testCaseId,
+ continuationToken: continuationToken,
+ returnIdentityRef: returnIdentityRef,
+ includePointDetails: includePointDetails,
+ isRecursive: isRecursive,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "52df686e-bae4-4334-b0ee-b6cf4e6f6b73", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPoint, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update Test Points. This is used to Reset test point to active, update the outcome of a test point or update the tester of a test point
+ *
+ * @param {TestPlanInterfaces.TestPointUpdateParams[]} testPointUpdateParams - A TestPointUpdateParams Object.
+ * @param {string} project - Project ID or project name
+ * @param {number} planId - ID of the test plan for which test points are requested.
+ * @param {number} suiteId - ID of the test suite for which test points are requested.
+ * @param {boolean} includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
+ * @param {boolean} returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
+ */
+ updateTestPoints(testPointUpdateParams, project, planId, suiteId, includePointDetails, returnIdentityRef) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ planId: planId,
+ suiteId: suiteId
+ };
+ let queryValues = {
+ includePointDetails: includePointDetails,
+ returnIdentityRef: returnIdentityRef,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "52df686e-bae4-4334-b0ee-b6cf4e6f6b73", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testPointUpdateParams, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestPoint, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Clone test suite
+ *
+ * @param {TestPlanInterfaces.CloneTestSuiteParams} cloneRequestBody - Suite Clone Request Body detail TestSuiteCloneRequest
+ * @param {string} project - Project ID or project name
+ * @param {boolean} deepClone - Clones all the associated test cases as well
+ */
+ cloneTestSuite(cloneRequestBody, project, deepClone) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ deepClone: deepClone,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "181d4c97-0e98-4ee2-ad6a-4cada675e555", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, cloneRequestBody, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.CloneTestSuiteOperationInformation, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get clone information.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} cloneOperationId - Operation ID returned when we queue a clone operation
+ */
+ getSuiteCloneInformation(project, cloneOperationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ cloneOperationId: cloneOperationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.2", "testplan", "181d4c97-0e98-4ee2-ad6a-4cada675e555", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.CloneTestSuiteOperationInformation, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a test variable.
+ *
+ * @param {TestPlanInterfaces.TestVariableCreateUpdateParameters} testVariableCreateUpdateParameters - TestVariableCreateUpdateParameters
+ * @param {string} project - Project ID or project name
+ */
+ createTestVariable(testVariableCreateUpdateParameters, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "2c61fac6-ac4e-45a5-8c38-1c2b8fd8ea6c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testVariableCreateUpdateParameters, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestVariable, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a test variable by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} testVariableId - ID of the test variable to delete.
+ */
+ deleteTestVariable(project, testVariableId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testVariableId: testVariableId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "2c61fac6-ac4e-45a5-8c38-1c2b8fd8ea6c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a test variable by its ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} testVariableId - ID of the test variable to get.
+ */
+ getTestVariableById(project, testVariableId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testVariableId: testVariableId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "2c61fac6-ac4e-45a5-8c38-1c2b8fd8ea6c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestVariable, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of test variables.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} continuationToken - If the list of variables returned is not complete, a continuation token to query next batch of variables is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test variables.
+ */
+ getTestVariables(project, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "2c61fac6-ac4e-45a5-8c38-1c2b8fd8ea6c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestVariable, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a test variable by its ID.
+ *
+ * @param {TestPlanInterfaces.TestVariableCreateUpdateParameters} testVariableCreateUpdateParameters - TestVariableCreateUpdateParameters
+ * @param {string} project - Project ID or project name
+ * @param {number} testVariableId - ID of the test variable to update.
+ */
+ updateTestVariable(testVariableCreateUpdateParameters, project, testVariableId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testVariableId: testVariableId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.2-preview.1", "testplan", "2c61fac6-ac4e-45a5-8c38-1c2b8fd8ea6c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testVariableCreateUpdateParameters, options);
+ let ret = this.formatResponse(res.result, TestPlanInterfaces.TypeInfo.TestVariable, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+exports.TestPlanApi = TestPlanApi;
+
+
+/***/ }),
+
+/***/ 1819:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const Contracts = __nccwpck_require__(3047);
+class TestResultsApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-testResults-api', options);
+ }
+ /**
+ * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} iterationId
+ * @param {string} actionPath
+ */
+ createTestIterationResultAttachment(attachmentRequestModel, project, runId, testCaseResultId, iterationId, actionPath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (iterationId == null) {
+ throw new TypeError('iterationId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ iterationId: iterationId,
+ actionPath: actionPath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ */
+ createTestResultAttachment(attachmentRequestModel, project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} testSubResultId
+ */
+ createTestSubResultAttachment(attachmentRequestModel, project, runId, testCaseResultId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ */
+ deleteTestResultAttachment(project, runId, testCaseResultId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test iteration attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ * @param {number} iterationId
+ */
+ getTestIterationAttachmentContent(project, runId, testCaseResultId, attachmentId, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (iterationId == null) {
+ throw new TypeError('iterationId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ let queryValues = {
+ iterationId: iterationId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test iteration attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ * @param {number} iterationId
+ */
+ getTestIterationAttachmentZip(project, runId, testCaseResultId, attachmentId, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (iterationId == null) {
+ throw new TypeError('iterationId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ let queryValues = {
+ iterationId: iterationId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test result attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ */
+ getTestResultAttachmentContent(project, runId, testCaseResultId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ */
+ getTestResultAttachments(project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test result attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ */
+ getTestResultAttachmentZip(project, runId, testCaseResultId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test sub result attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ * @param {number} testSubResultId
+ */
+ getTestSubResultAttachmentContent(project, runId, testCaseResultId, attachmentId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns attachment references for test sub result.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} testSubResultId
+ */
+ getTestSubResultAttachments(project, runId, testCaseResultId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test sub result attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ * @param {number} attachmentId
+ * @param {number} testSubResultId
+ */
+ getTestSubResultAttachmentZip(project, runId, testCaseResultId, attachmentId, testSubResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId,
+ attachmentId: attachmentId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "2a632e97-e014-4275-978f-8e5c4906d4b3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ createTestRunAttachment(attachmentRequestModel, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "b5731898-8206-477a-a51d-3fdf116fc6bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} attachmentId
+ */
+ deleteTestRunAttachment(project, runId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "b5731898-8206-477a-a51d-3fdf116fc6bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test run attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} attachmentId
+ */
+ getTestRunAttachmentContent(project, runId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "b5731898-8206-477a-a51d-3fdf116fc6bf", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ getTestRunAttachments(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "b5731898-8206-477a-a51d-3fdf116fc6bf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a test run attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} attachmentId
+ */
+ getTestRunAttachmentZip(project, runId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "b5731898-8206-477a-a51d-3fdf116fc6bf", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ */
+ getBugsLinkedToTestResult(project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "d8dbf98f-eb34-4f8d-8365-47972af34f29", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {number} flags
+ */
+ getBuildCodeCoverage(project, buildId, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ if (flags == null) {
+ throw new TypeError('flags can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "9b3e1ece-c6ab-4fbb-8167-8a32a0c92216", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.BuildCoverage, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {number} deltaBuildId
+ */
+ getCodeCoverageSummary(project, buildId, deltaBuildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ deltaBuildId: deltaBuildId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "9b3e1ece-c6ab-4fbb-8167-8a32a0c92216", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.CodeCoverageSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {Contracts.CodeCoverageData} coverageData
+ */
+ updateCodeCoverageSummary(project, buildId, coverageData) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "9b3e1ece-c6ab-4fbb-8167-8a32a0c92216", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, coverageData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} flags
+ */
+ getTestRunCodeCoverage(project, runId, flags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (flags == null) {
+ throw new TypeError('flags can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ flags: flags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "5641efbc-6f9b-401a-baeb-d3da22489e5e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get file coverage for the specified file
+ *
+ * @param {Contracts.FileCoverageRequest} fileCoverageRequest - File details with pull request iteration context
+ * @param {string} project - Project ID or project name
+ */
+ getFileLevelCodeCoverage(fileCoverageRequest, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "4a6d0c46-51ca-45aa-9163-249cee3289b7", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.ResultsFilter} filter
+ * @param {string} project - Project ID or project name
+ */
+ queryTestResultHistory(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "bdf7a97b-0395-4da8-9d5d-f957619327d1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultHistory, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test run message logs
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to get.
+ */
+ getTestRunMessageLogs(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "e9ab0c6a-1984-418b-87c0-ee4202318ba3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestMessageLogDetails, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get summary of test results.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} pipelineId - Pipeline Id. This is same as build Id.
+ * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character.
+ * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character.
+ * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
+ * @param {Contracts.Metrics[]} metricNames
+ * @param {boolean} groupByNode - Group summary for each node of the pipleine heirarchy
+ */
+ getTestPipelineMetrics(project, pipelineId, stageName, phaseName, jobName, metricNames, groupByNode) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (pipelineId == null) {
+ throw new TypeError('pipelineId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ pipelineId: pipelineId,
+ stageName: stageName,
+ phaseName: phaseName,
+ jobName: jobName,
+ metricNames: metricNames && metricNames.join(","),
+ groupByNode: groupByNode,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "65f35817-86a1-4131-b38b-3ec2d4744e53", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.PipelineTestMetrics, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {string} groupBy
+ * @param {string} filter
+ * @param {string} orderby
+ * @param {boolean} shouldIncludeResults
+ * @param {boolean} queryRunSummaryForInProgress
+ */
+ getTestResultDetailsForBuild(project, buildId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ groupBy: groupBy,
+ '$filter': filter,
+ '$orderby': orderby,
+ shouldIncludeResults: shouldIncludeResults,
+ queryRunSummaryForInProgress: queryRunSummaryForInProgress,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "a518c749-4524-45b2-a7ef-1ac009b312cd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultsDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvId
+ * @param {string} publishContext
+ * @param {string} groupBy
+ * @param {string} filter
+ * @param {string} orderby
+ * @param {boolean} shouldIncludeResults
+ * @param {boolean} queryRunSummaryForInProgress
+ */
+ getTestResultDetailsForRelease(project, releaseId, releaseEnvId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (releaseEnvId == null) {
+ throw new TypeError('releaseEnvId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvId: releaseEnvId,
+ publishContext: publishContext,
+ groupBy: groupBy,
+ '$filter': filter,
+ '$orderby': orderby,
+ shouldIncludeResults: shouldIncludeResults,
+ queryRunSummaryForInProgress: queryRunSummaryForInProgress,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "19a8183a-69fb-47d7-bfbf-1b6b0d921294", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultsDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestResultDocument} document
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ publishTestResultDocument(document, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "74838649-b038-42f1-a0e7-6deb3973bf14", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, document, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {string[]} fields
+ * @param {string} continuationToken
+ */
+ getResultGroupsByBuild(project, buildId, publishContext, fields, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ if (publishContext == null) {
+ throw new TypeError('publishContext can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ fields: fields && fields.join(","),
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "e49244d1-c49f-49ad-a717-3bbaefe6a201", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {string} publishContext
+ * @param {number} releaseEnvId
+ * @param {string[]} fields
+ * @param {string} continuationToken
+ */
+ getResultGroupsByRelease(project, releaseId, publishContext, releaseEnvId, fields, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (publishContext == null) {
+ throw new TypeError('publishContext can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ publishContext: publishContext,
+ releaseEnvId: releaseEnvId,
+ fields: fields && fields.join(","),
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "3c2b6bb0-0620-434a-a5c3-26aa0fcfda15", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test Result meta data details for corresponding testcasereferenceId
+ *
+ * @param {string[]} testCaseReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
+ * @param {string} project - Project ID or project name
+ * @param {Contracts.ResultMetaDataDetails} detailsToInclude - Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers.
+ */
+ queryTestResultsMetaData(testCaseReferenceIds, project, detailsToInclude) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ detailsToInclude: detailsToInclude,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "testresults", "b72ff4c0-4341-4213-ba27-f517cf341c95", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testCaseReferenceIds, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update properties of test result meta data
+ *
+ * @param {Contracts.TestResultMetaDataUpdateInput} testResultMetaDataUpdateInput - TestResultMetaData update input TestResultMetaDataUpdateInput
+ * @param {string} project - Project ID or project name
+ * @param {number} testCaseReferenceId - TestCaseReference Id of Test Result to be updated.
+ */
+ updateTestResultsMetaData(testResultMetaDataUpdateInput, project, testCaseReferenceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ testCaseReferenceId: testCaseReferenceId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.4", "testresults", "b72ff4c0-4341-4213-ba27-f517cf341c95", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testResultMetaDataUpdateInput, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestResultsQuery} query
+ * @param {string} project - Project ID or project name
+ */
+ getTestResultsByQuery(query, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "14033a2c-af25-4af1-9e39-8ef6900482e3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, query, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultsQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.QueryModel} queryModel
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeResultDetails
+ * @param {boolean} includeIterationDetails
+ * @param {number} skip
+ * @param {number} top
+ */
+ getTestResultsByQueryWiql(queryModel, project, includeResultDetails, includeIterationDetails, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ includeResultDetails: includeResultDetails,
+ includeIterationDetails: includeIterationDetails,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "5ea78be3-2f5a-4110-8034-c27f24c62db1", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, queryModel, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestCaseResult[]} results
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ addTestResultsToTestRun(results, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "02afa165-e79a-4d70-8f0c-2af0f35b4e07", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, results, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testResultId
+ * @param {Contracts.ResultDetails} detailsToInclude
+ */
+ getTestResultById(project, runId, testResultId, detailsToInclude) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testResultId: testResultId
+ };
+ let queryValues = {
+ detailsToInclude: detailsToInclude,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "02afa165-e79a-4d70-8f0c-2af0f35b4e07", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestCaseResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {Contracts.ResultDetails} detailsToInclude
+ * @param {number} skip
+ * @param {number} top
+ * @param {Contracts.TestOutcome[]} outcomes
+ * @param {boolean} newTestsOnly
+ */
+ getTestResults(project, runId, detailsToInclude, skip, top, outcomes, newTestsOnly) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ detailsToInclude: detailsToInclude,
+ '$skip': skip,
+ '$top': top,
+ outcomes: outcomes && outcomes.join(","),
+ '$newTestsOnly': newTestsOnly,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "02afa165-e79a-4d70-8f0c-2af0f35b4e07", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestCaseResult[]} results
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ updateTestResults(results, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "02afa165-e79a-4d70-8f0c-2af0f35b4e07", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, results, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {Contracts.TestOutcome[]} outcomes
+ * @param {number} top
+ * @param {string} continuationToken
+ */
+ getTestResultsByBuild(project, buildId, publishContext, outcomes, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ outcomes: outcomes && outcomes.join(","),
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "f48cc885-dbc4-4efc-ab19-ae8c19d1e02a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of results.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} pipelineId - Pipeline Id. This is same as build Id.
+ * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character.
+ * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character.
+ * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
+ * @param {Contracts.TestOutcome[]} outcomes - List of outcome of results
+ * @param {number} top - Maximum number of results to return
+ * @param {String} continuationToken - Header to pass the continuationToken
+ */
+ getTestResultsByPipeline(customHeaders, project, pipelineId, stageName, phaseName, jobName, outcomes, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (pipelineId == null) {
+ throw new TypeError('pipelineId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ pipelineId: pipelineId,
+ stageName: stageName,
+ phaseName: phaseName,
+ jobName: jobName,
+ outcomes: outcomes && outcomes.join(","),
+ '$top': top,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["x-ms-continuationtoken"] = "continuationToken";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "80169dc2-30c3-4c25-84b2-dd67d7ff1f52", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvid
+ * @param {string} publishContext
+ * @param {Contracts.TestOutcome[]} outcomes
+ * @param {number} top
+ * @param {string} continuationToken
+ */
+ getTestResultsByRelease(project, releaseId, releaseEnvid, publishContext, outcomes, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvid: releaseEnvid,
+ publishContext: publishContext,
+ outcomes: outcomes && outcomes.join(","),
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "3994b949-77e5-495d-8034-edf80d95b84e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all the available groups details and for these groups get failed and aborted results.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} pipelineId - Pipeline Id. This is same as build Id.
+ * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character.
+ * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character.
+ * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
+ * @param {boolean} shouldIncludeFailedAndAbortedResults - If true, it will return Ids of failed and aborted results for each test group
+ * @param {boolean} queryGroupSummaryForInProgress - If true, it will calculate summary for InProgress runs as well.
+ */
+ testResultsGroupDetails(project, pipelineId, stageName, phaseName, jobName, shouldIncludeFailedAndAbortedResults, queryGroupSummaryForInProgress) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (pipelineId == null) {
+ throw new TypeError('pipelineId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ pipelineId: pipelineId,
+ stageName: stageName,
+ phaseName: phaseName,
+ jobName: jobName,
+ shouldIncludeFailedAndAbortedResults: shouldIncludeFailedAndAbortedResults,
+ queryGroupSummaryForInProgress: queryGroupSummaryForInProgress,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "f903b850-06af-4b50-a344-d7bbfb19e93b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultsDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ * @param {string} publishContext
+ * @param {boolean} includeFailureDetails
+ * @param {Contracts.BuildReference} buildToCompare
+ */
+ queryTestResultsReportForBuild(project, buildId, publishContext, includeFailureDetails, buildToCompare) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ publishContext: publishContext,
+ includeFailureDetails: includeFailureDetails,
+ buildToCompare: buildToCompare,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "e009fa95-95a5-4ad4-9681-590043ce2423", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get summary of test results.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} pipelineId - Pipeline Id. This is same as build Id.
+ * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character.
+ * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character.
+ * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
+ * @param {boolean} includeFailureDetails - If true returns failure insights
+ */
+ queryTestResultsReportForPipeline(project, pipelineId, stageName, phaseName, jobName, includeFailureDetails) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (pipelineId == null) {
+ throw new TypeError('pipelineId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ pipelineId: pipelineId,
+ stageName: stageName,
+ phaseName: phaseName,
+ jobName: jobName,
+ includeFailureDetails: includeFailureDetails,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "71f746a1-7d68-40fe-b705-9d821a73dff2", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvId
+ * @param {string} publishContext
+ * @param {boolean} includeFailureDetails
+ * @param {Contracts.ReleaseReference} releaseToCompare
+ */
+ queryTestResultsReportForRelease(project, releaseId, releaseEnvId, publishContext, includeFailureDetails, releaseToCompare) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (releaseEnvId == null) {
+ throw new TypeError('releaseEnvId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvId: releaseEnvId,
+ publishContext: publishContext,
+ includeFailureDetails: includeFailureDetails,
+ releaseToCompare: releaseToCompare,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "f10f9577-2c04-45ab-8c99-b26567a7cd55", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultSummary, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.ReleaseReference[]} releases
+ * @param {string} project - Project ID or project name
+ */
+ queryTestResultsSummaryForReleases(releases, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "f10f9577-2c04-45ab-8c99-b26567a7cd55", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, releases, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultSummary, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestResultsContext} resultsContext
+ * @param {string} project - Project ID or project name
+ * @param {number[]} workItemIds
+ */
+ queryTestSummaryByRequirement(resultsContext, project, workItemIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ workItemIds: workItemIds && workItemIds.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "3b7fd26f-c335-4e55-afc1-a588f5e2af3c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, resultsContext, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestSummaryForWorkItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestResultTrendFilter} filter
+ * @param {string} project - Project ID or project name
+ */
+ queryResultTrendForBuild(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "0886a7ae-315a-4dba-9122-bcce93301f3a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.AggregatedDataForResultTrend, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestResultTrendFilter} filter
+ * @param {string} project - Project ID or project name
+ */
+ queryResultTrendForRelease(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "107f23c3-359a-460a-a70c-63ee739f9f9a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.AggregatedDataForResultTrend, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.RunCreateModel} testRun
+ * @param {string} project - Project ID or project name
+ */
+ createTestRun(testRun, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "364538f9-8062-4ce0-b024-75a0fb463f0d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testRun, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRun, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ deleteTestRun(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "364538f9-8062-4ce0-b024-75a0fb463f0d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {boolean} includeDetails
+ * @param {boolean} includeTags
+ */
+ getTestRunById(project, runId, includeDetails, includeTags) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ includeDetails: includeDetails,
+ includeTags: includeTags,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "364538f9-8062-4ce0-b024-75a0fb463f0d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRun, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} buildUri
+ * @param {string} owner
+ * @param {string} tmiRunId
+ * @param {number} planId
+ * @param {boolean} includeRunDetails
+ * @param {boolean} automated
+ * @param {number} skip
+ * @param {number} top
+ */
+ getTestRuns(project, buildUri, owner, tmiRunId, planId, includeRunDetails, automated, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildUri: buildUri,
+ owner: owner,
+ tmiRunId: tmiRunId,
+ planId: planId,
+ includeRunDetails: includeRunDetails,
+ automated: automated,
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "364538f9-8062-4ce0-b024-75a0fb463f0d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRun, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {Date} minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
+ * @param {Date} maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
+ * @param {Contracts.TestRunState} state - Current state of the Runs to be queried.
+ * @param {number[]} planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {boolean} isAutomated - Automation type of the Runs to be queried.
+ * @param {Contracts.TestRunPublishContext} publishContext - PublishContext of the Runs to be queried.
+ * @param {number[]} buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {number[]} buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {string} branchName - Source Branch name of the Runs to be queried.
+ * @param {number[]} releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {number[]} releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {number[]} releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {number[]} releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids.
+ * @param {string} runTitle - Run Title of the Runs to be queried.
+ * @param {number} top - Number of runs to be queried. Limit is 100
+ * @param {string} continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
+ */
+ queryTestRuns(project, minLastUpdatedDate, maxLastUpdatedDate, state, planIds, isAutomated, publishContext, buildIds, buildDefIds, branchName, releaseIds, releaseDefIds, releaseEnvIds, releaseEnvDefIds, runTitle, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (minLastUpdatedDate == null) {
+ throw new TypeError('minLastUpdatedDate can not be null or undefined');
+ }
+ if (maxLastUpdatedDate == null) {
+ throw new TypeError('maxLastUpdatedDate can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ minLastUpdatedDate: minLastUpdatedDate,
+ maxLastUpdatedDate: maxLastUpdatedDate,
+ state: state,
+ planIds: planIds && planIds.join(","),
+ isAutomated: isAutomated,
+ publishContext: publishContext,
+ buildIds: buildIds && buildIds.join(","),
+ buildDefIds: buildDefIds && buildDefIds.join(","),
+ branchName: branchName,
+ releaseIds: releaseIds && releaseIds.join(","),
+ releaseDefIds: releaseDefIds && releaseDefIds.join(","),
+ releaseEnvIds: releaseEnvIds && releaseEnvIds.join(","),
+ releaseEnvDefIds: releaseEnvDefIds && releaseEnvDefIds.join(","),
+ runTitle: runTitle,
+ '$top': top,
+ continuationToken: continuationToken,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "364538f9-8062-4ce0-b024-75a0fb463f0d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRun, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.RunUpdateModel} runUpdateModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ updateTestRun(runUpdateModel, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "364538f9-8062-4ce0-b024-75a0fb463f0d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, runUpdateModel, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRun, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test run summary, used when we want to get summary of a run by outcome. Test run should be in completed state.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to get.
+ */
+ getTestRunSummaryByOutcome(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "5c6a250c-53b7-4851-990c-42a7a00c8b39", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRunStatistic, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get TestResultsSettings data
+ *
+ * @param {string} project - Project ID or project name
+ * @param {Contracts.TestResultsSettingsType} settingsType
+ */
+ getTestResultsSettings(project, settingsType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ settingsType: settingsType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "testresults", "7319952e-e5a9-4e19-a006-84f3be8b7c68", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultsSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update project settings of test results
+ *
+ * @param {Contracts.TestResultsUpdateSettings} testResultsUpdateSettings
+ * @param {string} project - Project ID or project name
+ */
+ updatePipelinesTestSettings(testResultsUpdateSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "testresults", "7319952e-e5a9-4e19-a006-84f3be8b7c68", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testResultsUpdateSettings, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestResultsSettings, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the list of results whose failure matches with the provided one.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - id of test run
+ * @param {number} testResultId - id of test result inside a test run
+ * @param {number} testSubResultId - id of subresult inside a test result
+ * @param {number} top - Maximum number of results to return
+ * @param {String} continuationToken - Header to pass the continuationToken
+ */
+ getSimilarTestResults(customHeaders, project, runId, testResultId, testSubResultId, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSubResultId == null) {
+ throw new TypeError('testSubResultId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testResultId: testResultId
+ };
+ let queryValues = {
+ testSubResultId: testSubResultId,
+ '$top': top,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["x-ms-continuationtoken"] = "continuationToken";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "67d0a074-b255-4902-a639-e3e6de7a3de6", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestCaseResult, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get test run statistics , used when we want to get summary of a run by outcome.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - ID of the run to get.
+ */
+ getTestRunStatistics(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "82b986e8-ca9e-4a89-b39e-f65c69bc104a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestRunStatistic, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} definition - The ID or name of the definition.
+ * @param {string} branchName - The branch name.
+ * @param {string} label - The String to replace the default text on the left side of the badge.
+ */
+ getCoverageStatusBadge(project, definition, branchName, label) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ definition: definition
+ };
+ let queryValues = {
+ branchName: branchName,
+ label: label,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "73b7c9d8-defb-4b60-b3d6-2162d60d6b13", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ */
+ getTestTagsForBuild(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "52ee2057-4b54-41a6-a18c-ed4375a00f8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvId
+ */
+ getTestTagsForRelease(project, releaseId, releaseEnvId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (releaseEnvId == null) {
+ throw new TypeError('releaseEnvId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvId: releaseEnvId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "52ee2057-4b54-41a6-a18c-ed4375a00f8d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestTagsUpdateModel} testTagsUpdateModel
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ */
+ updateTestRunTags(testTagsUpdateModel, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "a5e2f411-2b43-45f3-989c-05b71339f5b8", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, testTagsUpdateModel, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId
+ */
+ getTestTagSummaryForBuild(project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "655a8f6b-fec7-4b46-b672-68b44141b498", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} releaseId
+ * @param {number} releaseEnvId
+ */
+ getTestTagSummaryForRelease(project, releaseId, releaseEnvId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (releaseId == null) {
+ throw new TypeError('releaseId can not be null or undefined');
+ }
+ if (releaseEnvId == null) {
+ throw new TypeError('releaseEnvId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ releaseId: releaseId,
+ releaseEnvId: releaseEnvId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "655a8f6b-fec7-4b46-b672-68b44141b498", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates an attachment in the LogStore for the specified buildId.
+ *
+ * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - BuildId
+ */
+ createBuildAttachmentInLogStore(attachmentRequestModel, project, buildId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ buildId: buildId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "6f747e16-18c2-435a-b4fb-fa05d6845fee", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates an attachment in the LogStore for the specified runId.
+ *
+ * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test RunId
+ */
+ createTestRunLogStoreAttachment(attachmentRequestModel, project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "1026d5de-4b0b-46ae-a31f-7c59b6af51ef", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, attachmentRequestModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the attachment with the specified filename for the specified runId from the LogStore.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test RunId
+ * @param {string} filename - Attachment FileName
+ */
+ deleteTestRunLogStoreAttachment(project, runId, filename) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (filename == null) {
+ throw new TypeError('filename can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ filename: filename,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "1026d5de-4b0b-46ae-a31f-7c59b6af51ef", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the attachment with the specified filename for the specified runId from the LogStore.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test RunId
+ * @param {string} filename - Attachment FileName
+ */
+ getTestRunLogStoreAttachmentContent(project, runId, filename) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (filename == null) {
+ throw new TypeError('filename can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ filename: filename,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "1026d5de-4b0b-46ae-a31f-7c59b6af51ef", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of attachments for the specified runId from the LogStore.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test RunId
+ */
+ getTestRunLogStoreAttachments(project, runId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "1026d5de-4b0b-46ae-a31f-7c59b6af51ef", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreAttachment, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the attachment with the specified filename for the specified runId from the LogStore.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Test RunId
+ * @param {string} filename - Attachment FileName
+ */
+ getTestRunLogStoreAttachmentZip(project, runId, filename) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (filename == null) {
+ throw new TypeError('filename can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ filename: filename,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "1026d5de-4b0b-46ae-a31f-7c59b6af51ef", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new test failure type
+ *
+ * @param {Contracts.TestResultFailureTypeRequestModel} testResultFailureType
+ * @param {string} project - Project ID or project name
+ */
+ createFailureType(testResultFailureType, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "c4ac0486-830c-4a2a-9ef9-e8a1791a70fd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testResultFailureType, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a test failure type with specified failureTypeId
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} failureTypeId
+ */
+ deleteFailureType(project, failureTypeId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ failureTypeId: failureTypeId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "c4ac0486-830c-4a2a-9ef9-e8a1791a70fd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the list of test failure types.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getFailureTypes(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "c4ac0486-830c-4a2a-9ef9-e8a1791a70fd", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get history of a test method using TestHistoryQuery
+ *
+ * @param {Contracts.TestHistoryQuery} filter - TestHistoryQuery to get history
+ * @param {string} project - Project ID or project name
+ */
+ queryTestHistory(filter, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "2a41bd6a-8118-4403-b74e-5ba7492aed9d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestHistoryQuery, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of build attachments reference
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - Id of the build to get
+ * @param {Contracts.TestLogType} type - type of the attachment to get
+ * @param {string} directoryPath - directory path for which attachments are needed
+ * @param {string} fileNamePrefix - file name prefix to filter the list of attachment
+ * @param {boolean} fetchMetaData - Default is false, set if metadata is needed
+ * @param {number} top - Number of test attachments reference to return
+ * @param {String} continuationToken - Header to pass the continuationToken
+ */
+ getTestLogsForBuild(customHeaders, project, buildId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ type: type,
+ directoryPath: directoryPath,
+ fileNamePrefix: fileNamePrefix,
+ fetchMetaData: fetchMetaData,
+ top: top,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["x-ms-continuationtoken"] = "continuationToken";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "dff8ce3a-e539-4817-a405-d968491a88f1", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test result attachments reference
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run that contains the result
+ * @param {number} resultId - Id of the test result
+ * @param {Contracts.TestLogType} type - type of attachments to get
+ * @param {string} directoryPath - directory path of attachments to get
+ * @param {string} fileNamePrefix - file name prefix to filter the list of attachment
+ * @param {boolean} fetchMetaData - Default is false, set if metadata is needed
+ * @param {number} top - Numbe of attachments reference to return
+ * @param {String} continuationToken - Header to pass the continuationToken
+ */
+ getTestResultLogs(customHeaders, project, runId, resultId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ resultId: resultId
+ };
+ let queryValues = {
+ type: type,
+ directoryPath: directoryPath,
+ fileNamePrefix: fileNamePrefix,
+ fetchMetaData: fetchMetaData,
+ top: top,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["x-ms-continuationtoken"] = "continuationToken";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "714caaac-ae1e-4869-8323-9bc0f5120dbf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test subresult attachments reference
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run that contains the results
+ * @param {number} resultId - Id of the test result that contains subresult
+ * @param {number} subResultId - Id of the test subresult
+ * @param {Contracts.TestLogType} type - type of the attachments to get
+ * @param {string} directoryPath - directory path of the attachment to get
+ * @param {string} fileNamePrefix - file name prefix to filter the list of attachments
+ * @param {boolean} fetchMetaData - Default is false, set if metadata is needed
+ * @param {number} top - Number of attachments reference to return
+ * @param {String} continuationToken - Header to pass the continuationToken
+ */
+ getTestSubResultLogs(customHeaders, project, runId, resultId, subResultId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (subResultId == null) {
+ throw new TypeError('subResultId can not be null or undefined');
+ }
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ resultId: resultId
+ };
+ let queryValues = {
+ subResultId: subResultId,
+ type: type,
+ directoryPath: directoryPath,
+ fileNamePrefix: fileNamePrefix,
+ fetchMetaData: fetchMetaData,
+ top: top,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["x-ms-continuationtoken"] = "continuationToken";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "714caaac-ae1e-4869-8323-9bc0f5120dbf", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of test run attachments reference
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run
+ * @param {Contracts.TestLogType} type - type of the attachments to get
+ * @param {string} directoryPath - directory path for which attachments are needed
+ * @param {string} fileNamePrefix - file name prefix to filter the list of attachment
+ * @param {boolean} fetchMetaData - Default is false, set if metadata is needed
+ * @param {number} top - Number of attachments reference to return
+ * @param {String} continuationToken - Header to pass the continuationToken
+ */
+ getTestRunLogs(customHeaders, project, runId, type, directoryPath, fileNamePrefix, fetchMetaData, top, continuationToken) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ type: type,
+ directoryPath: directoryPath,
+ fileNamePrefix: fileNamePrefix,
+ fetchMetaData: fetchMetaData,
+ top: top,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["x-ms-continuationtoken"] = "continuationToken";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "5b47b946-e875-4c9a-acdc-2a20996caebe", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLog, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get SAS Uri of a build attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} build - Id of the build to get
+ * @param {Contracts.TestLogType} type - type of the file
+ * @param {string} filePath - filePath for which sas uri is needed
+ */
+ getTestLogStoreEndpointDetailsForBuildLog(project, build, type, filePath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (build == null) {
+ throw new TypeError('build can not be null or undefined');
+ }
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ if (filePath == null) {
+ throw new TypeError('filePath can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ build: build,
+ type: type,
+ filePath: filePath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "39b09be7-f0c9-4a83-a513-9ae31b45c56f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create and Get sas uri of the build container
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} buildId - Id of the build to get
+ * @param {Contracts.TestLogStoreOperationType} testLogStoreOperationType - Type of operation to perform using sas uri
+ */
+ testLogStoreEndpointDetailsForBuild(project, buildId, testLogStoreOperationType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (buildId == null) {
+ throw new TypeError('buildId can not be null or undefined');
+ }
+ if (testLogStoreOperationType == null) {
+ throw new TypeError('testLogStoreOperationType can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ buildId: buildId,
+ testLogStoreOperationType: testLogStoreOperationType,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "39b09be7-f0c9-4a83-a513-9ae31b45c56f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get SAS Uri of a test results attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run that contains result
+ * @param {number} resultId - Id of the test result whose files need to be downloaded
+ * @param {Contracts.TestLogType} type - type of the file
+ * @param {string} filePath - filePath for which sas uri is needed
+ */
+ getTestLogStoreEndpointDetailsForResultLog(project, runId, resultId, type, filePath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ if (filePath == null) {
+ throw new TypeError('filePath can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ resultId: resultId
+ };
+ let queryValues = {
+ type: type,
+ filePath: filePath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "da630b37-1236-45b5-945e-1d7bdb673850", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get SAS Uri of a test subresults attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run that contains result
+ * @param {number} resultId - Id of the test result that contains subresult
+ * @param {number} subResultId - Id of the test subresult whose file sas uri is needed
+ * @param {Contracts.TestLogType} type - type of the file
+ * @param {string} filePath - filePath for which sas uri is needed
+ */
+ getTestLogStoreEndpointDetailsForSubResultLog(project, runId, resultId, subResultId, type, filePath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (subResultId == null) {
+ throw new TypeError('subResultId can not be null or undefined');
+ }
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ if (filePath == null) {
+ throw new TypeError('filePath can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ resultId: resultId
+ };
+ let queryValues = {
+ subResultId: subResultId,
+ type: type,
+ filePath: filePath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "da630b37-1236-45b5-945e-1d7bdb673850", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create empty file for a result and Get Sas uri for the file
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run that contains the result
+ * @param {number} resultId - Id of the test results that contains sub result
+ * @param {number} subResultId - Id of the test sub result whose file sas uri is needed
+ * @param {string} filePath - file path inside the sub result for which sas uri is needed
+ * @param {Contracts.TestLogType} type - Type of the file for download
+ */
+ testLogStoreEndpointDetailsForResult(project, runId, resultId, subResultId, filePath, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (subResultId == null) {
+ throw new TypeError('subResultId can not be null or undefined');
+ }
+ if (filePath == null) {
+ throw new TypeError('filePath can not be null or undefined');
+ }
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ resultId: resultId
+ };
+ let queryValues = {
+ subResultId: subResultId,
+ filePath: filePath,
+ type: type,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "da630b37-1236-45b5-945e-1d7bdb673850", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get SAS Uri of a test run attachment
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the test run whose file has to be downloaded
+ * @param {Contracts.TestLogType} type - type of the file
+ * @param {string} filePath - filePath for which sas uri is needed
+ */
+ getTestLogStoreEndpointDetailsForRunLog(project, runId, type, filePath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (type == null) {
+ throw new TypeError('type can not be null or undefined');
+ }
+ if (filePath == null) {
+ throw new TypeError('filePath can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ type: type,
+ filePath: filePath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "67eb3f92-6c97-4fd9-8b63-6cbdc7e526ea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create empty file for a run and Get Sas uri for the file
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} runId - Id of the run to get endpoint details
+ * @param {Contracts.TestLogStoreOperationType} testLogStoreOperationType - Type of operation to perform using sas uri
+ * @param {string} filePath - file path to create an empty file
+ * @param {Contracts.TestLogType} type - Default is GeneralAttachment, type of empty file to be created
+ */
+ testLogStoreEndpointDetailsForRun(project, runId, testLogStoreOperationType, filePath, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testLogStoreOperationType == null) {
+ throw new TypeError('testLogStoreOperationType can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId
+ };
+ let queryValues = {
+ testLogStoreOperationType: testLogStoreOperationType,
+ filePath: filePath,
+ type: type,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "67eb3f92-6c97-4fd9-8b63-6cbdc7e526ea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.TestLogStoreEndpointDetails, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.TestSettings} testSettings
+ * @param {string} project - Project ID or project name
+ */
+ createTestSettings(testSettings, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "930bad47-f826-4099-9597-f44d0a9c735c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, testSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} testSettingsId
+ */
+ deleteTestSettings(project, testSettingsId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSettingsId == null) {
+ throw new TypeError('testSettingsId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testSettingsId: testSettingsId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "930bad47-f826-4099-9597-f44d0a9c735c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} testSettingsId
+ */
+ getTestSettingsById(project, testSettingsId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testSettingsId == null) {
+ throw new TypeError('testSettingsId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testSettingsId: testSettingsId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "testresults", "930bad47-f826-4099-9597-f44d0a9c735c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {Contracts.WorkItemToTestLinks} workItemToTestLinks
+ * @param {string} project - Project ID or project name
+ */
+ addWorkItemToTestLinks(workItemToTestLinks, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "4e3abe63-ca46-4fe0-98b2-363f7ec7aa5f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemToTestLinks, options);
+ let ret = this.formatResponse(res.result, Contracts.TypeInfo.WorkItemToTestLinks, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} testName
+ * @param {number} workItemId
+ */
+ deleteTestMethodToWorkItemLink(project, testName, workItemId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testName == null) {
+ throw new TypeError('testName can not be null or undefined');
+ }
+ if (workItemId == null) {
+ throw new TypeError('workItemId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testName: testName,
+ workItemId: workItemId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "cbd50bd7-f7ed-4e35-b127-4408ae6bfa2c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} testName
+ */
+ queryTestMethodLinkedWorkItems(project, testName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (testName == null) {
+ throw new TypeError('testName can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ testName: testName,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "cbd50bd7-f7ed-4e35-b127-4408ae6bfa2c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} runId
+ * @param {number} testCaseResultId
+ */
+ getTestResultWorkItemsById(project, runId, testCaseResultId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ runId: runId,
+ testCaseResultId: testCaseResultId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "3d032fd6-e7a0-468b-b105-75d206f99aad", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Query Test Result WorkItems based on filter
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} workItemCategory - can take values Microsoft.BugCategory or all(for getting all workitems)
+ * @param {string} automatedTestName
+ * @param {number} testCaseId
+ * @param {Date} maxCompleteDate
+ * @param {number} days
+ * @param {number} workItemCount
+ */
+ queryTestResultWorkItems(project, workItemCategory, automatedTestName, testCaseId, maxCompleteDate, days, workItemCount) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (workItemCategory == null) {
+ throw new TypeError('workItemCategory can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ workItemCategory: workItemCategory,
+ automatedTestName: automatedTestName,
+ testCaseId: testCaseId,
+ maxCompleteDate: maxCompleteDate,
+ days: days,
+ '$workItemCount': workItemCount,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "testresults", "f7401a26-331b-44fe-a470-f7ed35138e4a", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+TestResultsApi.RESOURCE_AREA_ID = "c83eaf52-edf3-4034-ae11-17d38f25404c";
+exports.TestResultsApi = TestResultsApi;
+
+
+/***/ }),
+
+/***/ 5417:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const TfvcInterfaces = __nccwpck_require__(9003);
+class TfvcApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Tfvc-api', options);
+ }
+ /**
+ * Get a single branch hierarchy at the given path with parents or children as specified.
+ *
+ * @param {string} path - Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeParent - Return the parent branch, if there is one. Default: False
+ * @param {boolean} includeChildren - Return child branches, if there are any. Default: False
+ */
+ getBranch(path, project, includeParent, includeChildren) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ includeParent: includeParent,
+ includeChildren: includeChildren,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "bc1f417e-239d-42e7-85e1-76e80cb2d6eb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcBranch, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a collection of branch roots -- first-level children, branches with no parents.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeParent - Return the parent branch, if there is one. Default: False
+ * @param {boolean} includeChildren - Return the child branches for each root branch. Default: False
+ * @param {boolean} includeDeleted - Return deleted branches. Default: False
+ * @param {boolean} includeLinks - Return links. Default: False
+ */
+ getBranches(project, includeParent, includeChildren, includeDeleted, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ includeParent: includeParent,
+ includeChildren: includeChildren,
+ includeDeleted: includeDeleted,
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "bc1f417e-239d-42e7-85e1-76e80cb2d6eb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcBranch, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get branch hierarchies below the specified scopePath
+ *
+ * @param {string} scopePath - Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder.
+ * @param {string} project - Project ID or project name
+ * @param {boolean} includeDeleted - Return deleted branches. Default: False
+ * @param {boolean} includeLinks - Return links. Default: False
+ */
+ getBranchRefs(scopePath, project, includeDeleted, includeLinks) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (scopePath == null) {
+ throw new TypeError('scopePath can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ scopePath: scopePath,
+ includeDeleted: includeDeleted,
+ includeLinks: includeLinks,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "bc1f417e-239d-42e7-85e1-76e80cb2d6eb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcBranchRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve Tfvc changes for a given changeset.
+ *
+ * @param {number} id - ID of the changeset. Default: null
+ * @param {number} skip - Number of results to skip. Default: null
+ * @param {number} top - The maximum number of results to return. Default: null
+ */
+ getChangesetChanges(id, skip, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ let queryValues = {
+ '$skip': skip,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "f32b86f2-15b9-4fe6-81b1-6f8938617ee5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcChange, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a new changeset.
+ *
+ * @param {TfvcInterfaces.TfvcChangeset} changeset
+ * @param {string} project - Project ID or project name
+ */
+ createChangeset(changeset, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "tfvc", "0bc8f0a4-6bfb-42a9-ba84-139da7b99c49", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, changeset, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcChangesetRef, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve a Tfvc Changeset
+ *
+ * @param {number} id - Changeset Id to retrieve.
+ * @param {string} project - Project ID or project name
+ * @param {number} maxChangeCount - Number of changes to return (maximum 100 changes) Default: 0
+ * @param {boolean} includeDetails - Include policy details and check-in notes in the response. Default: false
+ * @param {boolean} includeWorkItems - Include workitems. Default: false
+ * @param {number} maxCommentLength - Include details about associated work items in the response. Default: null
+ * @param {boolean} includeSourceRename - Include renames. Default: false
+ * @param {number} skip - Number of results to skip. Default: null
+ * @param {number} top - The maximum number of results to return. Default: null
+ * @param {string} orderby - Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order.
+ * @param {TfvcInterfaces.TfvcChangesetSearchCriteria} searchCriteria - Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null
+ */
+ getChangeset(id, project, maxChangeCount, includeDetails, includeWorkItems, maxCommentLength, includeSourceRename, skip, top, orderby, searchCriteria) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ maxChangeCount: maxChangeCount,
+ includeDetails: includeDetails,
+ includeWorkItems: includeWorkItems,
+ maxCommentLength: maxCommentLength,
+ includeSourceRename: includeSourceRename,
+ '$skip': skip,
+ '$top': top,
+ '$orderby': orderby,
+ searchCriteria: searchCriteria,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "tfvc", "0bc8f0a4-6bfb-42a9-ba84-139da7b99c49", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcChangeset, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieve Tfvc Changesets
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} maxCommentLength - Include details about associated work items in the response. Default: null
+ * @param {number} skip - Number of results to skip. Default: null
+ * @param {number} top - The maximum number of results to return. Default: null
+ * @param {string} orderby - Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order.
+ * @param {TfvcInterfaces.TfvcChangesetSearchCriteria} searchCriteria - Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null
+ */
+ getChangesets(project, maxCommentLength, skip, top, orderby, searchCriteria) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ maxCommentLength: maxCommentLength,
+ '$skip': skip,
+ '$top': top,
+ '$orderby': orderby,
+ searchCriteria: searchCriteria,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "tfvc", "0bc8f0a4-6bfb-42a9-ba84-139da7b99c49", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcChangesetRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns changesets for a given list of changeset Ids.
+ *
+ * @param {TfvcInterfaces.TfvcChangesetsRequestData} changesetsRequestData - List of changeset IDs.
+ */
+ getBatchedChangesets(changesetsRequestData) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "b7e7c173-803c-4fea-9ec8-31ee35c5502a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, changesetsRequestData, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcChangesetRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves the work items associated with a particular changeset.
+ *
+ * @param {number} id - ID of the changeset.
+ */
+ getChangesetWorkItems(id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path.
+ *
+ * @param {TfvcInterfaces.TfvcItemRequestData} itemRequestData
+ * @param {string} project - Project ID or project name
+ */
+ getItemsBatch(itemRequestData, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "fe6f827b-5f64-480f-b8af-1eca3b80e833", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, itemRequestData, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path.
+ *
+ * @param {TfvcInterfaces.TfvcItemRequestData} itemRequestData
+ * @param {string} project - Project ID or project name
+ */
+ getItemsBatchZip(itemRequestData, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "fe6f827b-5f64-480f-b8af-1eca3b80e833", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
+ *
+ * @param {string} path - Version control path of an individual item to return.
+ * @param {string} project - Project ID or project name
+ * @param {string} fileName - file name of item returned.
+ * @param {boolean} download - If true, create a downloadable attachment.
+ * @param {string} scopePath - Version control path of a folder to return multiple items.
+ * @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
+ * @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ */
+ getItem(path, project, fileName, download, scopePath, recursionLevel, versionDescriptor, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ fileName: fileName,
+ download: download,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "ba9fc436-9a38-4578-89d6-e4f3241f5040", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcItem, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
+ *
+ * @param {string} path - Version control path of an individual item to return.
+ * @param {string} project - Project ID or project name
+ * @param {string} fileName - file name of item returned.
+ * @param {boolean} download - If true, create a downloadable attachment.
+ * @param {string} scopePath - Version control path of a folder to return multiple items.
+ * @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
+ * @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ */
+ getItemContent(path, project, fileName, download, scopePath, recursionLevel, versionDescriptor, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ fileName: fileName,
+ download: download,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "ba9fc436-9a38-4578-89d6-e4f3241f5040", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of Tfvc items
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - Version control path of a folder to return multiple items.
+ * @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
+ * @param {boolean} includeLinks - True to include links.
+ * @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor
+ */
+ getItems(project, scopePath, recursionLevel, includeLinks, versionDescriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ includeLinks: includeLinks,
+ versionDescriptor: versionDescriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "ba9fc436-9a38-4578-89d6-e4f3241f5040", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
+ *
+ * @param {string} path - Version control path of an individual item to return.
+ * @param {string} project - Project ID or project name
+ * @param {string} fileName - file name of item returned.
+ * @param {boolean} download - If true, create a downloadable attachment.
+ * @param {string} scopePath - Version control path of a folder to return multiple items.
+ * @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
+ * @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ */
+ getItemText(path, project, fileName, download, scopePath, recursionLevel, versionDescriptor, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ fileName: fileName,
+ download: download,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "ba9fc436-9a38-4578-89d6-e4f3241f5040", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
+ *
+ * @param {string} path - Version control path of an individual item to return.
+ * @param {string} project - Project ID or project name
+ * @param {string} fileName - file name of item returned.
+ * @param {boolean} download - If true, create a downloadable attachment.
+ * @param {string} scopePath - Version control path of a folder to return multiple items.
+ * @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
+ * @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
+ * @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
+ */
+ getItemZip(path, project, fileName, download, scopePath, recursionLevel, versionDescriptor, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ path: path,
+ fileName: fileName,
+ download: download,
+ scopePath: scopePath,
+ recursionLevel: recursionLevel,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "ba9fc436-9a38-4578-89d6-e4f3241f5040", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get items under a label.
+ *
+ * @param {string} labelId - Unique identifier of label
+ * @param {number} top - Max number of items to return
+ * @param {number} skip - Number of items to skip
+ */
+ getLabelItems(labelId, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ labelId: labelId
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "06166e34-de17-4b60-8cd1-23182a346fda", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a single deep label.
+ *
+ * @param {string} labelId - Unique identifier of label
+ * @param {TfvcInterfaces.TfvcLabelRequestData} requestData - maxItemCount
+ * @param {string} project - Project ID or project name
+ */
+ getLabel(labelId, requestData, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (requestData == null) {
+ throw new TypeError('requestData can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ labelId: labelId
+ };
+ let queryValues = {
+ requestData: requestData,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "a5d9bd7f-b661-4d0e-b9be-d9c16affae54", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcLabel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a collection of shallow label references.
+ *
+ * @param {TfvcInterfaces.TfvcLabelRequestData} requestData - labelScope, name, owner, and itemLabelFilter
+ * @param {string} project - Project ID or project name
+ * @param {number} top - Max number of labels to return, defaults to 100 when undefined
+ * @param {number} skip - Number of labels to skip
+ */
+ getLabels(requestData, project, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (requestData == null) {
+ throw new TypeError('requestData can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ requestData: requestData,
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "a5d9bd7f-b661-4d0e-b9be-d9c16affae54", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcLabelRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get changes included in a shelveset.
+ *
+ * @param {string} shelvesetId - Shelveset's unique ID
+ * @param {number} top - Max number of changes to return
+ * @param {number} skip - Number of changes to skip
+ */
+ getShelvesetChanges(shelvesetId, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (shelvesetId == null) {
+ throw new TypeError('shelvesetId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ shelvesetId: shelvesetId,
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "dbaf075b-0445-4c34-9e5b-82292f856522", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcChange, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a single deep shelveset.
+ *
+ * @param {string} shelvesetId - Shelveset's unique ID
+ * @param {TfvcInterfaces.TfvcShelvesetRequestData} requestData - includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength
+ */
+ getShelveset(shelvesetId, requestData) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (shelvesetId == null) {
+ throw new TypeError('shelvesetId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ shelvesetId: shelvesetId,
+ requestData: requestData,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "e36d44fb-e907-4b0a-b194-f83f1ed32ad3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcShelveset, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Return a collection of shallow shelveset references.
+ *
+ * @param {TfvcInterfaces.TfvcShelvesetRequestData} requestData - name, owner, and maxCommentLength
+ * @param {number} top - Max number of shelvesets to return
+ * @param {number} skip - Number of shelvesets to skip
+ */
+ getShelvesets(requestData, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ requestData: requestData,
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "e36d44fb-e907-4b0a-b194-f83f1ed32ad3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, TfvcInterfaces.TypeInfo.TfvcShelvesetRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get work items associated with a shelveset.
+ *
+ * @param {string} shelvesetId - Shelveset's unique ID
+ */
+ getShelvesetWorkItems(shelvesetId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (shelvesetId == null) {
+ throw new TypeError('shelvesetId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ shelvesetId: shelvesetId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "a7a0c1c1-373e-425a-b031-a519474d743d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Provides File Count and Uncompressed Bytes for a Collection/Project at a particular scope for TFVC.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} scopePath - '$/' for collection, '$/project' for specific project
+ */
+ getTfvcStatistics(project, scopePath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ scopePath: scopePath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "tfvc", "e15c74c0-3605-40e0-aed4-4cc61e549ed8", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+TfvcApi.RESOURCE_AREA_ID = "8aa40520-446d-40e6-89f6-9c9f9ce44c48";
+exports.TfvcApi = TfvcApi;
+
+
+/***/ }),
+
+/***/ 9686:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+//*******************************************************************************************************
+// significant portions of this file copied from: VSO\src\Vssf\WebPlatform\Platform\Scripts\VSS\WebApi\RestClient.ts
+//*******************************************************************************************************
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/// Imports of 3rd Party ///
+const url = __nccwpck_require__(7310);
+const path = __nccwpck_require__(1017);
+class InvalidApiResourceVersionError {
+ constructor(message) {
+ this.name = "Invalid resource version";
+ this.message = message;
+ }
+}
+exports.InvalidApiResourceVersionError = InvalidApiResourceVersionError;
+/**
+ * Base class that should be used (derived from) to make requests to VSS REST apis
+ */
+class VsoClient {
+ constructor(baseUrl, restClient) {
+ this.baseUrl = baseUrl;
+ this.basePath = url.parse(baseUrl).pathname;
+ this.restClient = restClient;
+ this._locationsByAreaPromises = {};
+ this._initializationPromise = Promise.resolve(true);
+ }
+ autoNegotiateApiVersion(location, requestedVersion) {
+ let negotiatedVersion;
+ let apiVersion;
+ let apiVersionString;
+ if (requestedVersion) {
+ let apiVersionRegEx = new RegExp('(\\d+(\\.\\d+)?)(-preview(\\.(\\d+))?)?');
+ // Need to handle 3 types of api versions + invalid apiversion
+ // '2.1-preview.1' = ["2.1-preview.1", "2.1", ".1", -preview.1", ".1", "1"]
+ // '2.1-preview' = ["2.1-preview", "2.1", ".1", "-preview", undefined, undefined]
+ // '2.1' = ["2.1", "2.1", ".1", undefined, undefined, undefined]
+ let isPreview = false;
+ let resourceVersion;
+ let regExExecArray = apiVersionRegEx.exec(requestedVersion);
+ if (regExExecArray) {
+ if (regExExecArray[1]) {
+ // we have an api version
+ apiVersion = +regExExecArray[1];
+ apiVersionString = regExExecArray[1];
+ if (regExExecArray[3]) {
+ // requesting preview
+ isPreview = true;
+ if (regExExecArray[5]) {
+ // we have a resource version
+ resourceVersion = +regExExecArray[5];
+ }
+ }
+ // compare the location version and requestedversion
+ if (apiVersion <= +location.releasedVersion
+ || (!resourceVersion && apiVersion <= +location.maxVersion && isPreview)
+ || (resourceVersion && apiVersion <= +location.maxVersion && resourceVersion <= +location.resourceVersion)) {
+ negotiatedVersion = requestedVersion;
+ }
+ // else fall back to latest version of the resource from location
+ }
+ }
+ }
+ if (!negotiatedVersion) {
+ // Use the latest version of the resource if the api version was not specified in the request or if the requested version is higher then the location's supported version
+ if (apiVersion < +location.maxVersion) {
+ negotiatedVersion = apiVersionString + "-preview";
+ }
+ else if (location.maxVersion === location.releasedVersion) {
+ negotiatedVersion = location.maxVersion;
+ }
+ else {
+ negotiatedVersion = location.maxVersion + "-preview." + location.resourceVersion;
+ }
+ }
+ return negotiatedVersion;
+ }
+ /**
+ * Gets the route template for a resource based on its location ID and negotiates the api version
+ */
+ getVersioningData(apiVersion, area, locationId, routeValues, queryParams) {
+ let requestUrl;
+ return this.beginGetLocation(area, locationId)
+ .then((location) => {
+ if (!location) {
+ throw new Error("Failed to find api location for area: " + area + " id: " + locationId);
+ }
+ apiVersion = this.autoNegotiateApiVersion(location, apiVersion);
+ requestUrl = this.getRequestUrl(location.routeTemplate, location.area, location.resourceName, routeValues, queryParams);
+ return {
+ apiVersion: apiVersion,
+ requestUrl: requestUrl
+ };
+ });
+ }
+ /**
+ * Sets a promise that is waited on before any requests are issued. Can be used to asynchronously
+ * set the request url and auth token manager.
+ */
+ _setInitializationPromise(promise) {
+ if (promise) {
+ this._initializationPromise = promise;
+ }
+ }
+ /**
+ * Gets information about an API resource location (route template, supported versions, etc.)
+ *
+ * @param area resource area name
+ * @param locationId Guid of the location to get
+ */
+ beginGetLocation(area, locationId) {
+ return this._initializationPromise.then(() => {
+ return this.beginGetAreaLocations(area);
+ }).then((areaLocations) => {
+ return areaLocations[(locationId || "").toLowerCase()];
+ });
+ }
+ beginGetAreaLocations(area) {
+ let areaLocationsPromise = this._locationsByAreaPromises[area];
+ if (!areaLocationsPromise) {
+ let requestUrl = this.resolveUrl(VsoClient.APIS_RELATIVE_PATH + "/" + area);
+ areaLocationsPromise = this.restClient.options(requestUrl)
+ .then((res) => {
+ if (!res.result) {
+ return {};
+ }
+ let locationsLookup = {};
+ let resourceLocations = res.result.value;
+ let i;
+ for (i = 0; i < resourceLocations.length; i++) {
+ let resourceLocation = resourceLocations[i];
+ locationsLookup[resourceLocation.id.toLowerCase()] = resourceLocation;
+ }
+ // If we have completed successfully, cache the response.
+ this._locationsByAreaPromises[area] = areaLocationsPromise;
+ return locationsLookup;
+ });
+ }
+ return areaLocationsPromise;
+ }
+ resolveUrl(relativeUrl) {
+ return url.resolve(this.baseUrl, path.join(this.basePath, relativeUrl));
+ }
+ queryParamsToStringHelper(queryParams, prefix) {
+ if (queryParams == null || queryParams.length === 0) {
+ return '';
+ }
+ let queryString = '';
+ if (typeof (queryParams) !== 'string') {
+ for (let property in queryParams) {
+ if (queryParams.hasOwnProperty(property)) {
+ const prop = queryParams[property];
+ const newPrefix = prefix + encodeURIComponent(property.toString()) + '.';
+ queryString += this.queryParamsToStringHelper(prop, newPrefix);
+ }
+ }
+ }
+ if (queryString === '' && prefix.length > 0) {
+ // Date.prototype.toString() returns a string that is not valid for the REST API.
+ // Need to specially call `toUTCString()` instead for such cases
+ const queryValue = typeof queryParams === 'object' && 'toUTCString' in queryParams ? queryParams.toUTCString() : queryParams.toString();
+ // Will always need to chop period off of end of prefix
+ queryString = prefix.slice(0, -1) + '=' + encodeURIComponent(queryValue) + '&';
+ }
+ return queryString;
+ }
+ queryParamsToString(queryParams) {
+ const queryString = '?' + this.queryParamsToStringHelper(queryParams, '');
+ // Will always need to slice either a ? or & off of the end
+ return queryString.slice(0, -1);
+ }
+ getRequestUrl(routeTemplate, area, resource, routeValues, queryParams) {
+ // Add area/resource route values (based on the location)
+ routeValues = routeValues || {};
+ if (!routeValues.area) {
+ routeValues.area = area;
+ }
+ if (!routeValues.resource) {
+ routeValues.resource = resource;
+ }
+ // Replace templated route values
+ let relativeUrl = this.replaceRouteValues(routeTemplate, routeValues);
+ // Append query parameters to the end
+ if (queryParams) {
+ relativeUrl += this.queryParamsToString(queryParams);
+ }
+ // Resolve the relative url with the base
+ return url.resolve(this.baseUrl, path.join(this.basePath, relativeUrl));
+ }
+ // helper method copied directly from VSS\WebAPI\restclient.ts
+ replaceRouteValues(routeTemplate, routeValues) {
+ let result = "", currentPathPart = "", paramName = "", insideParam = false, charIndex, routeTemplateLength = routeTemplate.length, c;
+ for (charIndex = 0; charIndex < routeTemplateLength; charIndex++) {
+ c = routeTemplate[charIndex];
+ if (insideParam) {
+ if (c == "}") {
+ insideParam = false;
+ if (routeValues[paramName]) {
+ currentPathPart += encodeURIComponent(routeValues[paramName]);
+ }
+ else {
+ // Normalize param name in order to capture wild-card routes
+ let strippedParamName = paramName.replace(/[^a-z0-9]/ig, '');
+ if (routeValues[strippedParamName]) {
+ currentPathPart += encodeURIComponent(routeValues[strippedParamName]);
+ }
+ }
+ paramName = "";
+ }
+ else {
+ paramName += c;
+ }
+ }
+ else {
+ if (c == "/") {
+ if (currentPathPart) {
+ if (result) {
+ result += "/";
+ }
+ result += currentPathPart;
+ currentPathPart = "";
+ }
+ }
+ else if (c == "{") {
+ if ((charIndex + 1) < routeTemplateLength && routeTemplate[charIndex + 1] == "{") {
+ // Escaped '{'
+ currentPathPart += c;
+ charIndex++;
+ }
+ else {
+ insideParam = true;
+ }
+ }
+ else if (c == '}') {
+ currentPathPart += c;
+ if ((charIndex + 1) < routeTemplateLength && routeTemplate[charIndex + 1] == "}") {
+ // Escaped '}'
+ charIndex++;
+ }
+ }
+ else {
+ currentPathPart += c;
+ }
+ }
+ }
+ if (currentPathPart) {
+ if (result) {
+ result += "/";
+ }
+ result += currentPathPart;
+ }
+ return result;
+ }
+}
+VsoClient.APIS_RELATIVE_PATH = "_apis";
+VsoClient.PREVIEW_INDICATOR = "-preview.";
+exports.VsoClient = VsoClient;
+
+
+/***/ }),
+
+/***/ 7967:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const alertm = __nccwpck_require__(7770);
+const buildm = __nccwpck_require__(9893);
+const corem = __nccwpck_require__(4020);
+const dashboardm = __nccwpck_require__(7539);
+const extmgmtm = __nccwpck_require__(4605);
+const featuremgmtm = __nccwpck_require__(3193);
+const filecontainerm = __nccwpck_require__(7558);
+const gallerym = __nccwpck_require__(1939);
+const gitm = __nccwpck_require__(4996);
+const locationsm = __nccwpck_require__(4771);
+const managementm = __nccwpck_require__(2190);
+const notificationm = __nccwpck_require__(8221);
+const policym = __nccwpck_require__(266);
+const profilem = __nccwpck_require__(8101);
+const projectm = __nccwpck_require__(1682);
+const releasem = __nccwpck_require__(3075);
+const securityrolesm = __nccwpck_require__(806);
+const taskagentm = __nccwpck_require__(5899);
+const taskm = __nccwpck_require__(2354);
+const testm = __nccwpck_require__(5742);
+const testplanm = __nccwpck_require__(8737);
+const testresultsm = __nccwpck_require__(1819);
+const tfvcm = __nccwpck_require__(5417);
+const wikim = __nccwpck_require__(6391);
+const workm = __nccwpck_require__(8186);
+const workitemtrackingm = __nccwpck_require__(8409);
+const workitemtrackingprocessm = __nccwpck_require__(1178);
+const workitemtrackingprocessdefinitionm = __nccwpck_require__(3333);
+const basicm = __nccwpck_require__(6456);
+const bearm = __nccwpck_require__(1141);
+const ntlmm = __nccwpck_require__(3450);
+const patm = __nccwpck_require__(4551);
+const rm = __nccwpck_require__(7405);
+const vsom = __nccwpck_require__(9686);
+const crypto = __nccwpck_require__(6113);
+const fs = __nccwpck_require__(7147);
+const os = __nccwpck_require__(2037);
+const url = __nccwpck_require__(7310);
+const path = __nccwpck_require__(1017);
+const isBrowser = typeof window !== 'undefined';
+/**
+ * Methods to return handler objects (see handlers folder)
+ */
+function getBasicHandler(username, password, allowCrossOriginAuthentication) {
+ return new basicm.BasicCredentialHandler(username, password, allowCrossOriginAuthentication);
+}
+exports.getBasicHandler = getBasicHandler;
+function getNtlmHandler(username, password, workstation, domain) {
+ return new ntlmm.NtlmCredentialHandler(username, password, workstation, domain);
+}
+exports.getNtlmHandler = getNtlmHandler;
+function getBearerHandler(token, allowCrossOriginAuthentication) {
+ return new bearm.BearerCredentialHandler(token, allowCrossOriginAuthentication);
+}
+exports.getBearerHandler = getBearerHandler;
+function getPersonalAccessTokenHandler(token, allowCrossOriginAuthentication) {
+ return new patm.PersonalAccessTokenCredentialHandler(token, allowCrossOriginAuthentication);
+}
+exports.getPersonalAccessTokenHandler = getPersonalAccessTokenHandler;
+function getHandlerFromToken(token, allowCrossOriginAuthentication) {
+ if (token.length === 52) {
+ return getPersonalAccessTokenHandler(token, allowCrossOriginAuthentication);
+ }
+ else {
+ return getBearerHandler(token, allowCrossOriginAuthentication);
+ }
+}
+exports.getHandlerFromToken = getHandlerFromToken;
+;
+// ---------------------------------------------------------------------------
+// Factory to return client apis
+// When new APIs are added, a method must be added here to instantiate the API
+//----------------------------------------------------------------------------
+class WebApi {
+ /*
+ * Factory to return client apis and handlers
+ * @param defaultUrl default server url to use when creating new apis from factory methods
+ * @param authHandler default authentication credentials to use when creating new apis from factory methods
+ */
+ constructor(defaultUrl, authHandler, options, requestSettings) {
+ /**
+ * Determines if the domain is exluded for proxy via the no_proxy env var
+ * @param url: the server url
+ */
+ this.isNoProxyHost = function (_url) {
+ if (!process.env.no_proxy) {
+ return false;
+ }
+ const noProxyDomains = (process.env.no_proxy || '')
+ .split(',')
+ .map(v => v.toLowerCase());
+ const serverUrl = url.parse(_url).host.toLowerCase();
+ // return true if the no_proxy includes the host
+ return noProxyDomains.indexOf(serverUrl) !== -1;
+ };
+ this.serverUrl = defaultUrl;
+ this.authHandler = authHandler;
+ this.options = options || {};
+ if (!this.isNoProxyHost(this.serverUrl)) {
+ // try to get proxy setting from environment variable set by VSTS-Task-Lib if there is no proxy setting in the options
+ if (!this.options.proxy || !this.options.proxy.proxyUrl) {
+ if (global['_vsts_task_lib_proxy']) {
+ let proxyFromEnv = {
+ proxyUrl: global['_vsts_task_lib_proxy_url'],
+ proxyUsername: global['_vsts_task_lib_proxy_username'],
+ proxyPassword: this._readTaskLibSecrets(global['_vsts_task_lib_proxy_password']),
+ proxyBypassHosts: JSON.parse(global['_vsts_task_lib_proxy_bypass'] || "[]"),
+ };
+ this.options.proxy = proxyFromEnv;
+ }
+ }
+ }
+ // try get cert setting from environment variable set by VSTS-Task-Lib if there is no cert setting in the options
+ if (!this.options.cert) {
+ if (global['_vsts_task_lib_cert']) {
+ let certFromEnv = {
+ caFile: global['_vsts_task_lib_cert_ca'],
+ certFile: global['_vsts_task_lib_cert_clientcert'],
+ keyFile: global['_vsts_task_lib_cert_key'],
+ passphrase: this._readTaskLibSecrets(global['_vsts_task_lib_cert_passphrase']),
+ };
+ this.options.cert = certFromEnv;
+ }
+ }
+ // try get ignore SSL error setting from environment variable set by VSTS-Task-Lib if there is no ignore SSL error setting in the options
+ if (!this.options.ignoreSslError) {
+ this.options.ignoreSslError = !!global['_vsts_task_lib_skip_cert_validation'];
+ }
+ let userAgent;
+ const nodeApiName = 'azure-devops-node-api';
+ if (isBrowser) {
+ if (requestSettings) {
+ userAgent = `${requestSettings.productName}/${requestSettings.productVersion} (${nodeApiName}; ${window.navigator.userAgent})`;
+ }
+ else {
+ userAgent = `${nodeApiName} (${window.navigator.userAgent})`;
+ }
+ }
+ else {
+ let nodeApiVersion = 'unknown';
+ const packageJsonPath = __nccwpck_require__.ab + "package.json";
+ if (fs.existsSync(__nccwpck_require__.ab + "package.json")) {
+ nodeApiVersion = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')).version;
+ }
+ const osName = os.platform();
+ const osVersion = os.release();
+ if (requestSettings) {
+ userAgent = `${requestSettings.productName}/${requestSettings.productVersion} (${nodeApiName} ${nodeApiVersion}; ${osName} ${osVersion})`;
+ }
+ else {
+ userAgent = `${nodeApiName}/${nodeApiVersion} (${osName} ${osVersion})`;
+ }
+ }
+ this.rest = new rm.RestClient(userAgent, null, [this.authHandler], this.options);
+ this.vsoClient = new vsom.VsoClient(defaultUrl, this.rest);
+ }
+ /**
+ * Convenience factory to create with a bearer token.
+ * @param defaultServerUrl default server url to use when creating new apis from factory methods
+ * @param defaultAuthHandler default authentication credentials to use when creating new apis from factory methods
+ */
+ static createWithBearerToken(defaultUrl, token, options) {
+ let bearerHandler = getBearerHandler(token);
+ return new this(defaultUrl, bearerHandler, options);
+ }
+ connect() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ try {
+ let res;
+ res = yield this.rest.get(this.vsoClient.resolveUrl('/_apis/connectionData'));
+ resolve(res.result);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Each factory method can take a serverUrl and a list of handlers
+ * if these aren't provided, the default url and auth handler given to the constructor for this class will be used
+ */
+ getAlertApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "0f2ca920-f269-4545-b1f4-5b4173aa784e");
+ handlers = handlers || [this.authHandler];
+ return new alertm.AlertApi(serverUrl, handlers, this.options);
+ });
+ }
+ getBuildApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, buildm.BuildApi.RESOURCE_AREA_ID);
+ handlers = handlers || [this.authHandler];
+ return new buildm.BuildApi(serverUrl, handlers, this.options);
+ });
+ }
+ getCoreApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "79134c72-4a58-4b42-976c-04e7115f32bf");
+ handlers = handlers || [this.authHandler];
+ return new corem.CoreApi(serverUrl, handlers, this.options);
+ });
+ }
+ getDashboardApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "31c84e0a-3ece-48fd-a29d-100849af99ba");
+ handlers = handlers || [this.authHandler];
+ return new dashboardm.DashboardApi(serverUrl, handlers, this.options);
+ });
+ }
+ getExtensionManagementApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "6c2b0933-3600-42ae-bf8b-93d4f7e83594");
+ handlers = handlers || [this.authHandler];
+ return new extmgmtm.ExtensionManagementApi(serverUrl, handlers, this.options);
+ });
+ }
+ getFeatureManagementApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "");
+ handlers = handlers || [this.authHandler];
+ return new featuremgmtm.FeatureManagementApi(serverUrl, handlers, this.options);
+ });
+ }
+ getFileContainerApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "");
+ handlers = handlers || [this.authHandler];
+ return new filecontainerm.FileContainerApi(serverUrl, handlers, this.options);
+ });
+ }
+ getGalleryApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, gallerym.GalleryApi.RESOURCE_AREA_ID);
+ handlers = handlers || [this.authHandler];
+ return new gallerym.GalleryApi(serverUrl, handlers, this.options);
+ });
+ }
+ getGitApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, gitm.GitApi.RESOURCE_AREA_ID);
+ handlers = handlers || [this.authHandler];
+ return new gitm.GitApi(serverUrl, handlers, this.options);
+ });
+ }
+ // TODO: Don't call resource area here? Will cause infinite loop?
+ getLocationsApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let optionsClone = Object.assign({}, this.options);
+ optionsClone.allowRetries = true;
+ optionsClone.maxRetries = 5;
+ serverUrl = (yield serverUrl) || this.serverUrl;
+ handlers = handlers || [this.authHandler];
+ return new locationsm.LocationsApi(serverUrl, handlers, optionsClone);
+ });
+ }
+ getManagementApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "f101720c-9790-45a6-9fb3-494a09fddeeb");
+ handlers = handlers || [this.authHandler];
+ return new managementm.ManagementApi(serverUrl, handlers, this.options);
+ });
+ }
+ getNotificationApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "");
+ handlers = handlers || [this.authHandler];
+ return new notificationm.NotificationApi(serverUrl, handlers, this.options);
+ });
+ }
+ getPolicyApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "fb13a388-40dd-4a04-b530-013a739c72ef");
+ handlers = handlers || [this.authHandler];
+ return new policym.PolicyApi(serverUrl, handlers, this.options);
+ });
+ }
+ getProfileApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "8ccfef3d-2b87-4e99-8ccb-66e343d2daa8");
+ handlers = handlers || [this.authHandler];
+ return new profilem.ProfileApi(serverUrl, handlers, this.options);
+ });
+ }
+ getProjectAnalysisApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "7658fa33-b1bf-4580-990f-fac5896773d3");
+ handlers = handlers || [this.authHandler];
+ return new projectm.ProjectAnalysisApi(serverUrl, handlers, this.options);
+ });
+ }
+ getSecurityRolesApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "");
+ handlers = handlers || [this.authHandler];
+ return new securityrolesm.SecurityRolesApi(serverUrl, handlers, this.options);
+ });
+ }
+ getReleaseApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "efc2f575-36ef-48e9-b672-0c6fb4a48ac5");
+ handlers = handlers || [this.authHandler];
+ return new releasem.ReleaseApi(serverUrl, handlers, this.options);
+ });
+ }
+ getTaskApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "");
+ handlers = handlers || [this.authHandler];
+ return new taskm.TaskApi(serverUrl, handlers, this.options);
+ });
+ }
+ getTaskAgentApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd");
+ handlers = handlers || [this.authHandler];
+ return new taskagentm.TaskAgentApi(serverUrl, handlers, this.options);
+ });
+ }
+ getTestApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e");
+ handlers = handlers || [this.authHandler];
+ return new testm.TestApi(serverUrl, handlers, this.options);
+ });
+ }
+ getTestPlanApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "e4c27205-9d23-4c98-b958-d798bc3f9cd4");
+ handlers = handlers || [this.authHandler];
+ return new testplanm.TestPlanApi(serverUrl, handlers, this.options);
+ });
+ }
+ getTestResultsApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "c83eaf52-edf3-4034-ae11-17d38f25404c");
+ handlers = handlers || [this.authHandler];
+ return new testresultsm.TestResultsApi(serverUrl, handlers, this.options);
+ });
+ }
+ getTfvcApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "8aa40520-446d-40e6-89f6-9c9f9ce44c48");
+ handlers = handlers || [this.authHandler];
+ return new tfvcm.TfvcApi(serverUrl, handlers, this.options);
+ });
+ }
+ getWikiApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "bf7d82a0-8aa5-4613-94ef-6172a5ea01f3");
+ handlers = handlers || [this.authHandler];
+ return new wikim.WikiApi(serverUrl, handlers, this.options);
+ });
+ }
+ getWorkApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "1d4f49f9-02b9-4e26-b826-2cdb6195f2a9");
+ handlers = handlers || [this.authHandler];
+ return new workm.WorkApi(serverUrl, handlers, this.options);
+ });
+ }
+ getWorkItemTrackingApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, workitemtrackingm.WorkItemTrackingApi.RESOURCE_AREA_ID);
+ handlers = handlers || [this.authHandler];
+ return new workitemtrackingm.WorkItemTrackingApi(serverUrl, handlers, this.options);
+ });
+ }
+ getWorkItemTrackingProcessApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "5264459e-e5e0-4bd8-b118-0985e68a4ec5");
+ handlers = handlers || [this.authHandler];
+ return new workitemtrackingprocessm.WorkItemTrackingProcessApi(serverUrl, handlers, this.options);
+ });
+ }
+ getWorkItemTrackingProcessDefinitionApi(serverUrl, handlers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ // TODO: Load RESOURCE_AREA_ID correctly.
+ serverUrl = yield this._getResourceAreaUrl(serverUrl || this.serverUrl, "5264459e-e5e0-4bd8-b118-0985e68a4ec5");
+ handlers = handlers || [this.authHandler];
+ return new workitemtrackingprocessdefinitionm.WorkItemTrackingProcessDefinitionsApi(serverUrl, handlers, this.options);
+ });
+ }
+ _getResourceAreaUrl(serverUrl, resourceId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (!resourceId) {
+ return serverUrl;
+ }
+ // This must be of type any, see comment just below.
+ const resourceAreas = yield this._getResourceAreas();
+ if (resourceAreas === undefined) {
+ throw new Error((`Failed to retrieve resource areas ' + 'from server: ${serverUrl}`));
+ }
+ // The response type differs based on whether or not there are resource areas. When we are on prem we get:
+ // {"count":0,"value":null} and when we are on VSTS we get an array of resource areas.
+ // Due to this strangeness the type of resourceAreas needs to be any and we need to check .count
+ // When going against vsts count will be undefined. On prem it will be 0
+ if (!resourceAreas || resourceAreas.length === 0 || resourceAreas.count === 0) {
+ // For on prem environments we get an empty list
+ return serverUrl;
+ }
+ for (var resourceArea of resourceAreas) {
+ if (resourceArea.id.toLowerCase() === resourceId.toLowerCase()) {
+ return resourceArea.locationUrl;
+ }
+ }
+ throw new Error((`Could not find information for resource area ${resourceId} ' + 'from server: ${serverUrl}`));
+ });
+ }
+ _getResourceAreas() {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (!this._resourceAreas) {
+ const locationClient = yield this.getLocationsApi();
+ this._resourceAreas = yield locationClient.getResourceAreas();
+ }
+ return this._resourceAreas;
+ });
+ }
+ _readTaskLibSecrets(lookupKey) {
+ if (isBrowser) {
+ throw new Error("Browsers can't securely keep secrets");
+ }
+ // the lookupKey should has following format
+ // base64encoded:base64encoded
+ if (lookupKey && lookupKey.indexOf(':') > 0) {
+ let lookupInfo = lookupKey.split(':', 2);
+ // file contains encryption key
+ let keyFile = new Buffer(lookupInfo[0], 'base64').toString('utf8');
+ let encryptKey = new Buffer(fs.readFileSync(keyFile, 'utf8'), 'base64');
+ let encryptedContent = new Buffer(lookupInfo[1], 'base64').toString('utf8');
+ let decipher = crypto.createDecipher("aes-256-ctr", encryptKey);
+ let decryptedContent = decipher.update(encryptedContent, 'hex', 'utf8');
+ decryptedContent += decipher.final('utf8');
+ return decryptedContent;
+ }
+ }
+}
+exports.WebApi = WebApi;
+
+
+/***/ }),
+
+/***/ 6391:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const Comments_Contracts = __nccwpck_require__(4743);
+const WikiInterfaces = __nccwpck_require__(5787);
+class WikiApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Wiki-api', options);
+ }
+ /**
+ * Uploads an attachment on a comment on a wiki page.
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ */
+ createCommentAttachment(customHeaders, contentStream, project, wikiIdentifier, pageId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "5100d976-363d-42e7-a19d-4171ecb44782", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.CommentAttachment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Downloads an attachment on a comment on a wiki page.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {string} attachmentId - Attachment ID.
+ */
+ getAttachmentContent(project, wikiIdentifier, pageId, attachmentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ attachmentId: attachmentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "5100d976-363d-42e7-a19d-4171ecb44782", routeValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a reaction on a wiki page comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name
+ * @param {number} pageId - Wiki page ID
+ * @param {number} commentId - ID of the associated comment
+ * @param {Comments_Contracts.CommentReactionType} type - Type of the reaction being added
+ */
+ addCommentReaction(project, wikiIdentifier, pageId, commentId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ commentId: commentId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "7a5bc693-aab7-4d48-8f34-36f373022063", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.CommentReaction, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a reaction on a wiki page comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or name
+ * @param {number} pageId - Wiki page ID
+ * @param {number} commentId - ID of the associated comment
+ * @param {Comments_Contracts.CommentReactionType} type - Type of the reaction being deleted
+ */
+ deleteCommentReaction(project, wikiIdentifier, pageId, commentId, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ commentId: commentId,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "7a5bc693-aab7-4d48-8f34-36f373022063", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.CommentReaction, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of users who have reacted for the given wiki comment with a given reaction type. Supports paging, with a default page size of 100 users at a time.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {number} commentId - ID of the associated comment
+ * @param {Comments_Contracts.CommentReactionType} type - Type of the reaction for which the engaged users are being requested
+ * @param {number} top - Number of enagaged users to be returned in a given page. Optional, defaults to 100
+ * @param {number} skip - Number of engaged users to be skipped to page the next set of engaged users, defaults to 0
+ */
+ getEngagedUsers(project, wikiIdentifier, pageId, commentId, type, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ commentId: commentId,
+ type: type
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "598a5268-41a7-4162-b7dc-344131e4d1fa", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a comment on a wiki page.
+ *
+ * @param {Comments_Contracts.CommentCreateParameters} request - Comment create request.
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ */
+ addComment(request, project, wikiIdentifier, pageId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "9b394e93-7db5-46cb-9c26-09a36aa5c895", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, request, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a comment on a wiki page.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {number} id - Comment ID.
+ */
+ deleteComment(project, wikiIdentifier, pageId, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "9b394e93-7db5-46cb-9c26-09a36aa5c895", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a comment associated with the Wiki Page.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {number} id - ID of the comment to return.
+ * @param {boolean} excludeDeleted - Specify if the deleted comment should be skipped.
+ * @param {Comments_Contracts.CommentExpandOptions} expand - Specifies the additional data retrieval options for comments.
+ */
+ getComment(project, wikiIdentifier, pageId, id, excludeDeleted, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ id: id
+ };
+ let queryValues = {
+ excludeDeleted: excludeDeleted,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "9b394e93-7db5-46cb-9c26-09a36aa5c895", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a pageable list of comments.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {number} top - Max number of comments to return.
+ * @param {string} continuationToken - Used to query for the next page of comments.
+ * @param {boolean} excludeDeleted - Specify if the deleted comments should be skipped.
+ * @param {Comments_Contracts.CommentExpandOptions} expand - Specifies the additional data retrieval options for comments.
+ * @param {Comments_Contracts.CommentSortOrder} order - Order in which the comments should be returned.
+ * @param {number} parentId - CommentId of the parent comment.
+ */
+ listComments(project, wikiIdentifier, pageId, top, continuationToken, excludeDeleted, expand, order, parentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId
+ };
+ let queryValues = {
+ '$top': top,
+ continuationToken: continuationToken,
+ excludeDeleted: excludeDeleted,
+ '$expand': expand,
+ order: order,
+ parentId: parentId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "9b394e93-7db5-46cb-9c26-09a36aa5c895", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.CommentList, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a comment on a wiki page.
+ *
+ * @param {Comments_Contracts.CommentUpdateParameters} comment - Comment update request.
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {number} id - Comment ID.
+ */
+ updateComment(comment, project, wikiIdentifier, pageId, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "9b394e93-7db5-46cb-9c26-09a36aa5c895", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, comment, options);
+ let ret = this.formatResponse(res.result, Comments_Contracts.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {string} path - Wiki page path.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - Recursion level for subpages retrieval. Defaults to `None` (Optional).
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - GitVersionDescriptor for the page. Defaults to the default branch (Optional).
+ * @param {boolean} includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
+ */
+ getPageText(project, wikiIdentifier, path, recursionLevel, versionDescriptor, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ let queryValues = {
+ path: path,
+ recursionLevel: recursionLevel,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {string} path - Wiki page path.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - Recursion level for subpages retrieval. Defaults to `None` (Optional).
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - GitVersionDescriptor for the page. Defaults to the default branch (Optional).
+ * @param {boolean} includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
+ */
+ getPageZip(project, wikiIdentifier, path, recursionLevel, versionDescriptor, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ let queryValues = {
+ path: path,
+ recursionLevel: recursionLevel,
+ versionDescriptor: versionDescriptor,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the `Accept` header sent in the request.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name..
+ * @param {number} id - Wiki page ID.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - Recursion level for subpages retrieval. Defaults to `None` (Optional).
+ * @param {boolean} includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
+ */
+ getPageByIdText(project, wikiIdentifier, id, recursionLevel, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ id: id
+ };
+ let queryValues = {
+ recursionLevel: recursionLevel,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "ceddcf75-1068-452d-8b13-2d4d76e1f970", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("text/plain", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the `Accept` header sent in the request.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name..
+ * @param {number} id - Wiki page ID.
+ * @param {GitInterfaces.VersionControlRecursionType} recursionLevel - Recursion level for subpages retrieval. Defaults to `None` (Optional).
+ * @param {boolean} includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
+ */
+ getPageByIdZip(project, wikiIdentifier, id, recursionLevel, includeContent) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ id: id
+ };
+ let queryValues = {
+ recursionLevel: recursionLevel,
+ includeContent: includeContent,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "ceddcf75-1068-452d-8b13-2d4d76e1f970", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns pageable list of Wiki Pages
+ *
+ * @param {WikiInterfaces.WikiPagesBatchRequest} pagesBatchRequest - Wiki batch page request.
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {GitInterfaces.GitVersionDescriptor} versionDescriptor - GitVersionDescriptor for the page. (Optional in case of ProjectWiki).
+ */
+ getPagesBatch(pagesBatchRequest, project, wikiIdentifier, versionDescriptor) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ let queryValues = {
+ versionDescriptor: versionDescriptor,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "71323c46-2592-4398-8771-ced73dd87207", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, pagesBatchRequest, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiPageDetail, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns page detail corresponding to Page ID.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {number} pageId - Wiki page ID.
+ * @param {number} pageViewsForDays - last N days from the current day for which page views is to be returned. It's inclusive of current day.
+ */
+ getPageData(project, wikiIdentifier, pageId, pageViewsForDays) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier,
+ pageId: pageId
+ };
+ let queryValues = {
+ pageViewsForDays: pageViewsForDays,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "81c4e0fe-7663-4d62-ad46-6ab78459f274", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiPageDetail, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a new page view stats resource or updates an existing page view stats resource.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {GitInterfaces.GitVersionDescriptor} wikiVersion - Wiki version.
+ * @param {string} path - Wiki page path.
+ * @param {string} oldPath - Old page path. This is optional and required to rename path in existing page view stats.
+ */
+ createOrUpdatePageViewStats(project, wikiIdentifier, wikiVersion, path, oldPath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (wikiVersion == null) {
+ throw new TypeError('wikiVersion can not be null or undefined');
+ }
+ if (path == null) {
+ throw new TypeError('path can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ let queryValues = {
+ wikiVersion: wikiVersion,
+ path: path,
+ oldPath: oldPath,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wiki", "1087b746-5d15-41b9-bea6-14e325e7f880", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, null, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiPageViewStats, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates the wiki resource.
+ *
+ * @param {WikiInterfaces.WikiCreateParametersV2} wikiCreateParams - Parameters for the wiki creation.
+ * @param {string} project - Project ID or project name
+ */
+ createWiki(wikiCreateParams, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wiki", "288d122c-dbd4-451d-aa5f-7dbbba070728", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, wikiCreateParams, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiV2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the wiki corresponding to the wiki ID or wiki name provided.
+ *
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {string} project - Project ID or project name
+ */
+ deleteWiki(wikiIdentifier, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wiki", "288d122c-dbd4-451d-aa5f-7dbbba070728", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiV2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets all wikis in a project or collection.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getAllWikis(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wiki", "288d122c-dbd4-451d-aa5f-7dbbba070728", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiV2, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the wiki corresponding to the wiki ID or wiki name provided.
+ *
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {string} project - Project ID or project name
+ */
+ getWiki(wikiIdentifier, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wiki", "288d122c-dbd4-451d-aa5f-7dbbba070728", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiV2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates the wiki corresponding to the wiki ID or wiki name provided using the update parameters.
+ *
+ * @param {WikiInterfaces.WikiUpdateParameters} updateParameters - Update parameters.
+ * @param {string} wikiIdentifier - Wiki ID or wiki name.
+ * @param {string} project - Project ID or project name
+ */
+ updateWiki(updateParameters, wikiIdentifier, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ wikiIdentifier: wikiIdentifier
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wiki", "288d122c-dbd4-451d-aa5f-7dbbba070728", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateParameters, options);
+ let ret = this.formatResponse(res.result, WikiInterfaces.TypeInfo.WikiV2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+WikiApi.RESOURCE_AREA_ID = "bf7d82a0-8aa5-4613-94ef-6172a5ea01f3";
+exports.WikiApi = WikiApi;
+
+
+/***/ }),
+
+/***/ 8186:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const WorkInterfaces = __nccwpck_require__(7480);
+class WorkApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-Work-api', options);
+ }
+ /**
+ * Gets backlog configuration for a team
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getBacklogConfigurations(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "7799f497-3cb5-4f16-ad4f-5cd06012db64", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.BacklogConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of work items within a backlog level
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} backlogId
+ */
+ getBacklogLevelWorkItems(teamContext, backlogId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ backlogId: backlogId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "7c468d96-ab1d-4294-a360-92f07e9ccd98", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a backlog level
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - The id of the backlog level
+ */
+ getBacklog(teamContext, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "a93726f9-7867-4e38-b4f2-0bfafc2f6a94", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.BacklogLevelConfiguration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * List all backlog levels
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getBacklogs(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "a93726f9-7867-4e38-b4f2-0bfafc2f6a94", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.BacklogLevelConfiguration, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a badge that displays the status of columns on the board.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - The id of the board.
+ * @param {WorkInterfaces.BoardBadgeColumnOptions} columnOptions - Determines what columns to show.
+ * @param {string[]} columns - If columnOptions is set to custom, specify the list of column names.
+ */
+ getBoardBadge(teamContext, id, columnOptions, columns) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ let queryValues = {
+ columnOptions: columnOptions,
+ columns: columns && columns.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0120b002-ab6c-4ca0-98cf-a8d7492f865c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a badge that displays the status of columns on the board.
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - The id of the board.
+ * @param {WorkInterfaces.BoardBadgeColumnOptions} columnOptions - Determines what columns to show.
+ * @param {string[]} columns - If columnOptions is set to custom, specify the list of column names.
+ */
+ getBoardBadgeData(teamContext, id, columnOptions, columns) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ let queryValues = {
+ columnOptions: columnOptions,
+ columns: columns && columns.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0120b002-ab6c-4ca0-98cf-a8d7492f865c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get available board columns in a project
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getColumnSuggestedValues(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the list of parent field filter model for the given list of workitem ids
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} childBacklogContextCategoryRefName
+ * @param {number[]} workitemIds
+ */
+ getBoardMappingParentItems(teamContext, childBacklogContextCategoryRefName, workitemIds) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (childBacklogContextCategoryRefName == null) {
+ throw new TypeError('childBacklogContextCategoryRefName can not be null or undefined');
+ }
+ if (workitemIds == null) {
+ throw new TypeError('workitemIds can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ let queryValues = {
+ childBacklogContextCategoryRefName: childBacklogContextCategoryRefName,
+ workitemIds: workitemIds && workitemIds.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "186abea3-5c35-432f-9e28-7a15b4312a0e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get available board rows in a project
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getRowSuggestedValues(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get board
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - identifier for board, either board's backlog level name (Eg:"Stories") or Id
+ */
+ getBoard(teamContext, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "23ad19fc-3b8e-4877-8462-b3f92bc06b40", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.Board, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get boards
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getBoards(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "23ad19fc-3b8e-4877-8462-b3f92bc06b40", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update board options
+ *
+ * @param {{ [key: string] : string; }} options - options to updated
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - identifier for board, either category plural name (Eg:"Stories") or guid
+ */
+ setBoardOptions(options, teamContext, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "23ad19fc-3b8e-4877-8462-b3f92bc06b40", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, options, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get board user settings for a board id
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Board ID or Name
+ */
+ getBoardUserSettings(teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "b30d9f58-1891-4b0a-b168-c46408f919b0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update board user settings for the board id
+ *
+ * @param {{ [key: string] : string; }} boardUserSettings
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board
+ */
+ updateBoardUserSettings(boardUserSettings, teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "b30d9f58-1891-4b0a-b168-c46408f919b0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, boardUserSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a team's capacity including total capacity and days off
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ */
+ getCapacitiesWithIdentityRefAndTotals(teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "work", "74412d15-8c1a-4352-a48d-ef1ed5587d57", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamCapacity, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a team member's capacity
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ * @param {string} teamMemberId - ID of the team member
+ */
+ getCapacityWithIdentityRef(teamContext, iterationId, teamMemberId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId,
+ teamMemberId: teamMemberId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "work", "74412d15-8c1a-4352-a48d-ef1ed5587d57", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamMemberCapacityIdentityRef, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replace a team's capacity
+ *
+ * @param {WorkInterfaces.TeamMemberCapacityIdentityRef[]} capacities - Team capacity to replace
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ */
+ replaceCapacitiesWithIdentityRef(capacities, teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "work", "74412d15-8c1a-4352-a48d-ef1ed5587d57", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, capacities, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamMemberCapacityIdentityRef, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a team member's capacity
+ *
+ * @param {WorkInterfaces.CapacityPatch} patch - Updated capacity
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ * @param {string} teamMemberId - ID of the team member
+ */
+ updateCapacityWithIdentityRef(patch, teamContext, iterationId, teamMemberId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId,
+ teamMemberId: teamMemberId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "work", "74412d15-8c1a-4352-a48d-ef1ed5587d57", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, patch, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamMemberCapacityIdentityRef, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get board card Rule settings for the board id or board by name
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board
+ */
+ getBoardCardRuleSettings(teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "work", "b044a3d9-02ea-49c7-91a1-b730949cc896", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update board card Rule settings for the board id or board by name
+ *
+ * @param {WorkInterfaces.BoardCardRuleSettings} boardCardRuleSettings
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board
+ */
+ updateBoardCardRuleSettings(boardCardRuleSettings, teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "work", "b044a3d9-02ea-49c7-91a1-b730949cc896", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, boardCardRuleSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update taskboard card Rule settings
+ *
+ * @param {WorkInterfaces.BoardCardRuleSettings} boardCardRuleSettings
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ updateTaskboardCardRuleSettings(boardCardRuleSettings, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "work", "3f84a8d1-1aab-423e-a94b-6dcbdcca511f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, boardCardRuleSettings, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get board card settings for the board id or board by name
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board
+ */
+ getBoardCardSettings(teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "work", "07c3b467-bc60-4f05-8e34-599ce288fafc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update board card settings for the board id or board by name
+ *
+ * @param {WorkInterfaces.BoardCardSettings} boardCardSettingsToSave
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board
+ */
+ updateBoardCardSettings(boardCardSettingsToSave, teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "work", "07c3b467-bc60-4f05-8e34-599ce288fafc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, boardCardSettingsToSave, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update taskboard card settings
+ *
+ * @param {WorkInterfaces.BoardCardSettings} boardCardSettingsToSave
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ updateTaskboardCardSettings(boardCardSettingsToSave, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "work", "0d63745f-31f3-4cf3-9056-2a064e567637", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, boardCardSettingsToSave, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a board chart
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
+ * @param {string} name - The chart name
+ */
+ getBoardChart(teamContext, board, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "45fe888c-239e-49fd-958c-df1a1ab21d97", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get board charts
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
+ */
+ getBoardCharts(teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "45fe888c-239e-49fd-958c-df1a1ab21d97", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a board chart
+ *
+ * @param {WorkInterfaces.BoardChart} chart
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
+ * @param {string} name - The chart name
+ */
+ updateBoardChart(chart, teamContext, board, name) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board,
+ name: name
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "45fe888c-239e-49fd-958c-df1a1ab21d97", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, chart, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get columns on a board
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Name or ID of the specific board
+ */
+ getBoardColumns(teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c555d7ff-84e1-47df-9923-a3fe0cd8751b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.BoardColumn, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update columns on a board
+ *
+ * @param {WorkInterfaces.BoardColumn[]} boardColumns - List of board columns to update
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Name or ID of the specific board
+ */
+ updateBoardColumns(boardColumns, teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c555d7ff-84e1-47df-9923-a3fe0cd8751b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, boardColumns, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.BoardColumn, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get Delivery View Data
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} id - Identifier for delivery view
+ * @param {number} revision - Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision.
+ * @param {Date} startDate - The start date of timeline
+ * @param {Date} endDate - The end date of timeline
+ */
+ getDeliveryTimelineData(project, id, revision, startDate, endDate) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ revision: revision,
+ startDate: startDate,
+ endDate: endDate,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "bdd0834e-101f-49f0-a6ae-509f384a12b4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.DeliveryViewData, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get an iteration's capacity for all teams in iteration
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} iterationId - ID of the iteration
+ */
+ getTotalIterationCapacities(project, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "1e385ce0-396b-4273-8171-d64562c18d37", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a team's iteration by iterationId
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - ID of the iteration
+ */
+ deleteTeamIteration(teamContext, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c9175577-28a1-4b06-9197-8636af9f64ad", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get team's iteration by iterationId
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} id - ID of the iteration
+ */
+ getTeamIteration(teamContext, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c9175577-28a1-4b06-9197-8636af9f64ad", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSettingsIteration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a team's iterations using timeframe filter
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} timeframe - A filter for which iterations are returned based on relative time. Only Current is supported currently.
+ */
+ getTeamIterations(teamContext, timeframe) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ let queryValues = {
+ '$timeframe': timeframe,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c9175577-28a1-4b06-9197-8636af9f64ad", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSettingsIteration, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add an iteration to the team
+ *
+ * @param {WorkInterfaces.TeamSettingsIteration} iteration - Iteration to add
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ postTeamIteration(iteration, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c9175577-28a1-4b06-9197-8636af9f64ad", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, iteration, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSettingsIteration, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a new plan for the team
+ *
+ * @param {WorkInterfaces.CreatePlan} postedPlan - Plan definition
+ * @param {string} project - Project ID or project name
+ */
+ createPlan(postedPlan, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0b42cb47-cd73-4810-ac90-19c9ba147453", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, postedPlan, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.Plan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete the specified plan
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} id - Identifier of the plan
+ */
+ deletePlan(project, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0b42cb47-cd73-4810-ac90-19c9ba147453", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the information for the specified plan
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} id - Identifier of the plan
+ */
+ getPlan(project, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0b42cb47-cd73-4810-ac90-19c9ba147453", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.Plan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the information for all the plans configured for the given team
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getPlans(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0b42cb47-cd73-4810-ac90-19c9ba147453", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.Plan, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update the information for the specified plan
+ *
+ * @param {WorkInterfaces.UpdatePlan} updatedPlan - Plan definition to be updated
+ * @param {string} project - Project ID or project name
+ * @param {string} id - Identifier of the plan
+ */
+ updatePlan(updatedPlan, project, id) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0b42cb47-cd73-4810-ac90-19c9ba147453", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, updatedPlan, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.Plan, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get process configuration
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getProcessConfiguration(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "f901ba42-86d2-4b0c-89c1-3f86d06daa84", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get rows on a board
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Name or ID of the specific board
+ */
+ getBoardRows(teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0863355d-aefd-4d63-8669-984c9b7b0e78", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update rows on a board
+ *
+ * @param {WorkInterfaces.BoardRow[]} boardRows - List of board rows to update
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} board - Name or ID of the specific board
+ */
+ updateBoardRows(boardRows, teamContext, board) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ board: board
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "0863355d-aefd-4d63-8669-984c9b7b0e78", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, boardRows, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getColumns(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c6815dbe-8e7e-4ffe-9a79-e83ee712aa92", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {WorkInterfaces.UpdateTaskboardColumn[]} updateColumns
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ updateColumns(updateColumns, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c6815dbe-8e7e-4ffe-9a79-e83ee712aa92", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, updateColumns, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId
+ */
+ getWorkItemColumns(teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "1be23c36-8872-4abc-b57d-402cd6c669d9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {WorkInterfaces.UpdateTaskboardWorkItemColumn} updateColumn
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId
+ * @param {number} workItemId
+ */
+ updateWorkItemColumn(updateColumn, teamContext, iterationId, workItemId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId,
+ workItemId: workItemId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "1be23c36-8872-4abc-b57d-402cd6c669d9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateColumn, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get team's days off for an iteration
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ */
+ getTeamDaysOff(teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "2d4faa2e-9150-4cbf-a47a-932b1b4a0773", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSettingsDaysOff, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Set a team's days off for an iteration
+ *
+ * @param {WorkInterfaces.TeamSettingsDaysOffPatch} daysOffPatch - Team's days off patch containing a list of start and end dates
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ */
+ updateTeamDaysOff(daysOffPatch, teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "2d4faa2e-9150-4cbf-a47a-932b1b4a0773", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, daysOffPatch, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSettingsDaysOff, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a collection of team field values
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getTeamFieldValues(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "07ced576-58ed-49e6-9c1e-5cb53ab8bf2a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update team field values
+ *
+ * @param {WorkInterfaces.TeamFieldValuesPatch} patch
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ updateTeamFieldValues(patch, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "07ced576-58ed-49e6-9c1e-5cb53ab8bf2a", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, patch, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a team's settings
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ getTeamSettings(teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c3c1012b-bea7-49d7-b45e-1664e566f84c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSetting, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a team's settings
+ *
+ * @param {WorkInterfaces.TeamSettingsPatch} teamSettingsPatch - TeamSettings changes
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ updateTeamSettings(teamSettingsPatch, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "c3c1012b-bea7-49d7-b45e-1664e566f84c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, teamSettingsPatch, options);
+ let ret = this.formatResponse(res.result, WorkInterfaces.TypeInfo.TeamSetting, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get work items for iteration
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - ID of the iteration
+ */
+ getIterationWorkItems(teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "5b3ef1a6-d3ab-44cd-bafd-c7f45db850fa", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Reorder Product Backlog/Boards Work Items
+ *
+ * @param {WorkInterfaces.ReorderOperation} operation
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ reorderBacklogWorkItems(operation, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "1c22b714-e7e4-41b9-85e0-56ee13ef55ed", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, operation, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Reorder Sprint Backlog/Taskboard Work Items
+ *
+ * @param {WorkInterfaces.ReorderOperation} operation
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} iterationId - The id of the iteration
+ */
+ reorderIterationWorkItems(operation, teamContext, iterationId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ iterationId: iterationId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "work", "47755db2-d7eb-405a-8c25-675401525fc9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, operation, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+WorkApi.RESOURCE_AREA_ID = "1d4f49f9-02b9-4e26-b826-2cdb6195f2a9";
+exports.WorkApi = WorkApi;
+
+
+/***/ }),
+
+/***/ 8409:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const WorkItemTrackingInterfaces = __nccwpck_require__(6938);
+class WorkItemTrackingApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-WorkItemTracking-api', options);
+ }
+ /**
+ * INTERNAL ONLY: USED BY ACCOUNT MY WORK PAGE. This returns Doing, Done, Follows and activity work items details.
+ *
+ * @param {WorkItemTrackingInterfaces.QueryOption} queryOption
+ */
+ getAccountMyWorkData(queryOption) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ '$queryOption': queryOption,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "def3d688-ddf5-4096-9024-69beea15cdbd", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.AccountMyWorkResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets recent work item activities
+ *
+ */
+ getRecentActivityData() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "1bc988f4-c15f-4072-ad35-497c87e3a909", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.AccountRecentActivityWorkItemModel2, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * INTERNAL ONLY: USED BY ACCOUNT MY WORK PAGE.
+ *
+ */
+ getRecentMentions() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "d60eeb6e-e18c-4478-9e94-a0094e28f41c", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.AccountRecentMentionWorkItemModel, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get the list of work item tracking outbound artifact link types.
+ *
+ */
+ getWorkArtifactLinkTypes() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "1a31de40-e318-41cd-a6c6-881077df52e3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Queries work items linked to a given list of artifact URI.
+ *
+ * @param {WorkItemTrackingInterfaces.ArtifactUriQuery} artifactUriQuery - Defines a list of artifact URI for querying work items.
+ * @param {string} project - Project ID or project name
+ */
+ queryWorkItemsForArtifactUris(artifactUriQuery, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "a9a9aa7a-8c09-44d3-ad1b-46e855c1e3d3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, artifactUriQuery, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Uploads an attachment.
+ *
+ * @param {NodeJS.ReadableStream} contentStream - Content to upload
+ * @param {string} fileName - The name of the file
+ * @param {string} uploadType - Attachment upload type: Simple or Chunked
+ * @param {string} project - Project ID or project name
+ * @param {string} areaPath - Target project Area Path
+ */
+ createAttachment(customHeaders, contentStream, fileName, uploadType, project, areaPath) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ fileName: fileName,
+ uploadType: uploadType,
+ areaPath: areaPath,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/octet-stream";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "e07b5fa4-1499-494d-a496-64b860fd64ff", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.uploadStream("POST", url, contentStream, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Downloads an attachment.
+ *
+ * @param {string} id - Attachment ID
+ * @param {string} fileName - Name of the file
+ * @param {string} project - Project ID or project name
+ * @param {boolean} download - If set to true always download attachment
+ */
+ getAttachmentContent(id, fileName, project, download) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ fileName: fileName,
+ download: download,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "e07b5fa4-1499-494d-a496-64b860fd64ff", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/octet-stream", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Downloads an attachment.
+ *
+ * @param {string} id - Attachment ID
+ * @param {string} fileName - Name of the file
+ * @param {string} project - Project ID or project name
+ * @param {boolean} download - If set to true always download attachment
+ */
+ getAttachmentZip(id, fileName, project, download) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ fileName: fileName,
+ download: download,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "e07b5fa4-1499-494d-a496-64b860fd64ff", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("application/zip", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number[]} ids - Comma separated integer classification nodes ids. It's not required, if you want root nodes.
+ * @param {number} depth - Depth of children to fetch.
+ * @param {WorkItemTrackingInterfaces.ClassificationNodesErrorPolicy} errorPolicy - Flag to handle errors in getting some nodes. Possible options are Fail and Omit.
+ */
+ getClassificationNodes(project, ids, depth, errorPolicy) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ids == null) {
+ throw new TypeError('ids can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ ids: ids && ids.join(","),
+ '$depth': depth,
+ errorPolicy: errorPolicy,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a70579d1-f53a-48ee-a5be-7be8659023b9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemClassificationNode, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets root classification nodes under the project.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} depth - Depth of children to fetch.
+ */
+ getRootNodes(project, depth) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ '$depth': depth,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a70579d1-f53a-48ee-a5be-7be8659023b9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemClassificationNode, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create new or update an existing classification node.
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemClassificationNode} postedNode - Node to create or update.
+ * @param {string} project - Project ID or project name
+ * @param {WorkItemTrackingInterfaces.TreeStructureGroup} structureGroup - Structure group of the classification node, area or iteration.
+ * @param {string} path - Path of the classification node.
+ */
+ createOrUpdateClassificationNode(postedNode, project, structureGroup, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ structureGroup: structureGroup,
+ path: path
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "5a172953-1b41-49d3-840a-33f79c3ce89f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, postedNode, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemClassificationNode, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete an existing classification node.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {WorkItemTrackingInterfaces.TreeStructureGroup} structureGroup - Structure group of the classification node, area or iteration.
+ * @param {string} path - Path of the classification node.
+ * @param {number} reclassifyId - Id of the target classification node for reclassification.
+ */
+ deleteClassificationNode(project, structureGroup, path, reclassifyId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ structureGroup: structureGroup,
+ path: path
+ };
+ let queryValues = {
+ '$reclassifyId': reclassifyId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "5a172953-1b41-49d3-840a-33f79c3ce89f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the classification node for a given node path.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {WorkItemTrackingInterfaces.TreeStructureGroup} structureGroup - Structure group of the classification node, area or iteration.
+ * @param {string} path - Path of the classification node.
+ * @param {number} depth - Depth of children to fetch.
+ */
+ getClassificationNode(project, structureGroup, path, depth) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ structureGroup: structureGroup,
+ path: path
+ };
+ let queryValues = {
+ '$depth': depth,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "5a172953-1b41-49d3-840a-33f79c3ce89f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemClassificationNode, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update an existing classification node.
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemClassificationNode} postedNode - Node to create or update.
+ * @param {string} project - Project ID or project name
+ * @param {WorkItemTrackingInterfaces.TreeStructureGroup} structureGroup - Structure group of the classification node, area or iteration.
+ * @param {string} path - Path of the classification node.
+ */
+ updateClassificationNode(postedNode, project, structureGroup, path) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ structureGroup: structureGroup,
+ path: path
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "5a172953-1b41-49d3-840a-33f79c3ce89f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, postedNode, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemClassificationNode, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get users who reacted on the comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - WorkItem ID.
+ * @param {number} commentId - Comment ID.
+ * @param {WorkItemTrackingInterfaces.CommentReactionType} reactionType - Type of the reaction.
+ * @param {number} top
+ * @param {number} skip
+ */
+ getEngagedUsers(project, workItemId, commentId, reactionType, top, skip) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId,
+ reactionType: reactionType
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "e33ca5e0-2349-4285-af3d-d72d86781c35", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add a comment on a work item.
+ *
+ * @param {WorkItemTrackingInterfaces.CommentCreate} request - Comment create request.
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - Id of a work item.
+ */
+ addComment(request, project, workItemId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "608aac0a-32e1-4493-a863-b9cf4566d257", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, request, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a comment on a work item.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - Id of a work item.
+ * @param {number} commentId
+ */
+ deleteComment(project, workItemId, commentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "608aac0a-32e1-4493-a863-b9cf4566d257", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a work item comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - Id of a work item to get the comment.
+ * @param {number} commentId - Id of the comment to return.
+ * @param {boolean} includeDeleted - Specify if the deleted comment should be retrieved.
+ * @param {WorkItemTrackingInterfaces.CommentExpandOptions} expand - Specifies the additional data retrieval options for work item comments.
+ */
+ getComment(project, workItemId, commentId, includeDeleted, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId
+ };
+ let queryValues = {
+ includeDeleted: includeDeleted,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "608aac0a-32e1-4493-a863-b9cf4566d257", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of work item comments, pageable.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - Id of a work item to get comments for.
+ * @param {number} top - Max number of comments to return.
+ * @param {string} continuationToken - Used to query for the next page of comments.
+ * @param {boolean} includeDeleted - Specify if the deleted comments should be retrieved.
+ * @param {WorkItemTrackingInterfaces.CommentExpandOptions} expand - Specifies the additional data retrieval options for work item comments.
+ * @param {WorkItemTrackingInterfaces.CommentSortOrder} order - Order in which the comments should be returned.
+ */
+ getComments(project, workItemId, top, continuationToken, includeDeleted, expand, order) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId
+ };
+ let queryValues = {
+ '$top': top,
+ continuationToken: continuationToken,
+ includeDeleted: includeDeleted,
+ '$expand': expand,
+ order: order,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "608aac0a-32e1-4493-a863-b9cf4566d257", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentList, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of work item comments by ids.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - Id of a work item to get comments for.
+ * @param {number[]} ids - Comma-separated list of comment ids to return.
+ * @param {boolean} includeDeleted - Specify if the deleted comments should be retrieved.
+ * @param {WorkItemTrackingInterfaces.CommentExpandOptions} expand - Specifies the additional data retrieval options for work item comments.
+ */
+ getCommentsBatch(project, workItemId, ids, includeDeleted, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ids == null) {
+ throw new TypeError('ids can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId
+ };
+ let queryValues = {
+ ids: ids && ids.join(","),
+ includeDeleted: includeDeleted,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "608aac0a-32e1-4493-a863-b9cf4566d257", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentList, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a comment on a work item.
+ *
+ * @param {WorkItemTrackingInterfaces.CommentUpdate} request - Comment update request.
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - Id of a work item.
+ * @param {number} commentId
+ */
+ updateComment(request, project, workItemId, commentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "608aac0a-32e1-4493-a863-b9cf4566d257", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, request, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.Comment, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a new reaction to a comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - WorkItem ID
+ * @param {number} commentId - Comment ID
+ * @param {WorkItemTrackingInterfaces.CommentReactionType} reactionType - Type of the reaction
+ */
+ createCommentReaction(project, workItemId, commentId, reactionType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId,
+ reactionType: reactionType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "f6cb3f27-1028-4851-af96-887e570dc21f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, null, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentReaction, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes an existing reaction on a comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - WorkItem ID
+ * @param {number} commentId - Comment ID
+ * @param {WorkItemTrackingInterfaces.CommentReactionType} reactionType - Type of the reaction
+ */
+ deleteCommentReaction(project, workItemId, commentId, reactionType) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId,
+ reactionType: reactionType
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "f6cb3f27-1028-4851-af96-887e570dc21f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentReaction, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets reactions of a comment.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId - WorkItem ID
+ * @param {number} commentId - Comment ID
+ */
+ getCommentReactions(project, workItemId, commentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "f6cb3f27-1028-4851-af96-887e570dc21f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentReaction, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId
+ * @param {number} commentId
+ * @param {number} version
+ */
+ getCommentVersion(project, workItemId, commentId, version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId,
+ version: version
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "49e03b34-3be0-42e3-8a5d-e8dfb88ac954", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentVersion, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {number} workItemId
+ * @param {number} commentId
+ */
+ getCommentVersions(project, workItemId, commentId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ workItemId: workItemId,
+ commentId: commentId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "49e03b34-3be0-42e3-8a5d-e8dfb88ac954", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.CommentVersion, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Create a new field.
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemField} workItemField - New field definition
+ * @param {string} project - Project ID or project name
+ */
+ createField(workItemField, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemField, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemField, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the field. To undelete a filed, see "Update Field" API.
+ *
+ * @param {string} fieldNameOrRefName - Field simple name or reference name
+ * @param {string} project - Project ID or project name
+ */
+ deleteField(fieldNameOrRefName, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fieldNameOrRefName: fieldNameOrRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets information on a specific field.
+ *
+ * @param {string} fieldNameOrRefName - Field simple name or reference name
+ * @param {string} project - Project ID or project name
+ */
+ getField(fieldNameOrRefName, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fieldNameOrRefName: fieldNameOrRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemField, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns information for all fields. The project ID/name parameter is optional.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {WorkItemTrackingInterfaces.GetFieldsExpand} expand - Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included.
+ */
+ getFields(project, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemField, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a field.
+ *
+ * @param {WorkItemTrackingInterfaces.UpdateWorkItemField} payload - Payload contains desired value of the field's properties
+ * @param {string} fieldNameOrRefName - Name/reference name of the field to be updated
+ * @param {string} project - Project ID or project name
+ */
+ updateField(payload, fieldNameOrRefName, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ fieldNameOrRefName: fieldNameOrRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, payload, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemField, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Migrates a project to a different process within the same OOB type. For example, you can only migrate a project from agile/custom-agile to agile/custom-agile.
+ *
+ * @param {WorkItemTrackingInterfaces.ProcessIdModel} newProcess
+ * @param {string} project - Project ID or project name
+ */
+ migrateProjectsProcess(newProcess, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "19801631-d4e5-47e9-8166-0330de0ff1e6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, newProcess, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a query, or moves a query.
+ *
+ * @param {WorkItemTrackingInterfaces.QueryHierarchyItem} postedQuery - The query to create.
+ * @param {string} project - Project ID or project name
+ * @param {string} query - The parent id or path under which the query is to be created.
+ * @param {boolean} validateWiqlOnly - If you only want to validate your WIQL query without actually creating one, set it to true. Default is false.
+ */
+ createQuery(postedQuery, project, query, validateWiqlOnly) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ query: query
+ };
+ let queryValues = {
+ validateWiqlOnly: validateWiqlOnly,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a67d190c-c41f-424b-814d-0e906f659301", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, postedQuery, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.QueryHierarchyItem, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} query - ID or path of the query or folder to delete.
+ */
+ deleteQuery(project, query) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ query: query
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a67d190c-c41f-424b-814d-0e906f659301", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the root queries and their children
+ *
+ * @param {string} project - Project ID or project name
+ * @param {WorkItemTrackingInterfaces.QueryExpand} expand - Include the query string (wiql), clauses, query result columns, and sort options in the results.
+ * @param {number} depth - In the folder of queries, return child queries and folders to this depth.
+ * @param {boolean} includeDeleted - Include deleted queries and folders
+ */
+ getQueries(project, expand, depth, includeDeleted) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ '$expand': expand,
+ '$depth': depth,
+ '$includeDeleted': includeDeleted,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a67d190c-c41f-424b-814d-0e906f659301", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.QueryHierarchyItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Retrieves an individual query and its children
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} query - ID or path of the query.
+ * @param {WorkItemTrackingInterfaces.QueryExpand} expand - Include the query string (wiql), clauses, query result columns, and sort options in the results.
+ * @param {number} depth - In the folder of queries, return child queries and folders to this depth.
+ * @param {boolean} includeDeleted - Include deleted queries and folders
+ * @param {boolean} useIsoDateFormat - DateTime query clauses will be formatted using a ISO 8601 compliant format
+ */
+ getQuery(project, query, expand, depth, includeDeleted, useIsoDateFormat) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ query: query
+ };
+ let queryValues = {
+ '$expand': expand,
+ '$depth': depth,
+ '$includeDeleted': includeDeleted,
+ '$useIsoDateFormat': useIsoDateFormat,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a67d190c-c41f-424b-814d-0e906f659301", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.QueryHierarchyItem, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Searches all queries the user has access to in the current project
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} filter - The text to filter the queries with.
+ * @param {number} top - The number of queries to return (Default is 50 and maximum is 200).
+ * @param {WorkItemTrackingInterfaces.QueryExpand} expand
+ * @param {boolean} includeDeleted - Include deleted queries and folders
+ */
+ searchQueries(project, filter, top, expand, includeDeleted) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (filter == null) {
+ throw new TypeError('filter can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ '$filter': filter,
+ '$top': top,
+ '$expand': expand,
+ '$includeDeleted': includeDeleted,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a67d190c-c41f-424b-814d-0e906f659301", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.QueryHierarchyItemsResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Update a query or a folder. This allows you to update, rename and move queries and folders.
+ *
+ * @param {WorkItemTrackingInterfaces.QueryHierarchyItem} queryUpdate - The query to update.
+ * @param {string} project - Project ID or project name
+ * @param {string} query - The ID or path for the query to update.
+ * @param {boolean} undeleteDescendants - Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants.
+ */
+ updateQuery(queryUpdate, project, query, undeleteDescendants) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ query: query
+ };
+ let queryValues = {
+ '$undeleteDescendants': undeleteDescendants,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a67d190c-c41f-424b-814d-0e906f659301", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, queryUpdate, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.QueryHierarchyItem, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of queries by ids (Maximum 1000)
+ *
+ * @param {WorkItemTrackingInterfaces.QueryBatchGetRequest} queryGetRequest
+ * @param {string} project - Project ID or project name
+ */
+ getQueriesBatch(queryGetRequest, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "549816f9-09b0-4e75-9e81-01fbfcd07426", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, queryGetRequest, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.QueryHierarchyItem, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.
+ *
+ * @param {number} id - ID of the work item to be destroyed permanently
+ * @param {string} project - Project ID or project name
+ */
+ destroyWorkItem(id, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b70d8d39-926c-465e-b927-b1bf0e5ca0e0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a deleted work item from Recycle Bin.
+ *
+ * @param {number} id - ID of the work item to be returned
+ * @param {string} project - Project ID or project name
+ */
+ getDeletedWorkItem(id, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b70d8d39-926c-465e-b927-b1bf0e5ca0e0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the work items from the recycle bin, whose IDs have been specified in the parameters
+ *
+ * @param {number[]} ids - Comma separated list of IDs of the deleted work items to be returned
+ * @param {string} project - Project ID or project name
+ */
+ getDeletedWorkItems(ids, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ids == null) {
+ throw new TypeError('ids can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ ids: ids && ids.join(","),
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b70d8d39-926c-465e-b927-b1bf0e5ca0e0", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getDeletedWorkItemShallowReferences(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b70d8d39-926c-465e-b927-b1bf0e5ca0e0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Restores the deleted work item from Recycle Bin.
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemDeleteUpdate} payload - Paylod with instructions to update the IsDeleted flag to false
+ * @param {number} id - ID of the work item to be restored
+ * @param {string} project - Project ID or project name
+ */
+ restoreWorkItem(payload, id, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "b70d8d39-926c-465e-b927-b1bf0e5ca0e0", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, payload, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a fully hydrated work item for the requested revision
+ *
+ * @param {number} id
+ * @param {number} revisionNumber
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand
+ * @param {string} project - Project ID or project name
+ */
+ getRevision(id, revisionNumber, expand, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id,
+ revisionNumber: revisionNumber
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "a00c85a5-80fa-4565-99c3-bcd2181434bb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the list of fully hydrated work item revisions, paged.
+ *
+ * @param {number} id
+ * @param {number} top
+ * @param {number} skip
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand
+ * @param {string} project - Project ID or project name
+ */
+ getRevisions(id, top, skip, expand, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "a00c85a5-80fa-4565-99c3-bcd2181434bb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * RESTful method to send mail for selected/queried work items.
+ *
+ * @param {WorkItemTrackingInterfaces.SendMailBody} body
+ * @param {string} project - Project ID or project name
+ */
+ sendMail(body, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "12438500-2f84-4fa7-9f1a-c31871b4959d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, body, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} tagIdOrName
+ */
+ deleteTag(project, tagIdOrName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ tagIdOrName: tagIdOrName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "bc15bc60-e7a8-43cb-ab01-2106be3983a1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} tagIdOrName
+ */
+ getTag(project, tagIdOrName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ tagIdOrName: tagIdOrName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "bc15bc60-e7a8-43cb-ab01-2106be3983a1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ */
+ getTags(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "bc15bc60-e7a8-43cb-ab01-2106be3983a1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {WorkItemTrackingInterfaces.WorkItemTagDefinition} tagData
+ * @param {string} project - Project ID or project name
+ * @param {string} tagIdOrName
+ */
+ updateTag(tagData, project, tagIdOrName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ tagIdOrName: tagIdOrName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "bc15bc60-e7a8-43cb-ab01-2106be3983a1", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, tagData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a template
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemTemplate} template - Template contents
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ */
+ createTemplate(template, teamContext) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "6a90345f-a676-4969-afce-8e163e1d5642", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, template, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets template
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} workitemtypename - Optional, When specified returns templates for given Work item type.
+ */
+ getTemplates(teamContext, workitemtypename) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ let queryValues = {
+ workitemtypename: workitemtypename,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "6a90345f-a676-4969-afce-8e163e1d5642", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the template with given id
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} templateId - Template id
+ */
+ deleteTemplate(teamContext, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ templateId: templateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "fb10264a-8836-48a0-8033-1b0ccd2748d5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the template with specified id
+ *
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} templateId - Template Id
+ */
+ getTemplate(teamContext, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ templateId: templateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "fb10264a-8836-48a0-8033-1b0ccd2748d5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replace template contents
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemTemplate} templateContent - Template contents to replace with
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {string} templateId - Template id
+ */
+ replaceTemplate(templateContent, teamContext, templateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ templateId: templateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "fb10264a-8836-48a0-8033-1b0ccd2748d5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, templateContent, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single update for a work item
+ *
+ * @param {number} id
+ * @param {number} updateNumber
+ * @param {string} project - Project ID or project name
+ */
+ getUpdate(id, updateNumber, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id,
+ updateNumber: updateNumber
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "6570bf97-d02c-4a91-8d93-3abe9895b1a9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemUpdate, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a the deltas between work item revisions
+ *
+ * @param {number} id
+ * @param {number} top
+ * @param {number} skip
+ * @param {string} project - Project ID or project name
+ */
+ getUpdates(id, top, skip, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ '$top': top,
+ '$skip': skip,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "6570bf97-d02c-4a91-8d93-3abe9895b1a9", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemUpdate, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the results of the query given its WIQL.
+ *
+ * @param {WorkItemTrackingInterfaces.Wiql} wiql - The query containing the WIQL.
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {boolean} timePrecision - Whether or not to use time precision.
+ * @param {number} top - The max number of results to return.
+ */
+ queryByWiql(wiql, teamContext, timePrecision, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team
+ };
+ let queryValues = {
+ timePrecision: timePrecision,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "1a9c53f7-f243-4447-b110-35ef023636e4", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, wiql, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemQueryResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the results of the query given the query ID.
+ *
+ * @param {string} id - The query ID.
+ * @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
+ * @param {boolean} timePrecision - Whether or not to use time precision.
+ * @param {number} top - The max number of results to return.
+ */
+ queryById(id, teamContext, timePrecision, top) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let project = null;
+ let team = null;
+ if (teamContext) {
+ project = teamContext.projectId || teamContext.project;
+ team = teamContext.teamId || teamContext.team;
+ }
+ let routeValues = {
+ project: project,
+ team: team,
+ id: id
+ };
+ let queryValues = {
+ timePrecision: timePrecision,
+ '$top': top,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "a02355f5-5f8a-4671-8e32-369d23aac83d", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingInterfaces.TypeInfo.WorkItemQueryResult, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a work item icon given the friendly name and icon color.
+ *
+ * @param {string} icon - The name of the icon
+ * @param {string} color - The 6-digit hex color for the icon
+ * @param {number} v - The version of the icon (used only for cache invalidation)
+ */
+ getWorkItemIconJson(icon, color, v) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ icon: icon
+ };
+ let queryValues = {
+ color: color,
+ v: v,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "4e1eb4a5-1970-4228-a682-ec48eb2dca30", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of all work item icons.
+ *
+ */
+ getWorkItemIcons() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "4e1eb4a5-1970-4228-a682-ec48eb2dca30", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a work item icon given the friendly name and icon color.
+ *
+ * @param {string} icon - The name of the icon
+ * @param {string} color - The 6-digit hex color for the icon
+ * @param {number} v - The version of the icon (used only for cache invalidation)
+ */
+ getWorkItemIconSvg(icon, color, v) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ icon: icon
+ };
+ let queryValues = {
+ color: color,
+ v: v,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "4e1eb4a5-1970-4228-a682-ec48eb2dca30", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("image/svg+xml", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a work item icon given the friendly name and icon color.
+ *
+ * @param {string} icon - The name of the icon
+ * @param {string} color - The 6-digit hex color for the icon
+ * @param {number} v - The version of the icon (used only for cache invalidation)
+ */
+ getWorkItemIconXaml(icon, color, v) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ icon: icon
+ };
+ let queryValues = {
+ color: color,
+ v: v,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "4e1eb4a5-1970-4228-a682-ec48eb2dca30", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let apiVersion = verData.apiVersion;
+ let accept = this.createAcceptHeader("image/xaml+xml", apiVersion);
+ resolve((yield this.http.get(url, { "Accept": accept })).message);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a batch of work item links
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string[]} linkTypes - A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types.
+ * @param {string[]} types - A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types.
+ * @param {string} continuationToken - Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links.
+ * @param {Date} startDateTime - Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter.
+ */
+ getReportingLinksByLinkType(project, linkTypes, types, continuationToken, startDateTime) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ linkTypes: linkTypes && linkTypes.join(","),
+ types: types && types.join(","),
+ continuationToken: continuationToken,
+ startDateTime: startDateTime,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "b5b5b6d0-0308-40a1-b3f4-b9bb3c66878f", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the work item relation type definition.
+ *
+ * @param {string} relation - The relation name
+ */
+ getRelationType(relation) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ relation: relation
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the work item relation types.
+ *
+ */
+ getRelationTypes() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a batch of work item revisions with the option of including deleted items
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string[]} fields - A list of fields to return in work item revisions. Omit this parameter to get all reportable fields.
+ * @param {string[]} types - A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types.
+ * @param {string} continuationToken - Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions.
+ * @param {Date} startDateTime - Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter.
+ * @param {boolean} includeIdentityRef - Return an identity reference instead of a string value for identity fields.
+ * @param {boolean} includeDeleted - Specify if the deleted item should be returned.
+ * @param {boolean} includeTagRef - Specify if the tag objects should be returned for System.Tags field.
+ * @param {boolean} includeLatestOnly - Return only the latest revisions of work items, skipping all historical revisions
+ * @param {WorkItemTrackingInterfaces.ReportingRevisionsExpand} expand - Return all the fields in work item revisions, including long text fields which are not returned by default
+ * @param {boolean} includeDiscussionChangesOnly - Return only the those revisions of work items, where only history field was changed
+ * @param {number} maxPageSize - The maximum number of results to return in this batch
+ */
+ readReportingRevisionsGet(project, fields, types, continuationToken, startDateTime, includeIdentityRef, includeDeleted, includeTagRef, includeLatestOnly, expand, includeDiscussionChangesOnly, maxPageSize) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ fields: fields && fields.join(","),
+ types: types && types.join(","),
+ continuationToken: continuationToken,
+ startDateTime: startDateTime,
+ includeIdentityRef: includeIdentityRef,
+ includeDeleted: includeDeleted,
+ includeTagRef: includeTagRef,
+ includeLatestOnly: includeLatestOnly,
+ '$expand': expand,
+ includeDiscussionChangesOnly: includeDiscussionChangesOnly,
+ '$maxPageSize': maxPageSize,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "f828fe59-dd87-495d-a17c-7a8d6211ca6c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit.
+ *
+ * @param {WorkItemTrackingInterfaces.ReportingWorkItemRevisionsFilter} filter - An object that contains request settings: field filter, type filter, identity format
+ * @param {string} project - Project ID or project name
+ * @param {string} continuationToken - Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions.
+ * @param {Date} startDateTime - Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter.
+ * @param {WorkItemTrackingInterfaces.ReportingRevisionsExpand} expand
+ */
+ readReportingRevisionsPost(filter, project, continuationToken, startDateTime, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ startDateTime: startDateTime,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "f828fe59-dd87-495d-a17c-7a8d6211ca6c", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, filter, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * @param {string} project - Project ID or project name
+ * @param {string} continuationToken
+ * @param {number} maxPageSize
+ */
+ readReportingDiscussions(project, continuationToken, maxPageSize) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ continuationToken: continuationToken,
+ '$maxPageSize': maxPageSize,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "4a644469-90c5-4fcc-9a9f-be0827d369ec", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a single work item.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} document - The JSON Patch document representing the work item
+ * @param {string} project - Project ID or project name
+ * @param {string} type - The work item type of the work item to create
+ * @param {boolean} validateOnly - Indicate if you only want to validate the changes without saving the work item
+ * @param {boolean} bypassRules - Do not enforce the work item type rules on this update
+ * @param {boolean} suppressNotifications - Do not fire any notifications for this change
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand - The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
+ */
+ createWorkItem(customHeaders, document, project, type, validateOnly, bypassRules, suppressNotifications, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type
+ };
+ let queryValues = {
+ validateOnly: validateOnly,
+ bypassRules: bypassRules,
+ suppressNotifications: suppressNotifications,
+ '$expand': expand,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "62d3d110-0047-428c-ad3c-4fe872c91c74", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.create(url, document, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single work item from a template.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} type - The work item type name
+ * @param {string} fields - Comma-separated list of requested fields
+ * @param {Date} asOf - AsOf UTC date time string
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand - The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
+ */
+ getWorkItemTemplate(project, type, fields, asOf, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type
+ };
+ let queryValues = {
+ fields: fields,
+ asOf: asOf,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "62d3d110-0047-428c-ad3c-4fe872c91c74", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. WARNING: If the destroy parameter is set to true, work items deleted by this command will NOT go to recycle-bin and there is no way to restore/recover them after deletion. It is recommended NOT to use this parameter. If you do, please use this parameter with extreme caution.
+ *
+ * @param {number} id - ID of the work item to be deleted
+ * @param {string} project - Project ID or project name
+ * @param {boolean} destroy - Optional parameter, if set to true, the work item is deleted permanently. Please note: the destroy action is PERMANENT and cannot be undone.
+ */
+ deleteWorkItem(id, project, destroy) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ destroy: destroy,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "72c7ddf8-2cdc-4f60-90cd-ab71c14a399b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single work item.
+ *
+ * @param {number} id - The work item id
+ * @param {string[]} fields - Comma-separated list of requested fields
+ * @param {Date} asOf - AsOf UTC date time string
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand - The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
+ * @param {string} project - Project ID or project name
+ */
+ getWorkItem(id, fields, asOf, expand, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ fields: fields && fields.join(","),
+ asOf: asOf,
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "72c7ddf8-2cdc-4f60-90cd-ab71c14a399b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of work items (Maximum 200)
+ *
+ * @param {number[]} ids - The comma-separated list of requested work item ids. (Maximum 200 ids allowed).
+ * @param {string[]} fields - Comma-separated list of requested fields
+ * @param {Date} asOf - AsOf UTC date time string
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand - The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
+ * @param {WorkItemTrackingInterfaces.WorkItemErrorPolicy} errorPolicy - The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}.
+ * @param {string} project - Project ID or project name
+ */
+ getWorkItems(ids, fields, asOf, expand, errorPolicy, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ids == null) {
+ throw new TypeError('ids can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ let queryValues = {
+ ids: ids && ids.join(","),
+ fields: fields && fields.join(","),
+ asOf: asOf,
+ '$expand': expand,
+ errorPolicy: errorPolicy,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "72c7ddf8-2cdc-4f60-90cd-ab71c14a399b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a single work item.
+ *
+ * @param {VSSInterfaces.JsonPatchDocument} document - The JSON Patch document representing the update
+ * @param {number} id - The id of the work item to update
+ * @param {string} project - Project ID or project name
+ * @param {boolean} validateOnly - Indicate if you only want to validate the changes without saving the work item
+ * @param {boolean} bypassRules - Do not enforce the work item type rules on this update
+ * @param {boolean} suppressNotifications - Do not fire any notifications for this change
+ * @param {WorkItemTrackingInterfaces.WorkItemExpand} expand - The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }.
+ */
+ updateWorkItem(customHeaders, document, id, project, validateOnly, bypassRules, suppressNotifications, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ id: id
+ };
+ let queryValues = {
+ validateOnly: validateOnly,
+ bypassRules: bypassRules,
+ suppressNotifications: suppressNotifications,
+ '$expand': expand,
+ };
+ customHeaders = customHeaders || {};
+ customHeaders["Content-Type"] = "application/json-patch+json";
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "72c7ddf8-2cdc-4f60-90cd-ab71c14a399b", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ options.additionalHeaders = customHeaders;
+ let res;
+ res = yield this.rest.update(url, document, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets work items for a list of work item ids (Maximum 200)
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemBatchGetRequest} workItemGetRequest
+ * @param {string} project - Project ID or project name
+ */
+ getWorkItemsBatch(workItemGetRequest, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "908509b6-4248-4475-a1cd-829139ba419f", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemGetRequest, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * INTERNAL ONLY: It will be used for My account work experience. Get the work item type state color for multiple projects
+ *
+ * @param {string[]} projectNames
+ */
+ getWorkItemStateColors(projectNames) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "0b83df8a-3496-4ddb-ba44-63634f4cda61", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, projectNames, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the next state on the given work item IDs.
+ *
+ * @param {number[]} ids - list of work item ids
+ * @param {string} action - possible actions. Currently only supports checkin
+ */
+ getWorkItemNextStatesOnCheckinAction(ids, action) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (ids == null) {
+ throw new TypeError('ids can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ ids: ids && ids.join(","),
+ action: action,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "afae844b-e2f6-44c2-8053-17b3bb936a40", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get all work item type categories.
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getWorkItemTypeCategories(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "9b9f5734-36c8-415e-ba67-f83b45c31408", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get specific work item type category by name.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} category - The category name
+ */
+ getWorkItemTypeCategory(project, category) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ category: category
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "9b9f5734-36c8-415e-ba67-f83b45c31408", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * INTERNAL ONLY: It will be used for My account work experience. Get the wit type color for multiple projects
+ *
+ * @param {string[]} projectNames
+ */
+ getWorkItemTypeColors(projectNames) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "958fde80-115e-43fb-bd65-749c48057faf", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, projectNames, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * INTERNAL ONLY: It is used for color and icon providers. Get the wit type color for multiple projects
+ *
+ * @param {string[]} projectNames
+ */
+ getWorkItemTypeColorAndIcons(projectNames) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "f0f8dc62-3975-48ce-8051-f636b68b52e3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, projectNames, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a work item type definition.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} type - Work item type name
+ */
+ getWorkItemType(project, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the list of work item types
+ *
+ * @param {string} project - Project ID or project name
+ */
+ getWorkItemTypes(project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "wit", "7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a list of fields for a work item type with detailed references.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} type - Work item type.
+ * @param {WorkItemTrackingInterfaces.WorkItemTypeFieldsExpandLevel} expand - Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties.
+ */
+ getWorkItemTypeFieldsWithReferences(project, type, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "bd293ce5-3d25-4192-8e67-e8092e879efb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a field for a work item type with detailed references.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} type - Work item type.
+ * @param {string} field
+ * @param {WorkItemTrackingInterfaces.WorkItemTypeFieldsExpandLevel} expand - Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties.
+ */
+ getWorkItemTypeFieldWithReferences(project, type, field, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type,
+ field: field
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.3", "wit", "bd293ce5-3d25-4192-8e67-e8092e879efb", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns the state names and colors for a work item type.
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} type - The state name
+ */
+ getWorkItemTypeStates(project, type) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Export work item type
+ *
+ * @param {string} project - Project ID or project name
+ * @param {string} type
+ * @param {boolean} exportGlobalLists
+ */
+ exportWorkItemTypeDefinition(project, type, exportGlobalLists) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project,
+ type: type
+ };
+ let queryValues = {
+ exportGlobalLists: exportGlobalLists,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "8637ac8b-5eb6-4f90-b3f7-4f2ff576a459", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Add/updates a work item type
+ *
+ * @param {WorkItemTrackingInterfaces.WorkItemTypeTemplateUpdateModel} updateModel
+ * @param {string} project - Project ID or project name
+ */
+ updateWorkItemTypeDefinition(updateModel, project) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ project: project
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "wit", "8637ac8b-5eb6-4f90-b3f7-4f2ff576a459", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, updateModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+WorkItemTrackingApi.RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
+exports.WorkItemTrackingApi = WorkItemTrackingApi;
+
+
+/***/ }),
+
+/***/ 1178:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const WorkItemTrackingProcessInterfaces = __nccwpck_require__(4524);
+class WorkItemTrackingProcessApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-WorkItemTracking-api', options);
+ }
+ /**
+ * Creates a single behavior in the given process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.ProcessBehaviorCreateRequest} behavior
+ * @param {string} processId - The ID of the process
+ */
+ createProcessBehavior(behavior, processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "d1800200-f184-4e75-a5f2-ad0b04b4373e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, behavior, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessBehavior, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a behavior in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} behaviorRefName - The reference name of the behavior
+ */
+ deleteProcessBehavior(processId, behaviorRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ behaviorRefName: behaviorRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "d1800200-f184-4e75-a5f2-ad0b04b4373e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a behavior of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} behaviorRefName - The reference name of the behavior
+ * @param {WorkItemTrackingProcessInterfaces.GetBehaviorsExpand} expand
+ */
+ getProcessBehavior(processId, behaviorRefName, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ behaviorRefName: behaviorRefName
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "d1800200-f184-4e75-a5f2-ad0b04b4373e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessBehavior, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all behaviors in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {WorkItemTrackingProcessInterfaces.GetBehaviorsExpand} expand
+ */
+ getProcessBehaviors(processId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "d1800200-f184-4e75-a5f2-ad0b04b4373e", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessBehavior, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replaces a behavior in the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.ProcessBehaviorUpdateRequest} behaviorData
+ * @param {string} processId - The ID of the process
+ * @param {string} behaviorRefName - The reference name of the behavior
+ */
+ updateProcessBehavior(behaviorData, processId, behaviorRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ behaviorRefName: behaviorRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "d1800200-f184-4e75-a5f2-ad0b04b4373e", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, behaviorData, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessBehavior, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a control in a group.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Control} control - The control.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} groupId - The ID of the group to add the control to.
+ */
+ createControlInGroup(control, processId, witRefName, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Moves a control to a specified group.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Control} control - The control.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} groupId - The ID of the group to move the control to.
+ * @param {string} controlId - The ID of the control.
+ * @param {string} removeFromGroupId - The group ID to remove the control from.
+ */
+ moveControlToGroup(control, processId, witRefName, groupId, controlId, removeFromGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId,
+ controlId: controlId
+ };
+ let queryValues = {
+ removeFromGroupId: removeFromGroupId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a control from the work item form.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} groupId - The ID of the group.
+ * @param {string} controlId - The ID of the control to remove.
+ */
+ removeControlFromGroup(processId, witRefName, groupId, controlId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId,
+ controlId: controlId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a control on the work item form.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Control} control - The updated control.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} groupId - The ID of the group.
+ * @param {string} controlId - The ID of the control.
+ */
+ updateControl(control, processId, witRefName, groupId, controlId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId,
+ controlId: controlId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a field to a work item type.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.AddProcessWorkItemTypeFieldRequest} field
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ */
+ addFieldToWorkItemType(field, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "bc0ad8dc-e3f3-46b0-b06c-5bf861793196", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, field, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemTypeField, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all fields in a work item type.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ */
+ getAllWorkItemTypeFields(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "bc0ad8dc-e3f3-46b0-b06c-5bf861793196", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemTypeField, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a field in a work item type.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} fieldRefName - The reference name of the field.
+ * @param {WorkItemTrackingProcessInterfaces.ProcessWorkItemTypeFieldsExpandLevel} expand
+ */
+ getWorkItemTypeField(processId, witRefName, fieldRefName, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ fieldRefName: fieldRefName
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "bc0ad8dc-e3f3-46b0-b06c-5bf861793196", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemTypeField, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a field from a work item type. Does not permanently delete the field.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} fieldRefName - The reference name of the field.
+ */
+ removeWorkItemTypeField(processId, witRefName, fieldRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ fieldRefName: fieldRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "bc0ad8dc-e3f3-46b0-b06c-5bf861793196", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a field in a work item type.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.UpdateProcessWorkItemTypeFieldRequest} field
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} fieldRefName - The reference name of the field.
+ */
+ updateWorkItemTypeField(field, processId, witRefName, fieldRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ fieldRefName: fieldRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "bc0ad8dc-e3f3-46b0-b06c-5bf861793196", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, field, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemTypeField, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a group to the work item form.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Group} group - The group.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} pageId - The ID of the page to add the group to.
+ * @param {string} sectionId - The ID of the section to add the group to.
+ */
+ addGroup(group, processId, witRefName, pageId, sectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "766e44e1-36a8-41d7-9050-c343ff02f7a5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Moves a group to a different page and section.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Group} group - The updated group.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} pageId - The ID of the page the group is in.
+ * @param {string} sectionId - The ID of the section the group is i.n
+ * @param {string} groupId - The ID of the group.
+ * @param {string} removeFromPageId - ID of the page to remove the group from.
+ * @param {string} removeFromSectionId - ID of the section to remove the group from.
+ */
+ moveGroupToPage(group, processId, witRefName, pageId, sectionId, groupId, removeFromPageId, removeFromSectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (removeFromPageId == null) {
+ throw new TypeError('removeFromPageId can not be null or undefined');
+ }
+ if (removeFromSectionId == null) {
+ throw new TypeError('removeFromSectionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ let queryValues = {
+ removeFromPageId: removeFromPageId,
+ removeFromSectionId: removeFromSectionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "766e44e1-36a8-41d7-9050-c343ff02f7a5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Moves a group to a different section.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Group} group - The updated group.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} pageId - The ID of the page the group is in.
+ * @param {string} sectionId - The ID of the section the group is in.
+ * @param {string} groupId - The ID of the group.
+ * @param {string} removeFromSectionId - ID of the section to remove the group from.
+ */
+ moveGroupToSection(group, processId, witRefName, pageId, sectionId, groupId, removeFromSectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (removeFromSectionId == null) {
+ throw new TypeError('removeFromSectionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ let queryValues = {
+ removeFromSectionId: removeFromSectionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "766e44e1-36a8-41d7-9050-c343ff02f7a5", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a group from the work item form.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page the group is in
+ * @param {string} sectionId - The ID of the section to the group is in
+ * @param {string} groupId - The ID of the group
+ */
+ removeGroup(processId, witRefName, pageId, sectionId, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "766e44e1-36a8-41d7-9050-c343ff02f7a5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a group in the work item form.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Group} group - The updated group.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} pageId - The ID of the page the group is in.
+ * @param {string} sectionId - The ID of the section the group is in.
+ * @param {string} groupId - The ID of the group.
+ */
+ updateGroup(group, processId, witRefName, pageId, sectionId, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "766e44e1-36a8-41d7-9050-c343ff02f7a5", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the form layout.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ */
+ getFormLayout(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "fa8646eb-43cd-4b71-9564-40106fd63e40", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.FormLayout, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a picklist.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.PickList} picklist - Picklist
+ */
+ createList(picklist) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "01e15468-e27c-4e20-a974-bd957dcccebc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, picklist, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a picklist.
+ *
+ * @param {string} listId - The ID of the list
+ */
+ deleteList(listId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ listId: listId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "01e15468-e27c-4e20-a974-bd957dcccebc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a picklist.
+ *
+ * @param {string} listId - The ID of the list
+ */
+ getList(listId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ listId: listId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "01e15468-e27c-4e20-a974-bd957dcccebc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns meta data of the picklist.
+ *
+ */
+ getListsMetadata() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "01e15468-e27c-4e20-a974-bd957dcccebc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a list.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.PickList} picklist
+ * @param {string} listId - The ID of the list
+ */
+ updateList(picklist, listId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ listId: listId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "01e15468-e27c-4e20-a974-bd957dcccebc", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, picklist, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a page to the work item form.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Page} page - The page.
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ */
+ addPage(page, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1cc7b29f-6697-4d9d-b0a1-2650d3e1d584", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, page, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.Page, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a page from the work item form
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page
+ */
+ removePage(processId, witRefName, pageId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1cc7b29f-6697-4d9d-b0a1-2650d3e1d584", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a page on the work item form
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Page} page - The page
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ updatePage(page, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "1cc7b29f-6697-4d9d-b0a1-2650d3e1d584", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, page, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.Page, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.CreateProcessModel} createRequest - CreateProcessModel.
+ */
+ createNewProcess(createRequest) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "02cc6a73-5cfb-427d-8c8e-b49fb086e8af", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, createRequest, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessInfo, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a process of a specific ID.
+ *
+ * @param {string} processTypeId
+ */
+ deleteProcessById(processTypeId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processTypeId: processTypeId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "02cc6a73-5cfb-427d-8c8e-b49fb086e8af", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Edit a process of a specific ID.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.UpdateProcessModel} updateRequest
+ * @param {string} processTypeId
+ */
+ editProcess(updateRequest, processTypeId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processTypeId: processTypeId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "02cc6a73-5cfb-427d-8c8e-b49fb086e8af", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, updateRequest, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessInfo, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get list of all processes including system and inherited.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.GetProcessExpandLevel} expand
+ */
+ getListOfProcesses(expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "02cc6a73-5cfb-427d-8c8e-b49fb086e8af", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessInfo, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Get a single process of a specified ID.
+ *
+ * @param {string} processTypeId
+ * @param {WorkItemTrackingProcessInterfaces.GetProcessExpandLevel} expand
+ */
+ getProcessByItsId(processTypeId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processTypeId: processTypeId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "02cc6a73-5cfb-427d-8c8e-b49fb086e8af", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessInfo, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a rule to work item type in the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.CreateProcessRuleRequest} processRuleCreate
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ addProcessWorkItemTypeRule(processRuleCreate, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "76fe3432-d825-479d-a5f6-983bbb78b4f3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, processRuleCreate, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessRule, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a rule from the work item type in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} ruleId - The ID of the rule
+ */
+ deleteProcessWorkItemTypeRule(processId, witRefName, ruleId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ ruleId: ruleId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "76fe3432-d825-479d-a5f6-983bbb78b4f3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single rule in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} ruleId - The ID of the rule
+ */
+ getProcessWorkItemTypeRule(processId, witRefName, ruleId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ ruleId: ruleId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "76fe3432-d825-479d-a5f6-983bbb78b4f3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessRule, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all rules in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ getProcessWorkItemTypeRules(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "76fe3432-d825-479d-a5f6-983bbb78b4f3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessRule, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a rule in the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.UpdateProcessRuleRequest} processRule
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} ruleId - The ID of the rule
+ */
+ updateProcessWorkItemTypeRule(processRule, processId, witRefName, ruleId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ ruleId: ruleId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "76fe3432-d825-479d-a5f6-983bbb78b4f3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, processRule, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessRule, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a state definition in the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.WorkItemStateInputModel} stateModel
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ createStateDefinition(stateModel, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "31015d57-2dff-4a46-adb3-2fb4ee3dcec9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, stateModel, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.WorkItemStateResultModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a state definition in the work item type of the process.
+ *
+ * @param {string} processId - ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - ID of the state
+ */
+ deleteStateDefinition(processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "31015d57-2dff-4a46-adb3-2fb4ee3dcec9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single state definition in a work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - The ID of the state
+ */
+ getStateDefinition(processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "31015d57-2dff-4a46-adb3-2fb4ee3dcec9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.WorkItemStateResultModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all state definitions in a work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ getStateDefinitions(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "31015d57-2dff-4a46-adb3-2fb4ee3dcec9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.WorkItemStateResultModel, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.HideStateModel} hideStateModel
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - The ID of the state
+ */
+ hideStateDefinition(hideStateModel, processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "31015d57-2dff-4a46-adb3-2fb4ee3dcec9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, hideStateModel, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.WorkItemStateResultModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a given state definition in the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.WorkItemStateInputModel} stateModel
+ * @param {string} processId - ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - ID of the state
+ */
+ updateStateDefinition(stateModel, processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "31015d57-2dff-4a46-adb3-2fb4ee3dcec9", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, stateModel, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.WorkItemStateResultModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Deletes a system control modification on the work item form.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} controlId - The ID of the control.
+ */
+ deleteSystemControl(processId, witRefName, controlId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ controlId: controlId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "ff9a3d2c-32b7-4c6c-991c-d5a251fb9098", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets edited system controls for a work item type in a process. To get all system controls (base + edited) use layout API(s)
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ */
+ getSystemControls(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "ff9a3d2c-32b7-4c6c-991c-d5a251fb9098", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates/adds a system control on the work item form.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.Control} control
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ * @param {string} controlId - The ID of the control.
+ */
+ updateSystemControl(control, processId, witRefName, controlId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ controlId: controlId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "ff9a3d2c-32b7-4c6c-991c-d5a251fb9098", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a work item type in the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.CreateProcessWorkItemTypeRequest} workItemType
+ * @param {string} processId - The ID of the process on which to create work item type.
+ */
+ createProcessWorkItemType(workItemType, processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "e2e9d1a6-432d-4062-8870-bfcb8c324ad7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemType, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemType, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a work item type in the process.
+ *
+ * @param {string} processId - The ID of the process.
+ * @param {string} witRefName - The reference name of the work item type.
+ */
+ deleteProcessWorkItemType(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "e2e9d1a6-432d-4062-8870-bfcb8c324ad7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single work item type in a process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {WorkItemTrackingProcessInterfaces.GetWorkItemTypeExpand} expand - Flag to determine what properties of work item type to return
+ */
+ getProcessWorkItemType(processId, witRefName, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "e2e9d1a6-432d-4062-8870-bfcb8c324ad7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemType, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all work item types in a process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {WorkItemTrackingProcessInterfaces.GetWorkItemTypeExpand} expand - Flag to determine what properties of work item type to return
+ */
+ getProcessWorkItemTypes(processId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "e2e9d1a6-432d-4062-8870-bfcb8c324ad7", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemType, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.UpdateProcessWorkItemTypeRequest} workItemTypeUpdate
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ updateProcessWorkItemType(workItemTypeUpdate, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.2", "processes", "e2e9d1a6-432d-4062-8870-bfcb8c324ad7", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, workItemTypeUpdate, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessInterfaces.TypeInfo.ProcessWorkItemType, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a behavior to the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.WorkItemTypeBehavior} behavior
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ */
+ addBehaviorToWorkItemType(behavior, processId, witRefNameForBehaviors) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "6d765a2e-4e1b-4b11-be93-f953be676024", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, behavior, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a behavior for the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ * @param {string} behaviorRefName - The reference name of the behavior
+ */
+ getBehaviorForWorkItemType(processId, witRefNameForBehaviors, behaviorRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors,
+ behaviorRefName: behaviorRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "6d765a2e-4e1b-4b11-be93-f953be676024", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all behaviors for the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ */
+ getBehaviorsForWorkItemType(processId, witRefNameForBehaviors) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "6d765a2e-4e1b-4b11-be93-f953be676024", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a behavior for the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ * @param {string} behaviorRefName - The reference name of the behavior
+ */
+ removeBehaviorFromWorkItemType(processId, witRefNameForBehaviors, behaviorRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors,
+ behaviorRefName: behaviorRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "6d765a2e-4e1b-4b11-be93-f953be676024", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a behavior for the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessInterfaces.WorkItemTypeBehavior} behavior
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ */
+ updateBehaviorToWorkItemType(behavior, processId, witRefNameForBehaviors) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processes", "6d765a2e-4e1b-4b11-be93-f953be676024", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, behavior, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+WorkItemTrackingProcessApi.RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
+exports.WorkItemTrackingProcessApi = WorkItemTrackingProcessApi;
+
+
+/***/ }),
+
+/***/ 3333:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const basem = __nccwpck_require__(273);
+const WorkItemTrackingProcessDefinitionsInterfaces = __nccwpck_require__(1655);
+class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase {
+ constructor(baseUrl, handlers, options) {
+ super(baseUrl, handlers, 'node-WorkItemTracking-api', options);
+ }
+ /**
+ * Creates a single behavior in the given process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.BehaviorCreateModel} behavior
+ * @param {string} processId - The ID of the process
+ */
+ createBehavior(behavior, processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "47a651f4-fb70-43bf-b96b-7c0ba947142b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, behavior, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a behavior in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} behaviorId - The ID of the behavior
+ */
+ deleteBehavior(processId, behaviorId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ behaviorId: behaviorId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "47a651f4-fb70-43bf-b96b-7c0ba947142b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single behavior in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} behaviorId - The ID of the behavior
+ */
+ getBehavior(processId, behaviorId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ behaviorId: behaviorId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "47a651f4-fb70-43bf-b96b-7c0ba947142b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all behaviors in the process.
+ *
+ * @param {string} processId - The ID of the process
+ */
+ getBehaviors(processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "47a651f4-fb70-43bf-b96b-7c0ba947142b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Replaces a behavior in the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.BehaviorReplaceModel} behaviorData
+ * @param {string} processId - The ID of the process
+ * @param {string} behaviorId - The ID of the behavior
+ */
+ replaceBehavior(behaviorData, processId, behaviorId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ behaviorId: behaviorId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "47a651f4-fb70-43bf-b96b-7c0ba947142b", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, behaviorData, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a control in a group
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Control} control - The control
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} groupId - The ID of the group to add the control to
+ */
+ addControlToGroup(control, processId, witRefName, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "e2e3166a-627a-4e9b-85b2-d6a097bbd731", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a control on the work item form
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Control} control - The updated control
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} groupId - The ID of the group
+ * @param {string} controlId - The ID of the control
+ */
+ editControl(control, processId, witRefName, groupId, controlId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId,
+ controlId: controlId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "e2e3166a-627a-4e9b-85b2-d6a097bbd731", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a control from the work item form
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} groupId - The ID of the group
+ * @param {string} controlId - The ID of the control to remove
+ */
+ removeControlFromGroup(processId, witRefName, groupId, controlId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId,
+ controlId: controlId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "e2e3166a-627a-4e9b-85b2-d6a097bbd731", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Moves a control to a new group
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Control} control - The control
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} groupId - The ID of the group to move the control to
+ * @param {string} controlId - The id of the control
+ * @param {string} removeFromGroupId - The group to remove the control from
+ */
+ setControlInGroup(control, processId, witRefName, groupId, controlId, removeFromGroupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ groupId: groupId,
+ controlId: controlId
+ };
+ let queryValues = {
+ removeFromGroupId: removeFromGroupId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "e2e3166a-627a-4e9b-85b2-d6a097bbd731", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, control, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a single field in the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.FieldModel} field
+ * @param {string} processId - The ID of the process
+ */
+ createField(field, processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "f36c66c7-911d-4163-8938-d3c5d0d7f5aa", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, field, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.FieldModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a given field in the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.FieldUpdate} field
+ * @param {string} processId - The ID of the process
+ */
+ updateField(field, processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "f36c66c7-911d-4163-8938-d3c5d0d7f5aa", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, field, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.FieldModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a group to the work item form
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The group
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page to add the group to
+ * @param {string} sectionId - The ID of the section to add the group to
+ */
+ addGroup(group, processId, witRefName, pageId, sectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "2617828b-e850-4375-a92a-04855704d4c3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a group in the work item form
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The updated group
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page the group is in
+ * @param {string} sectionId - The ID of the section the group is in
+ * @param {string} groupId - The ID of the group
+ */
+ editGroup(group, processId, witRefName, pageId, sectionId, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "2617828b-e850-4375-a92a-04855704d4c3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a group from the work item form
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page the group is in
+ * @param {string} sectionId - The ID of the section to the group is in
+ * @param {string} groupId - The ID of the group
+ */
+ removeGroup(processId, witRefName, pageId, sectionId, groupId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "2617828b-e850-4375-a92a-04855704d4c3", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Moves a group to a different page and section
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The updated group
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page the group is in
+ * @param {string} sectionId - The ID of the section the group is in
+ * @param {string} groupId - The ID of the group
+ * @param {string} removeFromPageId - ID of the page to remove the group from
+ * @param {string} removeFromSectionId - ID of the section to remove the group from
+ */
+ setGroupInPage(group, processId, witRefName, pageId, sectionId, groupId, removeFromPageId, removeFromSectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (removeFromPageId == null) {
+ throw new TypeError('removeFromPageId can not be null or undefined');
+ }
+ if (removeFromSectionId == null) {
+ throw new TypeError('removeFromSectionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ let queryValues = {
+ removeFromPageId: removeFromPageId,
+ removeFromSectionId: removeFromSectionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "2617828b-e850-4375-a92a-04855704d4c3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Moves a group to a different section
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The updated group
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page the group is in
+ * @param {string} sectionId - The ID of the section the group is in
+ * @param {string} groupId - The ID of the group
+ * @param {string} removeFromSectionId - ID of the section to remove the group from
+ */
+ setGroupInSection(group, processId, witRefName, pageId, sectionId, groupId, removeFromSectionId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (removeFromSectionId == null) {
+ throw new TypeError('removeFromSectionId can not be null or undefined');
+ }
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId,
+ sectionId: sectionId,
+ groupId: groupId
+ };
+ let queryValues = {
+ removeFromSectionId: removeFromSectionId,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "2617828b-e850-4375-a92a-04855704d4c3", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, group, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Gets the form layout
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ getFormLayout(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "3eacc80a-ddca-4404-857a-6331aac99063", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.FormLayout, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns meta data of the picklist.
+ *
+ */
+ getListsMetadata() {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a picklist.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.PickListModel} picklist
+ */
+ createList(picklist) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {};
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "0b6179e2-23ce-46b2-b094-2ffa5ee70286", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, picklist, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a picklist.
+ *
+ * @param {string} listId - The ID of the list
+ */
+ deleteList(listId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ listId: listId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "0b6179e2-23ce-46b2-b094-2ffa5ee70286", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a picklist.
+ *
+ * @param {string} listId - The ID of the list
+ */
+ getList(listId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ listId: listId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "0b6179e2-23ce-46b2-b094-2ffa5ee70286", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a list.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.PickListModel} picklist
+ * @param {string} listId - The ID of the list
+ */
+ updateList(picklist, listId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ listId: listId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "0b6179e2-23ce-46b2-b094-2ffa5ee70286", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, picklist, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a page to the work item form
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Page} page - The page
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ addPage(page, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1b4ac126-59b2-4f37-b4df-0a48ba807edb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, page, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.Page, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a page on the work item form
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.Page} page - The page
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ editPage(page, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1b4ac126-59b2-4f37-b4df-0a48ba807edb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, page, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.Page, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a page from the work item form
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} pageId - The ID of the page
+ */
+ removePage(processId, witRefName, pageId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ pageId: pageId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1b4ac126-59b2-4f37-b4df-0a48ba807edb", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a state definition in the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel} stateModel
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ createStateDefinition(stateModel, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "4303625d-08f4-4461-b14b-32c65bba5599", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, stateModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a state definition in the work item type of the process.
+ *
+ * @param {string} processId - ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - ID of the state
+ */
+ deleteStateDefinition(processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "4303625d-08f4-4461-b14b-32c65bba5599", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a state definition in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - The ID of the state
+ */
+ getStateDefinition(processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "4303625d-08f4-4461-b14b-32c65bba5599", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all state definitions in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ getStateDefinitions(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "4303625d-08f4-4461-b14b-32c65bba5599", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Hides a state definition in the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.HideStateModel} hideStateModel
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - The ID of the state
+ */
+ hideStateDefinition(hideStateModel, processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "4303625d-08f4-4461-b14b-32c65bba5599", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.replace(url, hideStateModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a given state definition in the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel} stateModel
+ * @param {string} processId - ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {string} stateId - ID of the state
+ */
+ updateStateDefinition(stateModel, processId, witRefName, stateId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName,
+ stateId: stateId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "4303625d-08f4-4461-b14b-32c65bba5599", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, stateModel, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a behavior to the work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior} behavior
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ */
+ addBehaviorToWorkItemType(behavior, processId, witRefNameForBehaviors) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "921dfb88-ef57-4c69-94e5-dd7da2d7031d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, behavior, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a behavior for the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ * @param {string} behaviorRefName - The reference name of the behavior
+ */
+ getBehaviorForWorkItemType(processId, witRefNameForBehaviors, behaviorRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors,
+ behaviorRefName: behaviorRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "921dfb88-ef57-4c69-94e5-dd7da2d7031d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all behaviors for the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ */
+ getBehaviorsForWorkItemType(processId, witRefNameForBehaviors) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "921dfb88-ef57-4c69-94e5-dd7da2d7031d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, null, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a behavior for the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ * @param {string} behaviorRefName - The reference name of the behavior
+ */
+ removeBehaviorFromWorkItemType(processId, witRefNameForBehaviors, behaviorRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors,
+ behaviorRefName: behaviorRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "921dfb88-ef57-4c69-94e5-dd7da2d7031d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates default work item type for the behavior of the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior} behavior
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
+ */
+ updateBehaviorToWorkItemType(behavior, processId, witRefNameForBehaviors) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForBehaviors: witRefNameForBehaviors
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "921dfb88-ef57-4c69-94e5-dd7da2d7031d", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, behavior, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Creates a work item type in the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel} workItemType
+ * @param {string} processId - The ID of the process
+ */
+ createWorkItemType(workItemType, processId) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1ce0acad-4638-49c3-969c-04aa65ba6bea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, workItemType, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a work item type in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ deleteWorkItemType(processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1ce0acad-4638-49c3-969c-04aa65ba6bea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand} expand
+ */
+ getWorkItemType(processId, witRefName, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1ce0acad-4638-49c3-969c-04aa65ba6bea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all work item types in the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand} expand
+ */
+ getWorkItemTypes(processId, expand) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId
+ };
+ let queryValues = {
+ '$expand': expand,
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1ce0acad-4638-49c3-969c-04aa65ba6bea", routeValues, queryValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeModel, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a work item type of the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeUpdateModel} workItemTypeUpdate
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefName - The reference name of the work item type
+ */
+ updateWorkItemType(workItemTypeUpdate, processId, witRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefName: witRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "1ce0acad-4638-49c3-969c-04aa65ba6bea", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, workItemTypeUpdate, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeModel, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Adds a field to the work item type in the process.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2} field
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForFields - Work item type reference name for the field
+ */
+ addFieldToWorkItemType(field, processId, witRefNameForFields) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForFields: witRefNameForFields
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "976713b4-a62e-499e-94dc-eeb869ea9126", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.create(url, field, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a single field in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForFields - Work item type reference name for fields
+ * @param {string} fieldRefName - The reference name of the field
+ */
+ getWorkItemTypeField(processId, witRefNameForFields, fieldRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForFields: witRefNameForFields,
+ fieldRefName: fieldRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "976713b4-a62e-499e-94dc-eeb869ea9126", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Returns a list of all fields in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForFields - Work item type reference name for fields
+ */
+ getWorkItemTypeFields(processId, witRefNameForFields) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForFields: witRefNameForFields
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "976713b4-a62e-499e-94dc-eeb869ea9126", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.get(url, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2, true);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Removes a field in the work item type of the process.
+ *
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForFields - Work item type reference name for fields
+ * @param {string} fieldRefName - The reference name of the field
+ */
+ removeFieldFromWorkItemType(processId, witRefNameForFields, fieldRefName) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForFields: witRefNameForFields,
+ fieldRefName: fieldRefName
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "976713b4-a62e-499e-94dc-eeb869ea9126", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.del(url, options);
+ let ret = this.formatResponse(res.result, null, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+ /**
+ * Updates a single field in the scope of the given process and work item type.
+ *
+ * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2} field - The model with which to update the field
+ * @param {string} processId - The ID of the process
+ * @param {string} witRefNameForFields - Work item type reference name for fields
+ */
+ updateWorkItemTypeField(field, processId, witRefNameForFields) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ let routeValues = {
+ processId: processId,
+ witRefNameForFields: witRefNameForFields
+ };
+ try {
+ let verData = yield this.vsoClient.getVersioningData("7.1-preview.1", "processDefinitions", "976713b4-a62e-499e-94dc-eeb869ea9126", routeValues);
+ let url = verData.requestUrl;
+ let options = this.createRequestOptions('application/json', verData.apiVersion);
+ let res;
+ res = yield this.rest.update(url, field, options);
+ let ret = this.formatResponse(res.result, WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2, false);
+ resolve(ret);
+ }
+ catch (err) {
+ reject(err);
+ }
+ }));
+ });
+ }
+}
+WorkItemTrackingProcessDefinitionsApi.RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
+exports.WorkItemTrackingProcessDefinitionsApi = WorkItemTrackingProcessDefinitionsApi;
+
+
+/***/ }),
+
+/***/ 6456:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const resthandlers = __nccwpck_require__(4442);
+class BasicCredentialHandler extends resthandlers.BasicCredentialHandler {
+ constructor(username, password, allowCrossOriginAuthentication = true) {
+ super(username, password, allowCrossOriginAuthentication);
+ }
+}
+exports.BasicCredentialHandler = BasicCredentialHandler;
+
+
+/***/ }),
+
+/***/ 1141:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const resthandlers = __nccwpck_require__(4442);
+class BearerCredentialHandler extends resthandlers.BearerCredentialHandler {
+ constructor(token, allowCrossOriginAuthentication = true) {
+ super(token, allowCrossOriginAuthentication);
+ }
+}
+exports.BearerCredentialHandler = BearerCredentialHandler;
+
+
+/***/ }),
+
+/***/ 3450:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const resthandlers = __nccwpck_require__(4442);
+class NtlmCredentialHandler extends resthandlers.NtlmCredentialHandler {
+ constructor(username, password, workstation, domain) {
+ super(username, password, workstation, domain);
+ }
+}
+exports.NtlmCredentialHandler = NtlmCredentialHandler;
+
+
+/***/ }),
+
+/***/ 4551:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const resthandlers = __nccwpck_require__(4442);
+class PersonalAccessTokenCredentialHandler extends resthandlers.PersonalAccessTokenCredentialHandler {
+ constructor(token, allowCrossOriginAuthentication = true) {
+ super(token, allowCrossOriginAuthentication);
+ }
+}
+exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
+
+
+/***/ }),
+
+/***/ 6228:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var AlertType;
+(function (AlertType) {
+ /**
+ * The code has an unspecified vulnerability type
+ */
+ AlertType[AlertType["Unknown"] = 0] = "Unknown";
+ /**
+ * The code uses a dependency with a known vulnerability.
+ */
+ AlertType[AlertType["Dependency"] = 1] = "Dependency";
+ /**
+ * The code contains a secret that has now been compromised and must be revoked.
+ */
+ AlertType[AlertType["Secret"] = 2] = "Secret";
+ /**
+ * The code contains a weakness determined by static analysis.
+ */
+ AlertType[AlertType["Code"] = 3] = "Code";
+})(AlertType = exports.AlertType || (exports.AlertType = {}));
+var AnalysisConfigurationType;
+(function (AnalysisConfigurationType) {
+ /**
+ * Default analysis configuration that is not attached to any other configuration data
+ */
+ AnalysisConfigurationType[AnalysisConfigurationType["Default"] = 0] = "Default";
+ /**
+ * Ado Pipeline, contains branch, pipeline, phase, and ADOPipelineId
+ */
+ AnalysisConfigurationType[AnalysisConfigurationType["AdoPipeline"] = 1] = "AdoPipeline";
+})(AnalysisConfigurationType = exports.AnalysisConfigurationType || (exports.AnalysisConfigurationType = {}));
+/**
+ * This enum defines the dependency components.
+ */
+var ComponentType;
+(function (ComponentType) {
+ ComponentType[ComponentType["Unknown"] = 0] = "Unknown";
+ ComponentType[ComponentType["NuGet"] = 1] = "NuGet";
+ /**
+ * Indicates the component is an Npm package.
+ */
+ ComponentType[ComponentType["Npm"] = 2] = "Npm";
+ /**
+ * Indicates the component is a Maven artifact.
+ */
+ ComponentType[ComponentType["Maven"] = 3] = "Maven";
+ /**
+ * Indicates the component is a Git repository.
+ */
+ ComponentType[ComponentType["Git"] = 4] = "Git";
+ /**
+ * Indicates the component is not any of the supported component types by Governance.
+ */
+ ComponentType[ComponentType["Other"] = 5] = "Other";
+ /**
+ * Indicates the component is a Ruby gem.
+ */
+ ComponentType[ComponentType["RubyGems"] = 6] = "RubyGems";
+ /**
+ * Indicates the component is a Cargo package.
+ */
+ ComponentType[ComponentType["Cargo"] = 7] = "Cargo";
+ /**
+ * Indicates the component is a Pip package.
+ */
+ ComponentType[ComponentType["Pip"] = 8] = "Pip";
+ /**
+ * Indicates the component is a loose file. Not a package as understood by different package managers.
+ */
+ ComponentType[ComponentType["File"] = 9] = "File";
+ /**
+ * Indicates the component is a Go package.
+ */
+ ComponentType[ComponentType["Go"] = 10] = "Go";
+ /**
+ * Indicates the component is a Docker Image
+ */
+ ComponentType[ComponentType["DockerImage"] = 11] = "DockerImage";
+ /**
+ * Indicates the component is a CocoaPods pod.
+ */
+ ComponentType[ComponentType["Pod"] = 12] = "Pod";
+ /**
+ * Indicates the component is found in a linux environment. A package understood by linux based package managers like apt and rpm.
+ */
+ ComponentType[ComponentType["Linux"] = 13] = "Linux";
+ /**
+ * Indicates the component is a Conda package.
+ */
+ ComponentType[ComponentType["Conda"] = 14] = "Conda";
+ /**
+ * Indicates the component is a Docker Reference.
+ */
+ ComponentType[ComponentType["DockerReference"] = 15] = "DockerReference";
+ /**
+ * Indicates the component is a Vcpkg Package.
+ */
+ ComponentType[ComponentType["Vcpkg"] = 16] = "Vcpkg";
+})(ComponentType = exports.ComponentType || (exports.ComponentType = {}));
+var DismissalType;
+(function (DismissalType) {
+ /**
+ * Dismissal type unknown
+ */
+ DismissalType[DismissalType["Unknown"] = 0] = "Unknown";
+ /**
+ * Dismissal indicating alert has been fixed
+ */
+ DismissalType[DismissalType["Fixed"] = 1] = "Fixed";
+ /**
+ * Dismissal indicating user is accepting a risk for the alert
+ */
+ DismissalType[DismissalType["AcceptedRisk"] = 2] = "AcceptedRisk";
+ /**
+ * Dismissal indicating alert is a false positive and will likely not be fixed.
+ */
+ DismissalType[DismissalType["FalsePositive"] = 3] = "FalsePositive";
+})(DismissalType = exports.DismissalType || (exports.DismissalType = {}));
+var ExpandOption;
+(function (ExpandOption) {
+ /**
+ * No Expands.
+ */
+ ExpandOption[ExpandOption["None"] = 0] = "None";
+ /**
+ * Return validationFingerprints in Alert.
+ */
+ ExpandOption[ExpandOption["ValidationFingerprint"] = 1] = "ValidationFingerprint";
+})(ExpandOption = exports.ExpandOption || (exports.ExpandOption = {}));
+/**
+ * This enum defines the different result types.
+ */
+var ResultType;
+(function (ResultType) {
+ /**
+ * The result was found from an unspecified analysis type
+ */
+ ResultType[ResultType["Unknown"] = 0] = "Unknown";
+ /**
+ * The result was found from dependency analysis
+ */
+ ResultType[ResultType["Dependency"] = 1] = "Dependency";
+ /**
+ * The result was found from static code analysis
+ */
+ ResultType[ResultType["VersionControl"] = 2] = "VersionControl";
+})(ResultType = exports.ResultType || (exports.ResultType = {}));
+var SarifJobStatus;
+(function (SarifJobStatus) {
+ /**
+ * The job type when it is new
+ */
+ SarifJobStatus[SarifJobStatus["New"] = 0] = "New";
+ /**
+ * The job type when it is queued
+ */
+ SarifJobStatus[SarifJobStatus["Queued"] = 1] = "Queued";
+ /**
+ * The job type when it is completed
+ */
+ SarifJobStatus[SarifJobStatus["Completed"] = 2] = "Completed";
+ /**
+ * The job type when it fails
+ */
+ SarifJobStatus[SarifJobStatus["Failed"] = 3] = "Failed";
+})(SarifJobStatus = exports.SarifJobStatus || (exports.SarifJobStatus = {}));
+var Severity;
+(function (Severity) {
+ Severity[Severity["Low"] = 0] = "Low";
+ Severity[Severity["Medium"] = 1] = "Medium";
+ Severity[Severity["High"] = 2] = "High";
+ Severity[Severity["Critical"] = 3] = "Critical";
+ Severity[Severity["Note"] = 4] = "Note";
+ Severity[Severity["Warning"] = 5] = "Warning";
+ Severity[Severity["Error"] = 6] = "Error";
+})(Severity = exports.Severity || (exports.Severity = {}));
+var State;
+(function (State) {
+ /**
+ * Alert is in an indeterminate state
+ */
+ State[State["Unknown"] = 0] = "Unknown";
+ /**
+ * Alert has been detected in the code
+ */
+ State[State["Active"] = 1] = "Active";
+ /**
+ * Alert was dismissed by a user
+ */
+ State[State["Dismissed"] = 2] = "Dismissed";
+ /**
+ * The issue is no longer detected in the code
+ */
+ State[State["Fixed"] = 4] = "Fixed";
+ /**
+ * The tool has determined that the issue is no longer a risk
+ */
+ State[State["AutoDismissed"] = 8] = "AutoDismissed";
+})(State = exports.State || (exports.State = {}));
+exports.TypeInfo = {
+ Alert: {},
+ AlertAnalysisInstance: {},
+ AlertStateUpdate: {},
+ AlertType: {
+ enumValues: {
+ "unknown": 0,
+ "dependency": 1,
+ "secret": 2,
+ "code": 3
+ }
+ },
+ AnalysisConfiguration: {},
+ AnalysisConfigurationType: {
+ enumValues: {
+ "default": 0,
+ "adoPipeline": 1
+ }
+ },
+ AnalysisInstance: {},
+ AnalysisResult: {},
+ Branch: {},
+ ComponentType: {
+ enumValues: {
+ "unknown": 0,
+ "nuGet": 1,
+ "npm": 2,
+ "maven": 3,
+ "git": 4,
+ "other": 5,
+ "rubyGems": 6,
+ "cargo": 7,
+ "pip": 8,
+ "file": 9,
+ "go": 10,
+ "dockerImage": 11,
+ "pod": 12,
+ "linux": 13,
+ "conda": 14,
+ "dockerReference": 15,
+ "vcpkg": 16
+ }
+ },
+ Dependency: {},
+ DependencyResult: {},
+ Dismissal: {},
+ DismissalType: {
+ enumValues: {
+ "unknown": 0,
+ "fixed": 1,
+ "acceptedRisk": 2,
+ "falsePositive": 3
+ }
+ },
+ ExpandOption: {
+ enumValues: {
+ "none": 0,
+ "validationFingerprint": 1
+ }
+ },
+ Result: {},
+ ResultType: {
+ enumValues: {
+ "unknown": 0,
+ "dependency": 1,
+ "versionControl": 2
+ }
+ },
+ SarifJobStatus: {
+ enumValues: {
+ "new": 0,
+ "queued": 1,
+ "completed": 2,
+ "failed": 3
+ }
+ },
+ SarifUploadStatus: {},
+ SearchCriteria: {},
+ Severity: {
+ enumValues: {
+ "low": 0,
+ "medium": 1,
+ "high": 2,
+ "critical": 3,
+ "note": 4,
+ "warning": 5,
+ "error": 6
+ }
+ },
+ State: {
+ enumValues: {
+ "unknown": 0,
+ "active": 1,
+ "dismissed": 2,
+ "fixed": 4,
+ "autoDismissed": 8
+ }
+ },
+ UxFilters: {},
+};
+exports.TypeInfo.Alert.fields = {
+ alertType: {
+ enumType: exports.TypeInfo.AlertType
+ },
+ dismissal: {
+ typeInfo: exports.TypeInfo.Dismissal
+ },
+ firstSeenDate: {
+ isDate: true,
+ },
+ fixedDate: {
+ isDate: true,
+ },
+ introducedDate: {
+ isDate: true,
+ },
+ lastSeenDate: {
+ isDate: true,
+ },
+ severity: {
+ enumType: exports.TypeInfo.Severity
+ },
+ state: {
+ enumType: exports.TypeInfo.State
+ }
+};
+exports.TypeInfo.AlertAnalysisInstance.fields = {
+ analysisConfiguration: {
+ typeInfo: exports.TypeInfo.AnalysisConfiguration
+ },
+ firstSeen: {
+ typeInfo: exports.TypeInfo.AnalysisInstance
+ },
+ fixedIn: {
+ typeInfo: exports.TypeInfo.AnalysisInstance
+ },
+ lastSeen: {
+ typeInfo: exports.TypeInfo.AnalysisInstance
+ },
+ recentAnalysisInstance: {
+ typeInfo: exports.TypeInfo.AnalysisInstance
+ },
+ state: {
+ enumType: exports.TypeInfo.State
+ }
+};
+exports.TypeInfo.AlertStateUpdate.fields = {
+ dismissedReason: {
+ enumType: exports.TypeInfo.DismissalType
+ },
+ state: {
+ enumType: exports.TypeInfo.State
+ }
+};
+exports.TypeInfo.AnalysisConfiguration.fields = {
+ analysisConfigurationType: {
+ enumType: exports.TypeInfo.AnalysisConfigurationType
+ }
+};
+exports.TypeInfo.AnalysisInstance.fields = {
+ configuration: {
+ typeInfo: exports.TypeInfo.AnalysisConfiguration
+ },
+ createdDate: {
+ isDate: true,
+ },
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.AnalysisResult
+ }
+};
+exports.TypeInfo.AnalysisResult.fields = {
+ result: {
+ typeInfo: exports.TypeInfo.Result
+ },
+ state: {
+ enumType: exports.TypeInfo.State
+ }
+};
+exports.TypeInfo.Branch.fields = {
+ deletedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Dependency.fields = {
+ componentType: {
+ enumType: exports.TypeInfo.ComponentType
+ }
+};
+exports.TypeInfo.DependencyResult.fields = {
+ dependency: {
+ typeInfo: exports.TypeInfo.Dependency
+ }
+};
+exports.TypeInfo.Dismissal.fields = {
+ dismissalType: {
+ enumType: exports.TypeInfo.DismissalType
+ },
+ requestedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Result.fields = {
+ dependencyResult: {
+ typeInfo: exports.TypeInfo.DependencyResult
+ },
+ resultType: {
+ enumType: exports.TypeInfo.ResultType
+ },
+ severity: {
+ enumType: exports.TypeInfo.Severity
+ }
+};
+exports.TypeInfo.SarifUploadStatus.fields = {
+ processingStatus: {
+ enumType: exports.TypeInfo.SarifJobStatus
+ }
+};
+exports.TypeInfo.SearchCriteria.fields = {
+ alertType: {
+ enumType: exports.TypeInfo.AlertType
+ },
+ fromDate: {
+ isDate: true,
+ },
+ modifiedSince: {
+ isDate: true,
+ },
+ severities: {
+ isArray: true,
+ enumType: exports.TypeInfo.Severity
+ },
+ states: {
+ isArray: true,
+ enumType: exports.TypeInfo.State
+ },
+ toDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.UxFilters.fields = {
+ branches: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Branch
+ },
+ packages: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Dependency
+ },
+ severities: {
+ isArray: true,
+ enumType: exports.TypeInfo.Severity
+ },
+ states: {
+ isArray: true,
+ enumType: exports.TypeInfo.State
+ }
+};
+
+
+/***/ }),
+
+/***/ 2167:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const TFS_TestManagement_Contracts = __nccwpck_require__(3047);
+const TfsCoreInterfaces = __nccwpck_require__(3931);
+var AgentStatus;
+(function (AgentStatus) {
+ /**
+ * Indicates that the build agent cannot be contacted.
+ */
+ AgentStatus[AgentStatus["Unavailable"] = 0] = "Unavailable";
+ /**
+ * Indicates that the build agent is currently available.
+ */
+ AgentStatus[AgentStatus["Available"] = 1] = "Available";
+ /**
+ * Indicates that the build agent has taken itself offline.
+ */
+ AgentStatus[AgentStatus["Offline"] = 2] = "Offline";
+})(AgentStatus = exports.AgentStatus || (exports.AgentStatus = {}));
+var AuditAction;
+(function (AuditAction) {
+ AuditAction[AuditAction["Add"] = 1] = "Add";
+ AuditAction[AuditAction["Update"] = 2] = "Update";
+ AuditAction[AuditAction["Delete"] = 3] = "Delete";
+})(AuditAction = exports.AuditAction || (exports.AuditAction = {}));
+/**
+ * Represents the desired scope of authorization for a build.
+ */
+var BuildAuthorizationScope;
+(function (BuildAuthorizationScope) {
+ /**
+ * The identity used should have build service account permissions scoped to the project collection. This is useful when resources for a single build are spread across multiple projects.
+ */
+ BuildAuthorizationScope[BuildAuthorizationScope["ProjectCollection"] = 1] = "ProjectCollection";
+ /**
+ * The identity used should have build service account permissions scoped to the project in which the build definition resides. This is useful for isolation of build jobs to a particular team project to avoid any unintentional escalation of privilege attacks during a build.
+ */
+ BuildAuthorizationScope[BuildAuthorizationScope["Project"] = 2] = "Project";
+})(BuildAuthorizationScope = exports.BuildAuthorizationScope || (exports.BuildAuthorizationScope = {}));
+var BuildOptionInputType;
+(function (BuildOptionInputType) {
+ BuildOptionInputType[BuildOptionInputType["String"] = 0] = "String";
+ BuildOptionInputType[BuildOptionInputType["Boolean"] = 1] = "Boolean";
+ BuildOptionInputType[BuildOptionInputType["StringList"] = 2] = "StringList";
+ BuildOptionInputType[BuildOptionInputType["Radio"] = 3] = "Radio";
+ BuildOptionInputType[BuildOptionInputType["PickList"] = 4] = "PickList";
+ BuildOptionInputType[BuildOptionInputType["MultiLine"] = 5] = "MultiLine";
+ BuildOptionInputType[BuildOptionInputType["BranchFilter"] = 6] = "BranchFilter";
+})(BuildOptionInputType = exports.BuildOptionInputType || (exports.BuildOptionInputType = {}));
+var BuildPhaseStatus;
+(function (BuildPhaseStatus) {
+ /**
+ * The state is not known.
+ */
+ BuildPhaseStatus[BuildPhaseStatus["Unknown"] = 0] = "Unknown";
+ /**
+ * The build phase completed unsuccessfully.
+ */
+ BuildPhaseStatus[BuildPhaseStatus["Failed"] = 1] = "Failed";
+ /**
+ * The build phase completed successfully.
+ */
+ BuildPhaseStatus[BuildPhaseStatus["Succeeded"] = 2] = "Succeeded";
+})(BuildPhaseStatus = exports.BuildPhaseStatus || (exports.BuildPhaseStatus = {}));
+/**
+ * Specifies the desired ordering of builds.
+ */
+var BuildQueryOrder;
+(function (BuildQueryOrder) {
+ /**
+ * Order by finish time ascending.
+ */
+ BuildQueryOrder[BuildQueryOrder["FinishTimeAscending"] = 2] = "FinishTimeAscending";
+ /**
+ * Order by finish time descending.
+ */
+ BuildQueryOrder[BuildQueryOrder["FinishTimeDescending"] = 3] = "FinishTimeDescending";
+ /**
+ * Order by queue time descending.
+ */
+ BuildQueryOrder[BuildQueryOrder["QueueTimeDescending"] = 4] = "QueueTimeDescending";
+ /**
+ * Order by queue time ascending.
+ */
+ BuildQueryOrder[BuildQueryOrder["QueueTimeAscending"] = 5] = "QueueTimeAscending";
+ /**
+ * Order by start time descending.
+ */
+ BuildQueryOrder[BuildQueryOrder["StartTimeDescending"] = 6] = "StartTimeDescending";
+ /**
+ * Order by start time ascending.
+ */
+ BuildQueryOrder[BuildQueryOrder["StartTimeAscending"] = 7] = "StartTimeAscending";
+})(BuildQueryOrder = exports.BuildQueryOrder || (exports.BuildQueryOrder = {}));
+var BuildReason;
+(function (BuildReason) {
+ /**
+ * No reason. This value should not be used.
+ */
+ BuildReason[BuildReason["None"] = 0] = "None";
+ /**
+ * The build was started manually.
+ */
+ BuildReason[BuildReason["Manual"] = 1] = "Manual";
+ /**
+ * The build was started for the trigger TriggerType.ContinuousIntegration.
+ */
+ BuildReason[BuildReason["IndividualCI"] = 2] = "IndividualCI";
+ /**
+ * The build was started for the trigger TriggerType.BatchedContinuousIntegration.
+ */
+ BuildReason[BuildReason["BatchedCI"] = 4] = "BatchedCI";
+ /**
+ * The build was started for the trigger TriggerType.Schedule.
+ */
+ BuildReason[BuildReason["Schedule"] = 8] = "Schedule";
+ /**
+ * The build was started for the trigger TriggerType.ScheduleForced.
+ */
+ BuildReason[BuildReason["ScheduleForced"] = 16] = "ScheduleForced";
+ /**
+ * The build was created by a user.
+ */
+ BuildReason[BuildReason["UserCreated"] = 32] = "UserCreated";
+ /**
+ * The build was started manually for private validation.
+ */
+ BuildReason[BuildReason["ValidateShelveset"] = 64] = "ValidateShelveset";
+ /**
+ * The build was started for the trigger ContinuousIntegrationType.Gated.
+ */
+ BuildReason[BuildReason["CheckInShelveset"] = 128] = "CheckInShelveset";
+ /**
+ * The build was started by a pull request. Added in resource version 3.
+ */
+ BuildReason[BuildReason["PullRequest"] = 256] = "PullRequest";
+ /**
+ * The build was started when another build completed.
+ */
+ BuildReason[BuildReason["BuildCompletion"] = 512] = "BuildCompletion";
+ /**
+ * The build was started when resources in pipeline triggered it
+ */
+ BuildReason[BuildReason["ResourceTrigger"] = 1024] = "ResourceTrigger";
+ /**
+ * The build was triggered for retention policy purposes.
+ */
+ BuildReason[BuildReason["Triggered"] = 1967] = "Triggered";
+ /**
+ * All reasons.
+ */
+ BuildReason[BuildReason["All"] = 2031] = "All";
+})(BuildReason = exports.BuildReason || (exports.BuildReason = {}));
+/**
+ * This is not a Flags enum because we don't want to set multiple statuses on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum This will ensure that things that key off multiple result types (like labelling sources) continue to work
+ */
+var BuildResult;
+(function (BuildResult) {
+ /**
+ * No result
+ */
+ BuildResult[BuildResult["None"] = 0] = "None";
+ /**
+ * The build completed successfully.
+ */
+ BuildResult[BuildResult["Succeeded"] = 2] = "Succeeded";
+ /**
+ * The build completed compilation successfully but had other errors.
+ */
+ BuildResult[BuildResult["PartiallySucceeded"] = 4] = "PartiallySucceeded";
+ /**
+ * The build completed unsuccessfully.
+ */
+ BuildResult[BuildResult["Failed"] = 8] = "Failed";
+ /**
+ * The build was canceled before starting.
+ */
+ BuildResult[BuildResult["Canceled"] = 32] = "Canceled";
+})(BuildResult = exports.BuildResult || (exports.BuildResult = {}));
+var BuildStatus;
+(function (BuildStatus) {
+ /**
+ * No status.
+ */
+ BuildStatus[BuildStatus["None"] = 0] = "None";
+ /**
+ * The build is currently in progress.
+ */
+ BuildStatus[BuildStatus["InProgress"] = 1] = "InProgress";
+ /**
+ * The build has completed.
+ */
+ BuildStatus[BuildStatus["Completed"] = 2] = "Completed";
+ /**
+ * The build is cancelling
+ */
+ BuildStatus[BuildStatus["Cancelling"] = 4] = "Cancelling";
+ /**
+ * The build is inactive in the queue.
+ */
+ BuildStatus[BuildStatus["Postponed"] = 8] = "Postponed";
+ /**
+ * The build has not yet started.
+ */
+ BuildStatus[BuildStatus["NotStarted"] = 32] = "NotStarted";
+ /**
+ * All status.
+ */
+ BuildStatus[BuildStatus["All"] = 47] = "All";
+})(BuildStatus = exports.BuildStatus || (exports.BuildStatus = {}));
+var ControllerStatus;
+(function (ControllerStatus) {
+ /**
+ * Indicates that the build controller cannot be contacted.
+ */
+ ControllerStatus[ControllerStatus["Unavailable"] = 0] = "Unavailable";
+ /**
+ * Indicates that the build controller is currently available.
+ */
+ ControllerStatus[ControllerStatus["Available"] = 1] = "Available";
+ /**
+ * Indicates that the build controller has taken itself offline.
+ */
+ ControllerStatus[ControllerStatus["Offline"] = 2] = "Offline";
+})(ControllerStatus = exports.ControllerStatus || (exports.ControllerStatus = {}));
+var DefinitionQuality;
+(function (DefinitionQuality) {
+ DefinitionQuality[DefinitionQuality["Definition"] = 1] = "Definition";
+ DefinitionQuality[DefinitionQuality["Draft"] = 2] = "Draft";
+})(DefinitionQuality = exports.DefinitionQuality || (exports.DefinitionQuality = {}));
+/**
+ * Specifies the desired ordering of definitions.
+ */
+var DefinitionQueryOrder;
+(function (DefinitionQueryOrder) {
+ /**
+ * No order
+ */
+ DefinitionQueryOrder[DefinitionQueryOrder["None"] = 0] = "None";
+ /**
+ * Order by created on/last modified time ascending.
+ */
+ DefinitionQueryOrder[DefinitionQueryOrder["LastModifiedAscending"] = 1] = "LastModifiedAscending";
+ /**
+ * Order by created on/last modified time descending.
+ */
+ DefinitionQueryOrder[DefinitionQueryOrder["LastModifiedDescending"] = 2] = "LastModifiedDescending";
+ /**
+ * Order by definition name ascending.
+ */
+ DefinitionQueryOrder[DefinitionQueryOrder["DefinitionNameAscending"] = 3] = "DefinitionNameAscending";
+ /**
+ * Order by definition name descending.
+ */
+ DefinitionQueryOrder[DefinitionQueryOrder["DefinitionNameDescending"] = 4] = "DefinitionNameDescending";
+})(DefinitionQueryOrder = exports.DefinitionQueryOrder || (exports.DefinitionQueryOrder = {}));
+var DefinitionQueueStatus;
+(function (DefinitionQueueStatus) {
+ /**
+ * When enabled the definition queue allows builds to be queued by users, the system will queue scheduled, gated and continuous integration builds, and the queued builds will be started by the system.
+ */
+ DefinitionQueueStatus[DefinitionQueueStatus["Enabled"] = 0] = "Enabled";
+ /**
+ * When paused the definition queue allows builds to be queued by users and the system will queue scheduled, gated and continuous integration builds. Builds in the queue will not be started by the system.
+ */
+ DefinitionQueueStatus[DefinitionQueueStatus["Paused"] = 1] = "Paused";
+ /**
+ * When disabled the definition queue will not allow builds to be queued by users and the system will not queue scheduled, gated or continuous integration builds. Builds already in the queue will not be started by the system.
+ */
+ DefinitionQueueStatus[DefinitionQueueStatus["Disabled"] = 2] = "Disabled";
+})(DefinitionQueueStatus = exports.DefinitionQueueStatus || (exports.DefinitionQueueStatus = {}));
+var DefinitionTriggerType;
+(function (DefinitionTriggerType) {
+ /**
+ * Manual builds only.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["None"] = 1] = "None";
+ /**
+ * A build should be started for each changeset.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["ContinuousIntegration"] = 2] = "ContinuousIntegration";
+ /**
+ * A build should be started for multiple changesets at a time at a specified interval.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["BatchedContinuousIntegration"] = 4] = "BatchedContinuousIntegration";
+ /**
+ * A build should be started on a specified schedule whether or not changesets exist.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["Schedule"] = 8] = "Schedule";
+ /**
+ * A validation build should be started for each check-in.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["GatedCheckIn"] = 16] = "GatedCheckIn";
+ /**
+ * A validation build should be started for each batch of check-ins.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["BatchedGatedCheckIn"] = 32] = "BatchedGatedCheckIn";
+ /**
+ * A build should be triggered when a GitHub pull request is created or updated. Added in resource version 3
+ */
+ DefinitionTriggerType[DefinitionTriggerType["PullRequest"] = 64] = "PullRequest";
+ /**
+ * A build should be triggered when another build completes.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["BuildCompletion"] = 128] = "BuildCompletion";
+ /**
+ * All types.
+ */
+ DefinitionTriggerType[DefinitionTriggerType["All"] = 255] = "All";
+})(DefinitionTriggerType = exports.DefinitionTriggerType || (exports.DefinitionTriggerType = {}));
+var DefinitionType;
+(function (DefinitionType) {
+ DefinitionType[DefinitionType["Xaml"] = 1] = "Xaml";
+ DefinitionType[DefinitionType["Build"] = 2] = "Build";
+})(DefinitionType = exports.DefinitionType || (exports.DefinitionType = {}));
+var DeleteOptions;
+(function (DeleteOptions) {
+ /**
+ * No data should be deleted. This value should not be used.
+ */
+ DeleteOptions[DeleteOptions["None"] = 0] = "None";
+ /**
+ * The drop location should be deleted.
+ */
+ DeleteOptions[DeleteOptions["DropLocation"] = 1] = "DropLocation";
+ /**
+ * The test results should be deleted.
+ */
+ DeleteOptions[DeleteOptions["TestResults"] = 2] = "TestResults";
+ /**
+ * The version control label should be deleted.
+ */
+ DeleteOptions[DeleteOptions["Label"] = 4] = "Label";
+ /**
+ * The build should be deleted.
+ */
+ DeleteOptions[DeleteOptions["Details"] = 8] = "Details";
+ /**
+ * Published symbols should be deleted.
+ */
+ DeleteOptions[DeleteOptions["Symbols"] = 16] = "Symbols";
+ /**
+ * All data should be deleted.
+ */
+ DeleteOptions[DeleteOptions["All"] = 31] = "All";
+})(DeleteOptions = exports.DeleteOptions || (exports.DeleteOptions = {}));
+/**
+ * Specifies the desired ordering of folders.
+ */
+var FolderQueryOrder;
+(function (FolderQueryOrder) {
+ /**
+ * No order
+ */
+ FolderQueryOrder[FolderQueryOrder["None"] = 0] = "None";
+ /**
+ * Order by folder name and path ascending.
+ */
+ FolderQueryOrder[FolderQueryOrder["FolderAscending"] = 1] = "FolderAscending";
+ /**
+ * Order by folder name and path descending.
+ */
+ FolderQueryOrder[FolderQueryOrder["FolderDescending"] = 2] = "FolderDescending";
+})(FolderQueryOrder = exports.FolderQueryOrder || (exports.FolderQueryOrder = {}));
+var GetOption;
+(function (GetOption) {
+ /**
+ * Use the latest changeset at the time the build is queued.
+ */
+ GetOption[GetOption["LatestOnQueue"] = 0] = "LatestOnQueue";
+ /**
+ * Use the latest changeset at the time the build is started.
+ */
+ GetOption[GetOption["LatestOnBuild"] = 1] = "LatestOnBuild";
+ /**
+ * A user-specified version has been supplied.
+ */
+ GetOption[GetOption["Custom"] = 2] = "Custom";
+})(GetOption = exports.GetOption || (exports.GetOption = {}));
+var IssueType;
+(function (IssueType) {
+ IssueType[IssueType["Error"] = 1] = "Error";
+ IssueType[IssueType["Warning"] = 2] = "Warning";
+})(IssueType = exports.IssueType || (exports.IssueType = {}));
+var ProcessTemplateType;
+(function (ProcessTemplateType) {
+ /**
+ * Indicates a custom template.
+ */
+ ProcessTemplateType[ProcessTemplateType["Custom"] = 0] = "Custom";
+ /**
+ * Indicates a default template.
+ */
+ ProcessTemplateType[ProcessTemplateType["Default"] = 1] = "Default";
+ /**
+ * Indicates an upgrade template.
+ */
+ ProcessTemplateType[ProcessTemplateType["Upgrade"] = 2] = "Upgrade";
+})(ProcessTemplateType = exports.ProcessTemplateType || (exports.ProcessTemplateType = {}));
+var QueryDeletedOption;
+(function (QueryDeletedOption) {
+ /**
+ * Include only non-deleted builds.
+ */
+ QueryDeletedOption[QueryDeletedOption["ExcludeDeleted"] = 0] = "ExcludeDeleted";
+ /**
+ * Include deleted and non-deleted builds.
+ */
+ QueryDeletedOption[QueryDeletedOption["IncludeDeleted"] = 1] = "IncludeDeleted";
+ /**
+ * Include only deleted builds.
+ */
+ QueryDeletedOption[QueryDeletedOption["OnlyDeleted"] = 2] = "OnlyDeleted";
+})(QueryDeletedOption = exports.QueryDeletedOption || (exports.QueryDeletedOption = {}));
+var QueueOptions;
+(function (QueueOptions) {
+ /**
+ * No queue options
+ */
+ QueueOptions[QueueOptions["None"] = 0] = "None";
+ /**
+ * Create a plan Id for the build, do not run it
+ */
+ QueueOptions[QueueOptions["DoNotRun"] = 1] = "DoNotRun";
+})(QueueOptions = exports.QueueOptions || (exports.QueueOptions = {}));
+var QueuePriority;
+(function (QueuePriority) {
+ /**
+ * Low priority.
+ */
+ QueuePriority[QueuePriority["Low"] = 5] = "Low";
+ /**
+ * Below normal priority.
+ */
+ QueuePriority[QueuePriority["BelowNormal"] = 4] = "BelowNormal";
+ /**
+ * Normal priority.
+ */
+ QueuePriority[QueuePriority["Normal"] = 3] = "Normal";
+ /**
+ * Above normal priority.
+ */
+ QueuePriority[QueuePriority["AboveNormal"] = 2] = "AboveNormal";
+ /**
+ * High priority.
+ */
+ QueuePriority[QueuePriority["High"] = 1] = "High";
+})(QueuePriority = exports.QueuePriority || (exports.QueuePriority = {}));
+var RepositoryCleanOptions;
+(function (RepositoryCleanOptions) {
+ RepositoryCleanOptions[RepositoryCleanOptions["Source"] = 0] = "Source";
+ RepositoryCleanOptions[RepositoryCleanOptions["SourceAndOutputDir"] = 1] = "SourceAndOutputDir";
+ /**
+ * Re-create $(build.sourcesDirectory)
+ */
+ RepositoryCleanOptions[RepositoryCleanOptions["SourceDir"] = 2] = "SourceDir";
+ /**
+ * Re-create $(agnet.buildDirectory) which contains $(build.sourcesDirectory), $(build.binariesDirectory) and any folders that left from previous build.
+ */
+ RepositoryCleanOptions[RepositoryCleanOptions["AllBuildDir"] = 3] = "AllBuildDir";
+})(RepositoryCleanOptions = exports.RepositoryCleanOptions || (exports.RepositoryCleanOptions = {}));
+var ResultSet;
+(function (ResultSet) {
+ /**
+ * Include all repositories
+ */
+ ResultSet[ResultSet["All"] = 0] = "All";
+ /**
+ * Include most relevant repositories for user
+ */
+ ResultSet[ResultSet["Top"] = 1] = "Top";
+})(ResultSet = exports.ResultSet || (exports.ResultSet = {}));
+var ScheduleDays;
+(function (ScheduleDays) {
+ /**
+ * Do not run.
+ */
+ ScheduleDays[ScheduleDays["None"] = 0] = "None";
+ /**
+ * Run on Monday.
+ */
+ ScheduleDays[ScheduleDays["Monday"] = 1] = "Monday";
+ /**
+ * Run on Tuesday.
+ */
+ ScheduleDays[ScheduleDays["Tuesday"] = 2] = "Tuesday";
+ /**
+ * Run on Wednesday.
+ */
+ ScheduleDays[ScheduleDays["Wednesday"] = 4] = "Wednesday";
+ /**
+ * Run on Thursday.
+ */
+ ScheduleDays[ScheduleDays["Thursday"] = 8] = "Thursday";
+ /**
+ * Run on Friday.
+ */
+ ScheduleDays[ScheduleDays["Friday"] = 16] = "Friday";
+ /**
+ * Run on Saturday.
+ */
+ ScheduleDays[ScheduleDays["Saturday"] = 32] = "Saturday";
+ /**
+ * Run on Sunday.
+ */
+ ScheduleDays[ScheduleDays["Sunday"] = 64] = "Sunday";
+ /**
+ * Run on all days of the week.
+ */
+ ScheduleDays[ScheduleDays["All"] = 127] = "All";
+})(ScheduleDays = exports.ScheduleDays || (exports.ScheduleDays = {}));
+var ServiceHostStatus;
+(function (ServiceHostStatus) {
+ /**
+ * The service host is currently connected and accepting commands.
+ */
+ ServiceHostStatus[ServiceHostStatus["Online"] = 1] = "Online";
+ /**
+ * The service host is currently disconnected and not accepting commands.
+ */
+ ServiceHostStatus[ServiceHostStatus["Offline"] = 2] = "Offline";
+})(ServiceHostStatus = exports.ServiceHostStatus || (exports.ServiceHostStatus = {}));
+var SourceProviderAvailability;
+(function (SourceProviderAvailability) {
+ /**
+ * The source provider is available in the hosted environment.
+ */
+ SourceProviderAvailability[SourceProviderAvailability["Hosted"] = 1] = "Hosted";
+ /**
+ * The source provider is available in the on-premises environment.
+ */
+ SourceProviderAvailability[SourceProviderAvailability["OnPremises"] = 2] = "OnPremises";
+ /**
+ * The source provider is available in all environments.
+ */
+ SourceProviderAvailability[SourceProviderAvailability["All"] = 3] = "All";
+})(SourceProviderAvailability = exports.SourceProviderAvailability || (exports.SourceProviderAvailability = {}));
+var StageUpdateType;
+(function (StageUpdateType) {
+ StageUpdateType[StageUpdateType["Cancel"] = 0] = "Cancel";
+ StageUpdateType[StageUpdateType["Retry"] = 1] = "Retry";
+})(StageUpdateType = exports.StageUpdateType || (exports.StageUpdateType = {}));
+var SupportLevel;
+(function (SupportLevel) {
+ /**
+ * The functionality is not supported.
+ */
+ SupportLevel[SupportLevel["Unsupported"] = 0] = "Unsupported";
+ /**
+ * The functionality is supported.
+ */
+ SupportLevel[SupportLevel["Supported"] = 1] = "Supported";
+ /**
+ * The functionality is required.
+ */
+ SupportLevel[SupportLevel["Required"] = 2] = "Required";
+})(SupportLevel = exports.SupportLevel || (exports.SupportLevel = {}));
+var TaskResult;
+(function (TaskResult) {
+ TaskResult[TaskResult["Succeeded"] = 0] = "Succeeded";
+ TaskResult[TaskResult["SucceededWithIssues"] = 1] = "SucceededWithIssues";
+ TaskResult[TaskResult["Failed"] = 2] = "Failed";
+ TaskResult[TaskResult["Canceled"] = 3] = "Canceled";
+ TaskResult[TaskResult["Skipped"] = 4] = "Skipped";
+ TaskResult[TaskResult["Abandoned"] = 5] = "Abandoned";
+})(TaskResult = exports.TaskResult || (exports.TaskResult = {}));
+var TimelineRecordState;
+(function (TimelineRecordState) {
+ TimelineRecordState[TimelineRecordState["Pending"] = 0] = "Pending";
+ TimelineRecordState[TimelineRecordState["InProgress"] = 1] = "InProgress";
+ TimelineRecordState[TimelineRecordState["Completed"] = 2] = "Completed";
+})(TimelineRecordState = exports.TimelineRecordState || (exports.TimelineRecordState = {}));
+var ValidationResult;
+(function (ValidationResult) {
+ ValidationResult[ValidationResult["OK"] = 0] = "OK";
+ ValidationResult[ValidationResult["Warning"] = 1] = "Warning";
+ ValidationResult[ValidationResult["Error"] = 2] = "Error";
+})(ValidationResult = exports.ValidationResult || (exports.ValidationResult = {}));
+var WorkspaceMappingType;
+(function (WorkspaceMappingType) {
+ /**
+ * The path is mapped in the workspace.
+ */
+ WorkspaceMappingType[WorkspaceMappingType["Map"] = 0] = "Map";
+ /**
+ * The path is cloaked in the workspace.
+ */
+ WorkspaceMappingType[WorkspaceMappingType["Cloak"] = 1] = "Cloak";
+})(WorkspaceMappingType = exports.WorkspaceMappingType || (exports.WorkspaceMappingType = {}));
+exports.TypeInfo = {
+ AgentStatus: {
+ enumValues: {
+ "unavailable": 0,
+ "available": 1,
+ "offline": 2
+ }
+ },
+ AuditAction: {
+ enumValues: {
+ "add": 1,
+ "update": 2,
+ "delete": 3
+ }
+ },
+ Build: {},
+ BuildAgent: {},
+ BuildAuthorizationScope: {
+ enumValues: {
+ "projectCollection": 1,
+ "project": 2
+ }
+ },
+ BuildCompletedEvent: {},
+ BuildCompletionTrigger: {},
+ BuildController: {},
+ BuildDefinition: {},
+ BuildDefinition3_2: {},
+ BuildDefinitionReference: {},
+ BuildDefinitionReference3_2: {},
+ BuildDefinitionRevision: {},
+ BuildDefinitionSourceProvider: {},
+ BuildDefinitionTemplate: {},
+ BuildDefinitionTemplate3_2: {},
+ BuildDeletedEvent: {},
+ BuildDeployment: {},
+ BuildLog: {},
+ BuildMetric: {},
+ BuildOptionDefinition: {},
+ BuildOptionInputDefinition: {},
+ BuildOptionInputType: {
+ enumValues: {
+ "string": 0,
+ "boolean": 1,
+ "stringList": 2,
+ "radio": 3,
+ "pickList": 4,
+ "multiLine": 5,
+ "branchFilter": 6
+ }
+ },
+ BuildPhaseStatus: {
+ enumValues: {
+ "unknown": 0,
+ "failed": 1,
+ "succeeded": 2
+ }
+ },
+ BuildProcessTemplate: {},
+ BuildQueryOrder: {
+ enumValues: {
+ "finishTimeAscending": 2,
+ "finishTimeDescending": 3,
+ "queueTimeDescending": 4,
+ "queueTimeAscending": 5,
+ "startTimeDescending": 6,
+ "startTimeAscending": 7
+ }
+ },
+ BuildQueuedEvent: {},
+ BuildReason: {
+ enumValues: {
+ "none": 0,
+ "manual": 1,
+ "individualCI": 2,
+ "batchedCI": 4,
+ "schedule": 8,
+ "scheduleForced": 16,
+ "userCreated": 32,
+ "validateShelveset": 64,
+ "checkInShelveset": 128,
+ "pullRequest": 256,
+ "buildCompletion": 512,
+ "resourceTrigger": 1024,
+ "triggered": 1967,
+ "all": 2031
+ }
+ },
+ BuildReference: {},
+ BuildRequestValidationResult: {},
+ BuildResult: {
+ enumValues: {
+ "none": 0,
+ "succeeded": 2,
+ "partiallySucceeded": 4,
+ "failed": 8,
+ "canceled": 32
+ }
+ },
+ BuildRetentionHistory: {},
+ BuildRetentionSample: {},
+ BuildServer: {},
+ BuildStatus: {
+ enumValues: {
+ "none": 0,
+ "inProgress": 1,
+ "completed": 2,
+ "cancelling": 4,
+ "postponed": 8,
+ "notStarted": 32,
+ "all": 47
+ }
+ },
+ BuildSummary: {},
+ BuildTagsAddedEvent: {},
+ BuildTrigger: {},
+ BuildUpdatedEvent: {},
+ Change: {},
+ ContinuousDeploymentDefinition: {},
+ ContinuousIntegrationTrigger: {},
+ ControllerStatus: {
+ enumValues: {
+ "unavailable": 0,
+ "available": 1,
+ "offline": 2
+ }
+ },
+ DefinitionQuality: {
+ enumValues: {
+ "definition": 1,
+ "draft": 2
+ }
+ },
+ DefinitionQueryOrder: {
+ enumValues: {
+ "none": 0,
+ "lastModifiedAscending": 1,
+ "lastModifiedDescending": 2,
+ "definitionNameAscending": 3,
+ "definitionNameDescending": 4
+ }
+ },
+ DefinitionQueueStatus: {
+ enumValues: {
+ "enabled": 0,
+ "paused": 1,
+ "disabled": 2
+ }
+ },
+ DefinitionReference: {},
+ DefinitionTriggerType: {
+ enumValues: {
+ "none": 1,
+ "continuousIntegration": 2,
+ "batchedContinuousIntegration": 4,
+ "schedule": 8,
+ "gatedCheckIn": 16,
+ "batchedGatedCheckIn": 32,
+ "pullRequest": 64,
+ "buildCompletion": 128,
+ "all": 255
+ }
+ },
+ DefinitionType: {
+ enumValues: {
+ "xaml": 1,
+ "build": 2
+ }
+ },
+ DeleteOptions: {
+ enumValues: {
+ "none": 0,
+ "dropLocation": 1,
+ "testResults": 2,
+ "label": 4,
+ "details": 8,
+ "symbols": 16,
+ "all": 31
+ }
+ },
+ DesignerProcess: {},
+ Folder: {},
+ FolderQueryOrder: {
+ enumValues: {
+ "none": 0,
+ "folderAscending": 1,
+ "folderDescending": 2
+ }
+ },
+ GatedCheckInTrigger: {},
+ GetOption: {
+ enumValues: {
+ "latestOnQueue": 0,
+ "latestOnBuild": 1,
+ "custom": 2
+ }
+ },
+ InformationNode: {},
+ Issue: {},
+ IssueType: {
+ enumValues: {
+ "error": 1,
+ "warning": 2
+ }
+ },
+ Phase: {},
+ ProcessTemplateType: {
+ enumValues: {
+ "custom": 0,
+ "default": 1,
+ "upgrade": 2
+ }
+ },
+ PullRequestTrigger: {},
+ QueryDeletedOption: {
+ enumValues: {
+ "excludeDeleted": 0,
+ "includeDeleted": 1,
+ "onlyDeleted": 2
+ }
+ },
+ QueueOptions: {
+ enumValues: {
+ "none": 0,
+ "doNotRun": 1
+ }
+ },
+ QueuePriority: {
+ enumValues: {
+ "low": 5,
+ "belowNormal": 4,
+ "normal": 3,
+ "aboveNormal": 2,
+ "high": 1
+ }
+ },
+ RepositoryCleanOptions: {
+ enumValues: {
+ "source": 0,
+ "sourceAndOutputDir": 1,
+ "sourceDir": 2,
+ "allBuildDir": 3
+ }
+ },
+ RepositoryWebhook: {},
+ ResultSet: {
+ enumValues: {
+ "all": 0,
+ "top": 1
+ }
+ },
+ RetentionLease: {},
+ Schedule: {},
+ ScheduleDays: {
+ enumValues: {
+ "none": 0,
+ "monday": 1,
+ "tuesday": 2,
+ "wednesday": 4,
+ "thursday": 8,
+ "friday": 16,
+ "saturday": 32,
+ "sunday": 64,
+ "all": 127
+ }
+ },
+ ScheduleTrigger: {},
+ ServiceHostStatus: {
+ enumValues: {
+ "online": 1,
+ "offline": 2
+ }
+ },
+ SourceProviderAttributes: {},
+ SourceProviderAvailability: {
+ enumValues: {
+ "hosted": 1,
+ "onPremises": 2,
+ "all": 3
+ }
+ },
+ StageUpdateType: {
+ enumValues: {
+ "cancel": 0,
+ "retry": 1
+ }
+ },
+ SupportedTrigger: {},
+ SupportLevel: {
+ enumValues: {
+ "unsupported": 0,
+ "supported": 1,
+ "required": 2
+ }
+ },
+ TaskResult: {
+ enumValues: {
+ "succeeded": 0,
+ "succeededWithIssues": 1,
+ "failed": 2,
+ "canceled": 3,
+ "skipped": 4,
+ "abandoned": 5
+ }
+ },
+ Timeline: {},
+ TimelineRecord: {},
+ TimelineRecordState: {
+ enumValues: {
+ "pending": 0,
+ "inProgress": 1,
+ "completed": 2
+ }
+ },
+ TimelineRecordsUpdatedEvent: {},
+ UpdateStageParameters: {},
+ ValidationResult: {
+ enumValues: {
+ "ok": 0,
+ "warning": 1,
+ "error": 2
+ }
+ },
+ WorkspaceMapping: {},
+ WorkspaceMappingType: {
+ enumValues: {
+ "map": 0,
+ "cloak": 1
+ }
+ },
+ WorkspaceTemplate: {},
+ XamlBuildDefinition: {},
+};
+exports.TypeInfo.Build.fields = {
+ controller: {
+ typeInfo: exports.TypeInfo.BuildController
+ },
+ definition: {
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ deletedDate: {
+ isDate: true,
+ },
+ finishTime: {
+ isDate: true,
+ },
+ lastChangedDate: {
+ isDate: true,
+ },
+ priority: {
+ enumType: exports.TypeInfo.QueuePriority
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ queueOptions: {
+ enumType: exports.TypeInfo.QueueOptions
+ },
+ queueTime: {
+ isDate: true,
+ },
+ reason: {
+ enumType: exports.TypeInfo.BuildReason
+ },
+ result: {
+ enumType: exports.TypeInfo.BuildResult
+ },
+ startTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.BuildStatus
+ },
+ triggeredByBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ validationResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildRequestValidationResult
+ }
+};
+exports.TypeInfo.BuildAgent.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.AgentStatus
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildCompletedEvent.fields = {
+ build: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Change
+ },
+ testResults: {
+ typeInfo: TFS_TestManagement_Contracts.TypeInfo.AggregatedResultsAnalysis
+ },
+ timelineRecords: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TimelineRecord
+ }
+};
+exports.TypeInfo.BuildCompletionTrigger.fields = {
+ definition: {
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.BuildController.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.ControllerStatus
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildDefinition.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ draftOf: {
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ drafts: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ jobAuthorizationScope: {
+ enumType: exports.TypeInfo.BuildAuthorizationScope
+ },
+ latestBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ latestCompletedBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ metrics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildMetric
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ quality: {
+ enumType: exports.TypeInfo.DefinitionQuality
+ },
+ queueStatus: {
+ enumType: exports.TypeInfo.DefinitionQueueStatus
+ },
+ triggers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildTrigger
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionType
+ }
+};
+exports.TypeInfo.BuildDefinition3_2.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ draftOf: {
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ drafts: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ jobAuthorizationScope: {
+ enumType: exports.TypeInfo.BuildAuthorizationScope
+ },
+ latestBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ latestCompletedBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ metrics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildMetric
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ quality: {
+ enumType: exports.TypeInfo.DefinitionQuality
+ },
+ queueStatus: {
+ enumType: exports.TypeInfo.DefinitionQueueStatus
+ },
+ triggers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildTrigger
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionType
+ }
+};
+exports.TypeInfo.BuildDefinitionReference.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ draftOf: {
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ drafts: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ latestBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ latestCompletedBuild: {
+ typeInfo: exports.TypeInfo.Build
+ },
+ metrics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildMetric
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ quality: {
+ enumType: exports.TypeInfo.DefinitionQuality
+ },
+ queueStatus: {
+ enumType: exports.TypeInfo.DefinitionQueueStatus
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionType
+ }
+};
+exports.TypeInfo.BuildDefinitionReference3_2.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ draftOf: {
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ drafts: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DefinitionReference
+ },
+ metrics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildMetric
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ quality: {
+ enumType: exports.TypeInfo.DefinitionQuality
+ },
+ queueStatus: {
+ enumType: exports.TypeInfo.DefinitionQueueStatus
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionType
+ }
+};
+exports.TypeInfo.BuildDefinitionRevision.fields = {
+ changedDate: {
+ isDate: true,
+ },
+ changeType: {
+ enumType: exports.TypeInfo.AuditAction
+ }
+};
+exports.TypeInfo.BuildDefinitionSourceProvider.fields = {
+ lastModified: {
+ isDate: true,
+ },
+ supportedTriggerTypes: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.BuildDefinitionTemplate.fields = {
+ template: {
+ typeInfo: exports.TypeInfo.BuildDefinition
+ }
+};
+exports.TypeInfo.BuildDefinitionTemplate3_2.fields = {
+ template: {
+ typeInfo: exports.TypeInfo.BuildDefinition3_2
+ }
+};
+exports.TypeInfo.BuildDeletedEvent.fields = {
+ build: {
+ typeInfo: exports.TypeInfo.Build
+ }
+};
+exports.TypeInfo.BuildDeployment.fields = {
+ deployment: {
+ typeInfo: exports.TypeInfo.BuildSummary
+ }
+};
+exports.TypeInfo.BuildLog.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastChangedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildMetric.fields = {
+ date: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildOptionDefinition.fields = {
+ inputs: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildOptionInputDefinition
+ }
+};
+exports.TypeInfo.BuildOptionInputDefinition.fields = {
+ type: {
+ enumType: exports.TypeInfo.BuildOptionInputType
+ }
+};
+exports.TypeInfo.BuildProcessTemplate.fields = {
+ supportedReasons: {
+ enumType: exports.TypeInfo.BuildReason
+ },
+ templateType: {
+ enumType: exports.TypeInfo.ProcessTemplateType
+ }
+};
+exports.TypeInfo.BuildQueuedEvent.fields = {
+ build: {
+ typeInfo: exports.TypeInfo.Build
+ }
+};
+exports.TypeInfo.BuildReference.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ queueTime: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.BuildResult
+ },
+ startTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.BuildStatus
+ }
+};
+exports.TypeInfo.BuildRequestValidationResult.fields = {
+ result: {
+ enumType: exports.TypeInfo.ValidationResult
+ }
+};
+exports.TypeInfo.BuildRetentionHistory.fields = {
+ buildRetentionSamples: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildRetentionSample
+ }
+};
+exports.TypeInfo.BuildRetentionSample.fields = {
+ sampleTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildServer.fields = {
+ status: {
+ enumType: exports.TypeInfo.ServiceHostStatus
+ },
+ statusChangedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildSummary.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ reason: {
+ enumType: exports.TypeInfo.BuildReason
+ },
+ startTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.BuildStatus
+ }
+};
+exports.TypeInfo.BuildTagsAddedEvent.fields = {
+ build: {
+ typeInfo: exports.TypeInfo.Build
+ }
+};
+exports.TypeInfo.BuildTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.BuildUpdatedEvent.fields = {
+ build: {
+ typeInfo: exports.TypeInfo.Build
+ }
+};
+exports.TypeInfo.Change.fields = {
+ timestamp: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ContinuousDeploymentDefinition.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.ContinuousIntegrationTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.DefinitionReference.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ queueStatus: {
+ enumType: exports.TypeInfo.DefinitionQueueStatus
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionType
+ }
+};
+exports.TypeInfo.DesignerProcess.fields = {
+ phases: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Phase
+ }
+};
+exports.TypeInfo.Folder.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastChangedDate: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.GatedCheckInTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.InformationNode.fields = {
+ lastModifiedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Issue.fields = {
+ type: {
+ enumType: exports.TypeInfo.IssueType
+ }
+};
+exports.TypeInfo.Phase.fields = {
+ jobAuthorizationScope: {
+ enumType: exports.TypeInfo.BuildAuthorizationScope
+ }
+};
+exports.TypeInfo.PullRequestTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.RepositoryWebhook.fields = {
+ types: {
+ isArray: true,
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.RetentionLease.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ validUntil: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Schedule.fields = {
+ daysToBuild: {
+ enumType: exports.TypeInfo.ScheduleDays
+ }
+};
+exports.TypeInfo.ScheduleTrigger.fields = {
+ schedules: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Schedule
+ },
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.SourceProviderAttributes.fields = {
+ supportedTriggers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.SupportedTrigger
+ }
+};
+exports.TypeInfo.SupportedTrigger.fields = {
+ supportedCapabilities: {
+ isDictionary: true,
+ dictionaryValueEnumType: exports.TypeInfo.SupportLevel
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ }
+};
+exports.TypeInfo.Timeline.fields = {
+ lastChangedOn: {
+ isDate: true,
+ },
+ records: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TimelineRecord
+ }
+};
+exports.TypeInfo.TimelineRecord.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ issues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Issue
+ },
+ lastModified: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ },
+ startTime: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.TimelineRecordState
+ }
+};
+exports.TypeInfo.TimelineRecordsUpdatedEvent.fields = {
+ timelineRecords: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TimelineRecord
+ }
+};
+exports.TypeInfo.UpdateStageParameters.fields = {
+ state: {
+ enumType: exports.TypeInfo.StageUpdateType
+ }
+};
+exports.TypeInfo.WorkspaceMapping.fields = {
+ mappingType: {
+ enumType: exports.TypeInfo.WorkspaceMappingType
+ }
+};
+exports.TypeInfo.WorkspaceTemplate.fields = {
+ lastModifiedDate: {
+ isDate: true,
+ },
+ mappings: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WorkspaceMapping
+ }
+};
+exports.TypeInfo.XamlBuildDefinition.fields = {
+ controller: {
+ typeInfo: exports.TypeInfo.BuildController
+ },
+ createdDate: {
+ isDate: true,
+ },
+ createdOn: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ queueStatus: {
+ enumType: exports.TypeInfo.DefinitionQueueStatus
+ },
+ supportedReasons: {
+ enumType: exports.TypeInfo.BuildReason
+ },
+ triggerType: {
+ enumType: exports.TypeInfo.DefinitionTriggerType
+ },
+ type: {
+ enumType: exports.TypeInfo.DefinitionType
+ }
+};
+
+
+/***/ }),
+
+/***/ 4743:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Specifies the additional data retrieval options for comments.
+ */
+var CommentExpandOptions;
+(function (CommentExpandOptions) {
+ /**
+ * Include comments only, no mentions, reactions or rendered text
+ */
+ CommentExpandOptions[CommentExpandOptions["None"] = 0] = "None";
+ /**
+ * Include comment reactions
+ */
+ CommentExpandOptions[CommentExpandOptions["Reactions"] = 1] = "Reactions";
+ /**
+ * Include the rendered text (html) in addition to markdown text
+ */
+ CommentExpandOptions[CommentExpandOptions["RenderedText"] = 8] = "RenderedText";
+ CommentExpandOptions[CommentExpandOptions["RenderedTextOnly"] = 16] = "RenderedTextOnly";
+ /**
+ * If specified, then responses will be expanded in the results
+ */
+ CommentExpandOptions[CommentExpandOptions["Children"] = 32] = "Children";
+ /**
+ * Expand everything including Reactions, Mentions and also include RenderedText (HTML) for markdown comments
+ */
+ CommentExpandOptions[CommentExpandOptions["All"] = -17] = "All";
+})(CommentExpandOptions = exports.CommentExpandOptions || (exports.CommentExpandOptions = {}));
+/**
+ * Format of the comment. Ex. Markdown, Html.
+ */
+var CommentFormat;
+(function (CommentFormat) {
+ CommentFormat[CommentFormat["Markdown"] = 0] = "Markdown";
+ CommentFormat[CommentFormat["Html"] = 1] = "Html";
+})(CommentFormat = exports.CommentFormat || (exports.CommentFormat = {}));
+var CommentMentionType;
+(function (CommentMentionType) {
+ /**
+ * An identity was mentioned by using the format @{VSID}
+ */
+ CommentMentionType[CommentMentionType["Person"] = 0] = "Person";
+ /**
+ * A work item was mentioned by using the format #{Work Item ID}
+ */
+ CommentMentionType[CommentMentionType["WorkItem"] = 1] = "WorkItem";
+ /**
+ * A Pull Request was mentioned by using the format !{PR Number}
+ */
+ CommentMentionType[CommentMentionType["PullRequest"] = 2] = "PullRequest";
+})(CommentMentionType = exports.CommentMentionType || (exports.CommentMentionType = {}));
+/**
+ * Represents different reaction types for a comment
+ */
+var CommentReactionType;
+(function (CommentReactionType) {
+ CommentReactionType[CommentReactionType["Like"] = 0] = "Like";
+ CommentReactionType[CommentReactionType["Dislike"] = 1] = "Dislike";
+ CommentReactionType[CommentReactionType["Heart"] = 2] = "Heart";
+ CommentReactionType[CommentReactionType["Hooray"] = 3] = "Hooray";
+ CommentReactionType[CommentReactionType["Smile"] = 4] = "Smile";
+ CommentReactionType[CommentReactionType["Confused"] = 5] = "Confused";
+})(CommentReactionType = exports.CommentReactionType || (exports.CommentReactionType = {}));
+var CommentSortOrder;
+(function (CommentSortOrder) {
+ /**
+ * The results will be sorted in Ascending order.
+ */
+ CommentSortOrder[CommentSortOrder["Asc"] = 1] = "Asc";
+ /**
+ * The results will be sorted in Descending order.
+ */
+ CommentSortOrder[CommentSortOrder["Desc"] = 2] = "Desc";
+})(CommentSortOrder = exports.CommentSortOrder || (exports.CommentSortOrder = {}));
+/**
+ * Represents the possible comment states.
+ */
+var CommentState;
+(function (CommentState) {
+ CommentState[CommentState["Active"] = 0] = "Active";
+ CommentState[CommentState["Resolved"] = 1] = "Resolved";
+ CommentState[CommentState["Closed"] = 2] = "Closed";
+})(CommentState = exports.CommentState || (exports.CommentState = {}));
+exports.TypeInfo = {
+ Comment: {},
+ CommentAttachment: {},
+ CommentExpandOptions: {
+ enumValues: {
+ "none": 0,
+ "reactions": 1,
+ "renderedText": 8,
+ "renderedTextOnly": 16,
+ "children": 32,
+ "all": -17
+ }
+ },
+ CommentFormat: {
+ enumValues: {
+ "markdown": 0,
+ "html": 1
+ }
+ },
+ CommentList: {},
+ CommentMention: {},
+ CommentMentionType: {
+ enumValues: {
+ "person": 0,
+ "workItem": 1,
+ "pullRequest": 2
+ }
+ },
+ CommentReaction: {},
+ CommentReactionType: {
+ enumValues: {
+ "like": 0,
+ "dislike": 1,
+ "heart": 2,
+ "hooray": 3,
+ "smile": 4,
+ "confused": 5
+ }
+ },
+ CommentSortOrder: {
+ enumValues: {
+ "asc": 1,
+ "desc": 2
+ }
+ },
+ CommentState: {
+ enumValues: {
+ "active": 0,
+ "resolved": 1,
+ "closed": 2
+ }
+ },
+ CommentUpdateParameters: {},
+ CommentVersion: {},
+};
+exports.TypeInfo.Comment.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ mentions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.CommentMention
+ },
+ modifiedDate: {
+ isDate: true,
+ },
+ reactions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.CommentReaction
+ },
+ replies: {
+ typeInfo: exports.TypeInfo.CommentList
+ },
+ state: {
+ enumType: exports.TypeInfo.CommentState
+ }
+};
+exports.TypeInfo.CommentAttachment.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.CommentList.fields = {
+ comments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Comment
+ }
+};
+exports.TypeInfo.CommentMention.fields = {
+ type: {
+ enumType: exports.TypeInfo.CommentMentionType
+ }
+};
+exports.TypeInfo.CommentReaction.fields = {
+ type: {
+ enumType: exports.TypeInfo.CommentReactionType
+ }
+};
+exports.TypeInfo.CommentUpdateParameters.fields = {
+ state: {
+ enumType: exports.TypeInfo.CommentState
+ }
+};
+exports.TypeInfo.CommentVersion.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ modifiedDate: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.CommentState
+ }
+};
+
+
+/***/ }),
+
+/***/ 3931:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var ConnectedServiceKind;
+(function (ConnectedServiceKind) {
+ /**
+ * Custom or unknown service
+ */
+ ConnectedServiceKind[ConnectedServiceKind["Custom"] = 0] = "Custom";
+ /**
+ * Azure Subscription
+ */
+ ConnectedServiceKind[ConnectedServiceKind["AzureSubscription"] = 1] = "AzureSubscription";
+ /**
+ * Chef Connection
+ */
+ ConnectedServiceKind[ConnectedServiceKind["Chef"] = 2] = "Chef";
+ /**
+ * Generic Connection
+ */
+ ConnectedServiceKind[ConnectedServiceKind["Generic"] = 3] = "Generic";
+})(ConnectedServiceKind = exports.ConnectedServiceKind || (exports.ConnectedServiceKind = {}));
+/**
+ * Type of process customization on a collection.
+ */
+var ProcessCustomizationType;
+(function (ProcessCustomizationType) {
+ /**
+ * Process customization can't be computed.
+ */
+ ProcessCustomizationType[ProcessCustomizationType["Unknown"] = -1] = "Unknown";
+ /**
+ * Customization based on project-scoped xml customization
+ */
+ ProcessCustomizationType[ProcessCustomizationType["Xml"] = 0] = "Xml";
+ /**
+ * Customization based on process inheritance
+ */
+ ProcessCustomizationType[ProcessCustomizationType["Inherited"] = 1] = "Inherited";
+})(ProcessCustomizationType = exports.ProcessCustomizationType || (exports.ProcessCustomizationType = {}));
+var ProcessType;
+(function (ProcessType) {
+ ProcessType[ProcessType["System"] = 0] = "System";
+ ProcessType[ProcessType["Custom"] = 1] = "Custom";
+ ProcessType[ProcessType["Inherited"] = 2] = "Inherited";
+})(ProcessType = exports.ProcessType || (exports.ProcessType = {}));
+var ProjectChangeType;
+(function (ProjectChangeType) {
+ ProjectChangeType[ProjectChangeType["Modified"] = 0] = "Modified";
+ ProjectChangeType[ProjectChangeType["Deleted"] = 1] = "Deleted";
+ ProjectChangeType[ProjectChangeType["Added"] = 2] = "Added";
+})(ProjectChangeType = exports.ProjectChangeType || (exports.ProjectChangeType = {}));
+var ProjectVisibility;
+(function (ProjectVisibility) {
+ ProjectVisibility[ProjectVisibility["Unchanged"] = -1] = "Unchanged";
+ /**
+ * The project is only visible to users with explicit access.
+ */
+ ProjectVisibility[ProjectVisibility["Private"] = 0] = "Private";
+ /**
+ * Enterprise level project visibility
+ */
+ ProjectVisibility[ProjectVisibility["Organization"] = 1] = "Organization";
+ /**
+ * The project is visible to all.
+ */
+ ProjectVisibility[ProjectVisibility["Public"] = 2] = "Public";
+ ProjectVisibility[ProjectVisibility["SystemPrivate"] = 3] = "SystemPrivate";
+})(ProjectVisibility = exports.ProjectVisibility || (exports.ProjectVisibility = {}));
+var SourceControlTypes;
+(function (SourceControlTypes) {
+ SourceControlTypes[SourceControlTypes["Tfvc"] = 1] = "Tfvc";
+ SourceControlTypes[SourceControlTypes["Git"] = 2] = "Git";
+})(SourceControlTypes = exports.SourceControlTypes || (exports.SourceControlTypes = {}));
+exports.TypeInfo = {
+ ConnectedServiceKind: {
+ enumValues: {
+ "custom": 0,
+ "azureSubscription": 1,
+ "chef": 2,
+ "generic": 3
+ }
+ },
+ Process: {},
+ ProcessCustomizationType: {
+ enumValues: {
+ "unknown": -1,
+ "xml": 0,
+ "inherited": 1
+ }
+ },
+ ProcessType: {
+ enumValues: {
+ "system": 0,
+ "custom": 1,
+ "inherited": 2
+ }
+ },
+ ProjectChangeType: {
+ enumValues: {
+ "modified": 0,
+ "deleted": 1,
+ "added": 2
+ }
+ },
+ ProjectInfo: {},
+ ProjectMessage: {},
+ ProjectVisibility: {
+ enumValues: {
+ "private": 0,
+ "organization": 1,
+ "public": 2
+ }
+ },
+ SourceControlTypes: {
+ enumValues: {
+ "tfvc": 1,
+ "git": 2
+ }
+ },
+ TeamProject: {},
+ TeamProjectCollection: {},
+ TeamProjectReference: {},
+ TemporaryDataCreatedDTO: {},
+ WebApiConnectedService: {},
+ WebApiConnectedServiceDetails: {},
+ WebApiProject: {},
+};
+exports.TypeInfo.Process.fields = {
+ type: {
+ enumType: exports.TypeInfo.ProcessType
+ }
+};
+exports.TypeInfo.ProjectInfo.fields = {
+ lastUpdateTime: {
+ isDate: true,
+ },
+ visibility: {
+ enumType: exports.TypeInfo.ProjectVisibility
+ }
+};
+exports.TypeInfo.ProjectMessage.fields = {
+ project: {
+ typeInfo: exports.TypeInfo.ProjectInfo
+ },
+ projectChangeType: {
+ enumType: exports.TypeInfo.ProjectChangeType
+ }
+};
+exports.TypeInfo.TeamProject.fields = {
+ lastUpdateTime: {
+ isDate: true,
+ },
+ visibility: {
+ enumType: exports.TypeInfo.ProjectVisibility
+ }
+};
+exports.TypeInfo.TeamProjectCollection.fields = {
+ processCustomizationType: {
+ enumType: exports.TypeInfo.ProcessCustomizationType
+ }
+};
+exports.TypeInfo.TeamProjectReference.fields = {
+ lastUpdateTime: {
+ isDate: true,
+ },
+ visibility: {
+ enumType: exports.TypeInfo.ProjectVisibility
+ }
+};
+exports.TypeInfo.TemporaryDataCreatedDTO.fields = {
+ expirationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.WebApiConnectedService.fields = {
+ project: {
+ typeInfo: exports.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.WebApiConnectedServiceDetails.fields = {
+ connectedServiceMetaData: {
+ typeInfo: exports.TypeInfo.WebApiConnectedService
+ }
+};
+exports.TypeInfo.WebApiProject.fields = {
+ lastUpdateTime: {
+ isDate: true,
+ },
+ visibility: {
+ enumType: exports.TypeInfo.ProjectVisibility
+ }
+};
+
+
+/***/ }),
+
+/***/ 6890:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * identifies the scope of dashboard storage and permissions.
+ */
+var DashboardScope;
+(function (DashboardScope) {
+ /**
+ * [DEPRECATED] Dashboard is scoped to the collection user.
+ */
+ DashboardScope[DashboardScope["Collection_User"] = 0] = "Collection_User";
+ /**
+ * Dashboard is scoped to the team.
+ */
+ DashboardScope[DashboardScope["Project_Team"] = 1] = "Project_Team";
+ /**
+ * Dashboard is scoped to the project.
+ */
+ DashboardScope[DashboardScope["Project"] = 2] = "Project";
+})(DashboardScope = exports.DashboardScope || (exports.DashboardScope = {}));
+var GroupMemberPermission;
+(function (GroupMemberPermission) {
+ GroupMemberPermission[GroupMemberPermission["None"] = 0] = "None";
+ GroupMemberPermission[GroupMemberPermission["Edit"] = 1] = "Edit";
+ GroupMemberPermission[GroupMemberPermission["Manage"] = 2] = "Manage";
+ GroupMemberPermission[GroupMemberPermission["ManagePermissions"] = 3] = "ManagePermissions";
+})(GroupMemberPermission = exports.GroupMemberPermission || (exports.GroupMemberPermission = {}));
+var TeamDashboardPermission;
+(function (TeamDashboardPermission) {
+ TeamDashboardPermission[TeamDashboardPermission["None"] = 0] = "None";
+ TeamDashboardPermission[TeamDashboardPermission["Read"] = 1] = "Read";
+ TeamDashboardPermission[TeamDashboardPermission["Create"] = 2] = "Create";
+ TeamDashboardPermission[TeamDashboardPermission["Edit"] = 4] = "Edit";
+ TeamDashboardPermission[TeamDashboardPermission["Delete"] = 8] = "Delete";
+ TeamDashboardPermission[TeamDashboardPermission["ManagePermissions"] = 16] = "ManagePermissions";
+})(TeamDashboardPermission = exports.TeamDashboardPermission || (exports.TeamDashboardPermission = {}));
+/**
+ * data contract required for the widget to function in a webaccess area or page.
+ */
+var WidgetScope;
+(function (WidgetScope) {
+ WidgetScope[WidgetScope["Collection_User"] = 0] = "Collection_User";
+ WidgetScope[WidgetScope["Project_Team"] = 1] = "Project_Team";
+})(WidgetScope = exports.WidgetScope || (exports.WidgetScope = {}));
+exports.TypeInfo = {
+ CopyDashboardOptions: {},
+ CopyDashboardResponse: {},
+ Dashboard: {},
+ DashboardGroup: {},
+ DashboardGroupEntry: {},
+ DashboardGroupEntryResponse: {},
+ DashboardResponse: {},
+ DashboardScope: {
+ enumValues: {
+ "collection_User": 0,
+ "project_Team": 1,
+ "project": 2
+ }
+ },
+ GroupMemberPermission: {
+ enumValues: {
+ "none": 0,
+ "edit": 1,
+ "manage": 2,
+ "managePermissions": 3
+ }
+ },
+ TeamDashboardPermission: {
+ enumValues: {
+ "none": 0,
+ "read": 1,
+ "create": 2,
+ "edit": 4,
+ "delete": 8,
+ "managePermissions": 16
+ }
+ },
+ Widget: {},
+ WidgetMetadata: {},
+ WidgetMetadataResponse: {},
+ WidgetResponse: {},
+ WidgetScope: {
+ enumValues: {
+ "collection_User": 0,
+ "project_Team": 1
+ }
+ },
+ WidgetsVersionedList: {},
+ WidgetTypesResponse: {},
+};
+exports.TypeInfo.CopyDashboardOptions.fields = {
+ copyDashboardScope: {
+ enumType: exports.TypeInfo.DashboardScope
+ }
+};
+exports.TypeInfo.CopyDashboardResponse.fields = {
+ copiedDashboard: {
+ typeInfo: exports.TypeInfo.Dashboard
+ },
+ copyDashboardOptions: {
+ typeInfo: exports.TypeInfo.CopyDashboardOptions
+ }
+};
+exports.TypeInfo.Dashboard.fields = {
+ dashboardScope: {
+ enumType: exports.TypeInfo.DashboardScope
+ },
+ widgets: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Widget
+ }
+};
+exports.TypeInfo.DashboardGroup.fields = {
+ dashboardEntries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DashboardGroupEntry
+ },
+ permission: {
+ enumType: exports.TypeInfo.GroupMemberPermission
+ },
+ teamDashboardPermission: {
+ enumType: exports.TypeInfo.TeamDashboardPermission
+ }
+};
+exports.TypeInfo.DashboardGroupEntry.fields = {
+ dashboardScope: {
+ enumType: exports.TypeInfo.DashboardScope
+ },
+ widgets: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Widget
+ }
+};
+exports.TypeInfo.DashboardGroupEntryResponse.fields = {
+ dashboardScope: {
+ enumType: exports.TypeInfo.DashboardScope
+ },
+ widgets: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Widget
+ }
+};
+exports.TypeInfo.DashboardResponse.fields = {
+ dashboardScope: {
+ enumType: exports.TypeInfo.DashboardScope
+ },
+ widgets: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Widget
+ }
+};
+exports.TypeInfo.Widget.fields = {
+ dashboard: {
+ typeInfo: exports.TypeInfo.Dashboard
+ }
+};
+exports.TypeInfo.WidgetMetadata.fields = {
+ supportedScopes: {
+ isArray: true,
+ enumType: exports.TypeInfo.WidgetScope
+ }
+};
+exports.TypeInfo.WidgetMetadataResponse.fields = {
+ widgetMetadata: {
+ typeInfo: exports.TypeInfo.WidgetMetadata
+ }
+};
+exports.TypeInfo.WidgetResponse.fields = {
+ dashboard: {
+ typeInfo: exports.TypeInfo.Dashboard
+ }
+};
+exports.TypeInfo.WidgetsVersionedList.fields = {
+ widgets: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Widget
+ }
+};
+exports.TypeInfo.WidgetTypesResponse.fields = {
+ widgetTypes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WidgetMetadata
+ }
+};
+
+
+/***/ }),
+
+/***/ 7357:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const GalleryInterfaces = __nccwpck_require__(8905);
+/**
+ * How the acquisition is assigned
+ */
+var AcquisitionAssignmentType;
+(function (AcquisitionAssignmentType) {
+ AcquisitionAssignmentType[AcquisitionAssignmentType["None"] = 0] = "None";
+ /**
+ * Just assign for me
+ */
+ AcquisitionAssignmentType[AcquisitionAssignmentType["Me"] = 1] = "Me";
+ /**
+ * Assign for all users in the account
+ */
+ AcquisitionAssignmentType[AcquisitionAssignmentType["All"] = 2] = "All";
+})(AcquisitionAssignmentType = exports.AcquisitionAssignmentType || (exports.AcquisitionAssignmentType = {}));
+var AcquisitionOperationState;
+(function (AcquisitionOperationState) {
+ /**
+ * Not allowed to use this AcquisitionOperation
+ */
+ AcquisitionOperationState[AcquisitionOperationState["Disallow"] = 0] = "Disallow";
+ /**
+ * Allowed to use this AcquisitionOperation
+ */
+ AcquisitionOperationState[AcquisitionOperationState["Allow"] = 1] = "Allow";
+ /**
+ * Operation has already been completed and is no longer available
+ */
+ AcquisitionOperationState[AcquisitionOperationState["Completed"] = 3] = "Completed";
+})(AcquisitionOperationState = exports.AcquisitionOperationState || (exports.AcquisitionOperationState = {}));
+/**
+ * Set of different types of operations that can be requested.
+ */
+var AcquisitionOperationType;
+(function (AcquisitionOperationType) {
+ /**
+ * Not yet used
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Get"] = 0] = "Get";
+ /**
+ * Install this extension into the host provided
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Install"] = 1] = "Install";
+ /**
+ * Buy licenses for this extension and install into the host provided
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Buy"] = 2] = "Buy";
+ /**
+ * Try this extension
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Try"] = 3] = "Try";
+ /**
+ * Request this extension for installation
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Request"] = 4] = "Request";
+ /**
+ * No action found
+ */
+ AcquisitionOperationType[AcquisitionOperationType["None"] = 5] = "None";
+ /**
+ * Request admins for purchasing extension
+ */
+ AcquisitionOperationType[AcquisitionOperationType["PurchaseRequest"] = 6] = "PurchaseRequest";
+})(AcquisitionOperationType = exports.AcquisitionOperationType || (exports.AcquisitionOperationType = {}));
+/**
+ * Represents different ways of including contributions based on licensing
+ */
+var ContributionLicensingBehaviorType;
+(function (ContributionLicensingBehaviorType) {
+ /**
+ * Default value - only include the contribution if the user is licensed for the extension
+ */
+ ContributionLicensingBehaviorType[ContributionLicensingBehaviorType["OnlyIfLicensed"] = 0] = "OnlyIfLicensed";
+ /**
+ * Only include the contribution if the user is NOT licensed for the extension
+ */
+ ContributionLicensingBehaviorType[ContributionLicensingBehaviorType["OnlyIfUnlicensed"] = 1] = "OnlyIfUnlicensed";
+ /**
+ * Always include the contribution regardless of whether or not the user is licensed for the extension
+ */
+ ContributionLicensingBehaviorType[ContributionLicensingBehaviorType["AlwaysInclude"] = 2] = "AlwaysInclude";
+})(ContributionLicensingBehaviorType = exports.ContributionLicensingBehaviorType || (exports.ContributionLicensingBehaviorType = {}));
+/**
+ * The type of value used for a property
+ */
+var ContributionPropertyType;
+(function (ContributionPropertyType) {
+ /**
+ * Contribution type is unknown (value may be anything)
+ */
+ ContributionPropertyType[ContributionPropertyType["Unknown"] = 0] = "Unknown";
+ /**
+ * Value is a string
+ */
+ ContributionPropertyType[ContributionPropertyType["String"] = 1] = "String";
+ /**
+ * Value is a Uri
+ */
+ ContributionPropertyType[ContributionPropertyType["Uri"] = 2] = "Uri";
+ /**
+ * Value is a GUID
+ */
+ ContributionPropertyType[ContributionPropertyType["Guid"] = 4] = "Guid";
+ /**
+ * Value is True or False
+ */
+ ContributionPropertyType[ContributionPropertyType["Boolean"] = 8] = "Boolean";
+ /**
+ * Value is an integer
+ */
+ ContributionPropertyType[ContributionPropertyType["Integer"] = 16] = "Integer";
+ /**
+ * Value is a double
+ */
+ ContributionPropertyType[ContributionPropertyType["Double"] = 32] = "Double";
+ /**
+ * Value is a DateTime object
+ */
+ ContributionPropertyType[ContributionPropertyType["DateTime"] = 64] = "DateTime";
+ /**
+ * Value is a generic Dictionary/JObject/property bag
+ */
+ ContributionPropertyType[ContributionPropertyType["Dictionary"] = 128] = "Dictionary";
+ /**
+ * Value is an array
+ */
+ ContributionPropertyType[ContributionPropertyType["Array"] = 256] = "Array";
+ /**
+ * Value is an arbitrary/custom object
+ */
+ ContributionPropertyType[ContributionPropertyType["Object"] = 512] = "Object";
+})(ContributionPropertyType = exports.ContributionPropertyType || (exports.ContributionPropertyType = {}));
+/**
+ * Options that control the contributions to include in a query
+ */
+var ContributionQueryOptions;
+(function (ContributionQueryOptions) {
+ ContributionQueryOptions[ContributionQueryOptions["None"] = 0] = "None";
+ /**
+ * Include the direct contributions that have the ids queried.
+ */
+ ContributionQueryOptions[ContributionQueryOptions["IncludeSelf"] = 16] = "IncludeSelf";
+ /**
+ * Include the contributions that directly target the contributions queried.
+ */
+ ContributionQueryOptions[ContributionQueryOptions["IncludeChildren"] = 32] = "IncludeChildren";
+ /**
+ * Include the contributions from the entire sub-tree targeting the contributions queried.
+ */
+ ContributionQueryOptions[ContributionQueryOptions["IncludeSubTree"] = 96] = "IncludeSubTree";
+ /**
+ * Include the contribution being queried as well as all contributions that target them recursively.
+ */
+ ContributionQueryOptions[ContributionQueryOptions["IncludeAll"] = 112] = "IncludeAll";
+ /**
+ * Some callers may want the entire tree back without constraint evaluation being performed.
+ */
+ ContributionQueryOptions[ContributionQueryOptions["IgnoreConstraints"] = 256] = "IgnoreConstraints";
+})(ContributionQueryOptions = exports.ContributionQueryOptions || (exports.ContributionQueryOptions = {}));
+/**
+ * Set of flags applied to extensions that are relevant to contribution consumers
+ */
+var ExtensionFlags;
+(function (ExtensionFlags) {
+ /**
+ * A built-in extension is installed for all VSTS accounts by default
+ */
+ ExtensionFlags[ExtensionFlags["BuiltIn"] = 1] = "BuiltIn";
+ /**
+ * The extension comes from a fully-trusted publisher
+ */
+ ExtensionFlags[ExtensionFlags["Trusted"] = 2] = "Trusted";
+})(ExtensionFlags = exports.ExtensionFlags || (exports.ExtensionFlags = {}));
+/**
+ * Represents the state of an extension request
+ */
+var ExtensionRequestState;
+(function (ExtensionRequestState) {
+ /**
+ * The request has been opened, but not yet responded to
+ */
+ ExtensionRequestState[ExtensionRequestState["Open"] = 0] = "Open";
+ /**
+ * The request was accepted (extension installed or license assigned)
+ */
+ ExtensionRequestState[ExtensionRequestState["Accepted"] = 1] = "Accepted";
+ /**
+ * The request was rejected (extension not installed or license not assigned)
+ */
+ ExtensionRequestState[ExtensionRequestState["Rejected"] = 2] = "Rejected";
+})(ExtensionRequestState = exports.ExtensionRequestState || (exports.ExtensionRequestState = {}));
+var ExtensionRequestUpdateType;
+(function (ExtensionRequestUpdateType) {
+ ExtensionRequestUpdateType[ExtensionRequestUpdateType["Created"] = 1] = "Created";
+ ExtensionRequestUpdateType[ExtensionRequestUpdateType["Approved"] = 2] = "Approved";
+ ExtensionRequestUpdateType[ExtensionRequestUpdateType["Rejected"] = 3] = "Rejected";
+ ExtensionRequestUpdateType[ExtensionRequestUpdateType["Deleted"] = 4] = "Deleted";
+})(ExtensionRequestUpdateType = exports.ExtensionRequestUpdateType || (exports.ExtensionRequestUpdateType = {}));
+/**
+ * States of an extension Note: If you add value to this enum, you need to do 2 other things. First add the back compat enum in value src\Vssf\Sdk\Server\Contributions\InstalledExtensionMessage.cs. Second, you can not send the new value on the message bus. You need to remove it from the message bus event prior to being sent.
+ */
+var ExtensionStateFlags;
+(function (ExtensionStateFlags) {
+ /**
+ * No flags set
+ */
+ ExtensionStateFlags[ExtensionStateFlags["None"] = 0] = "None";
+ /**
+ * Extension is disabled
+ */
+ ExtensionStateFlags[ExtensionStateFlags["Disabled"] = 1] = "Disabled";
+ /**
+ * Extension is a built in
+ */
+ ExtensionStateFlags[ExtensionStateFlags["BuiltIn"] = 2] = "BuiltIn";
+ /**
+ * Extension has multiple versions
+ */
+ ExtensionStateFlags[ExtensionStateFlags["MultiVersion"] = 4] = "MultiVersion";
+ /**
+ * Extension is not installed. This is for builtin extensions only and can not otherwise be set.
+ */
+ ExtensionStateFlags[ExtensionStateFlags["UnInstalled"] = 8] = "UnInstalled";
+ /**
+ * Error performing version check
+ */
+ ExtensionStateFlags[ExtensionStateFlags["VersionCheckError"] = 16] = "VersionCheckError";
+ /**
+ * Trusted extensions are ones that are given special capabilities. These tend to come from Microsoft and can't be published by the general public. Note: BuiltIn extensions are always trusted.
+ */
+ ExtensionStateFlags[ExtensionStateFlags["Trusted"] = 32] = "Trusted";
+ /**
+ * Extension is currently in an error state
+ */
+ ExtensionStateFlags[ExtensionStateFlags["Error"] = 64] = "Error";
+ /**
+ * Extension scopes have changed and the extension requires re-authorization
+ */
+ ExtensionStateFlags[ExtensionStateFlags["NeedsReauthorization"] = 128] = "NeedsReauthorization";
+ /**
+ * Error performing auto-upgrade. For example, if the new version has demands not supported the extension cannot be auto-upgraded.
+ */
+ ExtensionStateFlags[ExtensionStateFlags["AutoUpgradeError"] = 256] = "AutoUpgradeError";
+ /**
+ * Extension is currently in a warning state, that can cause a degraded experience. The degraded experience can be caused for example by some installation issues detected such as implicit demands not supported.
+ */
+ ExtensionStateFlags[ExtensionStateFlags["Warning"] = 512] = "Warning";
+})(ExtensionStateFlags = exports.ExtensionStateFlags || (exports.ExtensionStateFlags = {}));
+var ExtensionUpdateType;
+(function (ExtensionUpdateType) {
+ ExtensionUpdateType[ExtensionUpdateType["Installed"] = 1] = "Installed";
+ ExtensionUpdateType[ExtensionUpdateType["Uninstalled"] = 2] = "Uninstalled";
+ ExtensionUpdateType[ExtensionUpdateType["Enabled"] = 3] = "Enabled";
+ ExtensionUpdateType[ExtensionUpdateType["Disabled"] = 4] = "Disabled";
+ ExtensionUpdateType[ExtensionUpdateType["VersionUpdated"] = 5] = "VersionUpdated";
+ ExtensionUpdateType[ExtensionUpdateType["ActionRequired"] = 6] = "ActionRequired";
+ ExtensionUpdateType[ExtensionUpdateType["ActionResolved"] = 7] = "ActionResolved";
+})(ExtensionUpdateType = exports.ExtensionUpdateType || (exports.ExtensionUpdateType = {}));
+/**
+ * Installation issue type (Warning, Error)
+ */
+var InstalledExtensionStateIssueType;
+(function (InstalledExtensionStateIssueType) {
+ /**
+ * Represents an installation warning, for example an implicit demand not supported
+ */
+ InstalledExtensionStateIssueType[InstalledExtensionStateIssueType["Warning"] = 0] = "Warning";
+ /**
+ * Represents an installation error, for example an explicit demand not supported
+ */
+ InstalledExtensionStateIssueType[InstalledExtensionStateIssueType["Error"] = 1] = "Error";
+})(InstalledExtensionStateIssueType = exports.InstalledExtensionStateIssueType || (exports.InstalledExtensionStateIssueType = {}));
+exports.TypeInfo = {
+ AcquisitionAssignmentType: {
+ enumValues: {
+ "none": 0,
+ "me": 1,
+ "all": 2
+ }
+ },
+ AcquisitionOperation: {},
+ AcquisitionOperationState: {
+ enumValues: {
+ "disallow": 0,
+ "allow": 1,
+ "completed": 3
+ }
+ },
+ AcquisitionOperationType: {
+ enumValues: {
+ "get": 0,
+ "install": 1,
+ "buy": 2,
+ "try": 3,
+ "request": 4,
+ "none": 5,
+ "purchaseRequest": 6
+ }
+ },
+ AcquisitionOptions: {},
+ ContributionLicensingBehaviorType: {
+ enumValues: {
+ "onlyIfLicensed": 0,
+ "onlyIfUnlicensed": 1,
+ "alwaysInclude": 2
+ }
+ },
+ ContributionNodeQuery: {},
+ ContributionPropertyDescription: {},
+ ContributionPropertyType: {
+ enumValues: {
+ "unknown": 0,
+ "string": 1,
+ "uri": 2,
+ "guid": 4,
+ "boolean": 8,
+ "integer": 16,
+ "double": 32,
+ "dateTime": 64,
+ "dictionary": 128,
+ "array": 256,
+ "object": 512
+ }
+ },
+ ContributionQueryOptions: {
+ enumValues: {
+ "none": 0,
+ "includeSelf": 16,
+ "includeChildren": 32,
+ "includeSubTree": 96,
+ "includeAll": 112,
+ "ignoreConstraints": 256
+ }
+ },
+ ContributionType: {},
+ ExtensionAcquisitionRequest: {},
+ ExtensionAuditLog: {},
+ ExtensionAuditLogEntry: {},
+ ExtensionEvent: {},
+ ExtensionFlags: {
+ enumValues: {
+ "builtIn": 1,
+ "trusted": 2
+ }
+ },
+ ExtensionLicensing: {},
+ ExtensionManifest: {},
+ ExtensionRequest: {},
+ ExtensionRequestEvent: {},
+ ExtensionRequestsEvent: {},
+ ExtensionRequestState: {
+ enumValues: {
+ "open": 0,
+ "accepted": 1,
+ "rejected": 2
+ }
+ },
+ ExtensionRequestUpdateType: {
+ enumValues: {
+ "created": 1,
+ "approved": 2,
+ "rejected": 3,
+ "deleted": 4
+ }
+ },
+ ExtensionState: {},
+ ExtensionStateFlags: {
+ enumValues: {
+ "none": 0,
+ "disabled": 1,
+ "builtIn": 2,
+ "multiVersion": 4,
+ "unInstalled": 8,
+ "versionCheckError": 16,
+ "trusted": 32,
+ "error": 64,
+ "needsReauthorization": 128,
+ "autoUpgradeError": 256,
+ "warning": 512
+ }
+ },
+ ExtensionUpdateType: {
+ enumValues: {
+ "installed": 1,
+ "uninstalled": 2,
+ "enabled": 3,
+ "disabled": 4,
+ "versionUpdated": 5,
+ "actionRequired": 6,
+ "actionResolved": 7
+ }
+ },
+ InstalledExtension: {},
+ InstalledExtensionState: {},
+ InstalledExtensionStateIssue: {},
+ InstalledExtensionStateIssueType: {
+ enumValues: {
+ "warning": 0,
+ "error": 1
+ }
+ },
+ LicensingOverride: {},
+ RequestedExtension: {},
+};
+exports.TypeInfo.AcquisitionOperation.fields = {
+ operationState: {
+ enumType: exports.TypeInfo.AcquisitionOperationState
+ },
+ operationType: {
+ enumType: exports.TypeInfo.AcquisitionOperationType
+ }
+};
+exports.TypeInfo.AcquisitionOptions.fields = {
+ defaultOperation: {
+ typeInfo: exports.TypeInfo.AcquisitionOperation
+ },
+ operations: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.AcquisitionOperation
+ }
+};
+exports.TypeInfo.ContributionNodeQuery.fields = {
+ queryOptions: {
+ enumType: exports.TypeInfo.ContributionQueryOptions
+ }
+};
+exports.TypeInfo.ContributionPropertyDescription.fields = {
+ type: {
+ enumType: exports.TypeInfo.ContributionPropertyType
+ }
+};
+exports.TypeInfo.ContributionType.fields = {
+ properties: {
+ isDictionary: true,
+ dictionaryValueTypeInfo: exports.TypeInfo.ContributionPropertyDescription
+ }
+};
+exports.TypeInfo.ExtensionAcquisitionRequest.fields = {
+ assignmentType: {
+ enumType: exports.TypeInfo.AcquisitionAssignmentType
+ },
+ operationType: {
+ enumType: exports.TypeInfo.AcquisitionOperationType
+ }
+};
+exports.TypeInfo.ExtensionAuditLog.fields = {
+ entries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionAuditLogEntry
+ }
+};
+exports.TypeInfo.ExtensionAuditLogEntry.fields = {
+ auditDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ExtensionEvent.fields = {
+ extension: {
+ typeInfo: GalleryInterfaces.TypeInfo.PublishedExtension
+ },
+ updateType: {
+ enumType: exports.TypeInfo.ExtensionUpdateType
+ }
+};
+exports.TypeInfo.ExtensionLicensing.fields = {
+ overrides: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.LicensingOverride
+ }
+};
+exports.TypeInfo.ExtensionManifest.fields = {
+ contributionTypes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ContributionType
+ },
+ licensing: {
+ typeInfo: exports.TypeInfo.ExtensionLicensing
+ }
+};
+exports.TypeInfo.ExtensionRequest.fields = {
+ requestDate: {
+ isDate: true,
+ },
+ requestState: {
+ enumType: exports.TypeInfo.ExtensionRequestState
+ },
+ resolveDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ExtensionRequestEvent.fields = {
+ extension: {
+ typeInfo: GalleryInterfaces.TypeInfo.PublishedExtension
+ },
+ request: {
+ typeInfo: exports.TypeInfo.ExtensionRequest
+ },
+ updateType: {
+ enumType: exports.TypeInfo.ExtensionRequestUpdateType
+ }
+};
+exports.TypeInfo.ExtensionRequestsEvent.fields = {
+ extension: {
+ typeInfo: GalleryInterfaces.TypeInfo.PublishedExtension
+ },
+ requests: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionRequest
+ },
+ updateType: {
+ enumType: exports.TypeInfo.ExtensionRequestUpdateType
+ }
+};
+exports.TypeInfo.ExtensionState.fields = {
+ flags: {
+ enumType: exports.TypeInfo.ExtensionStateFlags
+ },
+ installationIssues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.InstalledExtensionStateIssue
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ lastVersionCheck: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.InstalledExtension.fields = {
+ contributionTypes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ContributionType
+ },
+ flags: {
+ enumType: exports.TypeInfo.ExtensionFlags
+ },
+ installState: {
+ typeInfo: exports.TypeInfo.InstalledExtensionState
+ },
+ lastPublished: {
+ isDate: true,
+ },
+ licensing: {
+ typeInfo: exports.TypeInfo.ExtensionLicensing
+ }
+};
+exports.TypeInfo.InstalledExtensionState.fields = {
+ flags: {
+ enumType: exports.TypeInfo.ExtensionStateFlags
+ },
+ installationIssues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.InstalledExtensionStateIssue
+ },
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.InstalledExtensionStateIssue.fields = {
+ type: {
+ enumType: exports.TypeInfo.InstalledExtensionStateIssueType
+ }
+};
+exports.TypeInfo.LicensingOverride.fields = {
+ behavior: {
+ enumType: exports.TypeInfo.ContributionLicensingBehaviorType
+ }
+};
+exports.TypeInfo.RequestedExtension.fields = {
+ extensionRequests: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionRequest
+ }
+};
+
+
+/***/ }),
+
+/***/ 7278:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * The current state of a feature within a given scope
+ */
+var ContributedFeatureEnabledValue;
+(function (ContributedFeatureEnabledValue) {
+ /**
+ * The state of the feature is not set for the specified scope
+ */
+ ContributedFeatureEnabledValue[ContributedFeatureEnabledValue["Undefined"] = -1] = "Undefined";
+ /**
+ * The feature is disabled at the specified scope
+ */
+ ContributedFeatureEnabledValue[ContributedFeatureEnabledValue["Disabled"] = 0] = "Disabled";
+ /**
+ * The feature is enabled at the specified scope
+ */
+ ContributedFeatureEnabledValue[ContributedFeatureEnabledValue["Enabled"] = 1] = "Enabled";
+})(ContributedFeatureEnabledValue = exports.ContributedFeatureEnabledValue || (exports.ContributedFeatureEnabledValue = {}));
+exports.TypeInfo = {
+ ContributedFeatureEnabledValue: {
+ enumValues: {
+ "undefined": -1,
+ "disabled": 0,
+ "enabled": 1
+ }
+ },
+ ContributedFeatureState: {},
+ ContributedFeatureStateQuery: {},
+};
+exports.TypeInfo.ContributedFeatureState.fields = {
+ state: {
+ enumType: exports.TypeInfo.ContributedFeatureEnabledValue
+ }
+};
+exports.TypeInfo.ContributedFeatureStateQuery.fields = {
+ featureStates: {
+ isDictionary: true,
+ dictionaryValueTypeInfo: exports.TypeInfo.ContributedFeatureState
+ }
+};
+
+
+/***/ }),
+
+/***/ 6110:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Compression type for file stored in Blobstore
+ */
+var BlobCompressionType;
+(function (BlobCompressionType) {
+ BlobCompressionType[BlobCompressionType["None"] = 0] = "None";
+ BlobCompressionType[BlobCompressionType["GZip"] = 1] = "GZip";
+})(BlobCompressionType = exports.BlobCompressionType || (exports.BlobCompressionType = {}));
+/**
+ * Status of a container item.
+ */
+var ContainerItemStatus;
+(function (ContainerItemStatus) {
+ /**
+ * Item is created.
+ */
+ ContainerItemStatus[ContainerItemStatus["Created"] = 1] = "Created";
+ /**
+ * Item is a file pending for upload.
+ */
+ ContainerItemStatus[ContainerItemStatus["PendingUpload"] = 2] = "PendingUpload";
+})(ContainerItemStatus = exports.ContainerItemStatus || (exports.ContainerItemStatus = {}));
+/**
+ * Type of a container item.
+ */
+var ContainerItemType;
+(function (ContainerItemType) {
+ /**
+ * Any item type.
+ */
+ ContainerItemType[ContainerItemType["Any"] = 0] = "Any";
+ /**
+ * Item is a folder which can have child items.
+ */
+ ContainerItemType[ContainerItemType["Folder"] = 1] = "Folder";
+ /**
+ * Item is a file which is stored in the file service.
+ */
+ ContainerItemType[ContainerItemType["File"] = 2] = "File";
+})(ContainerItemType = exports.ContainerItemType || (exports.ContainerItemType = {}));
+/**
+ * Options a container can have.
+ */
+var ContainerOptions;
+(function (ContainerOptions) {
+ /**
+ * No option.
+ */
+ ContainerOptions[ContainerOptions["None"] = 0] = "None";
+})(ContainerOptions = exports.ContainerOptions || (exports.ContainerOptions = {}));
+exports.TypeInfo = {
+ BlobCompressionType: {
+ enumValues: {
+ "none": 0,
+ "gZip": 1
+ }
+ },
+ ContainerItemBlobReference: {},
+ ContainerItemStatus: {
+ enumValues: {
+ "created": 1,
+ "pendingUpload": 2
+ }
+ },
+ ContainerItemType: {
+ enumValues: {
+ "any": 0,
+ "folder": 1,
+ "file": 2
+ }
+ },
+ ContainerOptions: {
+ enumValues: {
+ "none": 0
+ }
+ },
+ FileContainer: {},
+ FileContainerItem: {},
+};
+exports.TypeInfo.ContainerItemBlobReference.fields = {
+ compressionType: {
+ enumType: exports.TypeInfo.BlobCompressionType
+ }
+};
+exports.TypeInfo.FileContainer.fields = {
+ dateCreated: {
+ isDate: true,
+ },
+ options: {
+ enumType: exports.TypeInfo.ContainerOptions
+ }
+};
+exports.TypeInfo.FileContainerItem.fields = {
+ blobMetadata: {
+ typeInfo: exports.TypeInfo.ContainerItemBlobReference
+ },
+ dateCreated: {
+ isDate: true,
+ },
+ dateLastModified: {
+ isDate: true,
+ },
+ itemType: {
+ enumType: exports.TypeInfo.ContainerItemType
+ },
+ status: {
+ enumType: exports.TypeInfo.ContainerItemStatus
+ }
+};
+
+
+/***/ }),
+
+/***/ 8905:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * How the acquisition is assigned
+ */
+var AcquisitionAssignmentType;
+(function (AcquisitionAssignmentType) {
+ AcquisitionAssignmentType[AcquisitionAssignmentType["None"] = 0] = "None";
+ /**
+ * Just assign for me
+ */
+ AcquisitionAssignmentType[AcquisitionAssignmentType["Me"] = 1] = "Me";
+ /**
+ * Assign for all users in the account
+ */
+ AcquisitionAssignmentType[AcquisitionAssignmentType["All"] = 2] = "All";
+})(AcquisitionAssignmentType = exports.AcquisitionAssignmentType || (exports.AcquisitionAssignmentType = {}));
+var AcquisitionOperationState;
+(function (AcquisitionOperationState) {
+ /**
+ * Not allowed to use this AcquisitionOperation
+ */
+ AcquisitionOperationState[AcquisitionOperationState["Disallow"] = 0] = "Disallow";
+ /**
+ * Allowed to use this AcquisitionOperation
+ */
+ AcquisitionOperationState[AcquisitionOperationState["Allow"] = 1] = "Allow";
+ /**
+ * Operation has already been completed and is no longer available
+ */
+ AcquisitionOperationState[AcquisitionOperationState["Completed"] = 3] = "Completed";
+})(AcquisitionOperationState = exports.AcquisitionOperationState || (exports.AcquisitionOperationState = {}));
+/**
+ * Set of different types of operations that can be requested.
+ */
+var AcquisitionOperationType;
+(function (AcquisitionOperationType) {
+ /**
+ * Not yet used
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Get"] = 0] = "Get";
+ /**
+ * Install this extension into the host provided
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Install"] = 1] = "Install";
+ /**
+ * Buy licenses for this extension and install into the host provided
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Buy"] = 2] = "Buy";
+ /**
+ * Try this extension
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Try"] = 3] = "Try";
+ /**
+ * Request this extension for installation
+ */
+ AcquisitionOperationType[AcquisitionOperationType["Request"] = 4] = "Request";
+ /**
+ * No action found
+ */
+ AcquisitionOperationType[AcquisitionOperationType["None"] = 5] = "None";
+ /**
+ * Request admins for purchasing extension
+ */
+ AcquisitionOperationType[AcquisitionOperationType["PurchaseRequest"] = 6] = "PurchaseRequest";
+})(AcquisitionOperationType = exports.AcquisitionOperationType || (exports.AcquisitionOperationType = {}));
+var ConcernCategory;
+(function (ConcernCategory) {
+ ConcernCategory[ConcernCategory["General"] = 1] = "General";
+ ConcernCategory[ConcernCategory["Abusive"] = 2] = "Abusive";
+ ConcernCategory[ConcernCategory["Spam"] = 4] = "Spam";
+})(ConcernCategory = exports.ConcernCategory || (exports.ConcernCategory = {}));
+var DraftPatchOperation;
+(function (DraftPatchOperation) {
+ DraftPatchOperation[DraftPatchOperation["Publish"] = 1] = "Publish";
+ DraftPatchOperation[DraftPatchOperation["Cancel"] = 2] = "Cancel";
+})(DraftPatchOperation = exports.DraftPatchOperation || (exports.DraftPatchOperation = {}));
+var DraftStateType;
+(function (DraftStateType) {
+ DraftStateType[DraftStateType["Unpublished"] = 1] = "Unpublished";
+ DraftStateType[DraftStateType["Published"] = 2] = "Published";
+ DraftStateType[DraftStateType["Cancelled"] = 3] = "Cancelled";
+ DraftStateType[DraftStateType["Error"] = 4] = "Error";
+})(DraftStateType = exports.DraftStateType || (exports.DraftStateType = {}));
+var ExtensionDeploymentTechnology;
+(function (ExtensionDeploymentTechnology) {
+ ExtensionDeploymentTechnology[ExtensionDeploymentTechnology["Exe"] = 1] = "Exe";
+ ExtensionDeploymentTechnology[ExtensionDeploymentTechnology["Msi"] = 2] = "Msi";
+ ExtensionDeploymentTechnology[ExtensionDeploymentTechnology["Vsix"] = 3] = "Vsix";
+ ExtensionDeploymentTechnology[ExtensionDeploymentTechnology["ReferralLink"] = 4] = "ReferralLink";
+})(ExtensionDeploymentTechnology = exports.ExtensionDeploymentTechnology || (exports.ExtensionDeploymentTechnology = {}));
+/**
+ * Type of event
+ */
+var ExtensionLifecycleEventType;
+(function (ExtensionLifecycleEventType) {
+ ExtensionLifecycleEventType[ExtensionLifecycleEventType["Uninstall"] = 1] = "Uninstall";
+ ExtensionLifecycleEventType[ExtensionLifecycleEventType["Install"] = 2] = "Install";
+ ExtensionLifecycleEventType[ExtensionLifecycleEventType["Review"] = 3] = "Review";
+ ExtensionLifecycleEventType[ExtensionLifecycleEventType["Acquisition"] = 4] = "Acquisition";
+ ExtensionLifecycleEventType[ExtensionLifecycleEventType["Sales"] = 5] = "Sales";
+ ExtensionLifecycleEventType[ExtensionLifecycleEventType["Other"] = 999] = "Other";
+})(ExtensionLifecycleEventType = exports.ExtensionLifecycleEventType || (exports.ExtensionLifecycleEventType = {}));
+/**
+ * Set of flags that can be associated with a given permission over an extension
+ */
+var ExtensionPolicyFlags;
+(function (ExtensionPolicyFlags) {
+ /**
+ * No permission
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["None"] = 0] = "None";
+ /**
+ * Permission on private extensions
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["Private"] = 1] = "Private";
+ /**
+ * Permission on public extensions
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["Public"] = 2] = "Public";
+ /**
+ * Permission in extensions that are in preview
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["Preview"] = 4] = "Preview";
+ /**
+ * Permission in released extensions
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["Released"] = 8] = "Released";
+ /**
+ * Permission in 1st party extensions
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["FirstParty"] = 16] = "FirstParty";
+ /**
+ * Mask that defines all permissions
+ */
+ ExtensionPolicyFlags[ExtensionPolicyFlags["All"] = 31] = "All";
+})(ExtensionPolicyFlags = exports.ExtensionPolicyFlags || (exports.ExtensionPolicyFlags = {}));
+/**
+ * Type of extension filters that are supported in the queries.
+ */
+var ExtensionQueryFilterType;
+(function (ExtensionQueryFilterType) {
+ /**
+ * The values are used as tags. All tags are treated as "OR" conditions with each other. There may be some value put on the number of matched tags from the query.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Tag"] = 1] = "Tag";
+ /**
+ * The Values are an ExtensionName or fragment that is used to match other extension names.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["DisplayName"] = 2] = "DisplayName";
+ /**
+ * The Filter is one or more tokens that define what scope to return private extensions for.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Private"] = 3] = "Private";
+ /**
+ * Retrieve a set of extensions based on their id's. The values should be the extension id's encoded as strings.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Id"] = 4] = "Id";
+ /**
+ * The category is unlike other filters. It is AND'd with the other filters instead of being a separate query.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Category"] = 5] = "Category";
+ /**
+ * Certain contribution types may be indexed to allow for query by type. User defined types can't be indexed at the moment.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["ContributionType"] = 6] = "ContributionType";
+ /**
+ * Retrieve an set extension based on the name based identifier. This differs from the internal id (which is being deprecated).
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Name"] = 7] = "Name";
+ /**
+ * The InstallationTarget for an extension defines the target consumer for the extension. This may be something like VS, VSOnline, or VSCode
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["InstallationTarget"] = 8] = "InstallationTarget";
+ /**
+ * Query for featured extensions, no value is allowed when using the query type.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Featured"] = 9] = "Featured";
+ /**
+ * The SearchText provided by the user to search for extensions
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["SearchText"] = 10] = "SearchText";
+ /**
+ * Query for extensions that are featured in their own category, The filterValue for this is name of category of extensions.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["FeaturedInCategory"] = 11] = "FeaturedInCategory";
+ /**
+ * When retrieving extensions from a query, exclude the extensions which are having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be excluded. In case of multiple flags to be specified, a logical OR of the interger values should be given as value for this filter This should be at most one filter of this type. This only acts as a restrictive filter after. In case of having a particular flag in both IncludeWithFlags and ExcludeWithFlags, excludeFlags will remove the included extensions giving empty result for that flag.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["ExcludeWithFlags"] = 12] = "ExcludeWithFlags";
+ /**
+ * When retrieving extensions from a query, include the extensions which are having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be included. In case of multiple flags to be specified, a logical OR of the integer values should be given as value for this filter This should be at most one filter of this type. This only acts as a restrictive filter after. In case of having a particular flag in both IncludeWithFlags and ExcludeWithFlags, excludeFlags will remove the included extensions giving empty result for that flag. In case of multiple flags given in IncludeWithFlags in ORed fashion, extensions having any of the given flags will be included.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["IncludeWithFlags"] = 13] = "IncludeWithFlags";
+ /**
+ * Filter the extensions based on the LCID values applicable. Any extensions which are not having any LCID values will also be filtered. This is currently only supported for VS extensions.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["Lcid"] = 14] = "Lcid";
+ /**
+ * Filter to provide the version of the installation target. This filter will be used along with InstallationTarget filter. The value should be a valid version string. Currently supported only if search text is provided.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["InstallationTargetVersion"] = 15] = "InstallationTargetVersion";
+ /**
+ * Filter type for specifying a range of installation target version. The filter will be used along with InstallationTarget filter. The value should be a pair of well formed version values separated by hyphen(-). Currently supported only if search text is provided.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["InstallationTargetVersionRange"] = 16] = "InstallationTargetVersionRange";
+ /**
+ * Filter type for specifying metadata key and value to be used for filtering.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["VsixMetadata"] = 17] = "VsixMetadata";
+ /**
+ * Filter to get extensions published by a publisher having supplied internal name
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["PublisherName"] = 18] = "PublisherName";
+ /**
+ * Filter to get extensions published by all publishers having supplied display name
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["PublisherDisplayName"] = 19] = "PublisherDisplayName";
+ /**
+ * When retrieving extensions from a query, include the extensions which have a publisher having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be included. In case of multiple flags to be specified, a logical OR of the integer values should be given as value for this filter There should be at most one filter of this type. This only acts as a restrictive filter after. In case of multiple flags given in IncludeWithFlags in ORed fashion, extensions having any of the given flags will be included.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["IncludeWithPublisherFlags"] = 20] = "IncludeWithPublisherFlags";
+ /**
+ * Filter to get extensions shared with particular organization
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["OrganizationSharedWith"] = 21] = "OrganizationSharedWith";
+ /**
+ * Filter to get VS IDE extensions by Product Architecture
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["ProductArchitecture"] = 22] = "ProductArchitecture";
+ /**
+ * Filter to get VS Code extensions by target platform.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["TargetPlatform"] = 23] = "TargetPlatform";
+ /**
+ * Retrieve an extension based on the extensionName.
+ */
+ ExtensionQueryFilterType[ExtensionQueryFilterType["ExtensionName"] = 24] = "ExtensionName";
+})(ExtensionQueryFilterType = exports.ExtensionQueryFilterType || (exports.ExtensionQueryFilterType = {}));
+/**
+ * Set of flags used to determine which set of information is retrieved when reading published extensions
+ */
+var ExtensionQueryFlags;
+(function (ExtensionQueryFlags) {
+ /**
+ * None is used to retrieve only the basic extension details.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["None"] = 0] = "None";
+ /**
+ * IncludeVersions will return version information for extensions returned
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeVersions"] = 1] = "IncludeVersions";
+ /**
+ * IncludeFiles will return information about which files were found within the extension that were stored independent of the manifest. When asking for files, versions will be included as well since files are returned as a property of the versions. These files can be retrieved using the path to the file without requiring the entire manifest be downloaded.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeFiles"] = 2] = "IncludeFiles";
+ /**
+ * Include the Categories and Tags that were added to the extension definition.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeCategoryAndTags"] = 4] = "IncludeCategoryAndTags";
+ /**
+ * Include the details about which accounts the extension has been shared with if the extension is a private extension.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeSharedAccounts"] = 8] = "IncludeSharedAccounts";
+ /**
+ * Include properties associated with versions of the extension
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeVersionProperties"] = 16] = "IncludeVersionProperties";
+ /**
+ * Excluding non-validated extensions will remove any extension versions that either are in the process of being validated or have failed validation.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["ExcludeNonValidated"] = 32] = "ExcludeNonValidated";
+ /**
+ * Include the set of installation targets the extension has requested.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeInstallationTargets"] = 64] = "IncludeInstallationTargets";
+ /**
+ * Include the base uri for assets of this extension
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeAssetUri"] = 128] = "IncludeAssetUri";
+ /**
+ * Include the statistics associated with this extension
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeStatistics"] = 256] = "IncludeStatistics";
+ /**
+ * When retrieving versions from a query, only include the latest version of the extensions that matched. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeLatestVersionOnly"] = 512] = "IncludeLatestVersionOnly";
+ /**
+ * This flag switches the asset uri to use GetAssetByName instead of CDN When this is used, values of base asset uri and base asset uri fallback are switched When this is used, source of asset files are pointed to Gallery service always even if CDN is available
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["UseFallbackAssetUri"] = 1024] = "UseFallbackAssetUri";
+ /**
+ * This flag is used to get all the metadata values associated with the extension. This is not applicable to VSTS or VSCode extensions and usage is only internal.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeMetadata"] = 2048] = "IncludeMetadata";
+ /**
+ * This flag is used to indicate to return very small data for extension required by VS IDE. This flag is only compatible when querying is done by VS IDE
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeMinimalPayloadForVsIde"] = 4096] = "IncludeMinimalPayloadForVsIde";
+ /**
+ * This flag is used to get Lcid values associated with the extension. This is not applicable to VSTS or VSCode extensions and usage is only internal
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeLcids"] = 8192] = "IncludeLcids";
+ /**
+ * Include the details about which organizations the extension has been shared with if the extension is a private extension.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeSharedOrganizations"] = 16384] = "IncludeSharedOrganizations";
+ /**
+ * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeNameConflictInfo"] = 32768] = "IncludeNameConflictInfo";
+ /**
+ * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
+ */
+ ExtensionQueryFlags[ExtensionQueryFlags["AllAttributes"] = 16863] = "AllAttributes";
+})(ExtensionQueryFlags = exports.ExtensionQueryFlags || (exports.ExtensionQueryFlags = {}));
+var ExtensionStatisticOperation;
+(function (ExtensionStatisticOperation) {
+ ExtensionStatisticOperation[ExtensionStatisticOperation["None"] = 0] = "None";
+ ExtensionStatisticOperation[ExtensionStatisticOperation["Set"] = 1] = "Set";
+ ExtensionStatisticOperation[ExtensionStatisticOperation["Increment"] = 2] = "Increment";
+ ExtensionStatisticOperation[ExtensionStatisticOperation["Decrement"] = 3] = "Decrement";
+ ExtensionStatisticOperation[ExtensionStatisticOperation["Delete"] = 4] = "Delete";
+})(ExtensionStatisticOperation = exports.ExtensionStatisticOperation || (exports.ExtensionStatisticOperation = {}));
+/**
+ * Stats aggregation type
+ */
+var ExtensionStatsAggregateType;
+(function (ExtensionStatsAggregateType) {
+ ExtensionStatsAggregateType[ExtensionStatsAggregateType["Daily"] = 1] = "Daily";
+})(ExtensionStatsAggregateType = exports.ExtensionStatsAggregateType || (exports.ExtensionStatsAggregateType = {}));
+/**
+ * Set of flags that can be associated with a given extension version. These flags apply to a specific version of the extension.
+ */
+var ExtensionVersionFlags;
+(function (ExtensionVersionFlags) {
+ /**
+ * No flags exist for this version.
+ */
+ ExtensionVersionFlags[ExtensionVersionFlags["None"] = 0] = "None";
+ /**
+ * The Validated flag for a version means the extension version has passed validation and can be used..
+ */
+ ExtensionVersionFlags[ExtensionVersionFlags["Validated"] = 1] = "Validated";
+})(ExtensionVersionFlags = exports.ExtensionVersionFlags || (exports.ExtensionVersionFlags = {}));
+/**
+ * Type of event
+ */
+var NotificationTemplateType;
+(function (NotificationTemplateType) {
+ /**
+ * Template type for Review Notification.
+ */
+ NotificationTemplateType[NotificationTemplateType["ReviewNotification"] = 1] = "ReviewNotification";
+ /**
+ * Template type for Qna Notification.
+ */
+ NotificationTemplateType[NotificationTemplateType["QnaNotification"] = 2] = "QnaNotification";
+ /**
+ * Template type for Customer Contact Notification.
+ */
+ NotificationTemplateType[NotificationTemplateType["CustomerContactNotification"] = 3] = "CustomerContactNotification";
+ /**
+ * Template type for Publisher Member Notification.
+ */
+ NotificationTemplateType[NotificationTemplateType["PublisherMemberUpdateNotification"] = 4] = "PublisherMemberUpdateNotification";
+})(NotificationTemplateType = exports.NotificationTemplateType || (exports.NotificationTemplateType = {}));
+/**
+ * PagingDirection is used to define which set direction to move the returned result set based on a previous query.
+ */
+var PagingDirection;
+(function (PagingDirection) {
+ /**
+ * Backward will return results from earlier in the resultset.
+ */
+ PagingDirection[PagingDirection["Backward"] = 1] = "Backward";
+ /**
+ * Forward will return results from later in the resultset.
+ */
+ PagingDirection[PagingDirection["Forward"] = 2] = "Forward";
+})(PagingDirection = exports.PagingDirection || (exports.PagingDirection = {}));
+/**
+ * Set of flags that can be associated with a given extension. These flags apply to all versions of the extension and not to a specific version.
+ */
+var PublishedExtensionFlags;
+(function (PublishedExtensionFlags) {
+ /**
+ * No flags exist for this extension.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["None"] = 0] = "None";
+ /**
+ * The Disabled flag for an extension means the extension can't be changed and won't be used by consumers. The disabled flag is managed by the service and can't be supplied by the Extension Developers.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Disabled"] = 1] = "Disabled";
+ /**
+ * BuiltIn Extension are available to all Tenants. An explicit registration is not required. This attribute is reserved and can't be supplied by Extension Developers. BuiltIn extensions are by definition Public. There is no need to set the public flag for extensions marked BuiltIn.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["BuiltIn"] = 2] = "BuiltIn";
+ /**
+ * This extension has been validated by the service. The extension meets the requirements specified. This attribute is reserved and can't be supplied by the Extension Developers. Validation is a process that ensures that all contributions are well formed. They meet the requirements defined by the contribution type they are extending. Note this attribute will be updated asynchronously as the extension is validated by the developer of the contribution type. There will be restricted access to the extension while this process is performed.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Validated"] = 4] = "Validated";
+ /**
+ * Trusted extensions are ones that are given special capabilities. These tend to come from Microsoft and can't be published by the general public. Note: BuiltIn extensions are always trusted.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Trusted"] = 8] = "Trusted";
+ /**
+ * The Paid flag indicates that the commerce can be enabled for this extension. Publisher needs to setup Offer/Pricing plan in Azure. If Paid flag is set and a corresponding Offer is not available, the extension will automatically be marked as Preview. If the publisher intends to make the extension Paid in the future, it is mandatory to set the Preview flag. This is currently available only for VSTS extensions only.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Paid"] = 16] = "Paid";
+ /**
+ * This extension registration is public, making its visibility open to the public. This means all tenants have the ability to install this extension. Without this flag the extension will be private and will need to be shared with the tenants that can install it.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Public"] = 256] = "Public";
+ /**
+ * This extension has multiple versions active at one time and version discovery should be done using the defined "Version Discovery" protocol to determine the version available to a specific user or tenant. @TODO: Link to Version Discovery Protocol.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["MultiVersion"] = 512] = "MultiVersion";
+ /**
+ * The system flag is reserved, and cant be used by publishers.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["System"] = 1024] = "System";
+ /**
+ * The Preview flag indicates that the extension is still under preview (not yet of "release" quality). These extensions may be decorated differently in the gallery and may have different policies applied to them.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Preview"] = 2048] = "Preview";
+ /**
+ * The Unpublished flag indicates that the extension can't be installed/downloaded. Users who have installed such an extension can continue to use the extension.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Unpublished"] = 4096] = "Unpublished";
+ /**
+ * The Trial flag indicates that the extension is in Trial version. The flag is right now being used only with respect to Visual Studio extensions.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Trial"] = 8192] = "Trial";
+ /**
+ * The Locked flag indicates that extension has been locked from Marketplace. Further updates/acquisitions are not allowed on the extension until this is present. This should be used along with making the extension private/unpublished.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Locked"] = 16384] = "Locked";
+ /**
+ * This flag is set for extensions we want to hide from Marketplace home and search pages. This will be used to override the exposure of builtIn flags.
+ */
+ PublishedExtensionFlags[PublishedExtensionFlags["Hidden"] = 32768] = "Hidden";
+})(PublishedExtensionFlags = exports.PublishedExtensionFlags || (exports.PublishedExtensionFlags = {}));
+var PublisherFlags;
+(function (PublisherFlags) {
+ /**
+ * This should never be returned, it is used to represent a publisher who's flags haven't changed during update calls.
+ */
+ PublisherFlags[PublisherFlags["UnChanged"] = 1073741824] = "UnChanged";
+ /**
+ * No flags exist for this publisher.
+ */
+ PublisherFlags[PublisherFlags["None"] = 0] = "None";
+ /**
+ * The Disabled flag for a publisher means the publisher can't be changed and won't be used by consumers, this extends to extensions owned by the publisher as well. The disabled flag is managed by the service and can't be supplied by the Extension Developers.
+ */
+ PublisherFlags[PublisherFlags["Disabled"] = 1] = "Disabled";
+ /**
+ * A verified publisher is one that Microsoft has done some review of and ensured the publisher meets a set of requirements. The requirements to become a verified publisher are not listed here. They can be found in public documentation (TBD).
+ */
+ PublisherFlags[PublisherFlags["Verified"] = 2] = "Verified";
+ /**
+ * A Certified publisher is one that is Microsoft verified and in addition meets a set of requirements for its published extensions. The requirements to become a certified publisher are not listed here. They can be found in public documentation (TBD).
+ */
+ PublisherFlags[PublisherFlags["Certified"] = 4] = "Certified";
+ /**
+ * This is the set of flags that can't be supplied by the developer and is managed by the service itself.
+ */
+ PublisherFlags[PublisherFlags["ServiceFlags"] = 7] = "ServiceFlags";
+})(PublisherFlags = exports.PublisherFlags || (exports.PublisherFlags = {}));
+var PublisherPermissions;
+(function (PublisherPermissions) {
+ /**
+ * This gives the bearer the rights to read Publishers and Extensions.
+ */
+ PublisherPermissions[PublisherPermissions["Read"] = 1] = "Read";
+ /**
+ * This gives the bearer the rights to update, delete, and share Extensions (but not the ability to create them).
+ */
+ PublisherPermissions[PublisherPermissions["UpdateExtension"] = 2] = "UpdateExtension";
+ /**
+ * This gives the bearer the rights to create new Publishers at the root of the namespace.
+ */
+ PublisherPermissions[PublisherPermissions["CreatePublisher"] = 4] = "CreatePublisher";
+ /**
+ * This gives the bearer the rights to create new Extensions within a publisher.
+ */
+ PublisherPermissions[PublisherPermissions["PublishExtension"] = 8] = "PublishExtension";
+ /**
+ * Admin gives the bearer the rights to manage restricted attributes of Publishers and Extensions.
+ */
+ PublisherPermissions[PublisherPermissions["Admin"] = 16] = "Admin";
+ /**
+ * TrustedPartner gives the bearer the rights to publish a extensions with restricted capabilities.
+ */
+ PublisherPermissions[PublisherPermissions["TrustedPartner"] = 32] = "TrustedPartner";
+ /**
+ * PrivateRead is another form of read designed to allow higher privilege accessors the ability to read private extensions.
+ */
+ PublisherPermissions[PublisherPermissions["PrivateRead"] = 64] = "PrivateRead";
+ /**
+ * This gives the bearer the rights to delete any extension.
+ */
+ PublisherPermissions[PublisherPermissions["DeleteExtension"] = 128] = "DeleteExtension";
+ /**
+ * This gives the bearer the rights edit the publisher settings.
+ */
+ PublisherPermissions[PublisherPermissions["EditSettings"] = 256] = "EditSettings";
+ /**
+ * This gives the bearer the rights to see all permissions on the publisher.
+ */
+ PublisherPermissions[PublisherPermissions["ViewPermissions"] = 512] = "ViewPermissions";
+ /**
+ * This gives the bearer the rights to assign permissions on the publisher.
+ */
+ PublisherPermissions[PublisherPermissions["ManagePermissions"] = 1024] = "ManagePermissions";
+ /**
+ * This gives the bearer the rights to delete the publisher.
+ */
+ PublisherPermissions[PublisherPermissions["DeletePublisher"] = 2048] = "DeletePublisher";
+})(PublisherPermissions = exports.PublisherPermissions || (exports.PublisherPermissions = {}));
+/**
+ * Set of flags used to define the attributes requested when a publisher is returned. Some API's allow the caller to specify the level of detail needed.
+ */
+var PublisherQueryFlags;
+(function (PublisherQueryFlags) {
+ /**
+ * None is used to retrieve only the basic publisher details.
+ */
+ PublisherQueryFlags[PublisherQueryFlags["None"] = 0] = "None";
+ /**
+ * Is used to include a list of basic extension details for all extensions published by the requested publisher.
+ */
+ PublisherQueryFlags[PublisherQueryFlags["IncludeExtensions"] = 1] = "IncludeExtensions";
+ /**
+ * Is used to include email address of all the users who are marked as owners for the publisher
+ */
+ PublisherQueryFlags[PublisherQueryFlags["IncludeEmailAddress"] = 2] = "IncludeEmailAddress";
+})(PublisherQueryFlags = exports.PublisherQueryFlags || (exports.PublisherQueryFlags = {}));
+/**
+ * Access definition for a RoleAssignment.
+ */
+var PublisherRoleAccess;
+(function (PublisherRoleAccess) {
+ /**
+ * Access has been explicitly set.
+ */
+ PublisherRoleAccess[PublisherRoleAccess["Assigned"] = 1] = "Assigned";
+ /**
+ * Access has been inherited from a higher scope.
+ */
+ PublisherRoleAccess[PublisherRoleAccess["Inherited"] = 2] = "Inherited";
+})(PublisherRoleAccess = exports.PublisherRoleAccess || (exports.PublisherRoleAccess = {}));
+var PublisherState;
+(function (PublisherState) {
+ /**
+ * No state exists for this publisher.
+ */
+ PublisherState[PublisherState["None"] = 0] = "None";
+ /**
+ * This state indicates that publisher has applied for Marketplace verification (via UI) and still not been certified. This state would be reset once the publisher is verified.
+ */
+ PublisherState[PublisherState["VerificationPending"] = 1] = "VerificationPending";
+ /**
+ * This state indicates that publisher has applied for Marketplace certification (via UI) and still not been certified. This state would be reset once the publisher is certified.
+ */
+ PublisherState[PublisherState["CertificationPending"] = 2] = "CertificationPending";
+ /**
+ * This state indicates that publisher had applied for Marketplace certification (via UI) but his/her certification got rejected. This state would be reset if and when the publisher is certified.
+ */
+ PublisherState[PublisherState["CertificationRejected"] = 4] = "CertificationRejected";
+ /**
+ * This state indicates that publisher was certified on the Marketplace, but his/her certification got revoked. This state would never be reset, even after publisher gets re-certified. It would indicate that the publisher certification was revoked at least once.
+ */
+ PublisherState[PublisherState["CertificationRevoked"] = 8] = "CertificationRevoked";
+})(PublisherState = exports.PublisherState || (exports.PublisherState = {}));
+/**
+ * Denotes the status of the QnA Item
+ */
+var QnAItemStatus;
+(function (QnAItemStatus) {
+ QnAItemStatus[QnAItemStatus["None"] = 0] = "None";
+ /**
+ * The UserEditable flag indicates whether the item is editable by the logged in user.
+ */
+ QnAItemStatus[QnAItemStatus["UserEditable"] = 1] = "UserEditable";
+ /**
+ * The PublisherCreated flag indicates whether the item has been created by extension publisher.
+ */
+ QnAItemStatus[QnAItemStatus["PublisherCreated"] = 2] = "PublisherCreated";
+})(QnAItemStatus = exports.QnAItemStatus || (exports.QnAItemStatus = {}));
+/**
+ * The status of a REST Api response status.
+ */
+var RestApiResponseStatus;
+(function (RestApiResponseStatus) {
+ /**
+ * The operation is completed.
+ */
+ RestApiResponseStatus[RestApiResponseStatus["Completed"] = 0] = "Completed";
+ /**
+ * The operation is failed.
+ */
+ RestApiResponseStatus[RestApiResponseStatus["Failed"] = 1] = "Failed";
+ /**
+ * The operation is in progress.
+ */
+ RestApiResponseStatus[RestApiResponseStatus["Inprogress"] = 2] = "Inprogress";
+ /**
+ * The operation is in skipped.
+ */
+ RestApiResponseStatus[RestApiResponseStatus["Skipped"] = 3] = "Skipped";
+})(RestApiResponseStatus = exports.RestApiResponseStatus || (exports.RestApiResponseStatus = {}));
+/**
+ * Type of operation
+ */
+var ReviewEventOperation;
+(function (ReviewEventOperation) {
+ ReviewEventOperation[ReviewEventOperation["Create"] = 1] = "Create";
+ ReviewEventOperation[ReviewEventOperation["Update"] = 2] = "Update";
+ ReviewEventOperation[ReviewEventOperation["Delete"] = 3] = "Delete";
+})(ReviewEventOperation = exports.ReviewEventOperation || (exports.ReviewEventOperation = {}));
+/**
+ * Options to GetReviews query
+ */
+var ReviewFilterOptions;
+(function (ReviewFilterOptions) {
+ /**
+ * No filtering, all reviews are returned (default option)
+ */
+ ReviewFilterOptions[ReviewFilterOptions["None"] = 0] = "None";
+ /**
+ * Filter out review items with empty review text
+ */
+ ReviewFilterOptions[ReviewFilterOptions["FilterEmptyReviews"] = 1] = "FilterEmptyReviews";
+ /**
+ * Filter out review items with empty usernames
+ */
+ ReviewFilterOptions[ReviewFilterOptions["FilterEmptyUserNames"] = 2] = "FilterEmptyUserNames";
+})(ReviewFilterOptions = exports.ReviewFilterOptions || (exports.ReviewFilterOptions = {}));
+/**
+ * Denotes the patch operation type
+ */
+var ReviewPatchOperation;
+(function (ReviewPatchOperation) {
+ /**
+ * Flag a review
+ */
+ ReviewPatchOperation[ReviewPatchOperation["FlagReview"] = 1] = "FlagReview";
+ /**
+ * Update an existing review
+ */
+ ReviewPatchOperation[ReviewPatchOperation["UpdateReview"] = 2] = "UpdateReview";
+ /**
+ * Submit a reply for a review
+ */
+ ReviewPatchOperation[ReviewPatchOperation["ReplyToReview"] = 3] = "ReplyToReview";
+ /**
+ * Submit an admin response
+ */
+ ReviewPatchOperation[ReviewPatchOperation["AdminResponseForReview"] = 4] = "AdminResponseForReview";
+ /**
+ * Delete an Admin Reply
+ */
+ ReviewPatchOperation[ReviewPatchOperation["DeleteAdminReply"] = 5] = "DeleteAdminReply";
+ /**
+ * Delete Publisher Reply
+ */
+ ReviewPatchOperation[ReviewPatchOperation["DeletePublisherReply"] = 6] = "DeletePublisherReply";
+})(ReviewPatchOperation = exports.ReviewPatchOperation || (exports.ReviewPatchOperation = {}));
+/**
+ * Type of event
+ */
+var ReviewResourceType;
+(function (ReviewResourceType) {
+ ReviewResourceType[ReviewResourceType["Review"] = 1] = "Review";
+ ReviewResourceType[ReviewResourceType["PublisherReply"] = 2] = "PublisherReply";
+ ReviewResourceType[ReviewResourceType["AdminReply"] = 3] = "AdminReply";
+})(ReviewResourceType = exports.ReviewResourceType || (exports.ReviewResourceType = {}));
+/**
+ * Defines the sort order that can be defined for Extensions query
+ */
+var SortByType;
+(function (SortByType) {
+ /**
+ * The results will be sorted by relevance in case search query is given, if no search query resutls will be provided as is
+ */
+ SortByType[SortByType["Relevance"] = 0] = "Relevance";
+ /**
+ * The results will be sorted as per Last Updated date of the extensions with recently updated at the top
+ */
+ SortByType[SortByType["LastUpdatedDate"] = 1] = "LastUpdatedDate";
+ /**
+ * Results will be sorted Alphabetically as per the title of the extension
+ */
+ SortByType[SortByType["Title"] = 2] = "Title";
+ /**
+ * Results will be sorted Alphabetically as per Publisher title
+ */
+ SortByType[SortByType["Publisher"] = 3] = "Publisher";
+ /**
+ * Results will be sorted by Install Count
+ */
+ SortByType[SortByType["InstallCount"] = 4] = "InstallCount";
+ /**
+ * The results will be sorted as per Published date of the extensions
+ */
+ SortByType[SortByType["PublishedDate"] = 5] = "PublishedDate";
+ /**
+ * The results will be sorted as per Average ratings of the extensions
+ */
+ SortByType[SortByType["AverageRating"] = 6] = "AverageRating";
+ /**
+ * The results will be sorted as per Trending Daily Score of the extensions
+ */
+ SortByType[SortByType["TrendingDaily"] = 7] = "TrendingDaily";
+ /**
+ * The results will be sorted as per Trending weekly Score of the extensions
+ */
+ SortByType[SortByType["TrendingWeekly"] = 8] = "TrendingWeekly";
+ /**
+ * The results will be sorted as per Trending monthly Score of the extensions
+ */
+ SortByType[SortByType["TrendingMonthly"] = 9] = "TrendingMonthly";
+ /**
+ * The results will be sorted as per ReleaseDate of the extensions (date on which the extension first went public)
+ */
+ SortByType[SortByType["ReleaseDate"] = 10] = "ReleaseDate";
+ /**
+ * The results will be sorted as per Author defined in the VSix/Metadata. If not defined, publisher name is used This is specifically needed by VS IDE, other (new and old) clients are not encouraged to use this
+ */
+ SortByType[SortByType["Author"] = 11] = "Author";
+ /**
+ * The results will be sorted as per Weighted Rating of the extension.
+ */
+ SortByType[SortByType["WeightedRating"] = 12] = "WeightedRating";
+})(SortByType = exports.SortByType || (exports.SortByType = {}));
+/**
+ * Defines the sort order that can be defined for Extensions query
+ */
+var SortOrderType;
+(function (SortOrderType) {
+ /**
+ * Results will be sorted in the default order as per the sorting type defined. The default varies for each type, e.g. for Relevance, default is Descending, for Title default is Ascending etc.
+ */
+ SortOrderType[SortOrderType["Default"] = 0] = "Default";
+ /**
+ * The results will be sorted in Ascending order
+ */
+ SortOrderType[SortOrderType["Ascending"] = 1] = "Ascending";
+ /**
+ * The results will be sorted in Descending order
+ */
+ SortOrderType[SortOrderType["Descending"] = 2] = "Descending";
+})(SortOrderType = exports.SortOrderType || (exports.SortOrderType = {}));
+var VSCodeWebExtensionStatisicsType;
+(function (VSCodeWebExtensionStatisicsType) {
+ VSCodeWebExtensionStatisicsType[VSCodeWebExtensionStatisicsType["Install"] = 1] = "Install";
+ VSCodeWebExtensionStatisicsType[VSCodeWebExtensionStatisicsType["Update"] = 2] = "Update";
+ VSCodeWebExtensionStatisicsType[VSCodeWebExtensionStatisicsType["Uninstall"] = 3] = "Uninstall";
+})(VSCodeWebExtensionStatisicsType = exports.VSCodeWebExtensionStatisicsType || (exports.VSCodeWebExtensionStatisicsType = {}));
+exports.TypeInfo = {
+ AcquisitionAssignmentType: {
+ enumValues: {
+ "none": 0,
+ "me": 1,
+ "all": 2
+ }
+ },
+ AcquisitionOperation: {},
+ AcquisitionOperationState: {
+ enumValues: {
+ "disallow": 0,
+ "allow": 1,
+ "completed": 3
+ }
+ },
+ AcquisitionOperationType: {
+ enumValues: {
+ "get": 0,
+ "install": 1,
+ "buy": 2,
+ "try": 3,
+ "request": 4,
+ "none": 5,
+ "purchaseRequest": 6
+ }
+ },
+ AcquisitionOptions: {},
+ AzureRestApiResponseModel: {},
+ Concern: {},
+ ConcernCategory: {
+ enumValues: {
+ "general": 1,
+ "abusive": 2,
+ "spam": 4
+ }
+ },
+ CustomerLastContact: {},
+ CustomerSupportRequest: {},
+ DraftPatchOperation: {
+ enumValues: {
+ "publish": 1,
+ "cancel": 2
+ }
+ },
+ DraftStateType: {
+ enumValues: {
+ "unpublished": 1,
+ "published": 2,
+ "cancelled": 3,
+ "error": 4
+ }
+ },
+ ExtensionAcquisitionRequest: {},
+ ExtensionDailyStat: {},
+ ExtensionDailyStats: {},
+ ExtensionDeploymentTechnology: {
+ enumValues: {
+ "exe": 1,
+ "msi": 2,
+ "vsix": 3,
+ "referralLink": 4
+ }
+ },
+ ExtensionDraft: {},
+ ExtensionDraftPatch: {},
+ ExtensionEvent: {},
+ ExtensionEvents: {},
+ ExtensionFilterResult: {},
+ ExtensionLifecycleEventType: {
+ enumValues: {
+ "uninstall": 1,
+ "install": 2,
+ "review": 3,
+ "acquisition": 4,
+ "sales": 5,
+ "other": 999
+ }
+ },
+ ExtensionPayload: {},
+ ExtensionPolicy: {},
+ ExtensionPolicyFlags: {
+ enumValues: {
+ "none": 0,
+ "private": 1,
+ "public": 2,
+ "preview": 4,
+ "released": 8,
+ "firstParty": 16,
+ "all": 31
+ }
+ },
+ ExtensionQuery: {},
+ ExtensionQueryFilterType: {
+ enumValues: {
+ "tag": 1,
+ "displayName": 2,
+ "private": 3,
+ "id": 4,
+ "category": 5,
+ "contributionType": 6,
+ "name": 7,
+ "installationTarget": 8,
+ "featured": 9,
+ "searchText": 10,
+ "featuredInCategory": 11,
+ "excludeWithFlags": 12,
+ "includeWithFlags": 13,
+ "lcid": 14,
+ "installationTargetVersion": 15,
+ "installationTargetVersionRange": 16,
+ "vsixMetadata": 17,
+ "publisherName": 18,
+ "publisherDisplayName": 19,
+ "includeWithPublisherFlags": 20,
+ "organizationSharedWith": 21,
+ "productArchitecture": 22,
+ "targetPlatform": 23,
+ "extensionName": 24
+ }
+ },
+ ExtensionQueryFlags: {
+ enumValues: {
+ "none": 0,
+ "includeVersions": 1,
+ "includeFiles": 2,
+ "includeCategoryAndTags": 4,
+ "includeSharedAccounts": 8,
+ "includeVersionProperties": 16,
+ "excludeNonValidated": 32,
+ "includeInstallationTargets": 64,
+ "includeAssetUri": 128,
+ "includeStatistics": 256,
+ "includeLatestVersionOnly": 512,
+ "useFallbackAssetUri": 1024,
+ "includeMetadata": 2048,
+ "includeMinimalPayloadForVsIde": 4096,
+ "includeLcids": 8192,
+ "includeSharedOrganizations": 16384,
+ "includeNameConflictInfo": 32768,
+ "allAttributes": 16863
+ }
+ },
+ ExtensionQueryResult: {},
+ ExtensionStatisticOperation: {
+ enumValues: {
+ "none": 0,
+ "set": 1,
+ "increment": 2,
+ "decrement": 3,
+ "delete": 4
+ }
+ },
+ ExtensionStatisticUpdate: {},
+ ExtensionStatsAggregateType: {
+ enumValues: {
+ "daily": 1
+ }
+ },
+ ExtensionVersion: {},
+ ExtensionVersionFlags: {
+ enumValues: {
+ "none": 0,
+ "validated": 1
+ }
+ },
+ NotificationsData: {},
+ NotificationTemplateType: {
+ enumValues: {
+ "reviewNotification": 1,
+ "qnaNotification": 2,
+ "customerContactNotification": 3,
+ "publisherMemberUpdateNotification": 4
+ }
+ },
+ PagingDirection: {
+ enumValues: {
+ "backward": 1,
+ "forward": 2
+ }
+ },
+ PublishedExtension: {},
+ PublishedExtensionFlags: {
+ enumValues: {
+ "none": 0,
+ "disabled": 1,
+ "builtIn": 2,
+ "validated": 4,
+ "trusted": 8,
+ "paid": 16,
+ "public": 256,
+ "multiVersion": 512,
+ "system": 1024,
+ "preview": 2048,
+ "unpublished": 4096,
+ "trial": 8192,
+ "locked": 16384,
+ "hidden": 32768
+ }
+ },
+ Publisher: {},
+ PublisherBase: {},
+ PublisherFacts: {},
+ PublisherFilterResult: {},
+ PublisherFlags: {
+ enumValues: {
+ "unChanged": 1073741824,
+ "none": 0,
+ "disabled": 1,
+ "verified": 2,
+ "certified": 4,
+ "serviceFlags": 7
+ }
+ },
+ PublisherPermissions: {
+ enumValues: {
+ "read": 1,
+ "updateExtension": 2,
+ "createPublisher": 4,
+ "publishExtension": 8,
+ "admin": 16,
+ "trustedPartner": 32,
+ "privateRead": 64,
+ "deleteExtension": 128,
+ "editSettings": 256,
+ "viewPermissions": 512,
+ "managePermissions": 1024,
+ "deletePublisher": 2048
+ }
+ },
+ PublisherQuery: {},
+ PublisherQueryFlags: {
+ enumValues: {
+ "none": 0,
+ "includeExtensions": 1,
+ "includeEmailAddress": 2
+ }
+ },
+ PublisherQueryResult: {},
+ PublisherRoleAccess: {
+ enumValues: {
+ "assigned": 1,
+ "inherited": 2
+ }
+ },
+ PublisherRoleAssignment: {},
+ PublisherState: {
+ enumValues: {
+ "none": 0,
+ "verificationPending": 1,
+ "certificationPending": 2,
+ "certificationRejected": 4,
+ "certificationRevoked": 8
+ }
+ },
+ QnAItem: {},
+ QnAItemStatus: {
+ enumValues: {
+ "none": 0,
+ "userEditable": 1,
+ "publisherCreated": 2
+ }
+ },
+ QueryFilter: {},
+ Question: {},
+ QuestionsResult: {},
+ Response: {},
+ RestApiResponseStatus: {
+ enumValues: {
+ "completed": 0,
+ "failed": 1,
+ "inprogress": 2,
+ "skipped": 3
+ }
+ },
+ RestApiResponseStatusModel: {},
+ Review: {},
+ ReviewEventOperation: {
+ enumValues: {
+ "create": 1,
+ "update": 2,
+ "delete": 3
+ }
+ },
+ ReviewEventProperties: {},
+ ReviewFilterOptions: {
+ enumValues: {
+ "none": 0,
+ "filterEmptyReviews": 1,
+ "filterEmptyUserNames": 2
+ }
+ },
+ ReviewPatch: {},
+ ReviewPatchOperation: {
+ enumValues: {
+ "flagReview": 1,
+ "updateReview": 2,
+ "replyToReview": 3,
+ "adminResponseForReview": 4,
+ "deleteAdminReply": 5,
+ "deletePublisherReply": 6
+ }
+ },
+ ReviewReply: {},
+ ReviewResourceType: {
+ enumValues: {
+ "review": 1,
+ "publisherReply": 2,
+ "adminReply": 3
+ }
+ },
+ ReviewsResult: {},
+ SortByType: {
+ enumValues: {
+ "relevance": 0,
+ "lastUpdatedDate": 1,
+ "title": 2,
+ "publisher": 3,
+ "installCount": 4,
+ "publishedDate": 5,
+ "averageRating": 6,
+ "trendingDaily": 7,
+ "trendingWeekly": 8,
+ "trendingMonthly": 9,
+ "releaseDate": 10,
+ "author": 11,
+ "weightedRating": 12
+ }
+ },
+ SortOrderType: {
+ enumValues: {
+ "default": 0,
+ "ascending": 1,
+ "descending": 2
+ }
+ },
+ UserExtensionPolicy: {},
+ UserReportedConcern: {},
+ VSCodeWebExtensionStatisicsType: {
+ enumValues: {
+ "install": 1,
+ "update": 2,
+ "uninstall": 3
+ }
+ },
+};
+exports.TypeInfo.AcquisitionOperation.fields = {
+ operationState: {
+ enumType: exports.TypeInfo.AcquisitionOperationState
+ },
+ operationType: {
+ enumType: exports.TypeInfo.AcquisitionOperationType
+ }
+};
+exports.TypeInfo.AcquisitionOptions.fields = {
+ defaultOperation: {
+ typeInfo: exports.TypeInfo.AcquisitionOperation
+ },
+ operations: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.AcquisitionOperation
+ }
+};
+exports.TypeInfo.AzureRestApiResponseModel.fields = {
+ operationStatus: {
+ typeInfo: exports.TypeInfo.RestApiResponseStatusModel
+ }
+};
+exports.TypeInfo.Concern.fields = {
+ category: {
+ enumType: exports.TypeInfo.ConcernCategory
+ },
+ createdDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.QnAItemStatus
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.CustomerLastContact.fields = {
+ lastContactDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.CustomerSupportRequest.fields = {
+ review: {
+ typeInfo: exports.TypeInfo.Review
+ }
+};
+exports.TypeInfo.ExtensionAcquisitionRequest.fields = {
+ assignmentType: {
+ enumType: exports.TypeInfo.AcquisitionAssignmentType
+ },
+ operationType: {
+ enumType: exports.TypeInfo.AcquisitionOperationType
+ }
+};
+exports.TypeInfo.ExtensionDailyStat.fields = {
+ statisticDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ExtensionDailyStats.fields = {
+ dailyStats: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionDailyStat
+ }
+};
+exports.TypeInfo.ExtensionDraft.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ draftState: {
+ enumType: exports.TypeInfo.DraftStateType
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ payload: {
+ typeInfo: exports.TypeInfo.ExtensionPayload
+ }
+};
+exports.TypeInfo.ExtensionDraftPatch.fields = {
+ operation: {
+ enumType: exports.TypeInfo.DraftPatchOperation
+ }
+};
+exports.TypeInfo.ExtensionEvent.fields = {
+ statisticDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ExtensionEvents.fields = {
+ events: {
+ isDictionary: true,
+ dictionaryValueFieldInfo: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionEvent
+ }
+ }
+};
+exports.TypeInfo.ExtensionFilterResult.fields = {
+ extensions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.PublishedExtension
+ }
+};
+exports.TypeInfo.ExtensionPayload.fields = {
+ type: {
+ enumType: exports.TypeInfo.ExtensionDeploymentTechnology
+ }
+};
+exports.TypeInfo.ExtensionPolicy.fields = {
+ install: {
+ enumType: exports.TypeInfo.ExtensionPolicyFlags
+ },
+ request: {
+ enumType: exports.TypeInfo.ExtensionPolicyFlags
+ }
+};
+exports.TypeInfo.ExtensionQuery.fields = {
+ filters: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.QueryFilter
+ },
+ flags: {
+ enumType: exports.TypeInfo.ExtensionQueryFlags
+ }
+};
+exports.TypeInfo.ExtensionQueryResult.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionFilterResult
+ }
+};
+exports.TypeInfo.ExtensionStatisticUpdate.fields = {
+ operation: {
+ enumType: exports.TypeInfo.ExtensionStatisticOperation
+ }
+};
+exports.TypeInfo.ExtensionVersion.fields = {
+ flags: {
+ enumType: exports.TypeInfo.ExtensionVersionFlags
+ },
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.NotificationsData.fields = {
+ type: {
+ enumType: exports.TypeInfo.NotificationTemplateType
+ }
+};
+exports.TypeInfo.PublishedExtension.fields = {
+ deploymentType: {
+ enumType: exports.TypeInfo.ExtensionDeploymentTechnology
+ },
+ flags: {
+ enumType: exports.TypeInfo.PublishedExtensionFlags
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ publishedDate: {
+ isDate: true,
+ },
+ publisher: {
+ typeInfo: exports.TypeInfo.PublisherFacts
+ },
+ releaseDate: {
+ isDate: true,
+ },
+ versions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ExtensionVersion
+ }
+};
+exports.TypeInfo.Publisher.fields = {
+ extensions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.PublishedExtension
+ },
+ flags: {
+ enumType: exports.TypeInfo.PublisherFlags
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.PublisherState
+ }
+};
+exports.TypeInfo.PublisherBase.fields = {
+ extensions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.PublishedExtension
+ },
+ flags: {
+ enumType: exports.TypeInfo.PublisherFlags
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.PublisherState
+ }
+};
+exports.TypeInfo.PublisherFacts.fields = {
+ flags: {
+ enumType: exports.TypeInfo.PublisherFlags
+ }
+};
+exports.TypeInfo.PublisherFilterResult.fields = {
+ publishers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Publisher
+ }
+};
+exports.TypeInfo.PublisherQuery.fields = {
+ filters: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.QueryFilter
+ },
+ flags: {
+ enumType: exports.TypeInfo.PublisherQueryFlags
+ }
+};
+exports.TypeInfo.PublisherQueryResult.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.PublisherFilterResult
+ }
+};
+exports.TypeInfo.PublisherRoleAssignment.fields = {
+ access: {
+ enumType: exports.TypeInfo.PublisherRoleAccess
+ }
+};
+exports.TypeInfo.QnAItem.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.QnAItemStatus
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.QueryFilter.fields = {
+ direction: {
+ enumType: exports.TypeInfo.PagingDirection
+ }
+};
+exports.TypeInfo.Question.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ responses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Response
+ },
+ status: {
+ enumType: exports.TypeInfo.QnAItemStatus
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.QuestionsResult.fields = {
+ questions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Question
+ }
+};
+exports.TypeInfo.Response.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.QnAItemStatus
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.RestApiResponseStatusModel.fields = {
+ status: {
+ enumType: exports.TypeInfo.RestApiResponseStatus
+ }
+};
+exports.TypeInfo.Review.fields = {
+ adminReply: {
+ typeInfo: exports.TypeInfo.ReviewReply
+ },
+ reply: {
+ typeInfo: exports.TypeInfo.ReviewReply
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReviewEventProperties.fields = {
+ eventOperation: {
+ enumType: exports.TypeInfo.ReviewEventOperation
+ },
+ replyDate: {
+ isDate: true,
+ },
+ resourceType: {
+ enumType: exports.TypeInfo.ReviewResourceType
+ },
+ reviewDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReviewPatch.fields = {
+ operation: {
+ enumType: exports.TypeInfo.ReviewPatchOperation
+ },
+ reportedConcern: {
+ typeInfo: exports.TypeInfo.UserReportedConcern
+ },
+ reviewItem: {
+ typeInfo: exports.TypeInfo.Review
+ }
+};
+exports.TypeInfo.ReviewReply.fields = {
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReviewsResult.fields = {
+ reviews: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Review
+ }
+};
+exports.TypeInfo.UserExtensionPolicy.fields = {
+ permissions: {
+ typeInfo: exports.TypeInfo.ExtensionPolicy
+ }
+};
+exports.TypeInfo.UserReportedConcern.fields = {
+ category: {
+ enumType: exports.TypeInfo.ConcernCategory
+ },
+ submittedDate: {
+ isDate: true,
+ }
+};
+
+
+/***/ }),
+
+/***/ 9803:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const PolicyInterfaces = __nccwpck_require__(8555);
+const TfsCoreInterfaces = __nccwpck_require__(3931);
+/**
+ * The status of a comment thread.
+ */
+var CommentThreadStatus;
+(function (CommentThreadStatus) {
+ /**
+ * The thread status is unknown.
+ */
+ CommentThreadStatus[CommentThreadStatus["Unknown"] = 0] = "Unknown";
+ /**
+ * The thread status is active.
+ */
+ CommentThreadStatus[CommentThreadStatus["Active"] = 1] = "Active";
+ /**
+ * The thread status is resolved as fixed.
+ */
+ CommentThreadStatus[CommentThreadStatus["Fixed"] = 2] = "Fixed";
+ /**
+ * The thread status is resolved as won't fix.
+ */
+ CommentThreadStatus[CommentThreadStatus["WontFix"] = 3] = "WontFix";
+ /**
+ * The thread status is closed.
+ */
+ CommentThreadStatus[CommentThreadStatus["Closed"] = 4] = "Closed";
+ /**
+ * The thread status is resolved as by design.
+ */
+ CommentThreadStatus[CommentThreadStatus["ByDesign"] = 5] = "ByDesign";
+ /**
+ * The thread status is pending.
+ */
+ CommentThreadStatus[CommentThreadStatus["Pending"] = 6] = "Pending";
+})(CommentThreadStatus = exports.CommentThreadStatus || (exports.CommentThreadStatus = {}));
+/**
+ * The type of a comment.
+ */
+var CommentType;
+(function (CommentType) {
+ /**
+ * The comment type is not known.
+ */
+ CommentType[CommentType["Unknown"] = 0] = "Unknown";
+ /**
+ * This is a regular user comment.
+ */
+ CommentType[CommentType["Text"] = 1] = "Text";
+ /**
+ * The comment comes as a result of a code change.
+ */
+ CommentType[CommentType["CodeChange"] = 2] = "CodeChange";
+ /**
+ * The comment represents a system message.
+ */
+ CommentType[CommentType["System"] = 3] = "System";
+})(CommentType = exports.CommentType || (exports.CommentType = {}));
+/**
+ * Current status of the asynchronous operation.
+ */
+var GitAsyncOperationStatus;
+(function (GitAsyncOperationStatus) {
+ /**
+ * The operation is waiting in a queue and has not yet started.
+ */
+ GitAsyncOperationStatus[GitAsyncOperationStatus["Queued"] = 1] = "Queued";
+ /**
+ * The operation is currently in progress.
+ */
+ GitAsyncOperationStatus[GitAsyncOperationStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * The operation has completed.
+ */
+ GitAsyncOperationStatus[GitAsyncOperationStatus["Completed"] = 3] = "Completed";
+ /**
+ * The operation has failed. Check for an error message.
+ */
+ GitAsyncOperationStatus[GitAsyncOperationStatus["Failed"] = 4] = "Failed";
+ /**
+ * The operation has been abandoned.
+ */
+ GitAsyncOperationStatus[GitAsyncOperationStatus["Abandoned"] = 5] = "Abandoned";
+})(GitAsyncOperationStatus = exports.GitAsyncOperationStatus || (exports.GitAsyncOperationStatus = {}));
+var GitAsyncRefOperationFailureStatus;
+(function (GitAsyncRefOperationFailureStatus) {
+ /**
+ * No status
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["None"] = 0] = "None";
+ /**
+ * Indicates that the ref update request could not be completed because the ref name presented in the request was not valid.
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["InvalidRefName"] = 1] = "InvalidRefName";
+ /**
+ * The ref update could not be completed because, in case-insensitive mode, the ref name conflicts with an existing, differently-cased ref name.
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["RefNameConflict"] = 2] = "RefNameConflict";
+ /**
+ * The ref update request could not be completed because the user lacks the permission to create a branch
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["CreateBranchPermissionRequired"] = 3] = "CreateBranchPermissionRequired";
+ /**
+ * The ref update request could not be completed because the user lacks write permissions required to write this ref
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["WritePermissionRequired"] = 4] = "WritePermissionRequired";
+ /**
+ * Target branch was deleted after Git async operation started
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["TargetBranchDeleted"] = 5] = "TargetBranchDeleted";
+ /**
+ * Git object is too large to materialize into memory
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["GitObjectTooLarge"] = 6] = "GitObjectTooLarge";
+ /**
+ * Identity who authorized the operation was not found
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["OperationIndentityNotFound"] = 7] = "OperationIndentityNotFound";
+ /**
+ * Async operation was not found
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["AsyncOperationNotFound"] = 8] = "AsyncOperationNotFound";
+ /**
+ * Unexpected failure
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["Other"] = 9] = "Other";
+ /**
+ * Initiator of async operation has signature with empty name or email
+ */
+ GitAsyncRefOperationFailureStatus[GitAsyncRefOperationFailureStatus["EmptyCommitterSignature"] = 10] = "EmptyCommitterSignature";
+})(GitAsyncRefOperationFailureStatus = exports.GitAsyncRefOperationFailureStatus || (exports.GitAsyncRefOperationFailureStatus = {}));
+/**
+ * The type of a merge conflict.
+ */
+var GitConflictType;
+(function (GitConflictType) {
+ /**
+ * No conflict
+ */
+ GitConflictType[GitConflictType["None"] = 0] = "None";
+ /**
+ * Added on source and target; content differs
+ */
+ GitConflictType[GitConflictType["AddAdd"] = 1] = "AddAdd";
+ /**
+ * Added on source and rename destination on target
+ */
+ GitConflictType[GitConflictType["AddRename"] = 2] = "AddRename";
+ /**
+ * Deleted on source and edited on target
+ */
+ GitConflictType[GitConflictType["DeleteEdit"] = 3] = "DeleteEdit";
+ /**
+ * Deleted on source and renamed on target
+ */
+ GitConflictType[GitConflictType["DeleteRename"] = 4] = "DeleteRename";
+ /**
+ * Path is a directory on source and a file on target
+ */
+ GitConflictType[GitConflictType["DirectoryFile"] = 5] = "DirectoryFile";
+ /**
+ * Children of directory which has DirectoryFile or FileDirectory conflict
+ */
+ GitConflictType[GitConflictType["DirectoryChild"] = 6] = "DirectoryChild";
+ /**
+ * Edited on source and deleted on target
+ */
+ GitConflictType[GitConflictType["EditDelete"] = 7] = "EditDelete";
+ /**
+ * Edited on source and target; content differs
+ */
+ GitConflictType[GitConflictType["EditEdit"] = 8] = "EditEdit";
+ /**
+ * Path is a file on source and a directory on target
+ */
+ GitConflictType[GitConflictType["FileDirectory"] = 9] = "FileDirectory";
+ /**
+ * Same file renamed on both source and target; destination paths differ
+ */
+ GitConflictType[GitConflictType["Rename1to2"] = 10] = "Rename1to2";
+ /**
+ * Different files renamed to same destination path on both source and target
+ */
+ GitConflictType[GitConflictType["Rename2to1"] = 11] = "Rename2to1";
+ /**
+ * Rename destination on source and new file on target
+ */
+ GitConflictType[GitConflictType["RenameAdd"] = 12] = "RenameAdd";
+ /**
+ * Renamed on source and deleted on target
+ */
+ GitConflictType[GitConflictType["RenameDelete"] = 13] = "RenameDelete";
+ /**
+ * Rename destination on both source and target; content differs
+ */
+ GitConflictType[GitConflictType["RenameRename"] = 14] = "RenameRename";
+})(GitConflictType = exports.GitConflictType || (exports.GitConflictType = {}));
+/**
+ * Represents the possible outcomes from a request to update a pull request conflict
+ */
+var GitConflictUpdateStatus;
+(function (GitConflictUpdateStatus) {
+ /**
+ * Indicates that pull request conflict update request was completed successfully
+ */
+ GitConflictUpdateStatus[GitConflictUpdateStatus["Succeeded"] = 0] = "Succeeded";
+ /**
+ * Indicates that the update request did not fit the expected data contract
+ */
+ GitConflictUpdateStatus[GitConflictUpdateStatus["BadRequest"] = 1] = "BadRequest";
+ /**
+ * Indicates that the requested resolution was not valid
+ */
+ GitConflictUpdateStatus[GitConflictUpdateStatus["InvalidResolution"] = 2] = "InvalidResolution";
+ /**
+ * Indicates that the conflict in the update request was not a supported conflict type
+ */
+ GitConflictUpdateStatus[GitConflictUpdateStatus["UnsupportedConflictType"] = 3] = "UnsupportedConflictType";
+ /**
+ * Indicates that the conflict could not be found
+ */
+ GitConflictUpdateStatus[GitConflictUpdateStatus["NotFound"] = 4] = "NotFound";
+})(GitConflictUpdateStatus = exports.GitConflictUpdateStatus || (exports.GitConflictUpdateStatus = {}));
+/**
+ * Accepted types of version
+ */
+var GitHistoryMode;
+(function (GitHistoryMode) {
+ /**
+ * The history mode used by `git log`. This is the default.
+ */
+ GitHistoryMode[GitHistoryMode["SimplifiedHistory"] = 0] = "SimplifiedHistory";
+ /**
+ * The history mode used by `git log --first-parent`
+ */
+ GitHistoryMode[GitHistoryMode["FirstParent"] = 1] = "FirstParent";
+ /**
+ * The history mode used by `git log --full-history`
+ */
+ GitHistoryMode[GitHistoryMode["FullHistory"] = 2] = "FullHistory";
+ /**
+ * The history mode used by `git log --full-history --simplify-merges`
+ */
+ GitHistoryMode[GitHistoryMode["FullHistorySimplifyMerges"] = 3] = "FullHistorySimplifyMerges";
+})(GitHistoryMode = exports.GitHistoryMode || (exports.GitHistoryMode = {}));
+var GitObjectType;
+(function (GitObjectType) {
+ GitObjectType[GitObjectType["Bad"] = 0] = "Bad";
+ GitObjectType[GitObjectType["Commit"] = 1] = "Commit";
+ GitObjectType[GitObjectType["Tree"] = 2] = "Tree";
+ GitObjectType[GitObjectType["Blob"] = 3] = "Blob";
+ GitObjectType[GitObjectType["Tag"] = 4] = "Tag";
+ GitObjectType[GitObjectType["Ext2"] = 5] = "Ext2";
+ GitObjectType[GitObjectType["OfsDelta"] = 6] = "OfsDelta";
+ GitObjectType[GitObjectType["RefDelta"] = 7] = "RefDelta";
+})(GitObjectType = exports.GitObjectType || (exports.GitObjectType = {}));
+var GitPathActions;
+(function (GitPathActions) {
+ GitPathActions[GitPathActions["None"] = 0] = "None";
+ GitPathActions[GitPathActions["Edit"] = 1] = "Edit";
+ GitPathActions[GitPathActions["Delete"] = 2] = "Delete";
+ GitPathActions[GitPathActions["Add"] = 3] = "Add";
+ GitPathActions[GitPathActions["Rename"] = 4] = "Rename";
+})(GitPathActions = exports.GitPathActions || (exports.GitPathActions = {}));
+/**
+ * Enumeration of possible merge strategies which can be used to complete a pull request.
+ */
+var GitPullRequestMergeStrategy;
+(function (GitPullRequestMergeStrategy) {
+ /**
+ * A two-parent, no-fast-forward merge. The source branch is unchanged. This is the default behavior.
+ */
+ GitPullRequestMergeStrategy[GitPullRequestMergeStrategy["NoFastForward"] = 1] = "NoFastForward";
+ /**
+ * Put all changes from the pull request into a single-parent commit.
+ */
+ GitPullRequestMergeStrategy[GitPullRequestMergeStrategy["Squash"] = 2] = "Squash";
+ /**
+ * Rebase the source branch on top of the target branch HEAD commit, and fast-forward the target branch. The source branch is updated during the rebase operation.
+ */
+ GitPullRequestMergeStrategy[GitPullRequestMergeStrategy["Rebase"] = 3] = "Rebase";
+ /**
+ * Rebase the source branch on top of the target branch HEAD commit, and create a two-parent, no-fast-forward merge. The source branch is updated during the rebase operation.
+ */
+ GitPullRequestMergeStrategy[GitPullRequestMergeStrategy["RebaseMerge"] = 4] = "RebaseMerge";
+})(GitPullRequestMergeStrategy = exports.GitPullRequestMergeStrategy || (exports.GitPullRequestMergeStrategy = {}));
+/**
+ * Accepted types of pull request queries.
+ */
+var GitPullRequestQueryType;
+(function (GitPullRequestQueryType) {
+ /**
+ * No query type set.
+ */
+ GitPullRequestQueryType[GitPullRequestQueryType["NotSet"] = 0] = "NotSet";
+ /**
+ * Search for pull requests that created the supplied merge commits.
+ */
+ GitPullRequestQueryType[GitPullRequestQueryType["LastMergeCommit"] = 1] = "LastMergeCommit";
+ /**
+ * Search for pull requests that merged the supplied commits.
+ */
+ GitPullRequestQueryType[GitPullRequestQueryType["Commit"] = 2] = "Commit";
+})(GitPullRequestQueryType = exports.GitPullRequestQueryType || (exports.GitPullRequestQueryType = {}));
+var GitPullRequestReviewFileType;
+(function (GitPullRequestReviewFileType) {
+ GitPullRequestReviewFileType[GitPullRequestReviewFileType["ChangeEntry"] = 0] = "ChangeEntry";
+ GitPullRequestReviewFileType[GitPullRequestReviewFileType["Attachment"] = 1] = "Attachment";
+})(GitPullRequestReviewFileType = exports.GitPullRequestReviewFileType || (exports.GitPullRequestReviewFileType = {}));
+/**
+ * Search type on ref name
+ */
+var GitRefSearchType;
+(function (GitRefSearchType) {
+ GitRefSearchType[GitRefSearchType["Exact"] = 0] = "Exact";
+ GitRefSearchType[GitRefSearchType["StartsWith"] = 1] = "StartsWith";
+ GitRefSearchType[GitRefSearchType["Contains"] = 2] = "Contains";
+})(GitRefSearchType = exports.GitRefSearchType || (exports.GitRefSearchType = {}));
+/**
+ * Enumerates the modes under which ref updates can be written to their repositories.
+ */
+var GitRefUpdateMode;
+(function (GitRefUpdateMode) {
+ /**
+ * Indicates the Git protocol model where any refs that can be updated will be updated, but any failures will not prevent other updates from succeeding.
+ */
+ GitRefUpdateMode[GitRefUpdateMode["BestEffort"] = 0] = "BestEffort";
+ /**
+ * Indicates that all ref updates must succeed or none will succeed. All ref updates will be atomically written. If any failure is encountered, previously successful updates will be rolled back and the entire operation will fail.
+ */
+ GitRefUpdateMode[GitRefUpdateMode["AllOrNone"] = 1] = "AllOrNone";
+})(GitRefUpdateMode = exports.GitRefUpdateMode || (exports.GitRefUpdateMode = {}));
+/**
+ * Represents the possible outcomes from a request to update a ref in a repository.
+ */
+var GitRefUpdateStatus;
+(function (GitRefUpdateStatus) {
+ /**
+ * Indicates that the ref update request was completed successfully.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["Succeeded"] = 0] = "Succeeded";
+ /**
+ * Indicates that the ref update request could not be completed because part of the graph would be disconnected by this change, and the caller does not have ForcePush permission on the repository.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["ForcePushRequired"] = 1] = "ForcePushRequired";
+ /**
+ * Indicates that the ref update request could not be completed because the old object ID presented in the request was not the object ID of the ref when the database attempted the update. The most likely scenario is that the caller lost a race to update the ref.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["StaleOldObjectId"] = 2] = "StaleOldObjectId";
+ /**
+ * Indicates that the ref update request could not be completed because the ref name presented in the request was not valid.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["InvalidRefName"] = 3] = "InvalidRefName";
+ /**
+ * The request was not processed
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["Unprocessed"] = 4] = "Unprocessed";
+ /**
+ * The ref update request could not be completed because the new object ID for the ref could not be resolved to a commit object (potentially through any number of tags)
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["UnresolvableToCommit"] = 5] = "UnresolvableToCommit";
+ /**
+ * The ref update request could not be completed because the user lacks write permissions required to write this ref
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["WritePermissionRequired"] = 6] = "WritePermissionRequired";
+ /**
+ * The ref update request could not be completed because the user lacks note creation permissions required to write this note
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["ManageNotePermissionRequired"] = 7] = "ManageNotePermissionRequired";
+ /**
+ * The ref update request could not be completed because the user lacks the permission to create a branch
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["CreateBranchPermissionRequired"] = 8] = "CreateBranchPermissionRequired";
+ /**
+ * The ref update request could not be completed because the user lacks the permission to create a tag
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["CreateTagPermissionRequired"] = 9] = "CreateTagPermissionRequired";
+ /**
+ * The ref update could not be completed because it was rejected by the plugin.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["RejectedByPlugin"] = 10] = "RejectedByPlugin";
+ /**
+ * The ref update could not be completed because the ref is locked by another user.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["Locked"] = 11] = "Locked";
+ /**
+ * The ref update could not be completed because, in case-insensitive mode, the ref name conflicts with an existing, differently-cased ref name.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["RefNameConflict"] = 12] = "RefNameConflict";
+ /**
+ * The ref update could not be completed because it was rejected by policy.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["RejectedByPolicy"] = 13] = "RejectedByPolicy";
+ /**
+ * Indicates that the ref update request was completed successfully, but the ref doesn't actually exist so no changes were made. This should only happen during deletes.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["SucceededNonExistentRef"] = 14] = "SucceededNonExistentRef";
+ /**
+ * Indicates that the ref update request was completed successfully, but the passed-in ref was corrupt - as in, the old object ID was bad. This should only happen during deletes.
+ */
+ GitRefUpdateStatus[GitRefUpdateStatus["SucceededCorruptRef"] = 15] = "SucceededCorruptRef";
+})(GitRefUpdateStatus = exports.GitRefUpdateStatus || (exports.GitRefUpdateStatus = {}));
+/**
+ * The type of a merge conflict.
+ */
+var GitResolutionError;
+(function (GitResolutionError) {
+ /**
+ * No error
+ */
+ GitResolutionError[GitResolutionError["None"] = 0] = "None";
+ /**
+ * User set a blob id for resolving a content merge, but blob was not found in repo during application
+ */
+ GitResolutionError[GitResolutionError["MergeContentNotFound"] = 1] = "MergeContentNotFound";
+ /**
+ * Attempted to resolve a conflict by moving a file to another path, but path was already in use
+ */
+ GitResolutionError[GitResolutionError["PathInUse"] = 2] = "PathInUse";
+ /**
+ * No error
+ */
+ GitResolutionError[GitResolutionError["InvalidPath"] = 3] = "InvalidPath";
+ /**
+ * GitResolutionAction was set to an unrecognized value
+ */
+ GitResolutionError[GitResolutionError["UnknownAction"] = 4] = "UnknownAction";
+ /**
+ * GitResolutionMergeType was set to an unrecognized value
+ */
+ GitResolutionError[GitResolutionError["UnknownMergeType"] = 5] = "UnknownMergeType";
+ /**
+ * Any error for which a more specific code doesn't apply
+ */
+ GitResolutionError[GitResolutionError["OtherError"] = 255] = "OtherError";
+})(GitResolutionError = exports.GitResolutionError || (exports.GitResolutionError = {}));
+var GitResolutionMergeType;
+(function (GitResolutionMergeType) {
+ GitResolutionMergeType[GitResolutionMergeType["Undecided"] = 0] = "Undecided";
+ GitResolutionMergeType[GitResolutionMergeType["TakeSourceContent"] = 1] = "TakeSourceContent";
+ GitResolutionMergeType[GitResolutionMergeType["TakeTargetContent"] = 2] = "TakeTargetContent";
+ GitResolutionMergeType[GitResolutionMergeType["AutoMerged"] = 3] = "AutoMerged";
+ GitResolutionMergeType[GitResolutionMergeType["UserMerged"] = 4] = "UserMerged";
+})(GitResolutionMergeType = exports.GitResolutionMergeType || (exports.GitResolutionMergeType = {}));
+var GitResolutionPathConflictAction;
+(function (GitResolutionPathConflictAction) {
+ GitResolutionPathConflictAction[GitResolutionPathConflictAction["Undecided"] = 0] = "Undecided";
+ GitResolutionPathConflictAction[GitResolutionPathConflictAction["KeepSourceRenameTarget"] = 1] = "KeepSourceRenameTarget";
+ GitResolutionPathConflictAction[GitResolutionPathConflictAction["KeepSourceDeleteTarget"] = 2] = "KeepSourceDeleteTarget";
+ GitResolutionPathConflictAction[GitResolutionPathConflictAction["KeepTargetRenameSource"] = 3] = "KeepTargetRenameSource";
+ GitResolutionPathConflictAction[GitResolutionPathConflictAction["KeepTargetDeleteSource"] = 4] = "KeepTargetDeleteSource";
+})(GitResolutionPathConflictAction = exports.GitResolutionPathConflictAction || (exports.GitResolutionPathConflictAction = {}));
+var GitResolutionRename1to2Action;
+(function (GitResolutionRename1to2Action) {
+ GitResolutionRename1to2Action[GitResolutionRename1to2Action["Undecided"] = 0] = "Undecided";
+ GitResolutionRename1to2Action[GitResolutionRename1to2Action["KeepSourcePath"] = 1] = "KeepSourcePath";
+ GitResolutionRename1to2Action[GitResolutionRename1to2Action["KeepTargetPath"] = 2] = "KeepTargetPath";
+ GitResolutionRename1to2Action[GitResolutionRename1to2Action["KeepBothFiles"] = 3] = "KeepBothFiles";
+})(GitResolutionRename1to2Action = exports.GitResolutionRename1to2Action || (exports.GitResolutionRename1to2Action = {}));
+/**
+ * Resolution status of a conflict.
+ */
+var GitResolutionStatus;
+(function (GitResolutionStatus) {
+ GitResolutionStatus[GitResolutionStatus["Unresolved"] = 0] = "Unresolved";
+ GitResolutionStatus[GitResolutionStatus["PartiallyResolved"] = 1] = "PartiallyResolved";
+ GitResolutionStatus[GitResolutionStatus["Resolved"] = 2] = "Resolved";
+})(GitResolutionStatus = exports.GitResolutionStatus || (exports.GitResolutionStatus = {}));
+var GitResolutionWhichAction;
+(function (GitResolutionWhichAction) {
+ GitResolutionWhichAction[GitResolutionWhichAction["Undecided"] = 0] = "Undecided";
+ GitResolutionWhichAction[GitResolutionWhichAction["PickSourceAction"] = 1] = "PickSourceAction";
+ GitResolutionWhichAction[GitResolutionWhichAction["PickTargetAction"] = 2] = "PickTargetAction";
+})(GitResolutionWhichAction = exports.GitResolutionWhichAction || (exports.GitResolutionWhichAction = {}));
+/**
+ * State of the status.
+ */
+var GitStatusState;
+(function (GitStatusState) {
+ /**
+ * Status state not set. Default state.
+ */
+ GitStatusState[GitStatusState["NotSet"] = 0] = "NotSet";
+ /**
+ * Status pending.
+ */
+ GitStatusState[GitStatusState["Pending"] = 1] = "Pending";
+ /**
+ * Status succeeded.
+ */
+ GitStatusState[GitStatusState["Succeeded"] = 2] = "Succeeded";
+ /**
+ * Status failed.
+ */
+ GitStatusState[GitStatusState["Failed"] = 3] = "Failed";
+ /**
+ * Status with an error.
+ */
+ GitStatusState[GitStatusState["Error"] = 4] = "Error";
+ /**
+ * Status is not applicable to the target object.
+ */
+ GitStatusState[GitStatusState["NotApplicable"] = 5] = "NotApplicable";
+})(GitStatusState = exports.GitStatusState || (exports.GitStatusState = {}));
+/**
+ * Accepted types of version options
+ */
+var GitVersionOptions;
+(function (GitVersionOptions) {
+ /**
+ * Not specified
+ */
+ GitVersionOptions[GitVersionOptions["None"] = 0] = "None";
+ /**
+ * Commit that changed item prior to the current version
+ */
+ GitVersionOptions[GitVersionOptions["PreviousChange"] = 1] = "PreviousChange";
+ /**
+ * First parent of commit (HEAD^)
+ */
+ GitVersionOptions[GitVersionOptions["FirstParent"] = 2] = "FirstParent";
+})(GitVersionOptions = exports.GitVersionOptions || (exports.GitVersionOptions = {}));
+/**
+ * Accepted types of version
+ */
+var GitVersionType;
+(function (GitVersionType) {
+ /**
+ * Interpret the version as a branch name
+ */
+ GitVersionType[GitVersionType["Branch"] = 0] = "Branch";
+ /**
+ * Interpret the version as a tag name
+ */
+ GitVersionType[GitVersionType["Tag"] = 1] = "Tag";
+ /**
+ * Interpret the version as a commit ID (SHA1)
+ */
+ GitVersionType[GitVersionType["Commit"] = 2] = "Commit";
+})(GitVersionType = exports.GitVersionType || (exports.GitVersionType = {}));
+var ItemContentType;
+(function (ItemContentType) {
+ ItemContentType[ItemContentType["RawText"] = 0] = "RawText";
+ ItemContentType[ItemContentType["Base64Encoded"] = 1] = "Base64Encoded";
+})(ItemContentType = exports.ItemContentType || (exports.ItemContentType = {}));
+/**
+ * The reason for which the pull request iteration was created.
+ */
+var IterationReason;
+(function (IterationReason) {
+ IterationReason[IterationReason["Push"] = 0] = "Push";
+ IterationReason[IterationReason["ForcePush"] = 1] = "ForcePush";
+ IterationReason[IterationReason["Create"] = 2] = "Create";
+ IterationReason[IterationReason["Rebase"] = 4] = "Rebase";
+ IterationReason[IterationReason["Unknown"] = 8] = "Unknown";
+ IterationReason[IterationReason["Retarget"] = 16] = "Retarget";
+ IterationReason[IterationReason["ResolveConflicts"] = 32] = "ResolveConflicts";
+})(IterationReason = exports.IterationReason || (exports.IterationReason = {}));
+/**
+ * Type of change for a line diff block
+ */
+var LineDiffBlockChangeType;
+(function (LineDiffBlockChangeType) {
+ /**
+ * No change - both the blocks are identical
+ */
+ LineDiffBlockChangeType[LineDiffBlockChangeType["None"] = 0] = "None";
+ /**
+ * Lines were added to the block in the modified file
+ */
+ LineDiffBlockChangeType[LineDiffBlockChangeType["Add"] = 1] = "Add";
+ /**
+ * Lines were deleted from the block in the original file
+ */
+ LineDiffBlockChangeType[LineDiffBlockChangeType["Delete"] = 2] = "Delete";
+ /**
+ * Lines were modified
+ */
+ LineDiffBlockChangeType[LineDiffBlockChangeType["Edit"] = 3] = "Edit";
+})(LineDiffBlockChangeType = exports.LineDiffBlockChangeType || (exports.LineDiffBlockChangeType = {}));
+/**
+ * The status of a pull request merge.
+ */
+var PullRequestAsyncStatus;
+(function (PullRequestAsyncStatus) {
+ /**
+ * Status is not set. Default state.
+ */
+ PullRequestAsyncStatus[PullRequestAsyncStatus["NotSet"] = 0] = "NotSet";
+ /**
+ * Pull request merge is queued.
+ */
+ PullRequestAsyncStatus[PullRequestAsyncStatus["Queued"] = 1] = "Queued";
+ /**
+ * Pull request merge failed due to conflicts.
+ */
+ PullRequestAsyncStatus[PullRequestAsyncStatus["Conflicts"] = 2] = "Conflicts";
+ /**
+ * Pull request merge succeeded.
+ */
+ PullRequestAsyncStatus[PullRequestAsyncStatus["Succeeded"] = 3] = "Succeeded";
+ /**
+ * Pull request merge rejected by policy.
+ */
+ PullRequestAsyncStatus[PullRequestAsyncStatus["RejectedByPolicy"] = 4] = "RejectedByPolicy";
+ /**
+ * Pull request merge failed.
+ */
+ PullRequestAsyncStatus[PullRequestAsyncStatus["Failure"] = 5] = "Failure";
+})(PullRequestAsyncStatus = exports.PullRequestAsyncStatus || (exports.PullRequestAsyncStatus = {}));
+/**
+ * The specific type of a pull request merge failure.
+ */
+var PullRequestMergeFailureType;
+(function (PullRequestMergeFailureType) {
+ /**
+ * Type is not set. Default type.
+ */
+ PullRequestMergeFailureType[PullRequestMergeFailureType["None"] = 0] = "None";
+ /**
+ * Pull request merge failure type unknown.
+ */
+ PullRequestMergeFailureType[PullRequestMergeFailureType["Unknown"] = 1] = "Unknown";
+ /**
+ * Pull request merge failed due to case mismatch.
+ */
+ PullRequestMergeFailureType[PullRequestMergeFailureType["CaseSensitive"] = 2] = "CaseSensitive";
+ /**
+ * Pull request merge failed due to an object being too large.
+ */
+ PullRequestMergeFailureType[PullRequestMergeFailureType["ObjectTooLarge"] = 3] = "ObjectTooLarge";
+})(PullRequestMergeFailureType = exports.PullRequestMergeFailureType || (exports.PullRequestMergeFailureType = {}));
+/**
+ * Status of a pull request.
+ */
+var PullRequestStatus;
+(function (PullRequestStatus) {
+ /**
+ * Status not set. Default state.
+ */
+ PullRequestStatus[PullRequestStatus["NotSet"] = 0] = "NotSet";
+ /**
+ * Pull request is active.
+ */
+ PullRequestStatus[PullRequestStatus["Active"] = 1] = "Active";
+ /**
+ * Pull request is abandoned.
+ */
+ PullRequestStatus[PullRequestStatus["Abandoned"] = 2] = "Abandoned";
+ /**
+ * Pull request is completed.
+ */
+ PullRequestStatus[PullRequestStatus["Completed"] = 3] = "Completed";
+ /**
+ * Used in pull request search criteria to include all statuses.
+ */
+ PullRequestStatus[PullRequestStatus["All"] = 4] = "All";
+})(PullRequestStatus = exports.PullRequestStatus || (exports.PullRequestStatus = {}));
+var RefFavoriteType;
+(function (RefFavoriteType) {
+ RefFavoriteType[RefFavoriteType["Invalid"] = 0] = "Invalid";
+ RefFavoriteType[RefFavoriteType["Folder"] = 1] = "Folder";
+ RefFavoriteType[RefFavoriteType["Ref"] = 2] = "Ref";
+})(RefFavoriteType = exports.RefFavoriteType || (exports.RefFavoriteType = {}));
+/**
+ * Enumeration that represents the types of IDEs supported.
+ */
+var SupportedIdeType;
+(function (SupportedIdeType) {
+ SupportedIdeType[SupportedIdeType["Unknown"] = 0] = "Unknown";
+ SupportedIdeType[SupportedIdeType["AndroidStudio"] = 1] = "AndroidStudio";
+ SupportedIdeType[SupportedIdeType["AppCode"] = 2] = "AppCode";
+ SupportedIdeType[SupportedIdeType["CLion"] = 3] = "CLion";
+ SupportedIdeType[SupportedIdeType["DataGrip"] = 4] = "DataGrip";
+ SupportedIdeType[SupportedIdeType["Eclipse"] = 13] = "Eclipse";
+ SupportedIdeType[SupportedIdeType["IntelliJ"] = 5] = "IntelliJ";
+ SupportedIdeType[SupportedIdeType["MPS"] = 6] = "MPS";
+ SupportedIdeType[SupportedIdeType["PhpStorm"] = 7] = "PhpStorm";
+ SupportedIdeType[SupportedIdeType["PyCharm"] = 8] = "PyCharm";
+ SupportedIdeType[SupportedIdeType["RubyMine"] = 9] = "RubyMine";
+ SupportedIdeType[SupportedIdeType["Tower"] = 10] = "Tower";
+ SupportedIdeType[SupportedIdeType["VisualStudio"] = 11] = "VisualStudio";
+ SupportedIdeType[SupportedIdeType["VSCode"] = 14] = "VSCode";
+ SupportedIdeType[SupportedIdeType["WebStorm"] = 12] = "WebStorm";
+})(SupportedIdeType = exports.SupportedIdeType || (exports.SupportedIdeType = {}));
+/**
+ * Options for Version handling.
+ */
+var TfvcVersionOption;
+(function (TfvcVersionOption) {
+ /**
+ * None.
+ */
+ TfvcVersionOption[TfvcVersionOption["None"] = 0] = "None";
+ /**
+ * Return the previous version.
+ */
+ TfvcVersionOption[TfvcVersionOption["Previous"] = 1] = "Previous";
+ /**
+ * Only usuable with versiontype MergeSource and integer versions, uses RenameSource identifier instead of Merge identifier.
+ */
+ TfvcVersionOption[TfvcVersionOption["UseRename"] = 2] = "UseRename";
+})(TfvcVersionOption = exports.TfvcVersionOption || (exports.TfvcVersionOption = {}));
+/**
+ * Type of Version object
+ */
+var TfvcVersionType;
+(function (TfvcVersionType) {
+ /**
+ * Version is treated as a ChangesetId.
+ */
+ TfvcVersionType[TfvcVersionType["None"] = 0] = "None";
+ /**
+ * Version is treated as a ChangesetId.
+ */
+ TfvcVersionType[TfvcVersionType["Changeset"] = 1] = "Changeset";
+ /**
+ * Version is treated as a Shelveset name and owner.
+ */
+ TfvcVersionType[TfvcVersionType["Shelveset"] = 2] = "Shelveset";
+ /**
+ * Version is treated as a Change.
+ */
+ TfvcVersionType[TfvcVersionType["Change"] = 3] = "Change";
+ /**
+ * Version is treated as a Date.
+ */
+ TfvcVersionType[TfvcVersionType["Date"] = 4] = "Date";
+ /**
+ * If Version is defined the Latest of that Version will be used, if no version is defined the latest ChangesetId will be used.
+ */
+ TfvcVersionType[TfvcVersionType["Latest"] = 5] = "Latest";
+ /**
+ * Version will be treated as a Tip, if no version is defined latest will be used.
+ */
+ TfvcVersionType[TfvcVersionType["Tip"] = 6] = "Tip";
+ /**
+ * Version will be treated as a MergeSource.
+ */
+ TfvcVersionType[TfvcVersionType["MergeSource"] = 7] = "MergeSource";
+})(TfvcVersionType = exports.TfvcVersionType || (exports.TfvcVersionType = {}));
+var VersionControlChangeType;
+(function (VersionControlChangeType) {
+ VersionControlChangeType[VersionControlChangeType["None"] = 0] = "None";
+ VersionControlChangeType[VersionControlChangeType["Add"] = 1] = "Add";
+ VersionControlChangeType[VersionControlChangeType["Edit"] = 2] = "Edit";
+ VersionControlChangeType[VersionControlChangeType["Encoding"] = 4] = "Encoding";
+ VersionControlChangeType[VersionControlChangeType["Rename"] = 8] = "Rename";
+ VersionControlChangeType[VersionControlChangeType["Delete"] = 16] = "Delete";
+ VersionControlChangeType[VersionControlChangeType["Undelete"] = 32] = "Undelete";
+ VersionControlChangeType[VersionControlChangeType["Branch"] = 64] = "Branch";
+ VersionControlChangeType[VersionControlChangeType["Merge"] = 128] = "Merge";
+ VersionControlChangeType[VersionControlChangeType["Lock"] = 256] = "Lock";
+ VersionControlChangeType[VersionControlChangeType["Rollback"] = 512] = "Rollback";
+ VersionControlChangeType[VersionControlChangeType["SourceRename"] = 1024] = "SourceRename";
+ VersionControlChangeType[VersionControlChangeType["TargetRename"] = 2048] = "TargetRename";
+ VersionControlChangeType[VersionControlChangeType["Property"] = 4096] = "Property";
+ VersionControlChangeType[VersionControlChangeType["All"] = 8191] = "All";
+})(VersionControlChangeType = exports.VersionControlChangeType || (exports.VersionControlChangeType = {}));
+var VersionControlRecursionType;
+(function (VersionControlRecursionType) {
+ /**
+ * Only return the specified item.
+ */
+ VersionControlRecursionType[VersionControlRecursionType["None"] = 0] = "None";
+ /**
+ * Return the specified item and its direct children.
+ */
+ VersionControlRecursionType[VersionControlRecursionType["OneLevel"] = 1] = "OneLevel";
+ /**
+ * Return the specified item and its direct children, as well as recursive chains of nested child folders that only contain a single folder.
+ */
+ VersionControlRecursionType[VersionControlRecursionType["OneLevelPlusNestedEmptyFolders"] = 4] = "OneLevelPlusNestedEmptyFolders";
+ /**
+ * Return specified item and all descendants
+ */
+ VersionControlRecursionType[VersionControlRecursionType["Full"] = 120] = "Full";
+})(VersionControlRecursionType = exports.VersionControlRecursionType || (exports.VersionControlRecursionType = {}));
+exports.TypeInfo = {
+ Attachment: {},
+ Change: {},
+ ChangeList: {},
+ Comment: {},
+ CommentThread: {},
+ CommentThreadStatus: {
+ enumValues: {
+ "unknown": 0,
+ "active": 1,
+ "fixed": 2,
+ "wontFix": 3,
+ "closed": 4,
+ "byDesign": 5,
+ "pending": 6
+ }
+ },
+ CommentType: {
+ enumValues: {
+ "unknown": 0,
+ "text": 1,
+ "codeChange": 2,
+ "system": 3
+ }
+ },
+ FileDiff: {},
+ GitAnnotatedTag: {},
+ GitAsyncOperationStatus: {
+ enumValues: {
+ "queued": 1,
+ "inProgress": 2,
+ "completed": 3,
+ "failed": 4,
+ "abandoned": 5
+ }
+ },
+ GitAsyncRefOperation: {},
+ GitAsyncRefOperationDetail: {},
+ GitAsyncRefOperationFailureStatus: {
+ enumValues: {
+ "none": 0,
+ "invalidRefName": 1,
+ "refNameConflict": 2,
+ "createBranchPermissionRequired": 3,
+ "writePermissionRequired": 4,
+ "targetBranchDeleted": 5,
+ "gitObjectTooLarge": 6,
+ "operationIndentityNotFound": 7,
+ "asyncOperationNotFound": 8,
+ "other": 9,
+ "emptyCommitterSignature": 10
+ }
+ },
+ GitAsyncRefOperationParameters: {},
+ GitAsyncRefOperationSource: {},
+ GitBaseVersionDescriptor: {},
+ GitBranchStats: {},
+ GitChange: {},
+ GitCherryPick: {},
+ GitCommit: {},
+ GitCommitChanges: {},
+ GitCommitDiffs: {},
+ GitCommitRef: {},
+ GitCommitToCreate: {},
+ GitConflict: {},
+ GitConflictAddAdd: {},
+ GitConflictAddRename: {},
+ GitConflictDeleteEdit: {},
+ GitConflictDeleteRename: {},
+ GitConflictDirectoryFile: {},
+ GitConflictEditDelete: {},
+ GitConflictEditEdit: {},
+ GitConflictFileDirectory: {},
+ GitConflictRename1to2: {},
+ GitConflictRename2to1: {},
+ GitConflictRenameAdd: {},
+ GitConflictRenameDelete: {},
+ GitConflictRenameRename: {},
+ GitConflictType: {
+ enumValues: {
+ "none": 0,
+ "addAdd": 1,
+ "addRename": 2,
+ "deleteEdit": 3,
+ "deleteRename": 4,
+ "directoryFile": 5,
+ "directoryChild": 6,
+ "editDelete": 7,
+ "editEdit": 8,
+ "fileDirectory": 9,
+ "rename1to2": 10,
+ "rename2to1": 11,
+ "renameAdd": 12,
+ "renameDelete": 13,
+ "renameRename": 14
+ }
+ },
+ GitConflictUpdateResult: {},
+ GitConflictUpdateStatus: {
+ enumValues: {
+ "succeeded": 0,
+ "badRequest": 1,
+ "invalidResolution": 2,
+ "unsupportedConflictType": 3,
+ "notFound": 4
+ }
+ },
+ GitDeletedRepository: {},
+ GitForkRef: {},
+ GitForkSyncRequest: {},
+ GitForkTeamProjectReference: {},
+ GitHistoryMode: {
+ enumValues: {
+ "simplifiedHistory": 0,
+ "firstParent": 1,
+ "fullHistory": 2,
+ "fullHistorySimplifyMerges": 3
+ }
+ },
+ GitImportFailedEvent: {},
+ GitImportRequest: {},
+ GitImportSucceededEvent: {},
+ GitItem: {},
+ GitItemDescriptor: {},
+ GitItemRequestData: {},
+ GitLastChangeTreeItems: {},
+ GitMerge: {},
+ GitObject: {},
+ GitObjectType: {
+ enumValues: {
+ "bad": 0,
+ "commit": 1,
+ "tree": 2,
+ "blob": 3,
+ "tag": 4,
+ "ext2": 5,
+ "ofsDelta": 6,
+ "refDelta": 7
+ }
+ },
+ GitPathAction: {},
+ GitPathActions: {
+ enumValues: {
+ "none": 0,
+ "edit": 1,
+ "delete": 2,
+ "add": 3,
+ "rename": 4
+ }
+ },
+ GitPathToItemsCollection: {},
+ GitPolicyConfigurationResponse: {},
+ GitPullRequest: {},
+ GitPullRequestChange: {},
+ GitPullRequestCommentThread: {},
+ GitPullRequestCompletionOptions: {},
+ GitPullRequestIteration: {},
+ GitPullRequestIterationChanges: {},
+ GitPullRequestMergeStrategy: {
+ enumValues: {
+ "noFastForward": 1,
+ "squash": 2,
+ "rebase": 3,
+ "rebaseMerge": 4
+ }
+ },
+ GitPullRequestQuery: {},
+ GitPullRequestQueryInput: {},
+ GitPullRequestQueryType: {
+ enumValues: {
+ "notSet": 0,
+ "lastMergeCommit": 1,
+ "commit": 2
+ }
+ },
+ GitPullRequestReviewFileType: {
+ enumValues: {
+ "changeEntry": 0,
+ "attachment": 1
+ }
+ },
+ GitPullRequestSearchCriteria: {},
+ GitPullRequestStatus: {},
+ GitPush: {},
+ GitPushEventData: {},
+ GitPushRef: {},
+ GitPushSearchCriteria: {},
+ GitQueryBranchStatsCriteria: {},
+ GitQueryCommitsCriteria: {},
+ GitQueryRefsCriteria: {},
+ GitRef: {},
+ GitRefFavorite: {},
+ GitRefSearchType: {
+ enumValues: {
+ "exact": 0,
+ "startsWith": 1,
+ "contains": 2
+ }
+ },
+ GitRefUpdateMode: {
+ enumValues: {
+ "bestEffort": 0,
+ "allOrNone": 1
+ }
+ },
+ GitRefUpdateResult: {},
+ GitRefUpdateStatus: {
+ enumValues: {
+ "succeeded": 0,
+ "forcePushRequired": 1,
+ "staleOldObjectId": 2,
+ "invalidRefName": 3,
+ "unprocessed": 4,
+ "unresolvableToCommit": 5,
+ "writePermissionRequired": 6,
+ "manageNotePermissionRequired": 7,
+ "createBranchPermissionRequired": 8,
+ "createTagPermissionRequired": 9,
+ "rejectedByPlugin": 10,
+ "locked": 11,
+ "refNameConflict": 12,
+ "rejectedByPolicy": 13,
+ "succeededNonExistentRef": 14,
+ "succeededCorruptRef": 15
+ }
+ },
+ GitRepository: {},
+ GitRepositoryCreateOptions: {},
+ GitRepositoryRef: {},
+ GitResolutionError: {
+ enumValues: {
+ "none": 0,
+ "mergeContentNotFound": 1,
+ "pathInUse": 2,
+ "invalidPath": 3,
+ "unknownAction": 4,
+ "unknownMergeType": 5,
+ "otherError": 255
+ }
+ },
+ GitResolutionMergeContent: {},
+ GitResolutionMergeType: {
+ enumValues: {
+ "undecided": 0,
+ "takeSourceContent": 1,
+ "takeTargetContent": 2,
+ "autoMerged": 3,
+ "userMerged": 4
+ }
+ },
+ GitResolutionPathConflict: {},
+ GitResolutionPathConflictAction: {
+ enumValues: {
+ "undecided": 0,
+ "keepSourceRenameTarget": 1,
+ "keepSourceDeleteTarget": 2,
+ "keepTargetRenameSource": 3,
+ "keepTargetDeleteSource": 4
+ }
+ },
+ GitResolutionPickOneAction: {},
+ GitResolutionRename1to2: {},
+ GitResolutionRename1to2Action: {
+ enumValues: {
+ "undecided": 0,
+ "keepSourcePath": 1,
+ "keepTargetPath": 2,
+ "keepBothFiles": 3
+ }
+ },
+ GitResolutionStatus: {
+ enumValues: {
+ "unresolved": 0,
+ "partiallyResolved": 1,
+ "resolved": 2
+ }
+ },
+ GitResolutionWhichAction: {
+ enumValues: {
+ "undecided": 0,
+ "pickSourceAction": 1,
+ "pickTargetAction": 2
+ }
+ },
+ GitRevert: {},
+ GitStatus: {},
+ GitStatusState: {
+ enumValues: {
+ "notSet": 0,
+ "pending": 1,
+ "succeeded": 2,
+ "failed": 3,
+ "error": 4,
+ "notApplicable": 5
+ }
+ },
+ GitTargetVersionDescriptor: {},
+ GitTreeDiff: {},
+ GitTreeDiffEntry: {},
+ GitTreeDiffResponse: {},
+ GitTreeEntryRef: {},
+ GitTreeRef: {},
+ GitUserDate: {},
+ GitVersionDescriptor: {},
+ GitVersionOptions: {
+ enumValues: {
+ "none": 0,
+ "previousChange": 1,
+ "firstParent": 2
+ }
+ },
+ GitVersionType: {
+ enumValues: {
+ "branch": 0,
+ "tag": 1,
+ "commit": 2
+ }
+ },
+ HistoryEntry: {},
+ IncludedGitCommit: {},
+ ItemContent: {},
+ ItemContentType: {
+ enumValues: {
+ "rawText": 0,
+ "base64Encoded": 1
+ }
+ },
+ ItemDetailsOptions: {},
+ IterationReason: {
+ enumValues: {
+ "push": 0,
+ "forcePush": 1,
+ "create": 2,
+ "rebase": 4,
+ "unknown": 8,
+ "retarget": 16,
+ "resolveConflicts": 32
+ }
+ },
+ LineDiffBlock: {},
+ LineDiffBlockChangeType: {
+ enumValues: {
+ "none": 0,
+ "add": 1,
+ "delete": 2,
+ "edit": 3
+ }
+ },
+ PullRequestAsyncStatus: {
+ enumValues: {
+ "notSet": 0,
+ "queued": 1,
+ "conflicts": 2,
+ "succeeded": 3,
+ "rejectedByPolicy": 4,
+ "failure": 5
+ }
+ },
+ PullRequestMergeFailureType: {
+ enumValues: {
+ "none": 0,
+ "unknown": 1,
+ "caseSensitive": 2,
+ "objectTooLarge": 3
+ }
+ },
+ PullRequestStatus: {
+ enumValues: {
+ "notSet": 0,
+ "active": 1,
+ "abandoned": 2,
+ "completed": 3,
+ "all": 4
+ }
+ },
+ RefFavoriteType: {
+ enumValues: {
+ "invalid": 0,
+ "folder": 1,
+ "ref": 2
+ }
+ },
+ SupportedIde: {},
+ SupportedIdeType: {
+ enumValues: {
+ "unknown": 0,
+ "androidStudio": 1,
+ "appCode": 2,
+ "cLion": 3,
+ "dataGrip": 4,
+ "eclipse": 13,
+ "intelliJ": 5,
+ "mps": 6,
+ "phpStorm": 7,
+ "pyCharm": 8,
+ "rubyMine": 9,
+ "tower": 10,
+ "visualStudio": 11,
+ "vsCode": 14,
+ "webStorm": 12
+ }
+ },
+ TfvcBranch: {},
+ TfvcBranchRef: {},
+ TfvcChange: {},
+ TfvcChangeset: {},
+ TfvcChangesetRef: {},
+ TfvcCheckinEventData: {},
+ TfvcHistoryEntry: {},
+ TfvcItem: {},
+ TfvcItemDescriptor: {},
+ TfvcItemPreviousHash: {},
+ TfvcItemRequestData: {},
+ TfvcLabel: {},
+ TfvcLabelRef: {},
+ TfvcShelveset: {},
+ TfvcShelvesetRef: {},
+ TfvcVersionDescriptor: {},
+ TfvcVersionOption: {
+ enumValues: {
+ "none": 0,
+ "previous": 1,
+ "useRename": 2
+ }
+ },
+ TfvcVersionType: {
+ enumValues: {
+ "none": 0,
+ "changeset": 1,
+ "shelveset": 2,
+ "change": 3,
+ "date": 4,
+ "latest": 5,
+ "tip": 6,
+ "mergeSource": 7
+ }
+ },
+ UpdateRefsRequest: {},
+ VersionControlChangeType: {
+ enumValues: {
+ "none": 0,
+ "add": 1,
+ "edit": 2,
+ "encoding": 4,
+ "rename": 8,
+ "delete": 16,
+ "undelete": 32,
+ "branch": 64,
+ "merge": 128,
+ "lock": 256,
+ "rollback": 512,
+ "sourceRename": 1024,
+ "targetRename": 2048,
+ "property": 4096,
+ "all": 8191
+ }
+ },
+ VersionControlProjectInfo: {},
+ VersionControlRecursionType: {
+ enumValues: {
+ "none": 0,
+ "oneLevel": 1,
+ "oneLevelPlusNestedEmptyFolders": 4,
+ "full": 120
+ }
+ },
+};
+exports.TypeInfo.Attachment.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Change.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ newContent: {
+ typeInfo: exports.TypeInfo.ItemContent
+ }
+};
+exports.TypeInfo.ChangeList.fields = {
+ changeCounts: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.VersionControlChangeType,
+ },
+ creationDate: {
+ isDate: true,
+ },
+ sortDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Comment.fields = {
+ commentType: {
+ enumType: exports.TypeInfo.CommentType
+ },
+ lastContentUpdatedDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ publishedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.CommentThread.fields = {
+ comments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Comment
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ publishedDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.CommentThreadStatus
+ }
+};
+exports.TypeInfo.FileDiff.fields = {
+ lineDiffBlocks: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.LineDiffBlock
+ }
+};
+exports.TypeInfo.GitAnnotatedTag.fields = {
+ taggedBy: {
+ typeInfo: exports.TypeInfo.GitUserDate
+ },
+ taggedObject: {
+ typeInfo: exports.TypeInfo.GitObject
+ }
+};
+exports.TypeInfo.GitAsyncRefOperation.fields = {
+ detailedStatus: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationDetail
+ },
+ parameters: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationParameters
+ },
+ status: {
+ enumType: exports.TypeInfo.GitAsyncOperationStatus
+ }
+};
+exports.TypeInfo.GitAsyncRefOperationDetail.fields = {
+ status: {
+ enumType: exports.TypeInfo.GitAsyncRefOperationFailureStatus
+ }
+};
+exports.TypeInfo.GitAsyncRefOperationParameters.fields = {
+ repository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ },
+ source: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationSource
+ }
+};
+exports.TypeInfo.GitAsyncRefOperationSource.fields = {
+ commitList: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitCommitRef
+ }
+};
+exports.TypeInfo.GitBaseVersionDescriptor.fields = {
+ baseVersionOptions: {
+ enumType: exports.TypeInfo.GitVersionOptions
+ },
+ baseVersionType: {
+ enumType: exports.TypeInfo.GitVersionType
+ },
+ versionOptions: {
+ enumType: exports.TypeInfo.GitVersionOptions
+ },
+ versionType: {
+ enumType: exports.TypeInfo.GitVersionType
+ }
+};
+exports.TypeInfo.GitBranchStats.fields = {
+ commit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ }
+};
+exports.TypeInfo.GitChange.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ newContent: {
+ typeInfo: exports.TypeInfo.ItemContent
+ }
+};
+exports.TypeInfo.GitCherryPick.fields = {
+ detailedStatus: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationDetail
+ },
+ parameters: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationParameters
+ },
+ status: {
+ enumType: exports.TypeInfo.GitAsyncOperationStatus
+ }
+};
+exports.TypeInfo.GitCommit.fields = {
+ author: {
+ typeInfo: exports.TypeInfo.GitUserDate
+ },
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitChange
+ },
+ committer: {
+ typeInfo: exports.TypeInfo.GitUserDate
+ },
+ push: {
+ typeInfo: exports.TypeInfo.GitPushRef
+ },
+ statuses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitStatus
+ }
+};
+exports.TypeInfo.GitCommitChanges.fields = {
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitChange
+ }
+};
+exports.TypeInfo.GitCommitDiffs.fields = {
+ changeCounts: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.VersionControlChangeType,
+ },
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitChange
+ }
+};
+exports.TypeInfo.GitCommitRef.fields = {
+ author: {
+ typeInfo: exports.TypeInfo.GitUserDate
+ },
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitChange
+ },
+ committer: {
+ typeInfo: exports.TypeInfo.GitUserDate
+ },
+ push: {
+ typeInfo: exports.TypeInfo.GitPushRef
+ },
+ statuses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitStatus
+ }
+};
+exports.TypeInfo.GitCommitToCreate.fields = {
+ baseRef: {
+ typeInfo: exports.TypeInfo.GitRef
+ },
+ pathActions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitPathAction
+ }
+};
+exports.TypeInfo.GitConflict.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictAddAdd.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionMergeContent
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictAddRename.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPathConflict
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictDeleteEdit.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPickOneAction
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictDeleteRename.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPickOneAction
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictDirectoryFile.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPathConflict
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ },
+ sourceTree: {
+ typeInfo: exports.TypeInfo.GitTreeRef
+ }
+};
+exports.TypeInfo.GitConflictEditDelete.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPickOneAction
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictEditEdit.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionMergeContent
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictFileDirectory.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPathConflict
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ },
+ targetTree: {
+ typeInfo: exports.TypeInfo.GitTreeRef
+ }
+};
+exports.TypeInfo.GitConflictRename1to2.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionRename1to2
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictRename2to1.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPathConflict
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictRenameAdd.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPathConflict
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictRenameDelete.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionPickOneAction
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictRenameRename.fields = {
+ conflictType: {
+ enumType: exports.TypeInfo.GitConflictType
+ },
+ mergeBaseCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ resolution: {
+ typeInfo: exports.TypeInfo.GitResolutionMergeContent
+ },
+ resolutionError: {
+ enumType: exports.TypeInfo.GitResolutionError
+ },
+ resolutionStatus: {
+ enumType: exports.TypeInfo.GitResolutionStatus
+ },
+ resolvedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitConflictUpdateResult.fields = {
+ updatedConflict: {
+ typeInfo: exports.TypeInfo.GitConflict
+ },
+ updateStatus: {
+ enumType: exports.TypeInfo.GitConflictUpdateStatus
+ }
+};
+exports.TypeInfo.GitDeletedRepository.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ deletedDate: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.GitForkRef.fields = {
+ repository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ },
+ statuses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitStatus
+ }
+};
+exports.TypeInfo.GitForkSyncRequest.fields = {
+ status: {
+ enumType: exports.TypeInfo.GitAsyncOperationStatus
+ }
+};
+exports.TypeInfo.GitForkTeamProjectReference.fields = {
+ lastUpdateTime: {
+ isDate: true,
+ },
+ visibility: {
+ enumType: TfsCoreInterfaces.TypeInfo.ProjectVisibility
+ }
+};
+exports.TypeInfo.GitImportFailedEvent.fields = {
+ targetRepository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ }
+};
+exports.TypeInfo.GitImportRequest.fields = {
+ repository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ },
+ status: {
+ enumType: exports.TypeInfo.GitAsyncOperationStatus
+ }
+};
+exports.TypeInfo.GitImportSucceededEvent.fields = {
+ targetRepository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ }
+};
+exports.TypeInfo.GitItem.fields = {
+ gitObjectType: {
+ enumType: exports.TypeInfo.GitObjectType
+ },
+ latestProcessedChange: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ }
+};
+exports.TypeInfo.GitItemDescriptor.fields = {
+ recursionLevel: {
+ enumType: exports.TypeInfo.VersionControlRecursionType
+ },
+ versionOptions: {
+ enumType: exports.TypeInfo.GitVersionOptions
+ },
+ versionType: {
+ enumType: exports.TypeInfo.GitVersionType
+ }
+};
+exports.TypeInfo.GitItemRequestData.fields = {
+ itemDescriptors: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitItemDescriptor
+ }
+};
+exports.TypeInfo.GitLastChangeTreeItems.fields = {
+ commits: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ lastExploredTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitMerge.fields = {
+ status: {
+ enumType: exports.TypeInfo.GitAsyncOperationStatus
+ }
+};
+exports.TypeInfo.GitObject.fields = {
+ objectType: {
+ enumType: exports.TypeInfo.GitObjectType
+ }
+};
+exports.TypeInfo.GitPathAction.fields = {
+ action: {
+ enumType: exports.TypeInfo.GitPathActions
+ }
+};
+exports.TypeInfo.GitPathToItemsCollection.fields = {
+ items: {
+ isDictionary: true,
+ dictionaryValueFieldInfo: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitItem
+ }
+ }
+};
+exports.TypeInfo.GitPolicyConfigurationResponse.fields = {
+ policyConfigurations: {
+ isArray: true,
+ typeInfo: PolicyInterfaces.TypeInfo.PolicyConfiguration
+ }
+};
+exports.TypeInfo.GitPullRequest.fields = {
+ closedDate: {
+ isDate: true,
+ },
+ commits: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ completionOptions: {
+ typeInfo: exports.TypeInfo.GitPullRequestCompletionOptions
+ },
+ completionQueueTime: {
+ isDate: true,
+ },
+ creationDate: {
+ isDate: true,
+ },
+ forkSource: {
+ typeInfo: exports.TypeInfo.GitForkRef
+ },
+ lastMergeCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ lastMergeSourceCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ lastMergeTargetCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ mergeFailureType: {
+ enumType: exports.TypeInfo.PullRequestMergeFailureType
+ },
+ mergeStatus: {
+ enumType: exports.TypeInfo.PullRequestAsyncStatus
+ },
+ repository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ },
+ status: {
+ enumType: exports.TypeInfo.PullRequestStatus
+ }
+};
+exports.TypeInfo.GitPullRequestChange.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ newContent: {
+ typeInfo: exports.TypeInfo.ItemContent
+ }
+};
+exports.TypeInfo.GitPullRequestCommentThread.fields = {
+ comments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Comment
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ publishedDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.CommentThreadStatus
+ }
+};
+exports.TypeInfo.GitPullRequestCompletionOptions.fields = {
+ mergeStrategy: {
+ enumType: exports.TypeInfo.GitPullRequestMergeStrategy
+ }
+};
+exports.TypeInfo.GitPullRequestIteration.fields = {
+ changeList: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitPullRequestChange
+ },
+ commits: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ commonRefCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ createdDate: {
+ isDate: true,
+ },
+ push: {
+ typeInfo: exports.TypeInfo.GitPushRef
+ },
+ reason: {
+ enumType: exports.TypeInfo.IterationReason
+ },
+ sourceRefCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ targetRefCommit: {
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitPullRequestIterationChanges.fields = {
+ changeEntries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitPullRequestChange
+ }
+};
+exports.TypeInfo.GitPullRequestQuery.fields = {
+ queries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitPullRequestQueryInput
+ },
+};
+exports.TypeInfo.GitPullRequestQueryInput.fields = {
+ type: {
+ enumType: exports.TypeInfo.GitPullRequestQueryType
+ }
+};
+exports.TypeInfo.GitPullRequestSearchCriteria.fields = {
+ status: {
+ enumType: exports.TypeInfo.PullRequestStatus
+ }
+};
+exports.TypeInfo.GitPullRequestStatus.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.GitStatusState
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitPush.fields = {
+ commits: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitCommitRef
+ },
+ date: {
+ isDate: true,
+ },
+ repository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ }
+};
+exports.TypeInfo.GitPushEventData.fields = {
+ commits: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitCommit
+ },
+ repository: {
+ typeInfo: exports.TypeInfo.GitRepository
+ }
+};
+exports.TypeInfo.GitPushRef.fields = {
+ date: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitPushSearchCriteria.fields = {
+ fromDate: {
+ isDate: true,
+ },
+ toDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitQueryBranchStatsCriteria.fields = {
+ baseCommit: {
+ typeInfo: exports.TypeInfo.GitVersionDescriptor
+ },
+ targetCommits: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitVersionDescriptor
+ }
+};
+exports.TypeInfo.GitQueryCommitsCriteria.fields = {
+ compareVersion: {
+ typeInfo: exports.TypeInfo.GitVersionDescriptor
+ },
+ historyMode: {
+ enumType: exports.TypeInfo.GitHistoryMode
+ },
+ itemVersion: {
+ typeInfo: exports.TypeInfo.GitVersionDescriptor
+ }
+};
+exports.TypeInfo.GitQueryRefsCriteria.fields = {
+ searchType: {
+ enumType: exports.TypeInfo.GitRefSearchType
+ }
+};
+exports.TypeInfo.GitRef.fields = {
+ statuses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitStatus
+ }
+};
+exports.TypeInfo.GitRefFavorite.fields = {
+ type: {
+ enumType: exports.TypeInfo.RefFavoriteType
+ }
+};
+exports.TypeInfo.GitRefUpdateResult.fields = {
+ updateStatus: {
+ enumType: exports.TypeInfo.GitRefUpdateStatus
+ }
+};
+exports.TypeInfo.GitRepository.fields = {
+ parentRepository: {
+ typeInfo: exports.TypeInfo.GitRepositoryRef
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.GitRepositoryCreateOptions.fields = {
+ parentRepository: {
+ typeInfo: exports.TypeInfo.GitRepositoryRef
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.GitRepositoryRef.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.GitResolutionMergeContent.fields = {
+ mergeType: {
+ enumType: exports.TypeInfo.GitResolutionMergeType
+ }
+};
+exports.TypeInfo.GitResolutionPathConflict.fields = {
+ action: {
+ enumType: exports.TypeInfo.GitResolutionPathConflictAction
+ }
+};
+exports.TypeInfo.GitResolutionPickOneAction.fields = {
+ action: {
+ enumType: exports.TypeInfo.GitResolutionWhichAction
+ }
+};
+exports.TypeInfo.GitResolutionRename1to2.fields = {
+ action: {
+ enumType: exports.TypeInfo.GitResolutionRename1to2Action
+ },
+ mergeType: {
+ enumType: exports.TypeInfo.GitResolutionMergeType
+ }
+};
+exports.TypeInfo.GitRevert.fields = {
+ detailedStatus: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationDetail
+ },
+ parameters: {
+ typeInfo: exports.TypeInfo.GitAsyncRefOperationParameters
+ },
+ status: {
+ enumType: exports.TypeInfo.GitAsyncOperationStatus
+ }
+};
+exports.TypeInfo.GitStatus.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.GitStatusState
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitTargetVersionDescriptor.fields = {
+ targetVersionOptions: {
+ enumType: exports.TypeInfo.GitVersionOptions
+ },
+ targetVersionType: {
+ enumType: exports.TypeInfo.GitVersionType
+ },
+ versionOptions: {
+ enumType: exports.TypeInfo.GitVersionOptions
+ },
+ versionType: {
+ enumType: exports.TypeInfo.GitVersionType
+ }
+};
+exports.TypeInfo.GitTreeDiff.fields = {
+ diffEntries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitTreeDiffEntry
+ }
+};
+exports.TypeInfo.GitTreeDiffEntry.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ objectType: {
+ enumType: exports.TypeInfo.GitObjectType
+ }
+};
+exports.TypeInfo.GitTreeDiffResponse.fields = {
+ treeDiff: {
+ typeInfo: exports.TypeInfo.GitTreeDiff
+ }
+};
+exports.TypeInfo.GitTreeEntryRef.fields = {
+ gitObjectType: {
+ enumType: exports.TypeInfo.GitObjectType
+ }
+};
+exports.TypeInfo.GitTreeRef.fields = {
+ treeEntries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.GitTreeEntryRef
+ }
+};
+exports.TypeInfo.GitUserDate.fields = {
+ date: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GitVersionDescriptor.fields = {
+ versionOptions: {
+ enumType: exports.TypeInfo.GitVersionOptions
+ },
+ versionType: {
+ enumType: exports.TypeInfo.GitVersionType
+ }
+};
+exports.TypeInfo.HistoryEntry.fields = {
+ itemChangeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ }
+};
+exports.TypeInfo.IncludedGitCommit.fields = {
+ commitTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ItemContent.fields = {
+ contentType: {
+ enumType: exports.TypeInfo.ItemContentType
+ }
+};
+exports.TypeInfo.ItemDetailsOptions.fields = {
+ recursionLevel: {
+ enumType: exports.TypeInfo.VersionControlRecursionType
+ }
+};
+exports.TypeInfo.LineDiffBlock.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.LineDiffBlockChangeType
+ }
+};
+exports.TypeInfo.SupportedIde.fields = {
+ ideType: {
+ enumType: exports.TypeInfo.SupportedIdeType
+ }
+};
+exports.TypeInfo.TfvcBranch.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcBranch
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcBranchRef.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcChange.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ newContent: {
+ typeInfo: exports.TypeInfo.ItemContent
+ }
+};
+exports.TypeInfo.TfvcChangeset.fields = {
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcChange
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcChangesetRef.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcCheckinEventData.fields = {
+ changeset: {
+ typeInfo: exports.TypeInfo.TfvcChangeset
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.TfvcHistoryEntry.fields = {
+ itemChangeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ }
+};
+exports.TypeInfo.TfvcItem.fields = {
+ changeDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcItemDescriptor.fields = {
+ recursionLevel: {
+ enumType: exports.TypeInfo.VersionControlRecursionType
+ },
+ versionOption: {
+ enumType: exports.TypeInfo.TfvcVersionOption
+ },
+ versionType: {
+ enumType: exports.TypeInfo.TfvcVersionType
+ }
+};
+exports.TypeInfo.TfvcItemPreviousHash.fields = {
+ changeDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcItemRequestData.fields = {
+ itemDescriptors: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcItemDescriptor
+ }
+};
+exports.TypeInfo.TfvcLabel.fields = {
+ items: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcItem
+ },
+ modifiedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcLabelRef.fields = {
+ modifiedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcShelveset.fields = {
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcChange
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcShelvesetRef.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcVersionDescriptor.fields = {
+ versionOption: {
+ enumType: exports.TypeInfo.TfvcVersionOption
+ },
+ versionType: {
+ enumType: exports.TypeInfo.TfvcVersionType
+ }
+};
+exports.TypeInfo.UpdateRefsRequest.fields = {
+ updateMode: {
+ enumType: exports.TypeInfo.GitRefUpdateMode
+ }
+};
+exports.TypeInfo.VersionControlProjectInfo.fields = {
+ defaultSourceControlType: {
+ enumType: TfsCoreInterfaces.TypeInfo.SourceControlTypes
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+
+
+/***/ }),
+
+/***/ 3215:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const VSSInterfaces = __nccwpck_require__(4498);
+var InheritLevel;
+(function (InheritLevel) {
+ InheritLevel[InheritLevel["None"] = 0] = "None";
+ InheritLevel[InheritLevel["Deployment"] = 1] = "Deployment";
+ InheritLevel[InheritLevel["Account"] = 2] = "Account";
+ InheritLevel[InheritLevel["Collection"] = 4] = "Collection";
+ InheritLevel[InheritLevel["All"] = 7] = "All";
+})(InheritLevel = exports.InheritLevel || (exports.InheritLevel = {}));
+var RelativeToSetting;
+(function (RelativeToSetting) {
+ RelativeToSetting[RelativeToSetting["Context"] = 0] = "Context";
+ RelativeToSetting[RelativeToSetting["WebApplication"] = 2] = "WebApplication";
+ RelativeToSetting[RelativeToSetting["FullyQualified"] = 3] = "FullyQualified";
+})(RelativeToSetting = exports.RelativeToSetting || (exports.RelativeToSetting = {}));
+var ServiceStatus;
+(function (ServiceStatus) {
+ ServiceStatus[ServiceStatus["Assigned"] = 0] = "Assigned";
+ ServiceStatus[ServiceStatus["Active"] = 1] = "Active";
+ ServiceStatus[ServiceStatus["Moving"] = 2] = "Moving";
+})(ServiceStatus = exports.ServiceStatus || (exports.ServiceStatus = {}));
+exports.TypeInfo = {
+ ConnectionData: {},
+ InheritLevel: {
+ enumValues: {
+ "none": 0,
+ "deployment": 1,
+ "account": 2,
+ "collection": 4,
+ "all": 7
+ }
+ },
+ LocationServiceData: {},
+ RelativeToSetting: {
+ enumValues: {
+ "context": 0,
+ "webApplication": 2,
+ "fullyQualified": 3
+ }
+ },
+ ServiceDefinition: {},
+ ServiceStatus: {
+ enumValues: {
+ "assigned": 0,
+ "active": 1,
+ "moving": 2
+ }
+ },
+};
+exports.TypeInfo.ConnectionData.fields = {
+ deploymentType: {
+ enumType: VSSInterfaces.TypeInfo.DeploymentFlags
+ },
+ lastUserAccess: {
+ isDate: true,
+ },
+ locationServiceData: {
+ typeInfo: exports.TypeInfo.LocationServiceData
+ }
+};
+exports.TypeInfo.LocationServiceData.fields = {
+ serviceDefinitions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ServiceDefinition
+ }
+};
+exports.TypeInfo.ServiceDefinition.fields = {
+ inheritLevel: {
+ enumType: exports.TypeInfo.InheritLevel
+ },
+ relativeToSetting: {
+ enumType: exports.TypeInfo.RelativeToSetting
+ },
+ status: {
+ enumType: exports.TypeInfo.ServiceStatus
+ }
+};
+
+
+/***/ }),
+
+/***/ 1012:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var BillingMode;
+(function (BillingMode) {
+ /**
+ * None implies the organization is not billable because no Azure Subscription has been set.
+ */
+ BillingMode[BillingMode["None"] = 0] = "None";
+ /**
+ * When an organization is the only organization mapped to an Azure Subscription.
+ */
+ BillingMode[BillingMode["SingleOrg"] = 1] = "SingleOrg";
+ /**
+ * When an organization is mapped to an Azure Subscription to which at least one other org is mapped.
+ */
+ BillingMode[BillingMode["MultiOrg"] = 2] = "MultiOrg";
+})(BillingMode = exports.BillingMode || (exports.BillingMode = {}));
+exports.TypeInfo = {
+ AdvSecEnablementSettings: {},
+ AdvSecEnablementStatus: {},
+ BillableCommitterDetails: {},
+ BillingInfo: {},
+ BillingMode: {
+ enumValues: {
+ "none": 0,
+ "singleOrg": 1,
+ "multiOrg": 2
+ }
+ },
+ MeterUsage: {},
+};
+exports.TypeInfo.AdvSecEnablementSettings.fields = {
+ reposEnablementStatus: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.AdvSecEnablementStatus
+ }
+};
+exports.TypeInfo.AdvSecEnablementStatus.fields = {
+ advSecEnablementLastChangedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BillableCommitterDetails.fields = {
+ commitTime: {
+ isDate: true,
+ },
+ pushedTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BillingInfo.fields = {
+ advSecEnabledChangedOnDate: {
+ isDate: true,
+ },
+ advSecEnabledFirstChangedOnDate: {
+ isDate: true,
+ },
+ billingMode: {
+ enumType: exports.TypeInfo.BillingMode
+ }
+};
+exports.TypeInfo.MeterUsage.fields = {
+ billingDate: {
+ isDate: true,
+ }
+};
+
+
+/***/ }),
+
+/***/ 269:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Default delivery preference for group subscribers. Indicates how the subscriber should be notified.
+ */
+var DefaultGroupDeliveryPreference;
+(function (DefaultGroupDeliveryPreference) {
+ DefaultGroupDeliveryPreference[DefaultGroupDeliveryPreference["NoDelivery"] = -1] = "NoDelivery";
+ DefaultGroupDeliveryPreference[DefaultGroupDeliveryPreference["EachMember"] = 2] = "EachMember";
+})(DefaultGroupDeliveryPreference = exports.DefaultGroupDeliveryPreference || (exports.DefaultGroupDeliveryPreference = {}));
+/**
+ * Describes the subscription evaluation operation status.
+ */
+var EvaluationOperationStatus;
+(function (EvaluationOperationStatus) {
+ /**
+ * The operation object does not have the status set.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["NotSet"] = 0] = "NotSet";
+ /**
+ * The operation has been queued.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["Queued"] = 1] = "Queued";
+ /**
+ * The operation is in progress.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * The operation was cancelled by the user.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["Cancelled"] = 3] = "Cancelled";
+ /**
+ * The operation completed successfully.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["Succeeded"] = 4] = "Succeeded";
+ /**
+ * The operation completed with a failure.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["Failed"] = 5] = "Failed";
+ /**
+ * The operation timed out.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["TimedOut"] = 6] = "TimedOut";
+ /**
+ * The operation could not be found.
+ */
+ EvaluationOperationStatus[EvaluationOperationStatus["NotFound"] = 7] = "NotFound";
+})(EvaluationOperationStatus = exports.EvaluationOperationStatus || (exports.EvaluationOperationStatus = {}));
+/**
+ * Set of flags used to determine which set of information is retrieved when querying for event publishers
+ */
+var EventPublisherQueryFlags;
+(function (EventPublisherQueryFlags) {
+ EventPublisherQueryFlags[EventPublisherQueryFlags["None"] = 0] = "None";
+ /**
+ * Include event types from the remote services too
+ */
+ EventPublisherQueryFlags[EventPublisherQueryFlags["IncludeRemoteServices"] = 2] = "IncludeRemoteServices";
+})(EventPublisherQueryFlags = exports.EventPublisherQueryFlags || (exports.EventPublisherQueryFlags = {}));
+/**
+ * Set of flags used to determine which set of information is retrieved when querying for eventtypes
+ */
+var EventTypeQueryFlags;
+(function (EventTypeQueryFlags) {
+ EventTypeQueryFlags[EventTypeQueryFlags["None"] = 0] = "None";
+ /**
+ * IncludeFields will include all fields and their types
+ */
+ EventTypeQueryFlags[EventTypeQueryFlags["IncludeFields"] = 1] = "IncludeFields";
+})(EventTypeQueryFlags = exports.EventTypeQueryFlags || (exports.EventTypeQueryFlags = {}));
+var NotificationOperation;
+(function (NotificationOperation) {
+ NotificationOperation[NotificationOperation["None"] = 0] = "None";
+ NotificationOperation[NotificationOperation["SuspendUnprocessed"] = 1] = "SuspendUnprocessed";
+})(NotificationOperation = exports.NotificationOperation || (exports.NotificationOperation = {}));
+var NotificationReasonType;
+(function (NotificationReasonType) {
+ NotificationReasonType[NotificationReasonType["Unknown"] = 0] = "Unknown";
+ NotificationReasonType[NotificationReasonType["Follows"] = 1] = "Follows";
+ NotificationReasonType[NotificationReasonType["Personal"] = 2] = "Personal";
+ NotificationReasonType[NotificationReasonType["PersonalAlias"] = 3] = "PersonalAlias";
+ NotificationReasonType[NotificationReasonType["DirectMember"] = 4] = "DirectMember";
+ NotificationReasonType[NotificationReasonType["IndirectMember"] = 5] = "IndirectMember";
+ NotificationReasonType[NotificationReasonType["GroupAlias"] = 6] = "GroupAlias";
+ NotificationReasonType[NotificationReasonType["SubscriptionAlias"] = 7] = "SubscriptionAlias";
+ NotificationReasonType[NotificationReasonType["SingleRole"] = 8] = "SingleRole";
+ NotificationReasonType[NotificationReasonType["DirectMemberGroupRole"] = 9] = "DirectMemberGroupRole";
+ NotificationReasonType[NotificationReasonType["InDirectMemberGroupRole"] = 10] = "InDirectMemberGroupRole";
+ NotificationReasonType[NotificationReasonType["AliasMemberGroupRole"] = 11] = "AliasMemberGroupRole";
+})(NotificationReasonType = exports.NotificationReasonType || (exports.NotificationReasonType = {}));
+var NotificationStatisticType;
+(function (NotificationStatisticType) {
+ NotificationStatisticType[NotificationStatisticType["NotificationBySubscription"] = 0] = "NotificationBySubscription";
+ NotificationStatisticType[NotificationStatisticType["EventsByEventType"] = 1] = "EventsByEventType";
+ NotificationStatisticType[NotificationStatisticType["NotificationByEventType"] = 2] = "NotificationByEventType";
+ NotificationStatisticType[NotificationStatisticType["EventsByEventTypePerUser"] = 3] = "EventsByEventTypePerUser";
+ NotificationStatisticType[NotificationStatisticType["NotificationByEventTypePerUser"] = 4] = "NotificationByEventTypePerUser";
+ NotificationStatisticType[NotificationStatisticType["Events"] = 5] = "Events";
+ NotificationStatisticType[NotificationStatisticType["Notifications"] = 6] = "Notifications";
+ NotificationStatisticType[NotificationStatisticType["NotificationFailureBySubscription"] = 7] = "NotificationFailureBySubscription";
+ NotificationStatisticType[NotificationStatisticType["UnprocessedRangeStart"] = 100] = "UnprocessedRangeStart";
+ NotificationStatisticType[NotificationStatisticType["UnprocessedEventsByPublisher"] = 101] = "UnprocessedEventsByPublisher";
+ NotificationStatisticType[NotificationStatisticType["UnprocessedEventDelayByPublisher"] = 102] = "UnprocessedEventDelayByPublisher";
+ NotificationStatisticType[NotificationStatisticType["UnprocessedNotificationsByChannelByPublisher"] = 103] = "UnprocessedNotificationsByChannelByPublisher";
+ NotificationStatisticType[NotificationStatisticType["UnprocessedNotificationDelayByChannelByPublisher"] = 104] = "UnprocessedNotificationDelayByChannelByPublisher";
+ NotificationStatisticType[NotificationStatisticType["DelayRangeStart"] = 200] = "DelayRangeStart";
+ NotificationStatisticType[NotificationStatisticType["TotalPipelineTime"] = 201] = "TotalPipelineTime";
+ NotificationStatisticType[NotificationStatisticType["NotificationPipelineTime"] = 202] = "NotificationPipelineTime";
+ NotificationStatisticType[NotificationStatisticType["EventPipelineTime"] = 203] = "EventPipelineTime";
+ NotificationStatisticType[NotificationStatisticType["HourlyRangeStart"] = 1000] = "HourlyRangeStart";
+ NotificationStatisticType[NotificationStatisticType["HourlyNotificationBySubscription"] = 1001] = "HourlyNotificationBySubscription";
+ NotificationStatisticType[NotificationStatisticType["HourlyEventsByEventTypePerUser"] = 1002] = "HourlyEventsByEventTypePerUser";
+ NotificationStatisticType[NotificationStatisticType["HourlyEvents"] = 1003] = "HourlyEvents";
+ NotificationStatisticType[NotificationStatisticType["HourlyNotifications"] = 1004] = "HourlyNotifications";
+ NotificationStatisticType[NotificationStatisticType["HourlyUnprocessedEventsByPublisher"] = 1101] = "HourlyUnprocessedEventsByPublisher";
+ NotificationStatisticType[NotificationStatisticType["HourlyUnprocessedEventDelayByPublisher"] = 1102] = "HourlyUnprocessedEventDelayByPublisher";
+ NotificationStatisticType[NotificationStatisticType["HourlyUnprocessedNotificationsByChannelByPublisher"] = 1103] = "HourlyUnprocessedNotificationsByChannelByPublisher";
+ NotificationStatisticType[NotificationStatisticType["HourlyUnprocessedNotificationDelayByChannelByPublisher"] = 1104] = "HourlyUnprocessedNotificationDelayByChannelByPublisher";
+ NotificationStatisticType[NotificationStatisticType["HourlyTotalPipelineTime"] = 1201] = "HourlyTotalPipelineTime";
+ NotificationStatisticType[NotificationStatisticType["HourlyNotificationPipelineTime"] = 1202] = "HourlyNotificationPipelineTime";
+ NotificationStatisticType[NotificationStatisticType["HourlyEventPipelineTime"] = 1203] = "HourlyEventPipelineTime";
+})(NotificationStatisticType = exports.NotificationStatisticType || (exports.NotificationStatisticType = {}));
+/**
+ * Delivery preference for a subscriber. Indicates how the subscriber should be notified.
+ */
+var NotificationSubscriberDeliveryPreference;
+(function (NotificationSubscriberDeliveryPreference) {
+ /**
+ * Do not send notifications by default. Note: notifications can still be delivered to this subscriber, for example via a custom subscription.
+ */
+ NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["NoDelivery"] = -1] = "NoDelivery";
+ /**
+ * Deliver notifications to the subscriber's preferred email address.
+ */
+ NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["PreferredEmailAddress"] = 1] = "PreferredEmailAddress";
+ /**
+ * Deliver notifications to each member of the group representing the subscriber. Only applicable when the subscriber is a group.
+ */
+ NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["EachMember"] = 2] = "EachMember";
+ /**
+ * Use default
+ */
+ NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["UseDefault"] = 3] = "UseDefault";
+})(NotificationSubscriberDeliveryPreference = exports.NotificationSubscriberDeliveryPreference || (exports.NotificationSubscriberDeliveryPreference = {}));
+var SubscriberFlags;
+(function (SubscriberFlags) {
+ SubscriberFlags[SubscriberFlags["None"] = 0] = "None";
+ /**
+ * Subscriber's delivery preferences could be updated
+ */
+ SubscriberFlags[SubscriberFlags["DeliveryPreferencesEditable"] = 2] = "DeliveryPreferencesEditable";
+ /**
+ * Subscriber's delivery preferences supports email delivery
+ */
+ SubscriberFlags[SubscriberFlags["SupportsPreferredEmailAddressDelivery"] = 4] = "SupportsPreferredEmailAddressDelivery";
+ /**
+ * Subscriber's delivery preferences supports individual members delivery(group expansion)
+ */
+ SubscriberFlags[SubscriberFlags["SupportsEachMemberDelivery"] = 8] = "SupportsEachMemberDelivery";
+ /**
+ * Subscriber's delivery preferences supports no delivery
+ */
+ SubscriberFlags[SubscriberFlags["SupportsNoDelivery"] = 16] = "SupportsNoDelivery";
+ /**
+ * Subscriber is a user
+ */
+ SubscriberFlags[SubscriberFlags["IsUser"] = 32] = "IsUser";
+ /**
+ * Subscriber is a group
+ */
+ SubscriberFlags[SubscriberFlags["IsGroup"] = 64] = "IsGroup";
+ /**
+ * Subscriber is a team
+ */
+ SubscriberFlags[SubscriberFlags["IsTeam"] = 128] = "IsTeam";
+})(SubscriberFlags = exports.SubscriberFlags || (exports.SubscriberFlags = {}));
+var SubscriptionFieldType;
+(function (SubscriptionFieldType) {
+ SubscriptionFieldType[SubscriptionFieldType["String"] = 1] = "String";
+ SubscriptionFieldType[SubscriptionFieldType["Integer"] = 2] = "Integer";
+ SubscriptionFieldType[SubscriptionFieldType["DateTime"] = 3] = "DateTime";
+ SubscriptionFieldType[SubscriptionFieldType["PlainText"] = 5] = "PlainText";
+ SubscriptionFieldType[SubscriptionFieldType["Html"] = 7] = "Html";
+ SubscriptionFieldType[SubscriptionFieldType["TreePath"] = 8] = "TreePath";
+ SubscriptionFieldType[SubscriptionFieldType["History"] = 9] = "History";
+ SubscriptionFieldType[SubscriptionFieldType["Double"] = 10] = "Double";
+ SubscriptionFieldType[SubscriptionFieldType["Guid"] = 11] = "Guid";
+ SubscriptionFieldType[SubscriptionFieldType["Boolean"] = 12] = "Boolean";
+ SubscriptionFieldType[SubscriptionFieldType["Identity"] = 13] = "Identity";
+ SubscriptionFieldType[SubscriptionFieldType["PicklistInteger"] = 14] = "PicklistInteger";
+ SubscriptionFieldType[SubscriptionFieldType["PicklistString"] = 15] = "PicklistString";
+ SubscriptionFieldType[SubscriptionFieldType["PicklistDouble"] = 16] = "PicklistDouble";
+ SubscriptionFieldType[SubscriptionFieldType["TeamProject"] = 17] = "TeamProject";
+})(SubscriptionFieldType = exports.SubscriptionFieldType || (exports.SubscriptionFieldType = {}));
+/**
+ * Read-only indicators that further describe the subscription.
+ */
+var SubscriptionFlags;
+(function (SubscriptionFlags) {
+ /**
+ * None
+ */
+ SubscriptionFlags[SubscriptionFlags["None"] = 0] = "None";
+ /**
+ * Subscription's subscriber is a group, not a user
+ */
+ SubscriptionFlags[SubscriptionFlags["GroupSubscription"] = 1] = "GroupSubscription";
+ /**
+ * Subscription is contributed and not persisted. This means certain fields of the subscription, like Filter, are read-only.
+ */
+ SubscriptionFlags[SubscriptionFlags["ContributedSubscription"] = 2] = "ContributedSubscription";
+ /**
+ * A user that is member of the subscription's subscriber group can opt in/out of the subscription.
+ */
+ SubscriptionFlags[SubscriptionFlags["CanOptOut"] = 4] = "CanOptOut";
+ /**
+ * If the subscriber is a group, is it a team.
+ */
+ SubscriptionFlags[SubscriptionFlags["TeamSubscription"] = 8] = "TeamSubscription";
+ /**
+ * For role based subscriptions, there is an expectation that there will always be at least one actor that matches
+ */
+ SubscriptionFlags[SubscriptionFlags["OneActorMatches"] = 16] = "OneActorMatches";
+})(SubscriptionFlags = exports.SubscriptionFlags || (exports.SubscriptionFlags = {}));
+/**
+ * The permissions that a user has to a certain subscription
+ */
+var SubscriptionPermissions;
+(function (SubscriptionPermissions) {
+ /**
+ * None
+ */
+ SubscriptionPermissions[SubscriptionPermissions["None"] = 0] = "None";
+ /**
+ * full view of description, filters, etc. Not limited.
+ */
+ SubscriptionPermissions[SubscriptionPermissions["View"] = 1] = "View";
+ /**
+ * update subscription
+ */
+ SubscriptionPermissions[SubscriptionPermissions["Edit"] = 2] = "Edit";
+ /**
+ * delete subscription
+ */
+ SubscriptionPermissions[SubscriptionPermissions["Delete"] = 4] = "Delete";
+})(SubscriptionPermissions = exports.SubscriptionPermissions || (exports.SubscriptionPermissions = {}));
+/**
+ * Flags that influence the result set of a subscription query.
+ */
+var SubscriptionQueryFlags;
+(function (SubscriptionQueryFlags) {
+ SubscriptionQueryFlags[SubscriptionQueryFlags["None"] = 0] = "None";
+ /**
+ * Include subscriptions with invalid subscribers.
+ */
+ SubscriptionQueryFlags[SubscriptionQueryFlags["IncludeInvalidSubscriptions"] = 2] = "IncludeInvalidSubscriptions";
+ /**
+ * Include subscriptions marked for deletion.
+ */
+ SubscriptionQueryFlags[SubscriptionQueryFlags["IncludeDeletedSubscriptions"] = 4] = "IncludeDeletedSubscriptions";
+ /**
+ * Include the full filter details with each subscription.
+ */
+ SubscriptionQueryFlags[SubscriptionQueryFlags["IncludeFilterDetails"] = 8] = "IncludeFilterDetails";
+ /**
+ * For a subscription the caller does not have permission to view, return basic (non-confidential) information.
+ */
+ SubscriptionQueryFlags[SubscriptionQueryFlags["AlwaysReturnBasicInformation"] = 16] = "AlwaysReturnBasicInformation";
+ /**
+ * Include system subscriptions.
+ */
+ SubscriptionQueryFlags[SubscriptionQueryFlags["IncludeSystemSubscriptions"] = 32] = "IncludeSystemSubscriptions";
+})(SubscriptionQueryFlags = exports.SubscriptionQueryFlags || (exports.SubscriptionQueryFlags = {}));
+/**
+ * Subscription status values. A value greater than or equal to zero indicates the subscription is enabled. A negative value indicates the subscription is disabled.
+ */
+var SubscriptionStatus;
+(function (SubscriptionStatus) {
+ /**
+ * Subscription is disabled because it generated a high volume of notifications.
+ */
+ SubscriptionStatus[SubscriptionStatus["JailedByNotificationsVolume"] = -200] = "JailedByNotificationsVolume";
+ /**
+ * Subscription is disabled and will be deleted.
+ */
+ SubscriptionStatus[SubscriptionStatus["PendingDeletion"] = -100] = "PendingDeletion";
+ /**
+ * Subscription is disabled because of an Argument Exception while processing the subscription
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledArgumentException"] = -12] = "DisabledArgumentException";
+ /**
+ * Subscription is disabled because the project is invalid
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledProjectInvalid"] = -11] = "DisabledProjectInvalid";
+ /**
+ * Subscription is disabled because the identity does not have the appropriate permissions
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledMissingPermissions"] = -10] = "DisabledMissingPermissions";
+ /**
+ * Subscription is disabled service due to failures.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledFromProbation"] = -9] = "DisabledFromProbation";
+ /**
+ * Subscription is disabled because the identity is no longer active
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledInactiveIdentity"] = -8] = "DisabledInactiveIdentity";
+ /**
+ * Subscription is disabled because message queue is not supported.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledMessageQueueNotSupported"] = -7] = "DisabledMessageQueueNotSupported";
+ /**
+ * Subscription is disabled because its subscriber is unknown.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledMissingIdentity"] = -6] = "DisabledMissingIdentity";
+ /**
+ * Subscription is disabled because it has an invalid role expression.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledInvalidRoleExpression"] = -5] = "DisabledInvalidRoleExpression";
+ /**
+ * Subscription is disabled because it has an invalid filter expression.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledInvalidPathClause"] = -4] = "DisabledInvalidPathClause";
+ /**
+ * Subscription is disabled because it is a duplicate of a default subscription.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledAsDuplicateOfDefault"] = -3] = "DisabledAsDuplicateOfDefault";
+ /**
+ * Subscription is disabled by an administrator, not the subscription's subscriber.
+ */
+ SubscriptionStatus[SubscriptionStatus["DisabledByAdmin"] = -2] = "DisabledByAdmin";
+ /**
+ * Subscription is disabled, typically by the owner of the subscription, and will not produce any notifications.
+ */
+ SubscriptionStatus[SubscriptionStatus["Disabled"] = -1] = "Disabled";
+ /**
+ * Subscription is active.
+ */
+ SubscriptionStatus[SubscriptionStatus["Enabled"] = 0] = "Enabled";
+ /**
+ * Subscription is active, but is on probation due to failed deliveries or other issues with the subscription.
+ */
+ SubscriptionStatus[SubscriptionStatus["EnabledOnProbation"] = 1] = "EnabledOnProbation";
+})(SubscriptionStatus = exports.SubscriptionStatus || (exports.SubscriptionStatus = {}));
+/**
+ * Set of flags used to determine which set of templates is retrieved when querying for subscription templates
+ */
+var SubscriptionTemplateQueryFlags;
+(function (SubscriptionTemplateQueryFlags) {
+ SubscriptionTemplateQueryFlags[SubscriptionTemplateQueryFlags["None"] = 0] = "None";
+ /**
+ * Include user templates
+ */
+ SubscriptionTemplateQueryFlags[SubscriptionTemplateQueryFlags["IncludeUser"] = 1] = "IncludeUser";
+ /**
+ * Include group templates
+ */
+ SubscriptionTemplateQueryFlags[SubscriptionTemplateQueryFlags["IncludeGroup"] = 2] = "IncludeGroup";
+ /**
+ * Include user and group templates
+ */
+ SubscriptionTemplateQueryFlags[SubscriptionTemplateQueryFlags["IncludeUserAndGroup"] = 4] = "IncludeUserAndGroup";
+ /**
+ * Include the event type details like the fields and operators
+ */
+ SubscriptionTemplateQueryFlags[SubscriptionTemplateQueryFlags["IncludeEventTypeInformation"] = 22] = "IncludeEventTypeInformation";
+})(SubscriptionTemplateQueryFlags = exports.SubscriptionTemplateQueryFlags || (exports.SubscriptionTemplateQueryFlags = {}));
+var SubscriptionTemplateType;
+(function (SubscriptionTemplateType) {
+ SubscriptionTemplateType[SubscriptionTemplateType["User"] = 0] = "User";
+ SubscriptionTemplateType[SubscriptionTemplateType["Team"] = 1] = "Team";
+ SubscriptionTemplateType[SubscriptionTemplateType["Both"] = 2] = "Both";
+ SubscriptionTemplateType[SubscriptionTemplateType["None"] = 3] = "None";
+})(SubscriptionTemplateType = exports.SubscriptionTemplateType || (exports.SubscriptionTemplateType = {}));
+exports.TypeInfo = {
+ ActorNotificationReason: {},
+ BatchNotificationOperation: {},
+ DefaultGroupDeliveryPreference: {
+ enumValues: {
+ "noDelivery": -1,
+ "eachMember": 2
+ }
+ },
+ EvaluationOperationStatus: {
+ enumValues: {
+ "notSet": 0,
+ "queued": 1,
+ "inProgress": 2,
+ "cancelled": 3,
+ "succeeded": 4,
+ "failed": 5,
+ "timedOut": 6,
+ "notFound": 7
+ }
+ },
+ EventBacklogStatus: {},
+ EventProcessingLog: {},
+ EventPublisherQueryFlags: {
+ enumValues: {
+ "none": 0,
+ "includeRemoteServices": 2
+ }
+ },
+ EventTypeQueryFlags: {
+ enumValues: {
+ "none": 0,
+ "includeFields": 1
+ }
+ },
+ INotificationDiagnosticLog: {},
+ NotificationAdminSettings: {},
+ NotificationAdminSettingsUpdateParameters: {},
+ NotificationBacklogStatus: {},
+ NotificationDeliveryLog: {},
+ NotificationDiagnosticLog: {},
+ NotificationEventBacklogStatus: {},
+ NotificationEventField: {},
+ NotificationEventFieldType: {},
+ NotificationEventType: {},
+ NotificationJobDiagnosticLog: {},
+ NotificationOperation: {
+ enumValues: {
+ "none": 0,
+ "suspendUnprocessed": 1
+ }
+ },
+ NotificationReason: {},
+ NotificationReasonType: {
+ enumValues: {
+ "unknown": 0,
+ "follows": 1,
+ "personal": 2,
+ "personalAlias": 3,
+ "directMember": 4,
+ "indirectMember": 5,
+ "groupAlias": 6,
+ "subscriptionAlias": 7,
+ "singleRole": 8,
+ "directMemberGroupRole": 9,
+ "inDirectMemberGroupRole": 10,
+ "aliasMemberGroupRole": 11
+ }
+ },
+ NotificationStatistic: {},
+ NotificationStatisticsQuery: {},
+ NotificationStatisticsQueryConditions: {},
+ NotificationStatisticType: {
+ enumValues: {
+ "notificationBySubscription": 0,
+ "eventsByEventType": 1,
+ "notificationByEventType": 2,
+ "eventsByEventTypePerUser": 3,
+ "notificationByEventTypePerUser": 4,
+ "events": 5,
+ "notifications": 6,
+ "notificationFailureBySubscription": 7,
+ "unprocessedRangeStart": 100,
+ "unprocessedEventsByPublisher": 101,
+ "unprocessedEventDelayByPublisher": 102,
+ "unprocessedNotificationsByChannelByPublisher": 103,
+ "unprocessedNotificationDelayByChannelByPublisher": 104,
+ "delayRangeStart": 200,
+ "totalPipelineTime": 201,
+ "notificationPipelineTime": 202,
+ "eventPipelineTime": 203,
+ "hourlyRangeStart": 1000,
+ "hourlyNotificationBySubscription": 1001,
+ "hourlyEventsByEventTypePerUser": 1002,
+ "hourlyEvents": 1003,
+ "hourlyNotifications": 1004,
+ "hourlyUnprocessedEventsByPublisher": 1101,
+ "hourlyUnprocessedEventDelayByPublisher": 1102,
+ "hourlyUnprocessedNotificationsByChannelByPublisher": 1103,
+ "hourlyUnprocessedNotificationDelayByChannelByPublisher": 1104,
+ "hourlyTotalPipelineTime": 1201,
+ "hourlyNotificationPipelineTime": 1202,
+ "hourlyEventPipelineTime": 1203
+ }
+ },
+ NotificationSubscriber: {},
+ NotificationSubscriberDeliveryPreference: {
+ enumValues: {
+ "noDelivery": -1,
+ "preferredEmailAddress": 1,
+ "eachMember": 2,
+ "useDefault": 3
+ }
+ },
+ NotificationSubscriberUpdateParameters: {},
+ NotificationSubscription: {},
+ NotificationSubscriptionTemplate: {},
+ NotificationSubscriptionUpdateParameters: {},
+ SubscriberFlags: {
+ enumValues: {
+ "none": 0,
+ "deliveryPreferencesEditable": 2,
+ "supportsPreferredEmailAddressDelivery": 4,
+ "supportsEachMemberDelivery": 8,
+ "supportsNoDelivery": 16,
+ "isUser": 32,
+ "isGroup": 64,
+ "isTeam": 128
+ }
+ },
+ SubscriptionDiagnostics: {},
+ SubscriptionEvaluationRequest: {},
+ SubscriptionEvaluationResult: {},
+ SubscriptionFieldType: {
+ enumValues: {
+ "string": 1,
+ "integer": 2,
+ "dateTime": 3,
+ "plainText": 5,
+ "html": 7,
+ "treePath": 8,
+ "history": 9,
+ "double": 10,
+ "guid": 11,
+ "boolean": 12,
+ "identity": 13,
+ "picklistInteger": 14,
+ "picklistString": 15,
+ "picklistDouble": 16,
+ "teamProject": 17
+ }
+ },
+ SubscriptionFlags: {
+ enumValues: {
+ "none": 0,
+ "groupSubscription": 1,
+ "contributedSubscription": 2,
+ "canOptOut": 4,
+ "teamSubscription": 8,
+ "oneActorMatches": 16
+ }
+ },
+ SubscriptionPermissions: {
+ enumValues: {
+ "none": 0,
+ "view": 1,
+ "edit": 2,
+ "delete": 4
+ }
+ },
+ SubscriptionQuery: {},
+ SubscriptionQueryCondition: {},
+ SubscriptionQueryFlags: {
+ enumValues: {
+ "none": 0,
+ "includeInvalidSubscriptions": 2,
+ "includeDeletedSubscriptions": 4,
+ "includeFilterDetails": 8,
+ "alwaysReturnBasicInformation": 16,
+ "includeSystemSubscriptions": 32
+ }
+ },
+ SubscriptionStatus: {
+ enumValues: {
+ "jailedByNotificationsVolume": -200,
+ "pendingDeletion": -100,
+ "disabledArgumentException": -12,
+ "disabledProjectInvalid": -11,
+ "disabledMissingPermissions": -10,
+ "disabledFromProbation": -9,
+ "disabledInactiveIdentity": -8,
+ "disabledMessageQueueNotSupported": -7,
+ "disabledMissingIdentity": -6,
+ "disabledInvalidRoleExpression": -5,
+ "disabledInvalidPathClause": -4,
+ "disabledAsDuplicateOfDefault": -3,
+ "disabledByAdmin": -2,
+ "disabled": -1,
+ "enabled": 0,
+ "enabledOnProbation": 1
+ }
+ },
+ SubscriptionTemplateQueryFlags: {
+ enumValues: {
+ "none": 0,
+ "includeUser": 1,
+ "includeGroup": 2,
+ "includeUserAndGroup": 4,
+ "includeEventTypeInformation": 22
+ }
+ },
+ SubscriptionTemplateType: {
+ enumValues: {
+ "user": 0,
+ "team": 1,
+ "both": 2,
+ "none": 3
+ }
+ },
+ SubscriptionTraceDiagnosticLog: {},
+ SubscriptionTraceEventProcessingLog: {},
+ SubscriptionTraceNotificationDeliveryLog: {},
+ SubscriptionTracing: {},
+};
+exports.TypeInfo.ActorNotificationReason.fields = {
+ notificationReasonType: {
+ enumType: exports.TypeInfo.NotificationReasonType
+ }
+};
+exports.TypeInfo.BatchNotificationOperation.fields = {
+ notificationOperation: {
+ enumType: exports.TypeInfo.NotificationOperation
+ }
+};
+exports.TypeInfo.EventBacklogStatus.fields = {
+ captureTime: {
+ isDate: true,
+ },
+ lastEventBatchStartTime: {
+ isDate: true,
+ },
+ lastEventProcessedTime: {
+ isDate: true,
+ },
+ lastJobBatchStartTime: {
+ isDate: true,
+ },
+ lastJobProcessedTime: {
+ isDate: true,
+ },
+ oldestPendingEventTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.EventProcessingLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.INotificationDiagnosticLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.NotificationAdminSettings.fields = {
+ defaultGroupDeliveryPreference: {
+ enumType: exports.TypeInfo.DefaultGroupDeliveryPreference
+ }
+};
+exports.TypeInfo.NotificationAdminSettingsUpdateParameters.fields = {
+ defaultGroupDeliveryPreference: {
+ enumType: exports.TypeInfo.DefaultGroupDeliveryPreference
+ }
+};
+exports.TypeInfo.NotificationBacklogStatus.fields = {
+ captureTime: {
+ isDate: true,
+ },
+ lastJobBatchStartTime: {
+ isDate: true,
+ },
+ lastJobProcessedTime: {
+ isDate: true,
+ },
+ lastNotificationBatchStartTime: {
+ isDate: true,
+ },
+ lastNotificationProcessedTime: {
+ isDate: true,
+ },
+ oldestPendingNotificationTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.NotificationDeliveryLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.NotificationDiagnosticLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.NotificationEventBacklogStatus.fields = {
+ eventBacklogStatus: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.EventBacklogStatus
+ },
+ notificationBacklogStatus: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.NotificationBacklogStatus
+ }
+};
+exports.TypeInfo.NotificationEventField.fields = {
+ fieldType: {
+ typeInfo: exports.TypeInfo.NotificationEventFieldType
+ }
+};
+exports.TypeInfo.NotificationEventFieldType.fields = {
+ subscriptionFieldType: {
+ enumType: exports.TypeInfo.SubscriptionFieldType
+ }
+};
+exports.TypeInfo.NotificationEventType.fields = {
+ fields: {
+ isDictionary: true,
+ dictionaryValueTypeInfo: exports.TypeInfo.NotificationEventField
+ }
+};
+exports.TypeInfo.NotificationJobDiagnosticLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.NotificationReason.fields = {
+ notificationReasonType: {
+ enumType: exports.TypeInfo.NotificationReasonType
+ }
+};
+exports.TypeInfo.NotificationStatistic.fields = {
+ date: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.NotificationStatisticType
+ }
+};
+exports.TypeInfo.NotificationStatisticsQuery.fields = {
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.NotificationStatisticsQueryConditions
+ }
+};
+exports.TypeInfo.NotificationStatisticsQueryConditions.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.NotificationStatisticType
+ }
+};
+exports.TypeInfo.NotificationSubscriber.fields = {
+ deliveryPreference: {
+ enumType: exports.TypeInfo.NotificationSubscriberDeliveryPreference
+ },
+ flags: {
+ enumType: exports.TypeInfo.SubscriberFlags
+ }
+};
+exports.TypeInfo.NotificationSubscriberUpdateParameters.fields = {
+ deliveryPreference: {
+ enumType: exports.TypeInfo.NotificationSubscriberDeliveryPreference
+ }
+};
+exports.TypeInfo.NotificationSubscription.fields = {
+ diagnostics: {
+ typeInfo: exports.TypeInfo.SubscriptionDiagnostics
+ },
+ flags: {
+ enumType: exports.TypeInfo.SubscriptionFlags
+ },
+ modifiedDate: {
+ isDate: true,
+ },
+ permissions: {
+ enumType: exports.TypeInfo.SubscriptionPermissions
+ },
+ status: {
+ enumType: exports.TypeInfo.SubscriptionStatus
+ }
+};
+exports.TypeInfo.NotificationSubscriptionTemplate.fields = {
+ notificationEventInformation: {
+ typeInfo: exports.TypeInfo.NotificationEventType
+ },
+ type: {
+ enumType: exports.TypeInfo.SubscriptionTemplateType
+ }
+};
+exports.TypeInfo.NotificationSubscriptionUpdateParameters.fields = {
+ status: {
+ enumType: exports.TypeInfo.SubscriptionStatus
+ }
+};
+exports.TypeInfo.SubscriptionDiagnostics.fields = {
+ deliveryResults: {
+ typeInfo: exports.TypeInfo.SubscriptionTracing
+ },
+ deliveryTracing: {
+ typeInfo: exports.TypeInfo.SubscriptionTracing
+ },
+ evaluationTracing: {
+ typeInfo: exports.TypeInfo.SubscriptionTracing
+ }
+};
+exports.TypeInfo.SubscriptionEvaluationRequest.fields = {
+ minEventsCreatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.SubscriptionEvaluationResult.fields = {
+ evaluationJobStatus: {
+ enumType: exports.TypeInfo.EvaluationOperationStatus
+ }
+};
+exports.TypeInfo.SubscriptionQuery.fields = {
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.SubscriptionQueryCondition
+ },
+ queryFlags: {
+ enumType: exports.TypeInfo.SubscriptionQueryFlags
+ }
+};
+exports.TypeInfo.SubscriptionQueryCondition.fields = {
+ flags: {
+ enumType: exports.TypeInfo.SubscriptionFlags
+ }
+};
+exports.TypeInfo.SubscriptionTraceDiagnosticLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.SubscriptionTraceEventProcessingLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.SubscriptionTraceNotificationDeliveryLog.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.SubscriptionTracing.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ }
+};
+
+
+/***/ }),
+
+/***/ 8555:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Status of a policy which is running against a specific pull request.
+ */
+var PolicyEvaluationStatus;
+(function (PolicyEvaluationStatus) {
+ /**
+ * The policy is either queued to run, or is waiting for some event before progressing.
+ */
+ PolicyEvaluationStatus[PolicyEvaluationStatus["Queued"] = 0] = "Queued";
+ /**
+ * The policy is currently running.
+ */
+ PolicyEvaluationStatus[PolicyEvaluationStatus["Running"] = 1] = "Running";
+ /**
+ * The policy has been fulfilled for this pull request.
+ */
+ PolicyEvaluationStatus[PolicyEvaluationStatus["Approved"] = 2] = "Approved";
+ /**
+ * The policy has rejected this pull request.
+ */
+ PolicyEvaluationStatus[PolicyEvaluationStatus["Rejected"] = 3] = "Rejected";
+ /**
+ * The policy does not apply to this pull request.
+ */
+ PolicyEvaluationStatus[PolicyEvaluationStatus["NotApplicable"] = 4] = "NotApplicable";
+ /**
+ * The policy has encountered an unexpected error.
+ */
+ PolicyEvaluationStatus[PolicyEvaluationStatus["Broken"] = 5] = "Broken";
+})(PolicyEvaluationStatus = exports.PolicyEvaluationStatus || (exports.PolicyEvaluationStatus = {}));
+exports.TypeInfo = {
+ PolicyConfiguration: {},
+ PolicyEvaluationRecord: {},
+ PolicyEvaluationStatus: {
+ enumValues: {
+ "queued": 0,
+ "running": 1,
+ "approved": 2,
+ "rejected": 3,
+ "notApplicable": 4,
+ "broken": 5
+ }
+ },
+};
+exports.TypeInfo.PolicyConfiguration.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.PolicyEvaluationRecord.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ configuration: {
+ typeInfo: exports.TypeInfo.PolicyConfiguration
+ },
+ startedDate: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.PolicyEvaluationStatus
+ }
+};
+
+
+/***/ }),
+
+/***/ 879:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+* ---------------------------------------------------------
+* Copyright(C) Microsoft Corporation. All rights reserved.
+* ---------------------------------------------------------
+*
+* ---------------------------------------------------------
+* Generated file, DO NOT EDIT
+* ---------------------------------------------------------
+*/
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var AvatarSize;
+(function (AvatarSize) {
+ AvatarSize[AvatarSize["Small"] = 0] = "Small";
+ AvatarSize[AvatarSize["Medium"] = 1] = "Medium";
+ AvatarSize[AvatarSize["Large"] = 2] = "Large";
+})(AvatarSize = exports.AvatarSize || (exports.AvatarSize = {}));
+exports.TypeInfo = {
+ AttributeDescriptor: {
+ fields: null
+ },
+ AttributesContainer: {
+ fields: null
+ },
+ Avatar: {
+ fields: null
+ },
+ AvatarSize: {
+ enumValues: {
+ "small": 0,
+ "medium": 1,
+ "large": 2,
+ }
+ },
+ CoreProfileAttribute: {
+ fields: null
+ },
+ Country: {
+ fields: null
+ },
+ CreateProfileContext: {
+ fields: null
+ },
+ GeoRegion: {
+ fields: null
+ },
+ Profile: {
+ fields: null
+ },
+ ProfileAttribute: {
+ fields: null
+ },
+ ProfileAttributeBase: {
+ fields: null
+ },
+ ProfileRegion: {
+ fields: null
+ },
+ ProfileRegions: {
+ fields: null
+ },
+};
+exports.TypeInfo.AttributeDescriptor.fields = {};
+exports.TypeInfo.AttributesContainer.fields = {
+ attributes: {},
+};
+exports.TypeInfo.Avatar.fields = {
+ size: {
+ enumType: exports.TypeInfo.AvatarSize
+ },
+ timeStamp: {
+ isDate: true,
+ },
+};
+exports.TypeInfo.CoreProfileAttribute.fields = {
+ descriptor: {
+ typeInfo: exports.TypeInfo.AttributeDescriptor
+ },
+ timeStamp: {
+ isDate: true,
+ },
+};
+exports.TypeInfo.Country.fields = {};
+exports.TypeInfo.CreateProfileContext.fields = {};
+exports.TypeInfo.GeoRegion.fields = {};
+exports.TypeInfo.Profile.fields = {
+ applicationContainer: {
+ typeInfo: exports.TypeInfo.AttributesContainer
+ },
+ coreAttributes: {},
+ timeStamp: {
+ isDate: true,
+ },
+};
+exports.TypeInfo.ProfileAttribute.fields = {
+ descriptor: {
+ typeInfo: exports.TypeInfo.AttributeDescriptor
+ },
+ timeStamp: {
+ isDate: true,
+ },
+};
+exports.TypeInfo.ProfileAttributeBase.fields = {
+ descriptor: {
+ typeInfo: exports.TypeInfo.AttributeDescriptor
+ },
+ timeStamp: {
+ isDate: true,
+ },
+};
+exports.TypeInfo.ProfileRegion.fields = {};
+exports.TypeInfo.ProfileRegions.fields = {
+ regions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ProfileRegion
+ },
+};
+
+
+/***/ }),
+
+/***/ 4323:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var AggregationType;
+(function (AggregationType) {
+ AggregationType[AggregationType["Hourly"] = 0] = "Hourly";
+ AggregationType[AggregationType["Daily"] = 1] = "Daily";
+})(AggregationType = exports.AggregationType || (exports.AggregationType = {}));
+var ResultPhase;
+(function (ResultPhase) {
+ ResultPhase[ResultPhase["Preliminary"] = 0] = "Preliminary";
+ ResultPhase[ResultPhase["Full"] = 1] = "Full";
+})(ResultPhase = exports.ResultPhase || (exports.ResultPhase = {}));
+exports.TypeInfo = {
+ AggregationType: {
+ enumValues: {
+ "hourly": 0,
+ "daily": 1
+ }
+ },
+ CodeChangeTrendItem: {},
+ ProjectActivityMetrics: {},
+ ProjectLanguageAnalytics: {},
+ RepositoryActivityMetrics: {},
+ RepositoryLanguageAnalytics: {},
+ ResultPhase: {
+ enumValues: {
+ "preliminary": 0,
+ "full": 1
+ }
+ },
+};
+exports.TypeInfo.CodeChangeTrendItem.fields = {
+ time: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ProjectActivityMetrics.fields = {
+ codeChangesTrend: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.CodeChangeTrendItem
+ }
+};
+exports.TypeInfo.ProjectLanguageAnalytics.fields = {
+ repositoryLanguageAnalytics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RepositoryLanguageAnalytics
+ },
+ resultPhase: {
+ enumType: exports.TypeInfo.ResultPhase
+ }
+};
+exports.TypeInfo.RepositoryActivityMetrics.fields = {
+ codeChangesTrend: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.CodeChangeTrendItem
+ }
+};
+exports.TypeInfo.RepositoryLanguageAnalytics.fields = {
+ resultPhase: {
+ enumType: exports.TypeInfo.ResultPhase
+ },
+ updatedTime: {
+ isDate: true,
+ }
+};
+
+
+/***/ }),
+
+/***/ 7421:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const FormInputInterfaces = __nccwpck_require__(3627);
+var AgentArtifactType;
+(function (AgentArtifactType) {
+ /**
+ * Indicates XamlBuild artifact
+ */
+ AgentArtifactType[AgentArtifactType["XamlBuild"] = 0] = "XamlBuild";
+ /**
+ * Indicates Build artifact
+ */
+ AgentArtifactType[AgentArtifactType["Build"] = 1] = "Build";
+ /**
+ * Indicates Jenkins artifact
+ */
+ AgentArtifactType[AgentArtifactType["Jenkins"] = 2] = "Jenkins";
+ /**
+ * Indicates FileShare artifact
+ */
+ AgentArtifactType[AgentArtifactType["FileShare"] = 3] = "FileShare";
+ /**
+ * Indicates Nuget artifact
+ */
+ AgentArtifactType[AgentArtifactType["Nuget"] = 4] = "Nuget";
+ /**
+ * Indicates TfsOnPrem artifact
+ */
+ AgentArtifactType[AgentArtifactType["TfsOnPrem"] = 5] = "TfsOnPrem";
+ /**
+ * Indicates GitHub artifact
+ */
+ AgentArtifactType[AgentArtifactType["GitHub"] = 6] = "GitHub";
+ /**
+ * Indicates TFGit artifact
+ */
+ AgentArtifactType[AgentArtifactType["TFGit"] = 7] = "TFGit";
+ /**
+ * Indicates ExternalTfsBuild artifact
+ */
+ AgentArtifactType[AgentArtifactType["ExternalTfsBuild"] = 8] = "ExternalTfsBuild";
+ /**
+ * Indicates Custom artifact
+ */
+ AgentArtifactType[AgentArtifactType["Custom"] = 9] = "Custom";
+ /**
+ * Indicates Tfvc artifact
+ */
+ AgentArtifactType[AgentArtifactType["Tfvc"] = 10] = "Tfvc";
+})(AgentArtifactType = exports.AgentArtifactType || (exports.AgentArtifactType = {}));
+var ApprovalExecutionOrder;
+(function (ApprovalExecutionOrder) {
+ /**
+ * Approvals shown before gates.
+ */
+ ApprovalExecutionOrder[ApprovalExecutionOrder["BeforeGates"] = 1] = "BeforeGates";
+ /**
+ * Approvals shown after successful execution of gates.
+ */
+ ApprovalExecutionOrder[ApprovalExecutionOrder["AfterSuccessfulGates"] = 2] = "AfterSuccessfulGates";
+ /**
+ * Approvals shown always after execution of gates.
+ */
+ ApprovalExecutionOrder[ApprovalExecutionOrder["AfterGatesAlways"] = 4] = "AfterGatesAlways";
+})(ApprovalExecutionOrder = exports.ApprovalExecutionOrder || (exports.ApprovalExecutionOrder = {}));
+var ApprovalFilters;
+(function (ApprovalFilters) {
+ /**
+ * No approvals or approval snapshots.
+ */
+ ApprovalFilters[ApprovalFilters["None"] = 0] = "None";
+ /**
+ * Manual approval steps but no approval snapshots (Use with ApprovalSnapshots for snapshots).
+ */
+ ApprovalFilters[ApprovalFilters["ManualApprovals"] = 1] = "ManualApprovals";
+ /**
+ * Automated approval steps but no approval snapshots (Use with ApprovalSnapshots for snapshots).
+ */
+ ApprovalFilters[ApprovalFilters["AutomatedApprovals"] = 2] = "AutomatedApprovals";
+ /**
+ * No approval steps, but approval snapshots (Use with either ManualApprovals or AutomatedApprovals for approval steps).
+ */
+ ApprovalFilters[ApprovalFilters["ApprovalSnapshots"] = 4] = "ApprovalSnapshots";
+ /**
+ * All approval steps and approval snapshots.
+ */
+ ApprovalFilters[ApprovalFilters["All"] = 7] = "All";
+})(ApprovalFilters = exports.ApprovalFilters || (exports.ApprovalFilters = {}));
+var ApprovalStatus;
+(function (ApprovalStatus) {
+ /**
+ * Indicates the approval does not have the status set.
+ */
+ ApprovalStatus[ApprovalStatus["Undefined"] = 0] = "Undefined";
+ /**
+ * Indicates the approval is pending.
+ */
+ ApprovalStatus[ApprovalStatus["Pending"] = 1] = "Pending";
+ /**
+ * Indicates the approval is approved.
+ */
+ ApprovalStatus[ApprovalStatus["Approved"] = 2] = "Approved";
+ /**
+ * Indicates the approval is rejected.
+ */
+ ApprovalStatus[ApprovalStatus["Rejected"] = 4] = "Rejected";
+ /**
+ * Indicates the approval is reassigned.
+ */
+ ApprovalStatus[ApprovalStatus["Reassigned"] = 6] = "Reassigned";
+ /**
+ * Indicates the approval is canceled.
+ */
+ ApprovalStatus[ApprovalStatus["Canceled"] = 7] = "Canceled";
+ /**
+ * Indicates the approval is skipped.
+ */
+ ApprovalStatus[ApprovalStatus["Skipped"] = 8] = "Skipped";
+})(ApprovalStatus = exports.ApprovalStatus || (exports.ApprovalStatus = {}));
+var ApprovalType;
+(function (ApprovalType) {
+ /**
+ * Indicates the approval type does not set.
+ */
+ ApprovalType[ApprovalType["Undefined"] = 0] = "Undefined";
+ /**
+ * Indicates the approvals which executed before deployment.
+ */
+ ApprovalType[ApprovalType["PreDeploy"] = 1] = "PreDeploy";
+ /**
+ * Indicates the approvals which executed after deployment.
+ */
+ ApprovalType[ApprovalType["PostDeploy"] = 2] = "PostDeploy";
+ /**
+ * Indicates all approvals.
+ */
+ ApprovalType[ApprovalType["All"] = 3] = "All";
+})(ApprovalType = exports.ApprovalType || (exports.ApprovalType = {}));
+var AuditAction;
+(function (AuditAction) {
+ /**
+ * Indicates the audit add.
+ */
+ AuditAction[AuditAction["Add"] = 1] = "Add";
+ /**
+ * Indicates the audit update.
+ */
+ AuditAction[AuditAction["Update"] = 2] = "Update";
+ /**
+ * Indicates the audit delete.
+ */
+ AuditAction[AuditAction["Delete"] = 3] = "Delete";
+ /**
+ * Indicates the audit undelete.
+ */
+ AuditAction[AuditAction["Undelete"] = 4] = "Undelete";
+})(AuditAction = exports.AuditAction || (exports.AuditAction = {}));
+var AuthorizationHeaderFor;
+(function (AuthorizationHeaderFor) {
+ AuthorizationHeaderFor[AuthorizationHeaderFor["RevalidateApproverIdentity"] = 0] = "RevalidateApproverIdentity";
+ AuthorizationHeaderFor[AuthorizationHeaderFor["OnBehalfOf"] = 1] = "OnBehalfOf";
+})(AuthorizationHeaderFor = exports.AuthorizationHeaderFor || (exports.AuthorizationHeaderFor = {}));
+var ConditionType;
+(function (ConditionType) {
+ /**
+ * The condition type is undefined.
+ */
+ ConditionType[ConditionType["Undefined"] = 0] = "Undefined";
+ /**
+ * The condition type is event.
+ */
+ ConditionType[ConditionType["Event"] = 1] = "Event";
+ /**
+ * The condition type is environment state.
+ */
+ ConditionType[ConditionType["EnvironmentState"] = 2] = "EnvironmentState";
+ /**
+ * The condition type is artifact.
+ */
+ ConditionType[ConditionType["Artifact"] = 4] = "Artifact";
+})(ConditionType = exports.ConditionType || (exports.ConditionType = {}));
+var DeploymentAuthorizationOwner;
+(function (DeploymentAuthorizationOwner) {
+ DeploymentAuthorizationOwner[DeploymentAuthorizationOwner["Automatic"] = 0] = "Automatic";
+ DeploymentAuthorizationOwner[DeploymentAuthorizationOwner["DeploymentSubmitter"] = 1] = "DeploymentSubmitter";
+ DeploymentAuthorizationOwner[DeploymentAuthorizationOwner["FirstPreDeploymentApprover"] = 2] = "FirstPreDeploymentApprover";
+})(DeploymentAuthorizationOwner = exports.DeploymentAuthorizationOwner || (exports.DeploymentAuthorizationOwner = {}));
+var DeploymentExpands;
+(function (DeploymentExpands) {
+ DeploymentExpands[DeploymentExpands["All"] = 0] = "All";
+ DeploymentExpands[DeploymentExpands["DeploymentOnly"] = 1] = "DeploymentOnly";
+ DeploymentExpands[DeploymentExpands["Approvals"] = 2] = "Approvals";
+ DeploymentExpands[DeploymentExpands["Artifacts"] = 4] = "Artifacts";
+})(DeploymentExpands = exports.DeploymentExpands || (exports.DeploymentExpands = {}));
+var DeploymentOperationStatus;
+(function (DeploymentOperationStatus) {
+ /**
+ * The deployment operation status is undefined.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Undefined"] = 0] = "Undefined";
+ /**
+ * The deployment operation status is queued.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Queued"] = 1] = "Queued";
+ /**
+ * The deployment operation status is scheduled.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Scheduled"] = 2] = "Scheduled";
+ /**
+ * The deployment operation status is pending.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Pending"] = 4] = "Pending";
+ /**
+ * The deployment operation status is approved.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Approved"] = 8] = "Approved";
+ /**
+ * The deployment operation status is rejected.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Rejected"] = 16] = "Rejected";
+ /**
+ * The deployment operation status is deferred.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Deferred"] = 32] = "Deferred";
+ /**
+ * The deployment operation status is queued for agent.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["QueuedForAgent"] = 64] = "QueuedForAgent";
+ /**
+ * The deployment operation status is phase in progress.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["PhaseInProgress"] = 128] = "PhaseInProgress";
+ /**
+ * The deployment operation status is phase succeeded.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["PhaseSucceeded"] = 256] = "PhaseSucceeded";
+ /**
+ * The deployment operation status is phase partially succeeded.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["PhasePartiallySucceeded"] = 512] = "PhasePartiallySucceeded";
+ /**
+ * The deployment operation status is phase failed.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["PhaseFailed"] = 1024] = "PhaseFailed";
+ /**
+ * The deployment operation status is canceled.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Canceled"] = 2048] = "Canceled";
+ /**
+ * The deployment operation status is phase canceled.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["PhaseCanceled"] = 4096] = "PhaseCanceled";
+ /**
+ * The deployment operation status is manualintervention pending.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["ManualInterventionPending"] = 8192] = "ManualInterventionPending";
+ /**
+ * The deployment operation status is queued for pipeline.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["QueuedForPipeline"] = 16384] = "QueuedForPipeline";
+ /**
+ * The deployment operation status is cancelling.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["Cancelling"] = 32768] = "Cancelling";
+ /**
+ * The deployment operation status is EvaluatingGates.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["EvaluatingGates"] = 65536] = "EvaluatingGates";
+ /**
+ * The deployment operation status is GateFailed.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["GateFailed"] = 131072] = "GateFailed";
+ /**
+ * The deployment operation status is all.
+ */
+ DeploymentOperationStatus[DeploymentOperationStatus["All"] = 258047] = "All";
+})(DeploymentOperationStatus = exports.DeploymentOperationStatus || (exports.DeploymentOperationStatus = {}));
+var DeploymentReason;
+(function (DeploymentReason) {
+ /**
+ * The deployment reason is none.
+ */
+ DeploymentReason[DeploymentReason["None"] = 0] = "None";
+ /**
+ * The deployment reason is manual.
+ */
+ DeploymentReason[DeploymentReason["Manual"] = 1] = "Manual";
+ /**
+ * The deployment reason is automated.
+ */
+ DeploymentReason[DeploymentReason["Automated"] = 2] = "Automated";
+ /**
+ * The deployment reason is scheduled.
+ */
+ DeploymentReason[DeploymentReason["Scheduled"] = 4] = "Scheduled";
+ /**
+ * The deployment reason is RedeployTrigger.
+ */
+ DeploymentReason[DeploymentReason["RedeployTrigger"] = 8] = "RedeployTrigger";
+})(DeploymentReason = exports.DeploymentReason || (exports.DeploymentReason = {}));
+var DeploymentsQueryType;
+(function (DeploymentsQueryType) {
+ DeploymentsQueryType[DeploymentsQueryType["Regular"] = 1] = "Regular";
+ DeploymentsQueryType[DeploymentsQueryType["FailingSince"] = 2] = "FailingSince";
+})(DeploymentsQueryType = exports.DeploymentsQueryType || (exports.DeploymentsQueryType = {}));
+var DeploymentStatus;
+(function (DeploymentStatus) {
+ /**
+ * The deployment status is undefined.
+ */
+ DeploymentStatus[DeploymentStatus["Undefined"] = 0] = "Undefined";
+ /**
+ * The deployment status is not deployed.
+ */
+ DeploymentStatus[DeploymentStatus["NotDeployed"] = 1] = "NotDeployed";
+ /**
+ * The deployment status is in progress.
+ */
+ DeploymentStatus[DeploymentStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * The deployment status is succeeded.
+ */
+ DeploymentStatus[DeploymentStatus["Succeeded"] = 4] = "Succeeded";
+ /**
+ * The deployment status is partiallysucceeded.
+ */
+ DeploymentStatus[DeploymentStatus["PartiallySucceeded"] = 8] = "PartiallySucceeded";
+ /**
+ * The deployment status is failed.
+ */
+ DeploymentStatus[DeploymentStatus["Failed"] = 16] = "Failed";
+ /**
+ * The deployment status is all.
+ */
+ DeploymentStatus[DeploymentStatus["All"] = 31] = "All";
+})(DeploymentStatus = exports.DeploymentStatus || (exports.DeploymentStatus = {}));
+var DeployPhaseStatus;
+(function (DeployPhaseStatus) {
+ /**
+ * Phase status not set.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["Undefined"] = 0] = "Undefined";
+ /**
+ * Phase execution not started.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["NotStarted"] = 1] = "NotStarted";
+ /**
+ * Phase execution in progress.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * Phase execution partially succeeded.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["PartiallySucceeded"] = 4] = "PartiallySucceeded";
+ /**
+ * Phase execution succeeded.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["Succeeded"] = 8] = "Succeeded";
+ /**
+ * Phase execution failed.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["Failed"] = 16] = "Failed";
+ /**
+ * Phase execution canceled.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["Canceled"] = 32] = "Canceled";
+ /**
+ * Phase execution skipped.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["Skipped"] = 64] = "Skipped";
+ /**
+ * Phase is in cancelling state.
+ */
+ DeployPhaseStatus[DeployPhaseStatus["Cancelling"] = 128] = "Cancelling";
+})(DeployPhaseStatus = exports.DeployPhaseStatus || (exports.DeployPhaseStatus = {}));
+var DeployPhaseTypes;
+(function (DeployPhaseTypes) {
+ /**
+ * Phase type not defined. Don't use this.
+ */
+ DeployPhaseTypes[DeployPhaseTypes["Undefined"] = 0] = "Undefined";
+ /**
+ * Phase type which contains tasks executed on agent.
+ */
+ DeployPhaseTypes[DeployPhaseTypes["AgentBasedDeployment"] = 1] = "AgentBasedDeployment";
+ /**
+ * Phase type which contains tasks executed by server.
+ */
+ DeployPhaseTypes[DeployPhaseTypes["RunOnServer"] = 2] = "RunOnServer";
+ /**
+ * Phase type which contains tasks executed on deployment group machines.
+ */
+ DeployPhaseTypes[DeployPhaseTypes["MachineGroupBasedDeployment"] = 4] = "MachineGroupBasedDeployment";
+ /**
+ * Phase type which contains tasks which acts as Gates for the deployment to go forward.
+ */
+ DeployPhaseTypes[DeployPhaseTypes["DeploymentGates"] = 8] = "DeploymentGates";
+})(DeployPhaseTypes = exports.DeployPhaseTypes || (exports.DeployPhaseTypes = {}));
+var EnvironmentStatus;
+(function (EnvironmentStatus) {
+ /**
+ * Environment status not set.
+ */
+ EnvironmentStatus[EnvironmentStatus["Undefined"] = 0] = "Undefined";
+ /**
+ * Environment is in not started state.
+ */
+ EnvironmentStatus[EnvironmentStatus["NotStarted"] = 1] = "NotStarted";
+ /**
+ * Environment is in progress state.
+ */
+ EnvironmentStatus[EnvironmentStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * Environment is in succeeded state.
+ */
+ EnvironmentStatus[EnvironmentStatus["Succeeded"] = 4] = "Succeeded";
+ /**
+ * Environment is in canceled state.
+ */
+ EnvironmentStatus[EnvironmentStatus["Canceled"] = 8] = "Canceled";
+ /**
+ * Environment is in rejected state.
+ */
+ EnvironmentStatus[EnvironmentStatus["Rejected"] = 16] = "Rejected";
+ /**
+ * Environment is in queued state.
+ */
+ EnvironmentStatus[EnvironmentStatus["Queued"] = 32] = "Queued";
+ /**
+ * Environment is in scheduled state.
+ */
+ EnvironmentStatus[EnvironmentStatus["Scheduled"] = 64] = "Scheduled";
+ /**
+ * Environment is in partially succeeded state.
+ */
+ EnvironmentStatus[EnvironmentStatus["PartiallySucceeded"] = 128] = "PartiallySucceeded";
+})(EnvironmentStatus = exports.EnvironmentStatus || (exports.EnvironmentStatus = {}));
+var EnvironmentTriggerType;
+(function (EnvironmentTriggerType) {
+ /**
+ * Environment trigger type undefined.
+ */
+ EnvironmentTriggerType[EnvironmentTriggerType["Undefined"] = 0] = "Undefined";
+ /**
+ * Environment trigger type is deployment group redeploy.
+ */
+ EnvironmentTriggerType[EnvironmentTriggerType["DeploymentGroupRedeploy"] = 1] = "DeploymentGroupRedeploy";
+ /**
+ * Environment trigger type is Rollback.
+ */
+ EnvironmentTriggerType[EnvironmentTriggerType["RollbackRedeploy"] = 2] = "RollbackRedeploy";
+})(EnvironmentTriggerType = exports.EnvironmentTriggerType || (exports.EnvironmentTriggerType = {}));
+var FolderPathQueryOrder;
+(function (FolderPathQueryOrder) {
+ /**
+ * No order.
+ */
+ FolderPathQueryOrder[FolderPathQueryOrder["None"] = 0] = "None";
+ /**
+ * Order by folder name and path ascending.
+ */
+ FolderPathQueryOrder[FolderPathQueryOrder["Ascending"] = 1] = "Ascending";
+ /**
+ * Order by folder name and path descending.
+ */
+ FolderPathQueryOrder[FolderPathQueryOrder["Descending"] = 2] = "Descending";
+})(FolderPathQueryOrder = exports.FolderPathQueryOrder || (exports.FolderPathQueryOrder = {}));
+var GateStatus;
+(function (GateStatus) {
+ /**
+ * The gate does not have the status set.
+ */
+ GateStatus[GateStatus["None"] = 0] = "None";
+ /**
+ * The gate is in pending state.
+ */
+ GateStatus[GateStatus["Pending"] = 1] = "Pending";
+ /**
+ * The gate is currently in progress.
+ */
+ GateStatus[GateStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * The gate completed successfully.
+ */
+ GateStatus[GateStatus["Succeeded"] = 4] = "Succeeded";
+ /**
+ * The gate execution failed.
+ */
+ GateStatus[GateStatus["Failed"] = 8] = "Failed";
+ /**
+ * The gate execution cancelled.
+ */
+ GateStatus[GateStatus["Canceled"] = 16] = "Canceled";
+})(GateStatus = exports.GateStatus || (exports.GateStatus = {}));
+var IssueSource;
+(function (IssueSource) {
+ IssueSource[IssueSource["None"] = 0] = "None";
+ IssueSource[IssueSource["User"] = 1] = "User";
+ IssueSource[IssueSource["System"] = 2] = "System";
+})(IssueSource = exports.IssueSource || (exports.IssueSource = {}));
+var MailSectionType;
+(function (MailSectionType) {
+ MailSectionType[MailSectionType["Details"] = 0] = "Details";
+ MailSectionType[MailSectionType["Environments"] = 1] = "Environments";
+ MailSectionType[MailSectionType["Issues"] = 2] = "Issues";
+ MailSectionType[MailSectionType["TestResults"] = 3] = "TestResults";
+ MailSectionType[MailSectionType["WorkItems"] = 4] = "WorkItems";
+ MailSectionType[MailSectionType["ReleaseInfo"] = 5] = "ReleaseInfo";
+})(MailSectionType = exports.MailSectionType || (exports.MailSectionType = {}));
+/**
+ * Describes manual intervention status
+ */
+var ManualInterventionStatus;
+(function (ManualInterventionStatus) {
+ /**
+ * The manual intervention does not have the status set.
+ */
+ ManualInterventionStatus[ManualInterventionStatus["Unknown"] = 0] = "Unknown";
+ /**
+ * The manual intervention is pending.
+ */
+ ManualInterventionStatus[ManualInterventionStatus["Pending"] = 1] = "Pending";
+ /**
+ * The manual intervention is rejected.
+ */
+ ManualInterventionStatus[ManualInterventionStatus["Rejected"] = 2] = "Rejected";
+ /**
+ * The manual intervention is approved.
+ */
+ ManualInterventionStatus[ManualInterventionStatus["Approved"] = 4] = "Approved";
+ /**
+ * The manual intervention is canceled.
+ */
+ ManualInterventionStatus[ManualInterventionStatus["Canceled"] = 8] = "Canceled";
+})(ManualInterventionStatus = exports.ManualInterventionStatus || (exports.ManualInterventionStatus = {}));
+var ParallelExecutionTypes;
+(function (ParallelExecutionTypes) {
+ ParallelExecutionTypes[ParallelExecutionTypes["None"] = 0] = "None";
+ ParallelExecutionTypes[ParallelExecutionTypes["MultiConfiguration"] = 1] = "MultiConfiguration";
+ ParallelExecutionTypes[ParallelExecutionTypes["MultiMachine"] = 2] = "MultiMachine";
+})(ParallelExecutionTypes = exports.ParallelExecutionTypes || (exports.ParallelExecutionTypes = {}));
+var PipelineProcessTypes;
+(function (PipelineProcessTypes) {
+ PipelineProcessTypes[PipelineProcessTypes["Designer"] = 1] = "Designer";
+ PipelineProcessTypes[PipelineProcessTypes["Yaml"] = 2] = "Yaml";
+})(PipelineProcessTypes = exports.PipelineProcessTypes || (exports.PipelineProcessTypes = {}));
+var PropertySelectorType;
+(function (PropertySelectorType) {
+ /**
+ * Include in property selector.
+ */
+ PropertySelectorType[PropertySelectorType["Inclusion"] = 0] = "Inclusion";
+ /**
+ * Exclude in property selector.
+ */
+ PropertySelectorType[PropertySelectorType["Exclusion"] = 1] = "Exclusion";
+})(PropertySelectorType = exports.PropertySelectorType || (exports.PropertySelectorType = {}));
+var PullRequestSystemType;
+(function (PullRequestSystemType) {
+ PullRequestSystemType[PullRequestSystemType["None"] = 0] = "None";
+ PullRequestSystemType[PullRequestSystemType["TfsGit"] = 1] = "TfsGit";
+ PullRequestSystemType[PullRequestSystemType["GitHub"] = 2] = "GitHub";
+})(PullRequestSystemType = exports.PullRequestSystemType || (exports.PullRequestSystemType = {}));
+var ReleaseDefinitionExpands;
+(function (ReleaseDefinitionExpands) {
+ /**
+ * Returns top level properties of object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["None"] = 0] = "None";
+ /**
+ * Include environments in return object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["Environments"] = 2] = "Environments";
+ /**
+ * Include artifacts in return object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["Artifacts"] = 4] = "Artifacts";
+ /**
+ * Include triggers in return object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["Triggers"] = 8] = "Triggers";
+ /**
+ * Include variables in return object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["Variables"] = 16] = "Variables";
+ /**
+ * Include tags in return object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["Tags"] = 32] = "Tags";
+ /**
+ * Include last release in return object.
+ */
+ ReleaseDefinitionExpands[ReleaseDefinitionExpands["LastRelease"] = 64] = "LastRelease";
+})(ReleaseDefinitionExpands = exports.ReleaseDefinitionExpands || (exports.ReleaseDefinitionExpands = {}));
+var ReleaseDefinitionQueryOrder;
+(function (ReleaseDefinitionQueryOrder) {
+ /**
+ * Return results based on release definition Id ascending order.
+ */
+ ReleaseDefinitionQueryOrder[ReleaseDefinitionQueryOrder["IdAscending"] = 0] = "IdAscending";
+ /**
+ * Return results based on release definition Id descending order.
+ */
+ ReleaseDefinitionQueryOrder[ReleaseDefinitionQueryOrder["IdDescending"] = 1] = "IdDescending";
+ /**
+ * Return results based on release definition name ascending order.
+ */
+ ReleaseDefinitionQueryOrder[ReleaseDefinitionQueryOrder["NameAscending"] = 2] = "NameAscending";
+ /**
+ * Return results based on release definition name descending order.
+ */
+ ReleaseDefinitionQueryOrder[ReleaseDefinitionQueryOrder["NameDescending"] = 3] = "NameDescending";
+})(ReleaseDefinitionQueryOrder = exports.ReleaseDefinitionQueryOrder || (exports.ReleaseDefinitionQueryOrder = {}));
+var ReleaseDefinitionSource;
+(function (ReleaseDefinitionSource) {
+ /**
+ * Indicates ReleaseDefinition source not defined.
+ */
+ ReleaseDefinitionSource[ReleaseDefinitionSource["Undefined"] = 0] = "Undefined";
+ /**
+ * Indicates ReleaseDefinition created using REST API.
+ */
+ ReleaseDefinitionSource[ReleaseDefinitionSource["RestApi"] = 1] = "RestApi";
+ /**
+ * Indicates ReleaseDefinition created using UI.
+ */
+ ReleaseDefinitionSource[ReleaseDefinitionSource["UserInterface"] = 2] = "UserInterface";
+ /**
+ * Indicates ReleaseDefinition created from Ibiza.
+ */
+ ReleaseDefinitionSource[ReleaseDefinitionSource["Ibiza"] = 4] = "Ibiza";
+ /**
+ * Indicates ReleaseDefinition created from PortalExtension API.
+ */
+ ReleaseDefinitionSource[ReleaseDefinitionSource["PortalExtensionApi"] = 8] = "PortalExtensionApi";
+})(ReleaseDefinitionSource = exports.ReleaseDefinitionSource || (exports.ReleaseDefinitionSource = {}));
+var ReleaseEnvironmentExpands;
+(function (ReleaseEnvironmentExpands) {
+ /**
+ * Return top level properties of object.
+ */
+ ReleaseEnvironmentExpands[ReleaseEnvironmentExpands["None"] = 0] = "None";
+ /**
+ * Expand environment with tasks.
+ */
+ ReleaseEnvironmentExpands[ReleaseEnvironmentExpands["Tasks"] = 1] = "Tasks";
+})(ReleaseEnvironmentExpands = exports.ReleaseEnvironmentExpands || (exports.ReleaseEnvironmentExpands = {}));
+var ReleaseExpands;
+(function (ReleaseExpands) {
+ ReleaseExpands[ReleaseExpands["None"] = 0] = "None";
+ ReleaseExpands[ReleaseExpands["Environments"] = 2] = "Environments";
+ ReleaseExpands[ReleaseExpands["Artifacts"] = 4] = "Artifacts";
+ ReleaseExpands[ReleaseExpands["Approvals"] = 8] = "Approvals";
+ ReleaseExpands[ReleaseExpands["ManualInterventions"] = 16] = "ManualInterventions";
+ ReleaseExpands[ReleaseExpands["Variables"] = 32] = "Variables";
+ ReleaseExpands[ReleaseExpands["Tags"] = 64] = "Tags";
+})(ReleaseExpands = exports.ReleaseExpands || (exports.ReleaseExpands = {}));
+var ReleaseQueryOrder;
+(function (ReleaseQueryOrder) {
+ /**
+ * Return results in descending order.
+ */
+ ReleaseQueryOrder[ReleaseQueryOrder["Descending"] = 0] = "Descending";
+ /**
+ * Return results in ascending order.
+ */
+ ReleaseQueryOrder[ReleaseQueryOrder["Ascending"] = 1] = "Ascending";
+})(ReleaseQueryOrder = exports.ReleaseQueryOrder || (exports.ReleaseQueryOrder = {}));
+var ReleaseReason;
+(function (ReleaseReason) {
+ /**
+ * Indicates the release triggered reason not set.
+ */
+ ReleaseReason[ReleaseReason["None"] = 0] = "None";
+ /**
+ * Indicates the release triggered manually.
+ */
+ ReleaseReason[ReleaseReason["Manual"] = 1] = "Manual";
+ /**
+ * Indicates the release triggered by continuous integration.
+ */
+ ReleaseReason[ReleaseReason["ContinuousIntegration"] = 2] = "ContinuousIntegration";
+ /**
+ * Indicates the release triggered by schedule.
+ */
+ ReleaseReason[ReleaseReason["Schedule"] = 3] = "Schedule";
+ /**
+ * Indicates the release triggered by PullRequest.
+ */
+ ReleaseReason[ReleaseReason["PullRequest"] = 4] = "PullRequest";
+})(ReleaseReason = exports.ReleaseReason || (exports.ReleaseReason = {}));
+var ReleaseStatus;
+(function (ReleaseStatus) {
+ /**
+ * Release status not set.
+ */
+ ReleaseStatus[ReleaseStatus["Undefined"] = 0] = "Undefined";
+ /**
+ * Release is in draft state.
+ */
+ ReleaseStatus[ReleaseStatus["Draft"] = 1] = "Draft";
+ /**
+ * Release status is in active.
+ */
+ ReleaseStatus[ReleaseStatus["Active"] = 2] = "Active";
+ /**
+ * Release status is in abandoned.
+ */
+ ReleaseStatus[ReleaseStatus["Abandoned"] = 4] = "Abandoned";
+})(ReleaseStatus = exports.ReleaseStatus || (exports.ReleaseStatus = {}));
+var ReleaseTriggerType;
+(function (ReleaseTriggerType) {
+ /**
+ * Release trigger type not set.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["Undefined"] = 0] = "Undefined";
+ /**
+ * Artifact based release trigger.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["ArtifactSource"] = 1] = "ArtifactSource";
+ /**
+ * Schedule based release trigger.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["Schedule"] = 2] = "Schedule";
+ /**
+ * Source repository based release trigger.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["SourceRepo"] = 3] = "SourceRepo";
+ /**
+ * Container image based release trigger.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["ContainerImage"] = 4] = "ContainerImage";
+ /**
+ * Package based release trigger.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["Package"] = 5] = "Package";
+ /**
+ * Pull request based release trigger.
+ */
+ ReleaseTriggerType[ReleaseTriggerType["PullRequest"] = 6] = "PullRequest";
+})(ReleaseTriggerType = exports.ReleaseTriggerType || (exports.ReleaseTriggerType = {}));
+var ScheduleDays;
+(function (ScheduleDays) {
+ /**
+ * Scheduled day not set.
+ */
+ ScheduleDays[ScheduleDays["None"] = 0] = "None";
+ /**
+ * Scheduled on Monday.
+ */
+ ScheduleDays[ScheduleDays["Monday"] = 1] = "Monday";
+ /**
+ * Scheduled on Tuesday.
+ */
+ ScheduleDays[ScheduleDays["Tuesday"] = 2] = "Tuesday";
+ /**
+ * Scheduled on Wednesday.
+ */
+ ScheduleDays[ScheduleDays["Wednesday"] = 4] = "Wednesday";
+ /**
+ * Scheduled on Thursday.
+ */
+ ScheduleDays[ScheduleDays["Thursday"] = 8] = "Thursday";
+ /**
+ * Scheduled on Friday.
+ */
+ ScheduleDays[ScheduleDays["Friday"] = 16] = "Friday";
+ /**
+ * Scheduled on Saturday.
+ */
+ ScheduleDays[ScheduleDays["Saturday"] = 32] = "Saturday";
+ /**
+ * Scheduled on Sunday.
+ */
+ ScheduleDays[ScheduleDays["Sunday"] = 64] = "Sunday";
+ /**
+ * Scheduled on all the days in week.
+ */
+ ScheduleDays[ScheduleDays["All"] = 127] = "All";
+})(ScheduleDays = exports.ScheduleDays || (exports.ScheduleDays = {}));
+var SenderType;
+(function (SenderType) {
+ SenderType[SenderType["ServiceAccount"] = 1] = "ServiceAccount";
+ SenderType[SenderType["RequestingUser"] = 2] = "RequestingUser";
+})(SenderType = exports.SenderType || (exports.SenderType = {}));
+var SingleReleaseExpands;
+(function (SingleReleaseExpands) {
+ /**
+ * Return top level properties of object.
+ */
+ SingleReleaseExpands[SingleReleaseExpands["None"] = 0] = "None";
+ /**
+ * Expand release with tasks.
+ */
+ SingleReleaseExpands[SingleReleaseExpands["Tasks"] = 1] = "Tasks";
+})(SingleReleaseExpands = exports.SingleReleaseExpands || (exports.SingleReleaseExpands = {}));
+var TaskStatus;
+(function (TaskStatus) {
+ /**
+ * The task does not have the status set.
+ */
+ TaskStatus[TaskStatus["Unknown"] = 0] = "Unknown";
+ /**
+ * The task is in pending status.
+ */
+ TaskStatus[TaskStatus["Pending"] = 1] = "Pending";
+ /**
+ * The task is currently in progress.
+ */
+ TaskStatus[TaskStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * The task completed successfully.
+ */
+ TaskStatus[TaskStatus["Success"] = 3] = "Success";
+ /**
+ * The task execution failed.
+ */
+ TaskStatus[TaskStatus["Failure"] = 4] = "Failure";
+ /**
+ * The task execution canceled.
+ */
+ TaskStatus[TaskStatus["Canceled"] = 5] = "Canceled";
+ /**
+ * The task execution skipped.
+ */
+ TaskStatus[TaskStatus["Skipped"] = 6] = "Skipped";
+ /**
+ * The task completed successfully.
+ */
+ TaskStatus[TaskStatus["Succeeded"] = 7] = "Succeeded";
+ /**
+ * The task execution failed.
+ */
+ TaskStatus[TaskStatus["Failed"] = 8] = "Failed";
+ /**
+ * The task execution partially succeeded.
+ */
+ TaskStatus[TaskStatus["PartiallySucceeded"] = 9] = "PartiallySucceeded";
+})(TaskStatus = exports.TaskStatus || (exports.TaskStatus = {}));
+var VariableGroupActionFilter;
+(function (VariableGroupActionFilter) {
+ VariableGroupActionFilter[VariableGroupActionFilter["None"] = 0] = "None";
+ VariableGroupActionFilter[VariableGroupActionFilter["Manage"] = 2] = "Manage";
+ VariableGroupActionFilter[VariableGroupActionFilter["Use"] = 16] = "Use";
+})(VariableGroupActionFilter = exports.VariableGroupActionFilter || (exports.VariableGroupActionFilter = {}));
+var YamlFileSourceTypes;
+(function (YamlFileSourceTypes) {
+ YamlFileSourceTypes[YamlFileSourceTypes["None"] = 0] = "None";
+ YamlFileSourceTypes[YamlFileSourceTypes["TFSGit"] = 1] = "TFSGit";
+})(YamlFileSourceTypes = exports.YamlFileSourceTypes || (exports.YamlFileSourceTypes = {}));
+exports.TypeInfo = {
+ AgentArtifactDefinition: {},
+ AgentArtifactType: {
+ enumValues: {
+ "xamlBuild": 0,
+ "build": 1,
+ "jenkins": 2,
+ "fileShare": 3,
+ "nuget": 4,
+ "tfsOnPrem": 5,
+ "gitHub": 6,
+ "tfGit": 7,
+ "externalTfsBuild": 8,
+ "custom": 9,
+ "tfvc": 10
+ }
+ },
+ AgentBasedDeployPhase: {},
+ AgentDeploymentInput: {},
+ ApprovalExecutionOrder: {
+ enumValues: {
+ "beforeGates": 1,
+ "afterSuccessfulGates": 2,
+ "afterGatesAlways": 4
+ }
+ },
+ ApprovalFilters: {
+ enumValues: {
+ "none": 0,
+ "manualApprovals": 1,
+ "automatedApprovals": 2,
+ "approvalSnapshots": 4,
+ "all": 7
+ }
+ },
+ ApprovalOptions: {},
+ ApprovalStatus: {
+ enumValues: {
+ "undefined": 0,
+ "pending": 1,
+ "approved": 2,
+ "rejected": 4,
+ "reassigned": 6,
+ "canceled": 7,
+ "skipped": 8
+ }
+ },
+ ApprovalType: {
+ enumValues: {
+ "undefined": 0,
+ "preDeploy": 1,
+ "postDeploy": 2,
+ "all": 3
+ }
+ },
+ ArtifactContributionDefinition: {},
+ ArtifactMetadata: {},
+ ArtifactSourceTrigger: {},
+ ArtifactTypeDefinition: {},
+ ArtifactVersion: {},
+ ArtifactVersionQueryResult: {},
+ AuditAction: {
+ enumValues: {
+ "add": 1,
+ "update": 2,
+ "delete": 3,
+ "undelete": 4
+ }
+ },
+ AuthorizationHeaderFor: {
+ enumValues: {
+ "revalidateApproverIdentity": 0,
+ "onBehalfOf": 1
+ }
+ },
+ AutoTriggerIssue: {},
+ AzureKeyVaultVariableGroupProviderData: {},
+ AzureKeyVaultVariableValue: {},
+ BuildVersion: {},
+ Change: {},
+ CodeRepositoryReference: {},
+ Condition: {},
+ ConditionType: {
+ enumValues: {
+ "undefined": 0,
+ "event": 1,
+ "environmentState": 2,
+ "artifact": 4
+ }
+ },
+ ContainerImageTrigger: {},
+ ContinuousDeploymentTriggerIssue: {},
+ Deployment: {},
+ DeploymentApprovalCompletedEvent: {},
+ DeploymentApprovalPendingEvent: {},
+ DeploymentAttempt: {},
+ DeploymentAuthorizationInfo: {},
+ DeploymentAuthorizationOwner: {
+ enumValues: {
+ "automatic": 0,
+ "deploymentSubmitter": 1,
+ "firstPreDeploymentApprover": 2
+ }
+ },
+ DeploymentCompletedEvent: {},
+ DeploymentExpands: {
+ enumValues: {
+ "all": 0,
+ "deploymentOnly": 1,
+ "approvals": 2,
+ "artifacts": 4
+ }
+ },
+ DeploymentJob: {},
+ DeploymentManualInterventionPendingEvent: {},
+ DeploymentOperationStatus: {
+ enumValues: {
+ "undefined": 0,
+ "queued": 1,
+ "scheduled": 2,
+ "pending": 4,
+ "approved": 8,
+ "rejected": 16,
+ "deferred": 32,
+ "queuedForAgent": 64,
+ "phaseInProgress": 128,
+ "phaseSucceeded": 256,
+ "phasePartiallySucceeded": 512,
+ "phaseFailed": 1024,
+ "canceled": 2048,
+ "phaseCanceled": 4096,
+ "manualInterventionPending": 8192,
+ "queuedForPipeline": 16384,
+ "cancelling": 32768,
+ "evaluatingGates": 65536,
+ "gateFailed": 131072,
+ "all": 258047
+ }
+ },
+ DeploymentQueryParameters: {},
+ DeploymentReason: {
+ enumValues: {
+ "none": 0,
+ "manual": 1,
+ "automated": 2,
+ "scheduled": 4,
+ "redeployTrigger": 8
+ }
+ },
+ DeploymentsQueryType: {
+ enumValues: {
+ "regular": 1,
+ "failingSince": 2
+ }
+ },
+ DeploymentStartedEvent: {},
+ DeploymentStatus: {
+ enumValues: {
+ "undefined": 0,
+ "notDeployed": 1,
+ "inProgress": 2,
+ "succeeded": 4,
+ "partiallySucceeded": 8,
+ "failed": 16,
+ "all": 31
+ }
+ },
+ DeployPhase: {},
+ DeployPhaseStatus: {
+ enumValues: {
+ "undefined": 0,
+ "notStarted": 1,
+ "inProgress": 2,
+ "partiallySucceeded": 4,
+ "succeeded": 8,
+ "failed": 16,
+ "canceled": 32,
+ "skipped": 64,
+ "cancelling": 128
+ }
+ },
+ DeployPhaseTypes: {
+ enumValues: {
+ "undefined": 0,
+ "agentBasedDeployment": 1,
+ "runOnServer": 2,
+ "machineGroupBasedDeployment": 4,
+ "deploymentGates": 8
+ }
+ },
+ EnvironmentStatus: {
+ enumValues: {
+ "undefined": 0,
+ "notStarted": 1,
+ "inProgress": 2,
+ "succeeded": 4,
+ "canceled": 8,
+ "rejected": 16,
+ "queued": 32,
+ "scheduled": 64,
+ "partiallySucceeded": 128
+ }
+ },
+ EnvironmentTrigger: {},
+ EnvironmentTriggerType: {
+ enumValues: {
+ "undefined": 0,
+ "deploymentGroupRedeploy": 1,
+ "rollbackRedeploy": 2
+ }
+ },
+ ExecutionInput: {},
+ Folder: {},
+ FolderPathQueryOrder: {
+ enumValues: {
+ "none": 0,
+ "ascending": 1,
+ "descending": 2
+ }
+ },
+ GatesDeployPhase: {},
+ GateStatus: {
+ enumValues: {
+ "none": 0,
+ "pending": 1,
+ "inProgress": 2,
+ "succeeded": 4,
+ "failed": 8,
+ "canceled": 16
+ }
+ },
+ IgnoredGate: {},
+ IssueSource: {
+ enumValues: {
+ "none": 0,
+ "user": 1,
+ "system": 2
+ }
+ },
+ MachineGroupBasedDeployPhase: {},
+ MailMessage: {},
+ MailSectionType: {
+ enumValues: {
+ "details": 0,
+ "environments": 1,
+ "issues": 2,
+ "testResults": 3,
+ "workItems": 4,
+ "releaseInfo": 5
+ }
+ },
+ ManualIntervention: {},
+ ManualInterventionStatus: {
+ enumValues: {
+ "unknown": 0,
+ "pending": 1,
+ "rejected": 2,
+ "approved": 4,
+ "canceled": 8
+ }
+ },
+ ManualInterventionUpdateMetadata: {},
+ MultiConfigInput: {},
+ MultiMachineInput: {},
+ PackageTrigger: {},
+ ParallelExecutionInputBase: {},
+ ParallelExecutionTypes: {
+ enumValues: {
+ "none": 0,
+ "multiConfiguration": 1,
+ "multiMachine": 2
+ }
+ },
+ PipelineProcess: {},
+ PipelineProcessTypes: {
+ enumValues: {
+ "designer": 1,
+ "yaml": 2
+ }
+ },
+ PropertySelector: {},
+ PropertySelectorType: {
+ enumValues: {
+ "inclusion": 0,
+ "exclusion": 1
+ }
+ },
+ PullRequestConfiguration: {},
+ PullRequestSystemType: {
+ enumValues: {
+ "none": 0,
+ "tfsGit": 1,
+ "gitHub": 2
+ }
+ },
+ PullRequestTrigger: {},
+ Release: {},
+ ReleaseAbandonedEvent: {},
+ ReleaseApproval: {},
+ ReleaseApprovalHistory: {},
+ ReleaseApprovalPendingEvent: {},
+ ReleaseCondition: {},
+ ReleaseCreatedEvent: {},
+ ReleaseDefinition: {},
+ ReleaseDefinitionApprovals: {},
+ ReleaseDefinitionEnvironment: {},
+ ReleaseDefinitionEnvironmentTemplate: {},
+ ReleaseDefinitionExpands: {
+ enumValues: {
+ "none": 0,
+ "environments": 2,
+ "artifacts": 4,
+ "triggers": 8,
+ "variables": 16,
+ "tags": 32,
+ "lastRelease": 64
+ }
+ },
+ ReleaseDefinitionQueryOrder: {
+ enumValues: {
+ "idAscending": 0,
+ "idDescending": 1,
+ "nameAscending": 2,
+ "nameDescending": 3
+ }
+ },
+ ReleaseDefinitionRevision: {},
+ ReleaseDefinitionSource: {
+ enumValues: {
+ "undefined": 0,
+ "restApi": 1,
+ "userInterface": 2,
+ "ibiza": 4,
+ "portalExtensionApi": 8
+ }
+ },
+ ReleaseDefinitionSummary: {},
+ ReleaseDeployPhase: {},
+ ReleaseEnvironment: {},
+ ReleaseEnvironmentCompletedEvent: {},
+ ReleaseEnvironmentExpands: {
+ enumValues: {
+ "none": 0,
+ "tasks": 1
+ }
+ },
+ ReleaseEnvironmentStatusUpdatedEvent: {},
+ ReleaseEnvironmentUpdateMetadata: {},
+ ReleaseExpands: {
+ enumValues: {
+ "none": 0,
+ "environments": 2,
+ "artifacts": 4,
+ "approvals": 8,
+ "manualInterventions": 16,
+ "variables": 32,
+ "tags": 64
+ }
+ },
+ ReleaseGates: {},
+ ReleaseGatesPhase: {},
+ ReleaseNotCreatedEvent: {},
+ ReleaseQueryOrder: {
+ enumValues: {
+ "descending": 0,
+ "ascending": 1
+ }
+ },
+ ReleaseReason: {
+ enumValues: {
+ "none": 0,
+ "manual": 1,
+ "continuousIntegration": 2,
+ "schedule": 3,
+ "pullRequest": 4
+ }
+ },
+ ReleaseReference: {},
+ ReleaseRevision: {},
+ ReleaseSchedule: {},
+ ReleaseStartMetadata: {},
+ ReleaseStatus: {
+ enumValues: {
+ "undefined": 0,
+ "draft": 1,
+ "active": 2,
+ "abandoned": 4
+ }
+ },
+ ReleaseTask: {},
+ ReleaseTaskAttachment: {},
+ ReleaseTasksUpdatedEvent: {},
+ ReleaseTriggerBase: {},
+ ReleaseTriggerType: {
+ enumValues: {
+ "undefined": 0,
+ "artifactSource": 1,
+ "schedule": 2,
+ "sourceRepo": 3,
+ "containerImage": 4,
+ "package": 5,
+ "pullRequest": 6
+ }
+ },
+ ReleaseUpdatedEvent: {},
+ ReleaseUpdateMetadata: {},
+ RunOnServerDeployPhase: {},
+ ScheduleDays: {
+ enumValues: {
+ "none": 0,
+ "monday": 1,
+ "tuesday": 2,
+ "wednesday": 4,
+ "thursday": 8,
+ "friday": 16,
+ "saturday": 32,
+ "sunday": 64,
+ "all": 127
+ }
+ },
+ ScheduledReleaseTrigger: {},
+ SenderType: {
+ enumValues: {
+ "serviceAccount": 1,
+ "requestingUser": 2
+ }
+ },
+ ServerDeploymentInput: {},
+ SingleReleaseExpands: {
+ enumValues: {
+ "none": 0,
+ "tasks": 1
+ }
+ },
+ SourcePullRequestVersion: {},
+ SourceRepoTrigger: {},
+ SummaryMailSection: {},
+ TaskStatus: {
+ enumValues: {
+ "unknown": 0,
+ "pending": 1,
+ "inProgress": 2,
+ "success": 3,
+ "failure": 4,
+ "canceled": 5,
+ "skipped": 6,
+ "succeeded": 7,
+ "failed": 8,
+ "partiallySucceeded": 9
+ }
+ },
+ VariableGroup: {},
+ VariableGroupActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ YamlFileSource: {},
+ YamlFileSourceTypes: {
+ enumValues: {
+ "none": 0,
+ "tfsGit": 1
+ }
+ },
+ YamlPipelineProcess: {},
+};
+exports.TypeInfo.AgentArtifactDefinition.fields = {
+ artifactType: {
+ enumType: exports.TypeInfo.AgentArtifactType
+ }
+};
+exports.TypeInfo.AgentBasedDeployPhase.fields = {
+ deploymentInput: {
+ typeInfo: exports.TypeInfo.AgentDeploymentInput
+ },
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ }
+};
+exports.TypeInfo.AgentDeploymentInput.fields = {
+ parallelExecution: {
+ typeInfo: exports.TypeInfo.ExecutionInput
+ }
+};
+exports.TypeInfo.ApprovalOptions.fields = {
+ executionOrder: {
+ enumType: exports.TypeInfo.ApprovalExecutionOrder
+ }
+};
+exports.TypeInfo.ArtifactContributionDefinition.fields = {
+ inputDescriptors: {
+ isArray: true,
+ typeInfo: FormInputInterfaces.TypeInfo.InputDescriptor
+ }
+};
+exports.TypeInfo.ArtifactMetadata.fields = {
+ instanceReference: {
+ typeInfo: exports.TypeInfo.BuildVersion
+ }
+};
+exports.TypeInfo.ArtifactSourceTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.ArtifactTypeDefinition.fields = {
+ inputDescriptors: {
+ isArray: true,
+ typeInfo: FormInputInterfaces.TypeInfo.InputDescriptor
+ }
+};
+exports.TypeInfo.ArtifactVersion.fields = {
+ defaultVersion: {
+ typeInfo: exports.TypeInfo.BuildVersion
+ },
+ versions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BuildVersion
+ }
+};
+exports.TypeInfo.ArtifactVersionQueryResult.fields = {
+ artifactVersions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ArtifactVersion
+ }
+};
+exports.TypeInfo.AutoTriggerIssue.fields = {
+ issueSource: {
+ enumType: exports.TypeInfo.IssueSource
+ },
+ releaseTriggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.AzureKeyVaultVariableGroupProviderData.fields = {
+ lastRefreshedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AzureKeyVaultVariableValue.fields = {
+ expires: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildVersion.fields = {
+ sourcePullRequestVersion: {
+ typeInfo: exports.TypeInfo.SourcePullRequestVersion
+ }
+};
+exports.TypeInfo.Change.fields = {
+ timestamp: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.CodeRepositoryReference.fields = {
+ systemType: {
+ enumType: exports.TypeInfo.PullRequestSystemType
+ }
+};
+exports.TypeInfo.Condition.fields = {
+ conditionType: {
+ enumType: exports.TypeInfo.ConditionType
+ }
+};
+exports.TypeInfo.ContainerImageTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.ContinuousDeploymentTriggerIssue.fields = {
+ issueSource: {
+ enumType: exports.TypeInfo.IssueSource
+ },
+ releaseTriggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.Deployment.fields = {
+ completedOn: {
+ isDate: true,
+ },
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Condition
+ },
+ deploymentStatus: {
+ enumType: exports.TypeInfo.DeploymentStatus
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ operationStatus: {
+ enumType: exports.TypeInfo.DeploymentOperationStatus
+ },
+ postDeployApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ preDeployApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ queuedOn: {
+ isDate: true,
+ },
+ reason: {
+ enumType: exports.TypeInfo.DeploymentReason
+ },
+ release: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ },
+ scheduledDeploymentTime: {
+ isDate: true,
+ },
+ startedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.DeploymentApprovalCompletedEvent.fields = {
+ approval: {
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.DeploymentApprovalPendingEvent.fields = {
+ approval: {
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ approvalOptions: {
+ typeInfo: exports.TypeInfo.ApprovalOptions
+ },
+ completedApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ deployment: {
+ typeInfo: exports.TypeInfo.Deployment
+ },
+ pendingApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.DeploymentAttempt.fields = {
+ job: {
+ typeInfo: exports.TypeInfo.ReleaseTask
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ operationStatus: {
+ enumType: exports.TypeInfo.DeploymentOperationStatus
+ },
+ postDeploymentGates: {
+ typeInfo: exports.TypeInfo.ReleaseGates
+ },
+ preDeploymentGates: {
+ typeInfo: exports.TypeInfo.ReleaseGates
+ },
+ queuedOn: {
+ isDate: true,
+ },
+ reason: {
+ enumType: exports.TypeInfo.DeploymentReason
+ },
+ releaseDeployPhases: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseDeployPhase
+ },
+ status: {
+ enumType: exports.TypeInfo.DeploymentStatus
+ },
+ tasks: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseTask
+ }
+};
+exports.TypeInfo.DeploymentAuthorizationInfo.fields = {
+ authorizationHeaderFor: {
+ enumType: exports.TypeInfo.AuthorizationHeaderFor
+ }
+};
+exports.TypeInfo.DeploymentCompletedEvent.fields = {
+ deployment: {
+ typeInfo: exports.TypeInfo.Deployment
+ },
+ environment: {
+ typeInfo: exports.TypeInfo.ReleaseEnvironment
+ }
+};
+exports.TypeInfo.DeploymentJob.fields = {
+ job: {
+ typeInfo: exports.TypeInfo.ReleaseTask
+ },
+ tasks: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseTask
+ }
+};
+exports.TypeInfo.DeploymentManualInterventionPendingEvent.fields = {
+ deployment: {
+ typeInfo: exports.TypeInfo.Deployment
+ },
+ manualIntervention: {
+ typeInfo: exports.TypeInfo.ManualIntervention
+ },
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.DeploymentQueryParameters.fields = {
+ deploymentStatus: {
+ enumType: exports.TypeInfo.DeploymentStatus
+ },
+ expands: {
+ enumType: exports.TypeInfo.DeploymentExpands
+ },
+ maxModifiedTime: {
+ isDate: true,
+ },
+ minModifiedTime: {
+ isDate: true,
+ },
+ operationStatus: {
+ enumType: exports.TypeInfo.DeploymentOperationStatus
+ },
+ queryOrder: {
+ enumType: exports.TypeInfo.ReleaseQueryOrder
+ },
+ queryType: {
+ enumType: exports.TypeInfo.DeploymentsQueryType
+ }
+};
+exports.TypeInfo.DeploymentStartedEvent.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.ReleaseEnvironment
+ },
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.DeployPhase.fields = {
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ }
+};
+exports.TypeInfo.EnvironmentTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.EnvironmentTriggerType
+ }
+};
+exports.TypeInfo.ExecutionInput.fields = {
+ parallelExecutionType: {
+ enumType: exports.TypeInfo.ParallelExecutionTypes
+ }
+};
+exports.TypeInfo.Folder.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastChangedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.GatesDeployPhase.fields = {
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ }
+};
+exports.TypeInfo.IgnoredGate.fields = {
+ lastModifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.MachineGroupBasedDeployPhase.fields = {
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ }
+};
+exports.TypeInfo.MailMessage.fields = {
+ replyBy: {
+ isDate: true,
+ },
+ sections: {
+ isArray: true,
+ enumType: exports.TypeInfo.MailSectionType
+ },
+ senderType: {
+ enumType: exports.TypeInfo.SenderType
+ }
+};
+exports.TypeInfo.ManualIntervention.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.ManualInterventionStatus
+ }
+};
+exports.TypeInfo.ManualInterventionUpdateMetadata.fields = {
+ status: {
+ enumType: exports.TypeInfo.ManualInterventionStatus
+ }
+};
+exports.TypeInfo.MultiConfigInput.fields = {
+ parallelExecutionType: {
+ enumType: exports.TypeInfo.ParallelExecutionTypes
+ }
+};
+exports.TypeInfo.MultiMachineInput.fields = {
+ parallelExecutionType: {
+ enumType: exports.TypeInfo.ParallelExecutionTypes
+ }
+};
+exports.TypeInfo.PackageTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.ParallelExecutionInputBase.fields = {
+ parallelExecutionType: {
+ enumType: exports.TypeInfo.ParallelExecutionTypes
+ }
+};
+exports.TypeInfo.PipelineProcess.fields = {
+ type: {
+ enumType: exports.TypeInfo.PipelineProcessTypes
+ }
+};
+exports.TypeInfo.PropertySelector.fields = {
+ selectorType: {
+ enumType: exports.TypeInfo.PropertySelectorType
+ }
+};
+exports.TypeInfo.PullRequestConfiguration.fields = {
+ codeRepositoryReference: {
+ typeInfo: exports.TypeInfo.CodeRepositoryReference
+ }
+};
+exports.TypeInfo.PullRequestTrigger.fields = {
+ pullRequestConfiguration: {
+ typeInfo: exports.TypeInfo.PullRequestConfiguration
+ },
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.Release.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ environments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseEnvironment
+ },
+ modifiedOn: {
+ isDate: true,
+ },
+ reason: {
+ enumType: exports.TypeInfo.ReleaseReason
+ },
+ status: {
+ enumType: exports.TypeInfo.ReleaseStatus
+ },
+ variableGroups: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.VariableGroup
+ }
+};
+exports.TypeInfo.ReleaseAbandonedEvent.fields = {
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.ReleaseApproval.fields = {
+ approvalType: {
+ enumType: exports.TypeInfo.ApprovalType
+ },
+ createdOn: {
+ isDate: true,
+ },
+ history: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApprovalHistory
+ },
+ modifiedOn: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.ApprovalStatus
+ }
+};
+exports.TypeInfo.ReleaseApprovalHistory.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReleaseApprovalPendingEvent.fields = {
+ approval: {
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ approvalOptions: {
+ typeInfo: exports.TypeInfo.ApprovalOptions
+ },
+ completedApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ deployment: {
+ typeInfo: exports.TypeInfo.Deployment
+ },
+ environments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseEnvironment
+ },
+ pendingApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ }
+};
+exports.TypeInfo.ReleaseCondition.fields = {
+ conditionType: {
+ enumType: exports.TypeInfo.ConditionType
+ }
+};
+exports.TypeInfo.ReleaseCreatedEvent.fields = {
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.ReleaseDefinition.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ environments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseDefinitionEnvironment
+ },
+ lastRelease: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ },
+ modifiedOn: {
+ isDate: true,
+ },
+ pipelineProcess: {
+ typeInfo: exports.TypeInfo.PipelineProcess
+ },
+ source: {
+ enumType: exports.TypeInfo.ReleaseDefinitionSource
+ },
+ triggers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseTriggerBase
+ }
+};
+exports.TypeInfo.ReleaseDefinitionApprovals.fields = {
+ approvalOptions: {
+ typeInfo: exports.TypeInfo.ApprovalOptions
+ }
+};
+exports.TypeInfo.ReleaseDefinitionEnvironment.fields = {
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Condition
+ },
+ deployPhases: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeployPhase
+ },
+ environmentTriggers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.EnvironmentTrigger
+ },
+ postDeployApprovals: {
+ typeInfo: exports.TypeInfo.ReleaseDefinitionApprovals
+ },
+ preDeployApprovals: {
+ typeInfo: exports.TypeInfo.ReleaseDefinitionApprovals
+ },
+ schedules: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseSchedule
+ }
+};
+exports.TypeInfo.ReleaseDefinitionEnvironmentTemplate.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.ReleaseDefinitionEnvironment
+ }
+};
+exports.TypeInfo.ReleaseDefinitionRevision.fields = {
+ changedDate: {
+ isDate: true,
+ },
+ changeType: {
+ enumType: exports.TypeInfo.AuditAction
+ }
+};
+exports.TypeInfo.ReleaseDefinitionSummary.fields = {
+ releases: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.ReleaseDeployPhase.fields = {
+ deploymentJobs: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentJob
+ },
+ manualInterventions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ManualIntervention
+ },
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ },
+ startedOn: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.DeployPhaseStatus
+ }
+};
+exports.TypeInfo.ReleaseEnvironment.fields = {
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseCondition
+ },
+ createdOn: {
+ isDate: true,
+ },
+ deployPhasesSnapshot: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeployPhase
+ },
+ deploySteps: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentAttempt
+ },
+ modifiedOn: {
+ isDate: true,
+ },
+ nextScheduledUtcTime: {
+ isDate: true,
+ },
+ postApprovalsSnapshot: {
+ typeInfo: exports.TypeInfo.ReleaseDefinitionApprovals
+ },
+ postDeployApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ preApprovalsSnapshot: {
+ typeInfo: exports.TypeInfo.ReleaseDefinitionApprovals
+ },
+ preDeployApprovals: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseApproval
+ },
+ scheduledDeploymentTime: {
+ isDate: true,
+ },
+ schedules: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseSchedule
+ },
+ status: {
+ enumType: exports.TypeInfo.EnvironmentStatus
+ },
+ variableGroups: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.VariableGroup
+ }
+};
+exports.TypeInfo.ReleaseEnvironmentCompletedEvent.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.ReleaseEnvironment
+ },
+ reason: {
+ enumType: exports.TypeInfo.DeploymentReason
+ }
+};
+exports.TypeInfo.ReleaseEnvironmentStatusUpdatedEvent.fields = {
+ environmentStatus: {
+ enumType: exports.TypeInfo.EnvironmentStatus
+ },
+ latestDeploymentOperationStatus: {
+ enumType: exports.TypeInfo.DeploymentOperationStatus
+ },
+ latestDeploymentStatus: {
+ enumType: exports.TypeInfo.DeploymentStatus
+ }
+};
+exports.TypeInfo.ReleaseEnvironmentUpdateMetadata.fields = {
+ scheduledDeploymentTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.EnvironmentStatus
+ }
+};
+exports.TypeInfo.ReleaseGates.fields = {
+ deploymentJobs: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentJob
+ },
+ ignoredGates: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.IgnoredGate
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ stabilizationCompletedOn: {
+ isDate: true,
+ },
+ startedOn: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.GateStatus
+ },
+ succeedingSince: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReleaseGatesPhase.fields = {
+ deploymentJobs: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentJob
+ },
+ ignoredGates: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.IgnoredGate
+ },
+ manualInterventions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ManualIntervention
+ },
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ },
+ stabilizationCompletedOn: {
+ isDate: true,
+ },
+ startedOn: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.DeployPhaseStatus
+ },
+ succeedingSince: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReleaseNotCreatedEvent.fields = {
+ releaseReason: {
+ enumType: exports.TypeInfo.ReleaseReason
+ }
+};
+exports.TypeInfo.ReleaseReference.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ reason: {
+ enumType: exports.TypeInfo.ReleaseReason
+ }
+};
+exports.TypeInfo.ReleaseRevision.fields = {
+ changedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReleaseSchedule.fields = {
+ daysToRelease: {
+ enumType: exports.TypeInfo.ScheduleDays
+ }
+};
+exports.TypeInfo.ReleaseStartMetadata.fields = {
+ artifacts: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ArtifactMetadata
+ },
+ reason: {
+ enumType: exports.TypeInfo.ReleaseReason
+ }
+};
+exports.TypeInfo.ReleaseTask.fields = {
+ dateEnded: {
+ isDate: true,
+ },
+ dateStarted: {
+ isDate: true,
+ },
+ finishTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.TaskStatus
+ }
+};
+exports.TypeInfo.ReleaseTaskAttachment.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReleaseTasksUpdatedEvent.fields = {
+ job: {
+ typeInfo: exports.TypeInfo.ReleaseTask
+ },
+ tasks: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ReleaseTask
+ }
+};
+exports.TypeInfo.ReleaseTriggerBase.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.ReleaseUpdatedEvent.fields = {
+ release: {
+ typeInfo: exports.TypeInfo.Release
+ }
+};
+exports.TypeInfo.ReleaseUpdateMetadata.fields = {
+ status: {
+ enumType: exports.TypeInfo.ReleaseStatus
+ }
+};
+exports.TypeInfo.RunOnServerDeployPhase.fields = {
+ deploymentInput: {
+ typeInfo: exports.TypeInfo.ServerDeploymentInput
+ },
+ phaseType: {
+ enumType: exports.TypeInfo.DeployPhaseTypes
+ }
+};
+exports.TypeInfo.ScheduledReleaseTrigger.fields = {
+ schedule: {
+ typeInfo: exports.TypeInfo.ReleaseSchedule
+ },
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.ServerDeploymentInput.fields = {
+ parallelExecution: {
+ typeInfo: exports.TypeInfo.ExecutionInput
+ }
+};
+exports.TypeInfo.SourcePullRequestVersion.fields = {
+ pullRequestMergedAt: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.SourceRepoTrigger.fields = {
+ triggerType: {
+ enumType: exports.TypeInfo.ReleaseTriggerType
+ }
+};
+exports.TypeInfo.SummaryMailSection.fields = {
+ sectionType: {
+ enumType: exports.TypeInfo.MailSectionType
+ }
+};
+exports.TypeInfo.VariableGroup.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.YamlFileSource.fields = {
+ type: {
+ enumType: exports.TypeInfo.YamlFileSourceTypes
+ }
+};
+exports.TypeInfo.YamlPipelineProcess.fields = {
+ fileSource: {
+ typeInfo: exports.TypeInfo.YamlFileSource
+ },
+ type: {
+ enumType: exports.TypeInfo.PipelineProcessTypes
+ }
+};
+
+
+/***/ }),
+
+/***/ 6573:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var RoleAccess;
+(function (RoleAccess) {
+ /**
+ * Access has been explicitly set.
+ */
+ RoleAccess[RoleAccess["Assigned"] = 1] = "Assigned";
+ /**
+ * Access has been inherited from a higher scope.
+ */
+ RoleAccess[RoleAccess["Inherited"] = 2] = "Inherited";
+})(RoleAccess = exports.RoleAccess || (exports.RoleAccess = {}));
+exports.TypeInfo = {
+ RoleAccess: {
+ enumValues: {
+ "assigned": 1,
+ "inherited": 2
+ }
+ },
+ RoleAssignment: {},
+};
+exports.TypeInfo.RoleAssignment.fields = {
+ access: {
+ enumType: exports.TypeInfo.RoleAccess
+ },
+};
+
+
+/***/ }),
+
+/***/ 9565:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const FormInputInterfaces = __nccwpck_require__(3627);
+var AadLoginPromptOption;
+(function (AadLoginPromptOption) {
+ /**
+ * Do not provide a prompt option
+ */
+ AadLoginPromptOption[AadLoginPromptOption["NoOption"] = 0] = "NoOption";
+ /**
+ * Force the user to login again.
+ */
+ AadLoginPromptOption[AadLoginPromptOption["Login"] = 1] = "Login";
+ /**
+ * Force the user to select which account they are logging in with instead of automatically picking the user up from the session state. NOTE: This does not work for switching between the variants of a dual-homed user.
+ */
+ AadLoginPromptOption[AadLoginPromptOption["SelectAccount"] = 2] = "SelectAccount";
+ /**
+ * Force the user to login again. Ignore current authentication state and force the user to authenticate again. This option should be used instead of Login.
+ */
+ AadLoginPromptOption[AadLoginPromptOption["FreshLogin"] = 3] = "FreshLogin";
+ /**
+ * Force the user to login again with mfa. Ignore current authentication state and force the user to authenticate again. This option should be used instead of Login, if MFA is required.
+ */
+ AadLoginPromptOption[AadLoginPromptOption["FreshLoginWithMfa"] = 4] = "FreshLoginWithMfa";
+})(AadLoginPromptOption = exports.AadLoginPromptOption || (exports.AadLoginPromptOption = {}));
+var AuditAction;
+(function (AuditAction) {
+ AuditAction[AuditAction["Add"] = 1] = "Add";
+ AuditAction[AuditAction["Update"] = 2] = "Update";
+ AuditAction[AuditAction["Delete"] = 3] = "Delete";
+ AuditAction[AuditAction["Undelete"] = 4] = "Undelete";
+})(AuditAction = exports.AuditAction || (exports.AuditAction = {}));
+var DemandSourceType;
+(function (DemandSourceType) {
+ DemandSourceType[DemandSourceType["Task"] = 0] = "Task";
+ DemandSourceType[DemandSourceType["Feature"] = 1] = "Feature";
+})(DemandSourceType = exports.DemandSourceType || (exports.DemandSourceType = {}));
+/**
+ * This is useful in getting a list of deployment groups, filtered for which caller has permissions to take a particular action.
+ */
+var DeploymentGroupActionFilter;
+(function (DeploymentGroupActionFilter) {
+ /**
+ * All deployment groups.
+ */
+ DeploymentGroupActionFilter[DeploymentGroupActionFilter["None"] = 0] = "None";
+ /**
+ * Only deployment groups for which caller has **manage** permission.
+ */
+ DeploymentGroupActionFilter[DeploymentGroupActionFilter["Manage"] = 2] = "Manage";
+ /**
+ * Only deployment groups for which caller has **use** permission.
+ */
+ DeploymentGroupActionFilter[DeploymentGroupActionFilter["Use"] = 16] = "Use";
+})(DeploymentGroupActionFilter = exports.DeploymentGroupActionFilter || (exports.DeploymentGroupActionFilter = {}));
+/**
+ * Properties to be included or expanded in deployment group objects. This is useful when getting a single or list of deployment grouops.
+ */
+var DeploymentGroupExpands;
+(function (DeploymentGroupExpands) {
+ /**
+ * No additional properties.
+ */
+ DeploymentGroupExpands[DeploymentGroupExpands["None"] = 0] = "None";
+ /**
+ * Deprecated: Include all the deployment targets.
+ */
+ DeploymentGroupExpands[DeploymentGroupExpands["Machines"] = 2] = "Machines";
+ /**
+ * Include unique list of tags across all deployment targets.
+ */
+ DeploymentGroupExpands[DeploymentGroupExpands["Tags"] = 4] = "Tags";
+})(DeploymentGroupExpands = exports.DeploymentGroupExpands || (exports.DeploymentGroupExpands = {}));
+var DeploymentMachineExpands;
+(function (DeploymentMachineExpands) {
+ DeploymentMachineExpands[DeploymentMachineExpands["None"] = 0] = "None";
+ DeploymentMachineExpands[DeploymentMachineExpands["Capabilities"] = 2] = "Capabilities";
+ DeploymentMachineExpands[DeploymentMachineExpands["AssignedRequest"] = 4] = "AssignedRequest";
+})(DeploymentMachineExpands = exports.DeploymentMachineExpands || (exports.DeploymentMachineExpands = {}));
+/**
+ * Properties to be included or expanded in deployment pool summary objects. This is useful when getting a single or list of deployment pool summaries.
+ */
+var DeploymentPoolSummaryExpands;
+(function (DeploymentPoolSummaryExpands) {
+ /**
+ * No additional properties
+ */
+ DeploymentPoolSummaryExpands[DeploymentPoolSummaryExpands["None"] = 0] = "None";
+ /**
+ * Include deployment groups referring to the deployment pool.
+ */
+ DeploymentPoolSummaryExpands[DeploymentPoolSummaryExpands["DeploymentGroups"] = 2] = "DeploymentGroups";
+ /**
+ * Include Resource referring to the deployment pool.
+ */
+ DeploymentPoolSummaryExpands[DeploymentPoolSummaryExpands["Resource"] = 4] = "Resource";
+})(DeploymentPoolSummaryExpands = exports.DeploymentPoolSummaryExpands || (exports.DeploymentPoolSummaryExpands = {}));
+/**
+ * Properties to be included or expanded in deployment target objects. This is useful when getting a single or list of deployment targets.
+ */
+var DeploymentTargetExpands;
+(function (DeploymentTargetExpands) {
+ /**
+ * No additional properties.
+ */
+ DeploymentTargetExpands[DeploymentTargetExpands["None"] = 0] = "None";
+ /**
+ * Include capabilities of the deployment agent.
+ */
+ DeploymentTargetExpands[DeploymentTargetExpands["Capabilities"] = 2] = "Capabilities";
+ /**
+ * Include the job request assigned to the deployment agent.
+ */
+ DeploymentTargetExpands[DeploymentTargetExpands["AssignedRequest"] = 4] = "AssignedRequest";
+ /**
+ * Include the last completed job request of the deployment agent.
+ */
+ DeploymentTargetExpands[DeploymentTargetExpands["LastCompletedRequest"] = 8] = "LastCompletedRequest";
+})(DeploymentTargetExpands = exports.DeploymentTargetExpands || (exports.DeploymentTargetExpands = {}));
+var ElasticAgentState;
+(function (ElasticAgentState) {
+ ElasticAgentState[ElasticAgentState["None"] = 0] = "None";
+ ElasticAgentState[ElasticAgentState["Enabled"] = 1] = "Enabled";
+ ElasticAgentState[ElasticAgentState["Online"] = 2] = "Online";
+ ElasticAgentState[ElasticAgentState["Assigned"] = 4] = "Assigned";
+})(ElasticAgentState = exports.ElasticAgentState || (exports.ElasticAgentState = {}));
+var ElasticComputeState;
+(function (ElasticComputeState) {
+ ElasticComputeState[ElasticComputeState["None"] = 0] = "None";
+ ElasticComputeState[ElasticComputeState["Healthy"] = 1] = "Healthy";
+ ElasticComputeState[ElasticComputeState["Creating"] = 2] = "Creating";
+ ElasticComputeState[ElasticComputeState["Deleting"] = 3] = "Deleting";
+ ElasticComputeState[ElasticComputeState["Failed"] = 4] = "Failed";
+ ElasticComputeState[ElasticComputeState["Stopped"] = 5] = "Stopped";
+ ElasticComputeState[ElasticComputeState["Reimaging"] = 6] = "Reimaging";
+})(ElasticComputeState = exports.ElasticComputeState || (exports.ElasticComputeState = {}));
+var ElasticNodeState;
+(function (ElasticNodeState) {
+ ElasticNodeState[ElasticNodeState["None"] = 0] = "None";
+ ElasticNodeState[ElasticNodeState["New"] = 1] = "New";
+ ElasticNodeState[ElasticNodeState["CreatingCompute"] = 2] = "CreatingCompute";
+ ElasticNodeState[ElasticNodeState["StartingAgent"] = 3] = "StartingAgent";
+ ElasticNodeState[ElasticNodeState["Idle"] = 4] = "Idle";
+ ElasticNodeState[ElasticNodeState["Assigned"] = 5] = "Assigned";
+ ElasticNodeState[ElasticNodeState["Offline"] = 6] = "Offline";
+ ElasticNodeState[ElasticNodeState["PendingReimage"] = 7] = "PendingReimage";
+ ElasticNodeState[ElasticNodeState["PendingDelete"] = 8] = "PendingDelete";
+ ElasticNodeState[ElasticNodeState["Saved"] = 9] = "Saved";
+ ElasticNodeState[ElasticNodeState["DeletingCompute"] = 10] = "DeletingCompute";
+ ElasticNodeState[ElasticNodeState["Deleted"] = 11] = "Deleted";
+ ElasticNodeState[ElasticNodeState["Lost"] = 12] = "Lost";
+ ElasticNodeState[ElasticNodeState["ReimagingCompute"] = 13] = "ReimagingCompute";
+ ElasticNodeState[ElasticNodeState["RestartingAgent"] = 14] = "RestartingAgent";
+ ElasticNodeState[ElasticNodeState["FailedToStartPendingDelete"] = 15] = "FailedToStartPendingDelete";
+ ElasticNodeState[ElasticNodeState["FailedToRestartPendingDelete"] = 16] = "FailedToRestartPendingDelete";
+ ElasticNodeState[ElasticNodeState["FailedVMPendingDelete"] = 17] = "FailedVMPendingDelete";
+ ElasticNodeState[ElasticNodeState["AssignedPendingDelete"] = 18] = "AssignedPendingDelete";
+})(ElasticNodeState = exports.ElasticNodeState || (exports.ElasticNodeState = {}));
+var ElasticPoolState;
+(function (ElasticPoolState) {
+ /**
+ * Online and healthy
+ */
+ ElasticPoolState[ElasticPoolState["Online"] = 0] = "Online";
+ ElasticPoolState[ElasticPoolState["Offline"] = 1] = "Offline";
+ ElasticPoolState[ElasticPoolState["Unhealthy"] = 2] = "Unhealthy";
+ ElasticPoolState[ElasticPoolState["New"] = 3] = "New";
+})(ElasticPoolState = exports.ElasticPoolState || (exports.ElasticPoolState = {}));
+/**
+ * This is useful in getting a list of Environments, filtered for which caller has permissions to take a particular action.
+ */
+var EnvironmentActionFilter;
+(function (EnvironmentActionFilter) {
+ /**
+ * All environments for which user has **view** permission.
+ */
+ EnvironmentActionFilter[EnvironmentActionFilter["None"] = 0] = "None";
+ /**
+ * Only environments for which caller has **manage** permission.
+ */
+ EnvironmentActionFilter[EnvironmentActionFilter["Manage"] = 2] = "Manage";
+ /**
+ * Only environments for which caller has **use** permission.
+ */
+ EnvironmentActionFilter[EnvironmentActionFilter["Use"] = 16] = "Use";
+})(EnvironmentActionFilter = exports.EnvironmentActionFilter || (exports.EnvironmentActionFilter = {}));
+/**
+ * Properties to be included or expanded in environment objects. This is useful when getting a single environment.
+ */
+var EnvironmentExpands;
+(function (EnvironmentExpands) {
+ /**
+ * No additional properties
+ */
+ EnvironmentExpands[EnvironmentExpands["None"] = 0] = "None";
+ /**
+ * Include resource references referring to the environment.
+ */
+ EnvironmentExpands[EnvironmentExpands["ResourceReferences"] = 1] = "ResourceReferences";
+})(EnvironmentExpands = exports.EnvironmentExpands || (exports.EnvironmentExpands = {}));
+/**
+ * EnvironmentResourceType.
+ */
+var EnvironmentResourceType;
+(function (EnvironmentResourceType) {
+ EnvironmentResourceType[EnvironmentResourceType["Undefined"] = 0] = "Undefined";
+ /**
+ * Unknown resource type
+ */
+ EnvironmentResourceType[EnvironmentResourceType["Generic"] = 1] = "Generic";
+ /**
+ * Virtual machine resource type
+ */
+ EnvironmentResourceType[EnvironmentResourceType["VirtualMachine"] = 2] = "VirtualMachine";
+ /**
+ * Kubernetes resource type
+ */
+ EnvironmentResourceType[EnvironmentResourceType["Kubernetes"] = 4] = "Kubernetes";
+})(EnvironmentResourceType = exports.EnvironmentResourceType || (exports.EnvironmentResourceType = {}));
+var ExclusiveLockType;
+(function (ExclusiveLockType) {
+ ExclusiveLockType[ExclusiveLockType["RunLatest"] = 0] = "RunLatest";
+ ExclusiveLockType[ExclusiveLockType["Sequential"] = 1] = "Sequential";
+})(ExclusiveLockType = exports.ExclusiveLockType || (exports.ExclusiveLockType = {}));
+/**
+ * The type of issue based on severity.
+ */
+var IssueType;
+(function (IssueType) {
+ IssueType[IssueType["Error"] = 1] = "Error";
+ IssueType[IssueType["Warning"] = 2] = "Warning";
+})(IssueType = exports.IssueType || (exports.IssueType = {}));
+var LogLevel;
+(function (LogLevel) {
+ LogLevel[LogLevel["Error"] = 0] = "Error";
+ LogLevel[LogLevel["Warning"] = 1] = "Warning";
+ LogLevel[LogLevel["Info"] = 2] = "Info";
+})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
+var MachineGroupActionFilter;
+(function (MachineGroupActionFilter) {
+ MachineGroupActionFilter[MachineGroupActionFilter["None"] = 0] = "None";
+ MachineGroupActionFilter[MachineGroupActionFilter["Manage"] = 2] = "Manage";
+ MachineGroupActionFilter[MachineGroupActionFilter["Use"] = 16] = "Use";
+})(MachineGroupActionFilter = exports.MachineGroupActionFilter || (exports.MachineGroupActionFilter = {}));
+var MaskType;
+(function (MaskType) {
+ MaskType[MaskType["Variable"] = 1] = "Variable";
+ MaskType[MaskType["Regex"] = 2] = "Regex";
+})(MaskType = exports.MaskType || (exports.MaskType = {}));
+var OperatingSystemType;
+(function (OperatingSystemType) {
+ OperatingSystemType[OperatingSystemType["Windows"] = 0] = "Windows";
+ OperatingSystemType[OperatingSystemType["Linux"] = 1] = "Linux";
+})(OperatingSystemType = exports.OperatingSystemType || (exports.OperatingSystemType = {}));
+var OperationType;
+(function (OperationType) {
+ OperationType[OperationType["ConfigurationJob"] = 0] = "ConfigurationJob";
+ OperationType[OperationType["SizingJob"] = 1] = "SizingJob";
+ OperationType[OperationType["IncreaseCapacity"] = 2] = "IncreaseCapacity";
+ OperationType[OperationType["Reimage"] = 3] = "Reimage";
+ OperationType[OperationType["DeleteVMs"] = 4] = "DeleteVMs";
+})(OperationType = exports.OperationType || (exports.OperationType = {}));
+var PlanGroupStatus;
+(function (PlanGroupStatus) {
+ PlanGroupStatus[PlanGroupStatus["Running"] = 1] = "Running";
+ PlanGroupStatus[PlanGroupStatus["Queued"] = 2] = "Queued";
+ PlanGroupStatus[PlanGroupStatus["All"] = 3] = "All";
+})(PlanGroupStatus = exports.PlanGroupStatus || (exports.PlanGroupStatus = {}));
+var PlanGroupStatusFilter;
+(function (PlanGroupStatusFilter) {
+ PlanGroupStatusFilter[PlanGroupStatusFilter["Running"] = 1] = "Running";
+ PlanGroupStatusFilter[PlanGroupStatusFilter["Queued"] = 2] = "Queued";
+ PlanGroupStatusFilter[PlanGroupStatusFilter["All"] = 3] = "All";
+})(PlanGroupStatusFilter = exports.PlanGroupStatusFilter || (exports.PlanGroupStatusFilter = {}));
+var ResourceLockStatus;
+(function (ResourceLockStatus) {
+ ResourceLockStatus[ResourceLockStatus["Queued"] = 0] = "Queued";
+ ResourceLockStatus[ResourceLockStatus["InUse"] = 1] = "InUse";
+ ResourceLockStatus[ResourceLockStatus["Finished"] = 2] = "Finished";
+ ResourceLockStatus[ResourceLockStatus["TimedOut"] = 3] = "TimedOut";
+ ResourceLockStatus[ResourceLockStatus["Canceled"] = 4] = "Canceled";
+ ResourceLockStatus[ResourceLockStatus["Abandoned"] = 5] = "Abandoned";
+ ResourceLockStatus[ResourceLockStatus["WaitingOnChecks"] = 6] = "WaitingOnChecks";
+})(ResourceLockStatus = exports.ResourceLockStatus || (exports.ResourceLockStatus = {}));
+var SecureFileActionFilter;
+(function (SecureFileActionFilter) {
+ SecureFileActionFilter[SecureFileActionFilter["None"] = 0] = "None";
+ SecureFileActionFilter[SecureFileActionFilter["Manage"] = 2] = "Manage";
+ SecureFileActionFilter[SecureFileActionFilter["Use"] = 16] = "Use";
+})(SecureFileActionFilter = exports.SecureFileActionFilter || (exports.SecureFileActionFilter = {}));
+/**
+ * This is useful in getting a list of deployment targets, filtered by the result of their last job.
+ */
+var TaskAgentJobResultFilter;
+(function (TaskAgentJobResultFilter) {
+ /**
+ * Only those deployment targets on which last job failed (**Abandoned**, **Canceled**, **Failed**, **Skipped**).
+ */
+ TaskAgentJobResultFilter[TaskAgentJobResultFilter["Failed"] = 1] = "Failed";
+ /**
+ * Only those deployment targets on which last job Passed (**Succeeded**, **Succeeded with issues**).
+ */
+ TaskAgentJobResultFilter[TaskAgentJobResultFilter["Passed"] = 2] = "Passed";
+ /**
+ * Only those deployment targets that never executed a job.
+ */
+ TaskAgentJobResultFilter[TaskAgentJobResultFilter["NeverDeployed"] = 4] = "NeverDeployed";
+ /**
+ * All deployment targets.
+ */
+ TaskAgentJobResultFilter[TaskAgentJobResultFilter["All"] = 7] = "All";
+})(TaskAgentJobResultFilter = exports.TaskAgentJobResultFilter || (exports.TaskAgentJobResultFilter = {}));
+var TaskAgentJobStepType;
+(function (TaskAgentJobStepType) {
+ TaskAgentJobStepType[TaskAgentJobStepType["Task"] = 1] = "Task";
+ TaskAgentJobStepType[TaskAgentJobStepType["Action"] = 2] = "Action";
+})(TaskAgentJobStepType = exports.TaskAgentJobStepType || (exports.TaskAgentJobStepType = {}));
+/**
+ * Filters pools based on whether the calling user has permission to use or manage the pool.
+ */
+var TaskAgentPoolActionFilter;
+(function (TaskAgentPoolActionFilter) {
+ TaskAgentPoolActionFilter[TaskAgentPoolActionFilter["None"] = 0] = "None";
+ TaskAgentPoolActionFilter[TaskAgentPoolActionFilter["Manage"] = 2] = "Manage";
+ TaskAgentPoolActionFilter[TaskAgentPoolActionFilter["Use"] = 16] = "Use";
+})(TaskAgentPoolActionFilter = exports.TaskAgentPoolActionFilter || (exports.TaskAgentPoolActionFilter = {}));
+var TaskAgentPoolMaintenanceJobResult;
+(function (TaskAgentPoolMaintenanceJobResult) {
+ TaskAgentPoolMaintenanceJobResult[TaskAgentPoolMaintenanceJobResult["Succeeded"] = 1] = "Succeeded";
+ TaskAgentPoolMaintenanceJobResult[TaskAgentPoolMaintenanceJobResult["Failed"] = 2] = "Failed";
+ TaskAgentPoolMaintenanceJobResult[TaskAgentPoolMaintenanceJobResult["Canceled"] = 4] = "Canceled";
+})(TaskAgentPoolMaintenanceJobResult = exports.TaskAgentPoolMaintenanceJobResult || (exports.TaskAgentPoolMaintenanceJobResult = {}));
+var TaskAgentPoolMaintenanceJobStatus;
+(function (TaskAgentPoolMaintenanceJobStatus) {
+ TaskAgentPoolMaintenanceJobStatus[TaskAgentPoolMaintenanceJobStatus["InProgress"] = 1] = "InProgress";
+ TaskAgentPoolMaintenanceJobStatus[TaskAgentPoolMaintenanceJobStatus["Completed"] = 2] = "Completed";
+ TaskAgentPoolMaintenanceJobStatus[TaskAgentPoolMaintenanceJobStatus["Cancelling"] = 4] = "Cancelling";
+ TaskAgentPoolMaintenanceJobStatus[TaskAgentPoolMaintenanceJobStatus["Queued"] = 8] = "Queued";
+})(TaskAgentPoolMaintenanceJobStatus = exports.TaskAgentPoolMaintenanceJobStatus || (exports.TaskAgentPoolMaintenanceJobStatus = {}));
+var TaskAgentPoolMaintenanceScheduleDays;
+(function (TaskAgentPoolMaintenanceScheduleDays) {
+ /**
+ * Do not run.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["None"] = 0] = "None";
+ /**
+ * Run on Monday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Monday"] = 1] = "Monday";
+ /**
+ * Run on Tuesday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Tuesday"] = 2] = "Tuesday";
+ /**
+ * Run on Wednesday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Wednesday"] = 4] = "Wednesday";
+ /**
+ * Run on Thursday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Thursday"] = 8] = "Thursday";
+ /**
+ * Run on Friday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Friday"] = 16] = "Friday";
+ /**
+ * Run on Saturday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Saturday"] = 32] = "Saturday";
+ /**
+ * Run on Sunday.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["Sunday"] = 64] = "Sunday";
+ /**
+ * Run on all days of the week.
+ */
+ TaskAgentPoolMaintenanceScheduleDays[TaskAgentPoolMaintenanceScheduleDays["All"] = 127] = "All";
+})(TaskAgentPoolMaintenanceScheduleDays = exports.TaskAgentPoolMaintenanceScheduleDays || (exports.TaskAgentPoolMaintenanceScheduleDays = {}));
+/**
+ * Additional settings and descriptors for a TaskAgentPool
+ */
+var TaskAgentPoolOptions;
+(function (TaskAgentPoolOptions) {
+ TaskAgentPoolOptions[TaskAgentPoolOptions["None"] = 0] = "None";
+ /**
+ * TaskAgentPool backed by the Elastic pool service
+ */
+ TaskAgentPoolOptions[TaskAgentPoolOptions["ElasticPool"] = 1] = "ElasticPool";
+ /**
+ * Set to true if agents are re-imaged after each TaskAgentJobRequest
+ */
+ TaskAgentPoolOptions[TaskAgentPoolOptions["SingleUseAgents"] = 2] = "SingleUseAgents";
+ /**
+ * Set to true if agents are held for investigation after a TaskAgentJobRequest failure
+ */
+ TaskAgentPoolOptions[TaskAgentPoolOptions["PreserveAgentOnJobFailure"] = 4] = "PreserveAgentOnJobFailure";
+})(TaskAgentPoolOptions = exports.TaskAgentPoolOptions || (exports.TaskAgentPoolOptions = {}));
+/**
+ * The type of agent pool.
+ */
+var TaskAgentPoolType;
+(function (TaskAgentPoolType) {
+ /**
+ * A typical pool of task agents
+ */
+ TaskAgentPoolType[TaskAgentPoolType["Automation"] = 1] = "Automation";
+ /**
+ * A deployment pool
+ */
+ TaskAgentPoolType[TaskAgentPoolType["Deployment"] = 2] = "Deployment";
+})(TaskAgentPoolType = exports.TaskAgentPoolType || (exports.TaskAgentPoolType = {}));
+/**
+ * Filters queues based on whether the calling user has permission to use or manage the queue.
+ */
+var TaskAgentQueueActionFilter;
+(function (TaskAgentQueueActionFilter) {
+ TaskAgentQueueActionFilter[TaskAgentQueueActionFilter["None"] = 0] = "None";
+ TaskAgentQueueActionFilter[TaskAgentQueueActionFilter["Manage"] = 2] = "Manage";
+ TaskAgentQueueActionFilter[TaskAgentQueueActionFilter["Use"] = 16] = "Use";
+})(TaskAgentQueueActionFilter = exports.TaskAgentQueueActionFilter || (exports.TaskAgentQueueActionFilter = {}));
+var TaskAgentRequestUpdateOptions;
+(function (TaskAgentRequestUpdateOptions) {
+ TaskAgentRequestUpdateOptions[TaskAgentRequestUpdateOptions["None"] = 0] = "None";
+ TaskAgentRequestUpdateOptions[TaskAgentRequestUpdateOptions["BumpRequestToTop"] = 1] = "BumpRequestToTop";
+})(TaskAgentRequestUpdateOptions = exports.TaskAgentRequestUpdateOptions || (exports.TaskAgentRequestUpdateOptions = {}));
+var TaskAgentStatus;
+(function (TaskAgentStatus) {
+ TaskAgentStatus[TaskAgentStatus["Offline"] = 1] = "Offline";
+ TaskAgentStatus[TaskAgentStatus["Online"] = 2] = "Online";
+})(TaskAgentStatus = exports.TaskAgentStatus || (exports.TaskAgentStatus = {}));
+/**
+ * This is useful in getting a list of deployment targets, filtered by the deployment agent status.
+ */
+var TaskAgentStatusFilter;
+(function (TaskAgentStatusFilter) {
+ /**
+ * Only deployment targets that are offline.
+ */
+ TaskAgentStatusFilter[TaskAgentStatusFilter["Offline"] = 1] = "Offline";
+ /**
+ * Only deployment targets that are online.
+ */
+ TaskAgentStatusFilter[TaskAgentStatusFilter["Online"] = 2] = "Online";
+ /**
+ * All deployment targets.
+ */
+ TaskAgentStatusFilter[TaskAgentStatusFilter["All"] = 3] = "All";
+})(TaskAgentStatusFilter = exports.TaskAgentStatusFilter || (exports.TaskAgentStatusFilter = {}));
+var TaskAgentUpdateReasonType;
+(function (TaskAgentUpdateReasonType) {
+ TaskAgentUpdateReasonType[TaskAgentUpdateReasonType["Manual"] = 1] = "Manual";
+ TaskAgentUpdateReasonType[TaskAgentUpdateReasonType["MinAgentVersionRequired"] = 2] = "MinAgentVersionRequired";
+ TaskAgentUpdateReasonType[TaskAgentUpdateReasonType["Downgrade"] = 3] = "Downgrade";
+})(TaskAgentUpdateReasonType = exports.TaskAgentUpdateReasonType || (exports.TaskAgentUpdateReasonType = {}));
+var TaskCommandMode;
+(function (TaskCommandMode) {
+ TaskCommandMode[TaskCommandMode["Any"] = 0] = "Any";
+ TaskCommandMode[TaskCommandMode["Restricted"] = 1] = "Restricted";
+})(TaskCommandMode = exports.TaskCommandMode || (exports.TaskCommandMode = {}));
+var TaskDefinitionStatus;
+(function (TaskDefinitionStatus) {
+ TaskDefinitionStatus[TaskDefinitionStatus["Preinstalled"] = 1] = "Preinstalled";
+ TaskDefinitionStatus[TaskDefinitionStatus["ReceivedInstallOrUpdate"] = 2] = "ReceivedInstallOrUpdate";
+ TaskDefinitionStatus[TaskDefinitionStatus["Installed"] = 3] = "Installed";
+ TaskDefinitionStatus[TaskDefinitionStatus["ReceivedUninstall"] = 4] = "ReceivedUninstall";
+ TaskDefinitionStatus[TaskDefinitionStatus["Uninstalled"] = 5] = "Uninstalled";
+ TaskDefinitionStatus[TaskDefinitionStatus["RequestedUpdate"] = 6] = "RequestedUpdate";
+ TaskDefinitionStatus[TaskDefinitionStatus["Updated"] = 7] = "Updated";
+ TaskDefinitionStatus[TaskDefinitionStatus["AlreadyUpToDate"] = 8] = "AlreadyUpToDate";
+ TaskDefinitionStatus[TaskDefinitionStatus["InlineUpdateReceived"] = 9] = "InlineUpdateReceived";
+})(TaskDefinitionStatus = exports.TaskDefinitionStatus || (exports.TaskDefinitionStatus = {}));
+var TaskGroupExpands;
+(function (TaskGroupExpands) {
+ TaskGroupExpands[TaskGroupExpands["None"] = 0] = "None";
+ TaskGroupExpands[TaskGroupExpands["Tasks"] = 2] = "Tasks";
+})(TaskGroupExpands = exports.TaskGroupExpands || (exports.TaskGroupExpands = {}));
+/**
+ * Specifies the desired ordering of taskGroups.
+ */
+var TaskGroupQueryOrder;
+(function (TaskGroupQueryOrder) {
+ /**
+ * Order by createdon ascending.
+ */
+ TaskGroupQueryOrder[TaskGroupQueryOrder["CreatedOnAscending"] = 0] = "CreatedOnAscending";
+ /**
+ * Order by createdon descending.
+ */
+ TaskGroupQueryOrder[TaskGroupQueryOrder["CreatedOnDescending"] = 1] = "CreatedOnDescending";
+})(TaskGroupQueryOrder = exports.TaskGroupQueryOrder || (exports.TaskGroupQueryOrder = {}));
+var TaskOrchestrationItemType;
+(function (TaskOrchestrationItemType) {
+ TaskOrchestrationItemType[TaskOrchestrationItemType["Container"] = 0] = "Container";
+ TaskOrchestrationItemType[TaskOrchestrationItemType["Job"] = 1] = "Job";
+})(TaskOrchestrationItemType = exports.TaskOrchestrationItemType || (exports.TaskOrchestrationItemType = {}));
+var TaskOrchestrationPlanState;
+(function (TaskOrchestrationPlanState) {
+ TaskOrchestrationPlanState[TaskOrchestrationPlanState["InProgress"] = 1] = "InProgress";
+ TaskOrchestrationPlanState[TaskOrchestrationPlanState["Queued"] = 2] = "Queued";
+ TaskOrchestrationPlanState[TaskOrchestrationPlanState["Completed"] = 4] = "Completed";
+ TaskOrchestrationPlanState[TaskOrchestrationPlanState["Throttled"] = 8] = "Throttled";
+})(TaskOrchestrationPlanState = exports.TaskOrchestrationPlanState || (exports.TaskOrchestrationPlanState = {}));
+/**
+ * The result of an operation tracked by a timeline record.
+ */
+var TaskResult;
+(function (TaskResult) {
+ TaskResult[TaskResult["Succeeded"] = 0] = "Succeeded";
+ TaskResult[TaskResult["SucceededWithIssues"] = 1] = "SucceededWithIssues";
+ TaskResult[TaskResult["Failed"] = 2] = "Failed";
+ TaskResult[TaskResult["Canceled"] = 3] = "Canceled";
+ TaskResult[TaskResult["Skipped"] = 4] = "Skipped";
+ TaskResult[TaskResult["Abandoned"] = 5] = "Abandoned";
+})(TaskResult = exports.TaskResult || (exports.TaskResult = {}));
+/**
+ * The state of the timeline record.
+ */
+var TimelineRecordState;
+(function (TimelineRecordState) {
+ TimelineRecordState[TimelineRecordState["Pending"] = 0] = "Pending";
+ TimelineRecordState[TimelineRecordState["InProgress"] = 1] = "InProgress";
+ TimelineRecordState[TimelineRecordState["Completed"] = 2] = "Completed";
+})(TimelineRecordState = exports.TimelineRecordState || (exports.TimelineRecordState = {}));
+var VariableGroupActionFilter;
+(function (VariableGroupActionFilter) {
+ VariableGroupActionFilter[VariableGroupActionFilter["None"] = 0] = "None";
+ VariableGroupActionFilter[VariableGroupActionFilter["Manage"] = 2] = "Manage";
+ VariableGroupActionFilter[VariableGroupActionFilter["Use"] = 16] = "Use";
+})(VariableGroupActionFilter = exports.VariableGroupActionFilter || (exports.VariableGroupActionFilter = {}));
+/**
+ * Specifies the desired ordering of variableGroups.
+ */
+var VariableGroupQueryOrder;
+(function (VariableGroupQueryOrder) {
+ /**
+ * Order by id ascending.
+ */
+ VariableGroupQueryOrder[VariableGroupQueryOrder["IdAscending"] = 0] = "IdAscending";
+ /**
+ * Order by id descending.
+ */
+ VariableGroupQueryOrder[VariableGroupQueryOrder["IdDescending"] = 1] = "IdDescending";
+})(VariableGroupQueryOrder = exports.VariableGroupQueryOrder || (exports.VariableGroupQueryOrder = {}));
+exports.TypeInfo = {
+ AadLoginPromptOption: {
+ enumValues: {
+ "noOption": 0,
+ "login": 1,
+ "selectAccount": 2,
+ "freshLogin": 3,
+ "freshLoginWithMfa": 4
+ }
+ },
+ AgentChangeEvent: {},
+ AgentJobRequestMessage: {},
+ AgentPoolEvent: {},
+ AgentQueueEvent: {},
+ AgentQueuesEvent: {},
+ AuditAction: {
+ enumValues: {
+ "add": 1,
+ "update": 2,
+ "delete": 3,
+ "undelete": 4
+ }
+ },
+ AzureKeyVaultVariableGroupProviderData: {},
+ AzureKeyVaultVariableValue: {},
+ DemandMinimumVersion: {},
+ DemandSource: {},
+ DemandSourceType: {
+ enumValues: {
+ "task": 0,
+ "feature": 1
+ }
+ },
+ DeploymentGroup: {},
+ DeploymentGroupActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ DeploymentGroupExpands: {
+ enumValues: {
+ "none": 0,
+ "machines": 2,
+ "tags": 4
+ }
+ },
+ DeploymentGroupMetrics: {},
+ DeploymentGroupReference: {},
+ DeploymentMachine: {},
+ DeploymentMachineChangedData: {},
+ DeploymentMachineExpands: {
+ enumValues: {
+ "none": 0,
+ "capabilities": 2,
+ "assignedRequest": 4
+ }
+ },
+ DeploymentMachineGroup: {},
+ DeploymentMachineGroupReference: {},
+ DeploymentMachinesChangeEvent: {},
+ DeploymentPoolSummary: {},
+ DeploymentPoolSummaryExpands: {
+ enumValues: {
+ "none": 0,
+ "deploymentGroups": 2,
+ "resource": 4
+ }
+ },
+ DeploymentTargetExpands: {
+ enumValues: {
+ "none": 0,
+ "capabilities": 2,
+ "assignedRequest": 4,
+ "lastCompletedRequest": 8
+ }
+ },
+ ElasticAgentState: {
+ enumValues: {
+ "none": 0,
+ "enabled": 1,
+ "online": 2,
+ "assigned": 4
+ }
+ },
+ ElasticComputeState: {
+ enumValues: {
+ "none": 0,
+ "healthy": 1,
+ "creating": 2,
+ "deleting": 3,
+ "failed": 4,
+ "stopped": 5,
+ "reimaging": 6
+ }
+ },
+ ElasticNode: {},
+ ElasticNodeSettings: {},
+ ElasticNodeState: {
+ enumValues: {
+ "none": 0,
+ "new": 1,
+ "creatingCompute": 2,
+ "startingAgent": 3,
+ "idle": 4,
+ "assigned": 5,
+ "offline": 6,
+ "pendingReimage": 7,
+ "pendingDelete": 8,
+ "saved": 9,
+ "deletingCompute": 10,
+ "deleted": 11,
+ "lost": 12,
+ "reimagingCompute": 13,
+ "restartingAgent": 14,
+ "failedToStartPendingDelete": 15,
+ "failedToRestartPendingDelete": 16,
+ "failedVMPendingDelete": 17,
+ "assignedPendingDelete": 18
+ }
+ },
+ ElasticPool: {},
+ ElasticPoolCreationResult: {},
+ ElasticPoolLog: {},
+ ElasticPoolSettings: {},
+ ElasticPoolState: {
+ enumValues: {
+ "online": 0,
+ "offline": 1,
+ "unhealthy": 2,
+ "new": 3
+ }
+ },
+ EnvironmentActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ EnvironmentDeploymentExecutionRecord: {},
+ EnvironmentExpands: {
+ enumValues: {
+ "none": 0,
+ "resourceReferences": 1
+ }
+ },
+ EnvironmentInstance: {},
+ EnvironmentResource: {},
+ EnvironmentResourceDeploymentExecutionRecord: {},
+ EnvironmentResourceReference: {},
+ EnvironmentResourceType: {
+ enumValues: {
+ "undefined": 0,
+ "generic": 1,
+ "virtualMachine": 2,
+ "kubernetes": 4
+ }
+ },
+ ExclusiveLockType: {
+ enumValues: {
+ "runLatest": 0,
+ "sequential": 1
+ }
+ },
+ Issue: {},
+ IssueType: {
+ enumValues: {
+ "error": 1,
+ "warning": 2
+ }
+ },
+ JobAssignedEvent: {},
+ JobCompletedEvent: {},
+ JobEnvironment: {},
+ JobRequestMessage: {},
+ KubernetesResource: {},
+ LogLevel: {
+ enumValues: {
+ "error": 0,
+ "warning": 1,
+ "info": 2
+ }
+ },
+ MachineGroupActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ MaskHint: {},
+ MaskType: {
+ enumValues: {
+ "variable": 1,
+ "regex": 2
+ }
+ },
+ OperatingSystemType: {
+ enumValues: {
+ "windows": 0,
+ "linux": 1
+ }
+ },
+ OperationType: {
+ enumValues: {
+ "configurationJob": 0,
+ "sizingJob": 1,
+ "increaseCapacity": 2,
+ "reimage": 3,
+ "deleteVMs": 4
+ }
+ },
+ PackageMetadata: {},
+ PlanEnvironment: {},
+ PlanGroupStatus: {
+ enumValues: {
+ "running": 1,
+ "queued": 2,
+ "all": 3
+ }
+ },
+ PlanGroupStatusFilter: {
+ enumValues: {
+ "running": 1,
+ "queued": 2,
+ "all": 3
+ }
+ },
+ ResourceLockRequest: {},
+ ResourceLockStatus: {
+ enumValues: {
+ "queued": 0,
+ "inUse": 1,
+ "finished": 2,
+ "timedOut": 3,
+ "canceled": 4,
+ "abandoned": 5,
+ "waitingOnChecks": 6
+ }
+ },
+ ResourceUsage: {},
+ SecureFile: {},
+ SecureFileActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ SecureFileEvent: {},
+ ServerTaskRequestMessage: {},
+ ServiceEndpointAuthenticationScheme: {},
+ ServiceEndpointExecutionData: {},
+ ServiceEndpointExecutionRecord: {},
+ ServiceEndpointExecutionRecordsInput: {},
+ ServiceEndpointRequestResult: {},
+ ServiceEndpointType: {},
+ TaskAgent: {},
+ TaskAgentCloudRequest: {},
+ TaskAgentCloudType: {},
+ TaskAgentDowngrade: {},
+ TaskAgentJob: {},
+ TaskAgentJobRequest: {},
+ TaskAgentJobResultFilter: {
+ enumValues: {
+ "failed": 1,
+ "passed": 2,
+ "neverDeployed": 4,
+ "all": 7
+ }
+ },
+ TaskAgentJobStep: {},
+ TaskAgentJobStepType: {
+ enumValues: {
+ "task": 1,
+ "action": 2
+ }
+ },
+ TaskAgentManualUpdate: {},
+ TaskAgentMinAgentVersionRequiredUpdate: {},
+ TaskAgentPool: {},
+ TaskAgentPoolActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ TaskAgentPoolMaintenanceDefinition: {},
+ TaskAgentPoolMaintenanceJob: {},
+ TaskAgentPoolMaintenanceJobResult: {
+ enumValues: {
+ "succeeded": 1,
+ "failed": 2,
+ "canceled": 4
+ }
+ },
+ TaskAgentPoolMaintenanceJobStatus: {
+ enumValues: {
+ "inProgress": 1,
+ "completed": 2,
+ "cancelling": 4,
+ "queued": 8
+ }
+ },
+ TaskAgentPoolMaintenanceJobTargetAgent: {},
+ TaskAgentPoolMaintenanceSchedule: {},
+ TaskAgentPoolMaintenanceScheduleDays: {
+ enumValues: {
+ "none": 0,
+ "monday": 1,
+ "tuesday": 2,
+ "wednesday": 4,
+ "thursday": 8,
+ "friday": 16,
+ "saturday": 32,
+ "sunday": 64,
+ "all": 127
+ }
+ },
+ TaskAgentPoolOptions: {
+ enumValues: {
+ "none": 0,
+ "elasticPool": 1,
+ "singleUseAgents": 2,
+ "preserveAgentOnJobFailure": 4
+ }
+ },
+ TaskAgentPoolReference: {},
+ TaskAgentPoolStatus: {},
+ TaskAgentPoolSummary: {},
+ TaskAgentPoolType: {
+ enumValues: {
+ "automation": 1,
+ "deployment": 2
+ }
+ },
+ TaskAgentQueue: {},
+ TaskAgentQueueActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ TaskAgentReference: {},
+ TaskAgentRequestUpdateOptions: {
+ enumValues: {
+ "none": 0,
+ "bumpRequestToTop": 1
+ }
+ },
+ TaskAgentSession: {},
+ TaskAgentStatus: {
+ enumValues: {
+ "offline": 1,
+ "online": 2
+ }
+ },
+ TaskAgentStatusFilter: {
+ enumValues: {
+ "offline": 1,
+ "online": 2,
+ "all": 3
+ }
+ },
+ TaskAgentUpdate: {},
+ TaskAgentUpdateReason: {},
+ TaskAgentUpdateReasonType: {
+ enumValues: {
+ "manual": 1,
+ "minAgentVersionRequired": 2,
+ "downgrade": 3
+ }
+ },
+ TaskAttachment: {},
+ TaskCommandMode: {
+ enumValues: {
+ "any": 0,
+ "restricted": 1
+ }
+ },
+ TaskCommandRestrictions: {},
+ TaskCompletedEvent: {},
+ TaskDefinition: {},
+ TaskDefinitionStatus: {
+ enumValues: {
+ "preinstalled": 1,
+ "receivedInstallOrUpdate": 2,
+ "installed": 3,
+ "receivedUninstall": 4,
+ "uninstalled": 5,
+ "requestedUpdate": 6,
+ "updated": 7,
+ "alreadyUpToDate": 8,
+ "inlineUpdateReceived": 9
+ }
+ },
+ TaskGroup: {},
+ TaskGroupExpands: {
+ enumValues: {
+ "none": 0,
+ "tasks": 2
+ }
+ },
+ TaskGroupQueryOrder: {
+ enumValues: {
+ "createdOnAscending": 0,
+ "createdOnDescending": 1
+ }
+ },
+ TaskGroupRevision: {},
+ TaskLog: {},
+ TaskOrchestrationContainer: {},
+ TaskOrchestrationItem: {},
+ TaskOrchestrationItemType: {
+ enumValues: {
+ "container": 0,
+ "job": 1
+ }
+ },
+ TaskOrchestrationJob: {},
+ TaskOrchestrationPlan: {},
+ TaskOrchestrationPlanGroup: {},
+ TaskOrchestrationPlanGroupsQueueMetrics: {},
+ TaskOrchestrationPlanState: {
+ enumValues: {
+ "inProgress": 1,
+ "queued": 2,
+ "completed": 4,
+ "throttled": 8
+ }
+ },
+ TaskOrchestrationQueuedPlan: {},
+ TaskOrchestrationQueuedPlanGroup: {},
+ TaskRestrictions: {},
+ TaskResult: {
+ enumValues: {
+ "succeeded": 0,
+ "succeededWithIssues": 1,
+ "failed": 2,
+ "canceled": 3,
+ "skipped": 4,
+ "abandoned": 5
+ }
+ },
+ Timeline: {},
+ TimelineRecord: {},
+ TimelineRecordState: {
+ enumValues: {
+ "pending": 0,
+ "inProgress": 1,
+ "completed": 2
+ }
+ },
+ VariableGroup: {},
+ VariableGroupActionFilter: {
+ enumValues: {
+ "none": 0,
+ "manage": 2,
+ "use": 16
+ }
+ },
+ VariableGroupQueryOrder: {
+ enumValues: {
+ "idAscending": 0,
+ "idDescending": 1
+ }
+ },
+ VirtualMachine: {},
+ VirtualMachineGroup: {},
+ VirtualMachineResource: {},
+ VirtualMachineResourceCreateParameters: {},
+};
+exports.TypeInfo.AgentChangeEvent.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgent
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ },
+ timeStamp: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AgentJobRequestMessage.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.JobEnvironment
+ },
+ lockedUntil: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AgentPoolEvent.fields = {
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPool
+ }
+};
+exports.TypeInfo.AgentQueueEvent.fields = {
+ queue: {
+ typeInfo: exports.TypeInfo.TaskAgentQueue
+ }
+};
+exports.TypeInfo.AgentQueuesEvent.fields = {
+ queues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentQueue
+ }
+};
+exports.TypeInfo.AzureKeyVaultVariableGroupProviderData.fields = {
+ lastRefreshedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AzureKeyVaultVariableValue.fields = {
+ expires: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.DemandMinimumVersion.fields = {
+ source: {
+ typeInfo: exports.TypeInfo.DemandSource
+ }
+};
+exports.TypeInfo.DemandSource.fields = {
+ sourceType: {
+ enumType: exports.TypeInfo.DemandSourceType
+ }
+};
+exports.TypeInfo.DeploymentGroup.fields = {
+ machines: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentMachine
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ }
+};
+exports.TypeInfo.DeploymentGroupMetrics.fields = {
+ deploymentGroup: {
+ typeInfo: exports.TypeInfo.DeploymentGroupReference
+ }
+};
+exports.TypeInfo.DeploymentGroupReference.fields = {
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ }
+};
+exports.TypeInfo.DeploymentMachine.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgent
+ }
+};
+exports.TypeInfo.DeploymentMachineChangedData.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgent
+ }
+};
+exports.TypeInfo.DeploymentMachineGroup.fields = {
+ machines: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentMachine
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ }
+};
+exports.TypeInfo.DeploymentMachineGroupReference.fields = {
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ }
+};
+exports.TypeInfo.DeploymentMachinesChangeEvent.fields = {
+ machineGroupReference: {
+ typeInfo: exports.TypeInfo.DeploymentGroupReference
+ },
+ machines: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentMachineChangedData
+ }
+};
+exports.TypeInfo.DeploymentPoolSummary.fields = {
+ deploymentGroups: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentGroupReference
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ },
+ resource: {
+ typeInfo: exports.TypeInfo.EnvironmentResourceReference
+ }
+};
+exports.TypeInfo.ElasticNode.fields = {
+ agentState: {
+ enumType: exports.TypeInfo.ElasticAgentState
+ },
+ computeState: {
+ enumType: exports.TypeInfo.ElasticComputeState
+ },
+ desiredState: {
+ enumType: exports.TypeInfo.ElasticNodeState
+ },
+ state: {
+ enumType: exports.TypeInfo.ElasticNodeState
+ },
+ stateChangedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ElasticNodeSettings.fields = {
+ state: {
+ enumType: exports.TypeInfo.ElasticNodeState
+ }
+};
+exports.TypeInfo.ElasticPool.fields = {
+ offlineSince: {
+ isDate: true,
+ },
+ osType: {
+ enumType: exports.TypeInfo.OperatingSystemType
+ },
+ state: {
+ enumType: exports.TypeInfo.ElasticPoolState
+ }
+};
+exports.TypeInfo.ElasticPoolCreationResult.fields = {
+ agentPool: {
+ typeInfo: exports.TypeInfo.TaskAgentPool
+ },
+ agentQueue: {
+ typeInfo: exports.TypeInfo.TaskAgentQueue
+ },
+ elasticPool: {
+ typeInfo: exports.TypeInfo.ElasticPool
+ }
+};
+exports.TypeInfo.ElasticPoolLog.fields = {
+ level: {
+ enumType: exports.TypeInfo.LogLevel
+ },
+ operation: {
+ enumType: exports.TypeInfo.OperationType
+ },
+ timestamp: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ElasticPoolSettings.fields = {
+ osType: {
+ enumType: exports.TypeInfo.OperatingSystemType
+ }
+};
+exports.TypeInfo.EnvironmentDeploymentExecutionRecord.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ queueTime: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.EnvironmentInstance.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ resources: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.EnvironmentResourceReference
+ }
+};
+exports.TypeInfo.EnvironmentResource.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.EnvironmentResourceType
+ }
+};
+exports.TypeInfo.EnvironmentResourceDeploymentExecutionRecord.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.EnvironmentResourceReference.fields = {
+ type: {
+ enumType: exports.TypeInfo.EnvironmentResourceType
+ }
+};
+exports.TypeInfo.Issue.fields = {
+ type: {
+ enumType: exports.TypeInfo.IssueType
+ }
+};
+exports.TypeInfo.JobAssignedEvent.fields = {
+ request: {
+ typeInfo: exports.TypeInfo.TaskAgentJobRequest
+ }
+};
+exports.TypeInfo.JobCompletedEvent.fields = {
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ }
+};
+exports.TypeInfo.JobEnvironment.fields = {
+ mask: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.MaskHint
+ },
+ secureFiles: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.SecureFile
+ }
+};
+exports.TypeInfo.JobRequestMessage.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.JobEnvironment
+ }
+};
+exports.TypeInfo.KubernetesResource.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.EnvironmentResourceType
+ }
+};
+exports.TypeInfo.MaskHint.fields = {
+ type: {
+ enumType: exports.TypeInfo.MaskType
+ }
+};
+exports.TypeInfo.PackageMetadata.fields = {
+ createdOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.PlanEnvironment.fields = {
+ mask: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.MaskHint
+ }
+};
+exports.TypeInfo.ResourceLockRequest.fields = {
+ assignTime: {
+ isDate: true,
+ },
+ finishTime: {
+ isDate: true,
+ },
+ lockType: {
+ enumType: exports.TypeInfo.ExclusiveLockType
+ },
+ queueTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.ResourceLockStatus
+ }
+};
+exports.TypeInfo.ResourceUsage.fields = {
+ runningRequests: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentJobRequest
+ }
+};
+exports.TypeInfo.SecureFile.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.SecureFileEvent.fields = {
+ secureFiles: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.SecureFile
+ }
+};
+exports.TypeInfo.ServerTaskRequestMessage.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.JobEnvironment
+ },
+ taskDefinition: {
+ typeInfo: exports.TypeInfo.TaskDefinition
+ }
+};
+exports.TypeInfo.ServiceEndpointAuthenticationScheme.fields = {
+ inputDescriptors: {
+ isArray: true,
+ typeInfo: FormInputInterfaces.TypeInfo.InputDescriptor
+ }
+};
+exports.TypeInfo.ServiceEndpointExecutionData.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ServiceEndpointExecutionRecord.fields = {
+ data: {
+ typeInfo: exports.TypeInfo.ServiceEndpointExecutionData
+ }
+};
+exports.TypeInfo.ServiceEndpointExecutionRecordsInput.fields = {
+ data: {
+ typeInfo: exports.TypeInfo.ServiceEndpointExecutionData
+ }
+};
+exports.TypeInfo.ServiceEndpointRequestResult.fields = {};
+exports.TypeInfo.ServiceEndpointType.fields = {
+ authenticationSchemes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ServiceEndpointAuthenticationScheme
+ },
+ inputDescriptors: {
+ isArray: true,
+ typeInfo: FormInputInterfaces.TypeInfo.InputDescriptor
+ }
+};
+exports.TypeInfo.TaskAgent.fields = {
+ assignedAgentCloudRequest: {
+ typeInfo: exports.TypeInfo.TaskAgentCloudRequest
+ },
+ assignedRequest: {
+ typeInfo: exports.TypeInfo.TaskAgentJobRequest
+ },
+ createdOn: {
+ isDate: true,
+ },
+ lastCompletedRequest: {
+ typeInfo: exports.TypeInfo.TaskAgentJobRequest
+ },
+ pendingUpdate: {
+ typeInfo: exports.TypeInfo.TaskAgentUpdate
+ },
+ status: {
+ enumType: exports.TypeInfo.TaskAgentStatus
+ },
+ statusChangedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TaskAgentCloudRequest.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgentReference
+ },
+ agentConnectedTime: {
+ isDate: true,
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ },
+ provisionedTime: {
+ isDate: true,
+ },
+ provisionRequestTime: {
+ isDate: true,
+ },
+ releaseRequestTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TaskAgentCloudType.fields = {
+ inputDescriptors: {
+ isArray: true,
+ typeInfo: FormInputInterfaces.TypeInfo.InputDescriptor
+ }
+};
+exports.TypeInfo.TaskAgentDowngrade.fields = {
+ code: {
+ enumType: exports.TypeInfo.TaskAgentUpdateReasonType
+ }
+};
+exports.TypeInfo.TaskAgentJob.fields = {
+ steps: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentJobStep
+ }
+};
+exports.TypeInfo.TaskAgentJobRequest.fields = {
+ assignTime: {
+ isDate: true,
+ },
+ finishTime: {
+ isDate: true,
+ },
+ lockedUntil: {
+ isDate: true,
+ },
+ matchedAgents: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentReference
+ },
+ queueTime: {
+ isDate: true,
+ },
+ receiveTime: {
+ isDate: true,
+ },
+ reservedAgent: {
+ typeInfo: exports.TypeInfo.TaskAgentReference
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ }
+};
+exports.TypeInfo.TaskAgentJobStep.fields = {
+ type: {
+ enumType: exports.TypeInfo.TaskAgentJobStepType
+ }
+};
+exports.TypeInfo.TaskAgentManualUpdate.fields = {
+ code: {
+ enumType: exports.TypeInfo.TaskAgentUpdateReasonType
+ }
+};
+exports.TypeInfo.TaskAgentMinAgentVersionRequiredUpdate.fields = {
+ code: {
+ enumType: exports.TypeInfo.TaskAgentUpdateReasonType
+ }
+};
+exports.TypeInfo.TaskAgentPool.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ options: {
+ enumType: exports.TypeInfo.TaskAgentPoolOptions
+ },
+ poolType: {
+ enumType: exports.TypeInfo.TaskAgentPoolType
+ }
+};
+exports.TypeInfo.TaskAgentPoolMaintenanceDefinition.fields = {
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ },
+ scheduleSetting: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolMaintenanceSchedule
+ }
+};
+exports.TypeInfo.TaskAgentPoolMaintenanceJob.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ },
+ queueTime: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskAgentPoolMaintenanceJobResult
+ },
+ startTime: {
+ isDate: true,
+ },
+ status: {
+ enumType: exports.TypeInfo.TaskAgentPoolMaintenanceJobStatus
+ },
+ targetAgents: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentPoolMaintenanceJobTargetAgent
+ }
+};
+exports.TypeInfo.TaskAgentPoolMaintenanceJobTargetAgent.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgentReference
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskAgentPoolMaintenanceJobResult
+ },
+ status: {
+ enumType: exports.TypeInfo.TaskAgentPoolMaintenanceJobStatus
+ }
+};
+exports.TypeInfo.TaskAgentPoolMaintenanceSchedule.fields = {
+ daysToBuild: {
+ enumType: exports.TypeInfo.TaskAgentPoolMaintenanceScheduleDays
+ }
+};
+exports.TypeInfo.TaskAgentPoolReference.fields = {
+ options: {
+ enumType: exports.TypeInfo.TaskAgentPoolOptions
+ },
+ poolType: {
+ enumType: exports.TypeInfo.TaskAgentPoolType
+ }
+};
+exports.TypeInfo.TaskAgentPoolStatus.fields = {
+ options: {
+ enumType: exports.TypeInfo.TaskAgentPoolOptions
+ },
+ poolType: {
+ enumType: exports.TypeInfo.TaskAgentPoolType
+ }
+};
+exports.TypeInfo.TaskAgentPoolSummary.fields = {
+ deploymentGroups: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DeploymentGroupReference
+ },
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ },
+ queues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentQueue
+ }
+};
+exports.TypeInfo.TaskAgentQueue.fields = {
+ pool: {
+ typeInfo: exports.TypeInfo.TaskAgentPoolReference
+ }
+};
+exports.TypeInfo.TaskAgentReference.fields = {
+ status: {
+ enumType: exports.TypeInfo.TaskAgentStatus
+ }
+};
+exports.TypeInfo.TaskAgentSession.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgentReference
+ }
+};
+exports.TypeInfo.TaskAgentUpdate.fields = {
+ reason: {
+ typeInfo: exports.TypeInfo.TaskAgentUpdateReason
+ },
+ requestTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TaskAgentUpdateReason.fields = {
+ code: {
+ enumType: exports.TypeInfo.TaskAgentUpdateReasonType
+ }
+};
+exports.TypeInfo.TaskAttachment.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastChangedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TaskCommandRestrictions.fields = {
+ mode: {
+ enumType: exports.TypeInfo.TaskCommandMode
+ }
+};
+exports.TypeInfo.TaskCompletedEvent.fields = {
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ }
+};
+exports.TypeInfo.TaskDefinition.fields = {
+ restrictions: {
+ typeInfo: exports.TypeInfo.TaskRestrictions
+ }
+};
+exports.TypeInfo.TaskGroup.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ },
+ restrictions: {
+ typeInfo: exports.TypeInfo.TaskRestrictions
+ }
+};
+exports.TypeInfo.TaskGroupRevision.fields = {
+ changedDate: {
+ isDate: true,
+ },
+ changeType: {
+ enumType: exports.TypeInfo.AuditAction
+ }
+};
+exports.TypeInfo.TaskLog.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastChangedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TaskOrchestrationContainer.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskOrchestrationItem
+ },
+ itemType: {
+ enumType: exports.TypeInfo.TaskOrchestrationItemType
+ },
+ rollback: {
+ typeInfo: exports.TypeInfo.TaskOrchestrationContainer
+ }
+};
+exports.TypeInfo.TaskOrchestrationItem.fields = {
+ itemType: {
+ enumType: exports.TypeInfo.TaskOrchestrationItemType
+ }
+};
+exports.TypeInfo.TaskOrchestrationJob.fields = {
+ itemType: {
+ enumType: exports.TypeInfo.TaskOrchestrationItemType
+ }
+};
+exports.TypeInfo.TaskOrchestrationPlan.fields = {
+ environment: {
+ typeInfo: exports.TypeInfo.PlanEnvironment
+ },
+ finishTime: {
+ isDate: true,
+ },
+ implementation: {
+ typeInfo: exports.TypeInfo.TaskOrchestrationContainer
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ },
+ startTime: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.TaskOrchestrationPlanState
+ }
+};
+exports.TypeInfo.TaskOrchestrationPlanGroup.fields = {
+ runningRequests: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskAgentJobRequest
+ }
+};
+exports.TypeInfo.TaskOrchestrationPlanGroupsQueueMetrics.fields = {
+ status: {
+ enumType: exports.TypeInfo.PlanGroupStatus
+ }
+};
+exports.TypeInfo.TaskOrchestrationQueuedPlan.fields = {
+ assignTime: {
+ isDate: true,
+ },
+ queueTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TaskOrchestrationQueuedPlanGroup.fields = {
+ plans: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TaskOrchestrationQueuedPlan
+ }
+};
+exports.TypeInfo.TaskRestrictions.fields = {
+ commands: {
+ typeInfo: exports.TypeInfo.TaskCommandRestrictions
+ }
+};
+exports.TypeInfo.Timeline.fields = {
+ lastChangedOn: {
+ isDate: true,
+ },
+ records: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TimelineRecord
+ }
+};
+exports.TypeInfo.TimelineRecord.fields = {
+ finishTime: {
+ isDate: true,
+ },
+ issues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Issue
+ },
+ lastModified: {
+ isDate: true,
+ },
+ result: {
+ enumType: exports.TypeInfo.TaskResult
+ },
+ startTime: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.TimelineRecordState
+ }
+};
+exports.TypeInfo.VariableGroup.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ modifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.VirtualMachine.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgent
+ }
+};
+exports.TypeInfo.VirtualMachineGroup.fields = {
+ createdOn: {
+ isDate: true,
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.EnvironmentResourceType
+ }
+};
+exports.TypeInfo.VirtualMachineResource.fields = {
+ agent: {
+ typeInfo: exports.TypeInfo.TaskAgent
+ },
+ createdOn: {
+ isDate: true,
+ },
+ lastModifiedOn: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.EnvironmentResourceType
+ }
+};
+exports.TypeInfo.VirtualMachineResourceCreateParameters.fields = {
+ virtualMachineResource: {
+ typeInfo: exports.TypeInfo.VirtualMachineResource
+ }
+};
+
+
+/***/ }),
+
+/***/ 3047:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const SystemData = __nccwpck_require__(4652);
+const TfsCoreInterfaces = __nccwpck_require__(3931);
+/**
+ * The types of test attachments.
+ */
+var AttachmentType;
+(function (AttachmentType) {
+ /**
+ * Attachment type GeneralAttachment , use this as default type unless you have other type.
+ */
+ AttachmentType[AttachmentType["GeneralAttachment"] = 0] = "GeneralAttachment";
+ AttachmentType[AttachmentType["AfnStrip"] = 1] = "AfnStrip";
+ AttachmentType[AttachmentType["BugFilingData"] = 2] = "BugFilingData";
+ /**
+ * Attachment type CodeCoverage.
+ */
+ AttachmentType[AttachmentType["CodeCoverage"] = 3] = "CodeCoverage";
+ AttachmentType[AttachmentType["IntermediateCollectorData"] = 4] = "IntermediateCollectorData";
+ AttachmentType[AttachmentType["RunConfig"] = 5] = "RunConfig";
+ AttachmentType[AttachmentType["TestImpactDetails"] = 6] = "TestImpactDetails";
+ AttachmentType[AttachmentType["TmiTestRunDeploymentFiles"] = 7] = "TmiTestRunDeploymentFiles";
+ AttachmentType[AttachmentType["TmiTestRunReverseDeploymentFiles"] = 8] = "TmiTestRunReverseDeploymentFiles";
+ AttachmentType[AttachmentType["TmiTestResultDetail"] = 9] = "TmiTestResultDetail";
+ AttachmentType[AttachmentType["TmiTestRunSummary"] = 10] = "TmiTestRunSummary";
+ /**
+ * Attachment type ConsoleLog.
+ */
+ AttachmentType[AttachmentType["ConsoleLog"] = 11] = "ConsoleLog";
+})(AttachmentType = exports.AttachmentType || (exports.AttachmentType = {}));
+/**
+ * Enum of type Clone Operation Type.
+ */
+var CloneOperationState;
+(function (CloneOperationState) {
+ /**
+ * value for Failed State
+ */
+ CloneOperationState[CloneOperationState["Failed"] = 2] = "Failed";
+ /**
+ * value for Inprogress state
+ */
+ CloneOperationState[CloneOperationState["InProgress"] = 1] = "InProgress";
+ /**
+ * Value for Queued State
+ */
+ CloneOperationState[CloneOperationState["Queued"] = 0] = "Queued";
+ /**
+ * value for Success state
+ */
+ CloneOperationState[CloneOperationState["Succeeded"] = 3] = "Succeeded";
+})(CloneOperationState = exports.CloneOperationState || (exports.CloneOperationState = {}));
+/**
+ * Used to choose which coverage data is returned by a QueryXXXCoverage() call.
+ */
+var CoverageQueryFlags;
+(function (CoverageQueryFlags) {
+ /**
+ * If set, the Coverage.Modules property will be populated.
+ */
+ CoverageQueryFlags[CoverageQueryFlags["Modules"] = 1] = "Modules";
+ /**
+ * If set, the ModuleCoverage.Functions properties will be populated.
+ */
+ CoverageQueryFlags[CoverageQueryFlags["Functions"] = 2] = "Functions";
+ /**
+ * If set, the ModuleCoverage.CoverageData field will be populated.
+ */
+ CoverageQueryFlags[CoverageQueryFlags["BlockData"] = 4] = "BlockData";
+})(CoverageQueryFlags = exports.CoverageQueryFlags || (exports.CoverageQueryFlags = {}));
+var CoverageStatus;
+(function (CoverageStatus) {
+ CoverageStatus[CoverageStatus["Covered"] = 0] = "Covered";
+ CoverageStatus[CoverageStatus["NotCovered"] = 1] = "NotCovered";
+ CoverageStatus[CoverageStatus["PartiallyCovered"] = 2] = "PartiallyCovered";
+})(CoverageStatus = exports.CoverageStatus || (exports.CoverageStatus = {}));
+/**
+ * Represents status of code coverage summary for a build
+ */
+var CoverageSummaryStatus;
+(function (CoverageSummaryStatus) {
+ /**
+ * No coverage status
+ */
+ CoverageSummaryStatus[CoverageSummaryStatus["None"] = 0] = "None";
+ /**
+ * The summary evaluation is in progress
+ */
+ CoverageSummaryStatus[CoverageSummaryStatus["InProgress"] = 1] = "InProgress";
+ /**
+ * The summary evaluation for the previous request is completed. Summary can change in future
+ */
+ CoverageSummaryStatus[CoverageSummaryStatus["Completed"] = 2] = "Completed";
+ /**
+ * The summary evaluation is finalized and won't change
+ */
+ CoverageSummaryStatus[CoverageSummaryStatus["Finalized"] = 3] = "Finalized";
+ /**
+ * The summary evaluation is pending
+ */
+ CoverageSummaryStatus[CoverageSummaryStatus["Pending"] = 4] = "Pending";
+ /**
+ * Summary evaluation may be ongoing but another merge has been requested.
+ */
+ CoverageSummaryStatus[CoverageSummaryStatus["UpdateRequestQueued"] = 5] = "UpdateRequestQueued";
+})(CoverageSummaryStatus = exports.CoverageSummaryStatus || (exports.CoverageSummaryStatus = {}));
+var CustomTestFieldScope;
+(function (CustomTestFieldScope) {
+ CustomTestFieldScope[CustomTestFieldScope["None"] = 0] = "None";
+ CustomTestFieldScope[CustomTestFieldScope["TestRun"] = 1] = "TestRun";
+ CustomTestFieldScope[CustomTestFieldScope["TestResult"] = 2] = "TestResult";
+ CustomTestFieldScope[CustomTestFieldScope["System"] = 4] = "System";
+ CustomTestFieldScope[CustomTestFieldScope["All"] = 7] = "All";
+})(CustomTestFieldScope = exports.CustomTestFieldScope || (exports.CustomTestFieldScope = {}));
+var CustomTestFieldType;
+(function (CustomTestFieldType) {
+ CustomTestFieldType[CustomTestFieldType["Bit"] = 2] = "Bit";
+ CustomTestFieldType[CustomTestFieldType["DateTime"] = 4] = "DateTime";
+ CustomTestFieldType[CustomTestFieldType["Int"] = 8] = "Int";
+ CustomTestFieldType[CustomTestFieldType["Float"] = 6] = "Float";
+ CustomTestFieldType[CustomTestFieldType["String"] = 12] = "String";
+ CustomTestFieldType[CustomTestFieldType["Guid"] = 14] = "Guid";
+})(CustomTestFieldType = exports.CustomTestFieldType || (exports.CustomTestFieldType = {}));
+var FlakyDetectionType;
+(function (FlakyDetectionType) {
+ /**
+ * Custom defines manual detection type.
+ */
+ FlakyDetectionType[FlakyDetectionType["Custom"] = 1] = "Custom";
+ /**
+ * Defines System detection type.
+ */
+ FlakyDetectionType[FlakyDetectionType["System"] = 2] = "System";
+})(FlakyDetectionType = exports.FlakyDetectionType || (exports.FlakyDetectionType = {}));
+/**
+ * Test summary metrics.
+ */
+var Metrics;
+(function (Metrics) {
+ /**
+ * To get results of all matrix.
+ */
+ Metrics[Metrics["All"] = 1] = "All";
+ /**
+ * Get results summary by results outcome
+ */
+ Metrics[Metrics["ResultSummary"] = 2] = "ResultSummary";
+ /**
+ * Get results analysis which include failure analysis, increase/decrease in results count analysis.
+ */
+ Metrics[Metrics["ResultsAnalysis"] = 3] = "ResultsAnalysis";
+ /**
+ * Get runs summary
+ */
+ Metrics[Metrics["RunSummary"] = 4] = "RunSummary";
+})(Metrics = exports.Metrics || (exports.Metrics = {}));
+var OperationType;
+(function (OperationType) {
+ OperationType[OperationType["Add"] = 1] = "Add";
+ OperationType[OperationType["Delete"] = 2] = "Delete";
+})(OperationType = exports.OperationType || (exports.OperationType = {}));
+/**
+ * Additional details with test result
+ */
+var ResultDetails;
+(function (ResultDetails) {
+ /**
+ * Core fields of test result. Core fields includes State, Outcome, Priority, AutomatedTestName, AutomatedTestStorage, Comments, ErrorMessage etc.
+ */
+ ResultDetails[ResultDetails["None"] = 0] = "None";
+ /**
+ * Test iteration details in a test result.
+ */
+ ResultDetails[ResultDetails["Iterations"] = 1] = "Iterations";
+ /**
+ * Workitems associated with a test result.
+ */
+ ResultDetails[ResultDetails["WorkItems"] = 2] = "WorkItems";
+ /**
+ * Subresults in a test result.
+ */
+ ResultDetails[ResultDetails["SubResults"] = 4] = "SubResults";
+ /**
+ * Point and plan detail in a test result.
+ */
+ ResultDetails[ResultDetails["Point"] = 8] = "Point";
+})(ResultDetails = exports.ResultDetails || (exports.ResultDetails = {}));
+/**
+ * Hierarchy type of the result/subresults.
+ */
+var ResultGroupType;
+(function (ResultGroupType) {
+ /**
+ * Leaf node of test result.
+ */
+ ResultGroupType[ResultGroupType["None"] = 0] = "None";
+ /**
+ * Hierarchy type of test result.
+ */
+ ResultGroupType[ResultGroupType["Rerun"] = 1] = "Rerun";
+ /**
+ * Hierarchy type of test result.
+ */
+ ResultGroupType[ResultGroupType["DataDriven"] = 2] = "DataDriven";
+ /**
+ * Hierarchy type of test result.
+ */
+ ResultGroupType[ResultGroupType["OrderedTest"] = 3] = "OrderedTest";
+ /**
+ * Unknown hierarchy type.
+ */
+ ResultGroupType[ResultGroupType["Generic"] = 4] = "Generic";
+})(ResultGroupType = exports.ResultGroupType || (exports.ResultGroupType = {}));
+var ResultMetadata;
+(function (ResultMetadata) {
+ /**
+ * Rerun metadata
+ */
+ ResultMetadata[ResultMetadata["Rerun"] = 1] = "Rerun";
+ /**
+ * Flaky metadata
+ */
+ ResultMetadata[ResultMetadata["Flaky"] = 2] = "Flaky";
+})(ResultMetadata = exports.ResultMetadata || (exports.ResultMetadata = {}));
+/**
+ * Additional details with test result metadata
+ */
+var ResultMetaDataDetails;
+(function (ResultMetaDataDetails) {
+ /**
+ * Core fields of test result metadata.
+ */
+ ResultMetaDataDetails[ResultMetaDataDetails["None"] = 0] = "None";
+ /**
+ * Test FlakyIdentifiers details in test result metadata.
+ */
+ ResultMetaDataDetails[ResultMetaDataDetails["FlakyIdentifiers"] = 1] = "FlakyIdentifiers";
+})(ResultMetaDataDetails = exports.ResultMetaDataDetails || (exports.ResultMetaDataDetails = {}));
+/**
+ * The top level entity that is being cloned as part of a Clone operation
+ */
+var ResultObjectType;
+(function (ResultObjectType) {
+ /**
+ * Suite Clone
+ */
+ ResultObjectType[ResultObjectType["TestSuite"] = 0] = "TestSuite";
+ /**
+ * Plan Clone
+ */
+ ResultObjectType[ResultObjectType["TestPlan"] = 1] = "TestPlan";
+})(ResultObjectType = exports.ResultObjectType || (exports.ResultObjectType = {}));
+var RunType;
+(function (RunType) {
+ /**
+ * Only used during an update to preserve the existing value.
+ */
+ RunType[RunType["Unspecified"] = 0] = "Unspecified";
+ /**
+ * Normal test run.
+ */
+ RunType[RunType["Normal"] = 1] = "Normal";
+ /**
+ * Test run created for the blocked result when a test point is blocked.
+ */
+ RunType[RunType["Blocking"] = 2] = "Blocking";
+ /**
+ * Test run created from Web.
+ */
+ RunType[RunType["Web"] = 4] = "Web";
+ /**
+ * Run initiated from web through MTR
+ */
+ RunType[RunType["MtrRunInitiatedFromWeb"] = 8] = "MtrRunInitiatedFromWeb";
+ /**
+ * These test run would require DTL environment. These could be either of automated or manual test run.
+ */
+ RunType[RunType["RunWithDtlEnv"] = 16] = "RunWithDtlEnv";
+ /**
+ * These test run may or may not have published test results but it will have summary like total test, passed test, failed test etc. These are automated tests.
+ */
+ RunType[RunType["NoConfigRun"] = 32] = "NoConfigRun";
+})(RunType = exports.RunType || (exports.RunType = {}));
+var Service;
+(function (Service) {
+ Service[Service["Any"] = 0] = "Any";
+ Service[Service["Tcm"] = 1] = "Tcm";
+ Service[Service["Tfs"] = 2] = "Tfs";
+})(Service = exports.Service || (exports.Service = {}));
+/**
+ * Option to get details in response
+ */
+var SuiteExpand;
+(function (SuiteExpand) {
+ /**
+ * Include children in response.
+ */
+ SuiteExpand[SuiteExpand["Children"] = 1] = "Children";
+ /**
+ * Include default testers in response.
+ */
+ SuiteExpand[SuiteExpand["DefaultTesters"] = 2] = "DefaultTesters";
+})(SuiteExpand = exports.SuiteExpand || (exports.SuiteExpand = {}));
+var TCMServiceDataMigrationStatus;
+(function (TCMServiceDataMigrationStatus) {
+ /**
+ * Migration Not Started
+ */
+ TCMServiceDataMigrationStatus[TCMServiceDataMigrationStatus["NotStarted"] = 0] = "NotStarted";
+ /**
+ * Migration InProgress
+ */
+ TCMServiceDataMigrationStatus[TCMServiceDataMigrationStatus["InProgress"] = 1] = "InProgress";
+ /**
+ * Migration Completed
+ */
+ TCMServiceDataMigrationStatus[TCMServiceDataMigrationStatus["Completed"] = 2] = "Completed";
+ /**
+ * Migration Failed
+ */
+ TCMServiceDataMigrationStatus[TCMServiceDataMigrationStatus["Failed"] = 3] = "Failed";
+})(TCMServiceDataMigrationStatus = exports.TCMServiceDataMigrationStatus || (exports.TCMServiceDataMigrationStatus = {}));
+/**
+ * Represents the state of an ITestConfiguration object.
+ */
+var TestConfigurationState;
+(function (TestConfigurationState) {
+ /**
+ * The configuration can be used for new test runs.
+ */
+ TestConfigurationState[TestConfigurationState["Active"] = 1] = "Active";
+ /**
+ * The configuration has been retired and should not be used for new test runs.
+ */
+ TestConfigurationState[TestConfigurationState["Inactive"] = 2] = "Inactive";
+})(TestConfigurationState = exports.TestConfigurationState || (exports.TestConfigurationState = {}));
+/**
+ * Test Log Context
+ */
+var TestLogScope;
+(function (TestLogScope) {
+ /**
+ * Log file is associated with Run, result, subresult
+ */
+ TestLogScope[TestLogScope["Run"] = 0] = "Run";
+ /**
+ * Log File associated with Build
+ */
+ TestLogScope[TestLogScope["Build"] = 1] = "Build";
+ /**
+ * Log File associated with Release
+ */
+ TestLogScope[TestLogScope["Release"] = 2] = "Release";
+})(TestLogScope = exports.TestLogScope || (exports.TestLogScope = {}));
+/**
+ * Test Log Status codes.
+ */
+var TestLogStatusCode;
+(function (TestLogStatusCode) {
+ /**
+ * Operation is successful
+ */
+ TestLogStatusCode[TestLogStatusCode["Success"] = 0] = "Success";
+ /**
+ * Operation failed
+ */
+ TestLogStatusCode[TestLogStatusCode["Failed"] = 1] = "Failed";
+ /**
+ * Operation failed due to file already exist
+ */
+ TestLogStatusCode[TestLogStatusCode["FileAlreadyExists"] = 2] = "FileAlreadyExists";
+ /**
+ * Invalid input provided by user
+ */
+ TestLogStatusCode[TestLogStatusCode["InvalidInput"] = 3] = "InvalidInput";
+ /**
+ * Invalid file name provided by user
+ */
+ TestLogStatusCode[TestLogStatusCode["InvalidFileName"] = 4] = "InvalidFileName";
+ /**
+ * Error occurred while operating on container
+ */
+ TestLogStatusCode[TestLogStatusCode["InvalidContainer"] = 5] = "InvalidContainer";
+ /**
+ * Blob Transfer Error
+ */
+ TestLogStatusCode[TestLogStatusCode["TransferFailed"] = 6] = "TransferFailed";
+ /**
+ * TestLogStore feature is not enabled
+ */
+ TestLogStatusCode[TestLogStatusCode["FeatureDisabled"] = 7] = "FeatureDisabled";
+ /**
+ * Build for which operation is requested does not exist
+ */
+ TestLogStatusCode[TestLogStatusCode["BuildDoesNotExist"] = 8] = "BuildDoesNotExist";
+ /**
+ * Run for which operation is requested does not exist
+ */
+ TestLogStatusCode[TestLogStatusCode["RunDoesNotExist"] = 9] = "RunDoesNotExist";
+ /**
+ * Container cannot be created
+ */
+ TestLogStatusCode[TestLogStatusCode["ContainerNotCreated"] = 10] = "ContainerNotCreated";
+ /**
+ * Api is not supported
+ */
+ TestLogStatusCode[TestLogStatusCode["APINotSupported"] = 11] = "APINotSupported";
+ /**
+ * File size is greater than the limitation
+ */
+ TestLogStatusCode[TestLogStatusCode["FileSizeExceeds"] = 12] = "FileSizeExceeds";
+ /**
+ * Container is not found for which operation is requested
+ */
+ TestLogStatusCode[TestLogStatusCode["ContainerNotFound"] = 13] = "ContainerNotFound";
+ /**
+ * File cannot be found
+ */
+ TestLogStatusCode[TestLogStatusCode["FileNotFound"] = 14] = "FileNotFound";
+ /**
+ * Directory cannot be found
+ */
+ TestLogStatusCode[TestLogStatusCode["DirectoryNotFound"] = 15] = "DirectoryNotFound";
+ /**
+ * Storage capacity exceeded
+ */
+ TestLogStatusCode[TestLogStatusCode["StorageCapacityExceeded"] = 16] = "StorageCapacityExceeded";
+})(TestLogStatusCode = exports.TestLogStatusCode || (exports.TestLogStatusCode = {}));
+/**
+ * Specifies set of possible log store endpoint type.
+ */
+var TestLogStoreEndpointType;
+(function (TestLogStoreEndpointType) {
+ /**
+ * Endpoint type is scoped to root
+ */
+ TestLogStoreEndpointType[TestLogStoreEndpointType["Root"] = 1] = "Root";
+ /**
+ * Endpoint type is scoped to file
+ */
+ TestLogStoreEndpointType[TestLogStoreEndpointType["File"] = 2] = "File";
+})(TestLogStoreEndpointType = exports.TestLogStoreEndpointType || (exports.TestLogStoreEndpointType = {}));
+/**
+ * Specifies set of possible operation type on log store.
+ */
+var TestLogStoreOperationType;
+(function (TestLogStoreOperationType) {
+ /**
+ * Operation is scoped to read data only.
+ */
+ TestLogStoreOperationType[TestLogStoreOperationType["Read"] = 1] = "Read";
+ /**
+ * Operation is scoped to create data only.
+ */
+ TestLogStoreOperationType[TestLogStoreOperationType["Create"] = 2] = "Create";
+ /**
+ * Operation is scoped to read and create data.
+ */
+ TestLogStoreOperationType[TestLogStoreOperationType["ReadAndCreate"] = 3] = "ReadAndCreate";
+})(TestLogStoreOperationType = exports.TestLogStoreOperationType || (exports.TestLogStoreOperationType = {}));
+/**
+ * Test Log Types
+ */
+var TestLogType;
+(function (TestLogType) {
+ /**
+ * Any gereric attachment.
+ */
+ TestLogType[TestLogType["GeneralAttachment"] = 1] = "GeneralAttachment";
+ /**
+ * Code Coverage files
+ */
+ TestLogType[TestLogType["CodeCoverage"] = 2] = "CodeCoverage";
+ /**
+ * Test Impact details.
+ */
+ TestLogType[TestLogType["TestImpact"] = 3] = "TestImpact";
+ /**
+ * Temporary files
+ */
+ TestLogType[TestLogType["Intermediate"] = 4] = "Intermediate";
+ /**
+ * Subresult Attachment
+ */
+ TestLogType[TestLogType["System"] = 5] = "System";
+})(TestLogType = exports.TestLogType || (exports.TestLogType = {}));
+/**
+ * Valid TestOutcome values.
+ */
+var TestOutcome;
+(function (TestOutcome) {
+ /**
+ * Only used during an update to preserve the existing value.
+ */
+ TestOutcome[TestOutcome["Unspecified"] = 0] = "Unspecified";
+ /**
+ * Test has not been completed, or the test type does not report pass/failure.
+ */
+ TestOutcome[TestOutcome["None"] = 1] = "None";
+ /**
+ * Test was executed w/o any issues.
+ */
+ TestOutcome[TestOutcome["Passed"] = 2] = "Passed";
+ /**
+ * Test was executed, but there were issues. Issues may involve exceptions or failed assertions.
+ */
+ TestOutcome[TestOutcome["Failed"] = 3] = "Failed";
+ /**
+ * Test has completed, but we can't say if it passed or failed. May be used for aborted tests...
+ */
+ TestOutcome[TestOutcome["Inconclusive"] = 4] = "Inconclusive";
+ /**
+ * The test timed out
+ */
+ TestOutcome[TestOutcome["Timeout"] = 5] = "Timeout";
+ /**
+ * Test was aborted. This was not caused by a user gesture, but rather by a framework decision.
+ */
+ TestOutcome[TestOutcome["Aborted"] = 6] = "Aborted";
+ /**
+ * Test had it chance for been executed but was not, as ITestElement.IsRunnable == false.
+ */
+ TestOutcome[TestOutcome["Blocked"] = 7] = "Blocked";
+ /**
+ * Test was not executed. This was caused by a user gesture - e.g. user hit stop button.
+ */
+ TestOutcome[TestOutcome["NotExecuted"] = 8] = "NotExecuted";
+ /**
+ * To be used by Run level results. This is not a failure.
+ */
+ TestOutcome[TestOutcome["Warning"] = 9] = "Warning";
+ /**
+ * There was a system error while we were trying to execute a test.
+ */
+ TestOutcome[TestOutcome["Error"] = 10] = "Error";
+ /**
+ * Test is Not Applicable for execution.
+ */
+ TestOutcome[TestOutcome["NotApplicable"] = 11] = "NotApplicable";
+ /**
+ * Test is paused.
+ */
+ TestOutcome[TestOutcome["Paused"] = 12] = "Paused";
+ /**
+ * Test is currently executing. Added this for TCM charts
+ */
+ TestOutcome[TestOutcome["InProgress"] = 13] = "InProgress";
+ /**
+ * Test is not impacted. Added fot TIA.
+ */
+ TestOutcome[TestOutcome["NotImpacted"] = 14] = "NotImpacted";
+ TestOutcome[TestOutcome["MaxValue"] = 14] = "MaxValue";
+})(TestOutcome = exports.TestOutcome || (exports.TestOutcome = {}));
+var TestPointState;
+(function (TestPointState) {
+ /**
+ * Default
+ */
+ TestPointState[TestPointState["None"] = 0] = "None";
+ /**
+ * The test point needs to be executed in order for the test pass to be considered complete. Either the test has not been run before or the previous run failed.
+ */
+ TestPointState[TestPointState["Ready"] = 1] = "Ready";
+ /**
+ * The test has passed successfully and does not need to be re-run for the test pass to be considered complete.
+ */
+ TestPointState[TestPointState["Completed"] = 2] = "Completed";
+ /**
+ * The test point needs to be executed but is not able to.
+ */
+ TestPointState[TestPointState["NotReady"] = 3] = "NotReady";
+ /**
+ * The test is being executed.
+ */
+ TestPointState[TestPointState["InProgress"] = 4] = "InProgress";
+ TestPointState[TestPointState["MaxValue"] = 4] = "MaxValue";
+})(TestPointState = exports.TestPointState || (exports.TestPointState = {}));
+/**
+ * Group by for results
+ */
+var TestResultGroupBy;
+(function (TestResultGroupBy) {
+ /**
+ * Group the results by branches
+ */
+ TestResultGroupBy[TestResultGroupBy["Branch"] = 1] = "Branch";
+ /**
+ * Group the results by environment
+ */
+ TestResultGroupBy[TestResultGroupBy["Environment"] = 2] = "Environment";
+})(TestResultGroupBy = exports.TestResultGroupBy || (exports.TestResultGroupBy = {}));
+var TestResultsContextType;
+(function (TestResultsContextType) {
+ TestResultsContextType[TestResultsContextType["Build"] = 1] = "Build";
+ TestResultsContextType[TestResultsContextType["Release"] = 2] = "Release";
+ TestResultsContextType[TestResultsContextType["Pipeline"] = 3] = "Pipeline";
+})(TestResultsContextType = exports.TestResultsContextType || (exports.TestResultsContextType = {}));
+var TestResultsSettingsType;
+(function (TestResultsSettingsType) {
+ /**
+ * Returns All Test Settings.
+ */
+ TestResultsSettingsType[TestResultsSettingsType["All"] = 1] = "All";
+ /**
+ * Returns Flaky Test Settings.
+ */
+ TestResultsSettingsType[TestResultsSettingsType["Flaky"] = 2] = "Flaky";
+ /**
+ * Returns whether to log new tests or not
+ */
+ TestResultsSettingsType[TestResultsSettingsType["NewTestLogging"] = 3] = "NewTestLogging";
+})(TestResultsSettingsType = exports.TestResultsSettingsType || (exports.TestResultsSettingsType = {}));
+/**
+ * The types of outcomes for test run.
+ */
+var TestRunOutcome;
+(function (TestRunOutcome) {
+ /**
+ * Run with zero failed tests and has at least one impacted test
+ */
+ TestRunOutcome[TestRunOutcome["Passed"] = 0] = "Passed";
+ /**
+ * Run with at-least one failed test.
+ */
+ TestRunOutcome[TestRunOutcome["Failed"] = 1] = "Failed";
+ /**
+ * Run with no impacted tests.
+ */
+ TestRunOutcome[TestRunOutcome["NotImpacted"] = 2] = "NotImpacted";
+ /**
+ * Runs with All tests in other category.
+ */
+ TestRunOutcome[TestRunOutcome["Others"] = 3] = "Others";
+})(TestRunOutcome = exports.TestRunOutcome || (exports.TestRunOutcome = {}));
+/**
+ * The types of publish context for run.
+ */
+var TestRunPublishContext;
+(function (TestRunPublishContext) {
+ /**
+ * Run is published for Build Context.
+ */
+ TestRunPublishContext[TestRunPublishContext["Build"] = 1] = "Build";
+ /**
+ * Run is published for Release Context.
+ */
+ TestRunPublishContext[TestRunPublishContext["Release"] = 2] = "Release";
+ /**
+ * Run is published for any Context.
+ */
+ TestRunPublishContext[TestRunPublishContext["All"] = 3] = "All";
+})(TestRunPublishContext = exports.TestRunPublishContext || (exports.TestRunPublishContext = {}));
+/**
+ * The types of states for test run.
+ */
+var TestRunState;
+(function (TestRunState) {
+ /**
+ * Only used during an update to preserve the existing value.
+ */
+ TestRunState[TestRunState["Unspecified"] = 0] = "Unspecified";
+ /**
+ * The run is still being created. No tests have started yet.
+ */
+ TestRunState[TestRunState["NotStarted"] = 1] = "NotStarted";
+ /**
+ * Tests are running.
+ */
+ TestRunState[TestRunState["InProgress"] = 2] = "InProgress";
+ /**
+ * All tests have completed or been skipped.
+ */
+ TestRunState[TestRunState["Completed"] = 3] = "Completed";
+ /**
+ * Run is stopped and remaining tests have been aborted
+ */
+ TestRunState[TestRunState["Aborted"] = 4] = "Aborted";
+ /**
+ * Run is currently initializing This is a legacy state and should not be used any more
+ */
+ TestRunState[TestRunState["Waiting"] = 5] = "Waiting";
+ /**
+ * Run requires investigation because of a test point failure This is a legacy state and should not be used any more
+ */
+ TestRunState[TestRunState["NeedsInvestigation"] = 6] = "NeedsInvestigation";
+})(TestRunState = exports.TestRunState || (exports.TestRunState = {}));
+/**
+ * The types of sub states for test run. It gives the user more info about the test run beyond the high level test run state
+ */
+var TestRunSubstate;
+(function (TestRunSubstate) {
+ /**
+ * Run with noState.
+ */
+ TestRunSubstate[TestRunSubstate["None"] = 0] = "None";
+ /**
+ * Run state while Creating Environment.
+ */
+ TestRunSubstate[TestRunSubstate["CreatingEnvironment"] = 1] = "CreatingEnvironment";
+ /**
+ * Run state while Running Tests.
+ */
+ TestRunSubstate[TestRunSubstate["RunningTests"] = 2] = "RunningTests";
+ /**
+ * Run state while Creating Environment.
+ */
+ TestRunSubstate[TestRunSubstate["CanceledByUser"] = 3] = "CanceledByUser";
+ /**
+ * Run state when it is Aborted By the System.
+ */
+ TestRunSubstate[TestRunSubstate["AbortedBySystem"] = 4] = "AbortedBySystem";
+ /**
+ * Run state when run has timedOut.
+ */
+ TestRunSubstate[TestRunSubstate["TimedOut"] = 5] = "TimedOut";
+ /**
+ * Run state while Pending Analysis.
+ */
+ TestRunSubstate[TestRunSubstate["PendingAnalysis"] = 6] = "PendingAnalysis";
+ /**
+ * Run state after being Analysed.
+ */
+ TestRunSubstate[TestRunSubstate["Analyzed"] = 7] = "Analyzed";
+ /**
+ * Run state when cancellation is in Progress.
+ */
+ TestRunSubstate[TestRunSubstate["CancellationInProgress"] = 8] = "CancellationInProgress";
+})(TestRunSubstate = exports.TestRunSubstate || (exports.TestRunSubstate = {}));
+/**
+ * Represents the source from which the test session was created
+ */
+var TestSessionSource;
+(function (TestSessionSource) {
+ /**
+ * Source of test session uncertain as it is stale
+ */
+ TestSessionSource[TestSessionSource["Unknown"] = 0] = "Unknown";
+ /**
+ * The session was created from Microsoft Test Manager exploratory desktop tool.
+ */
+ TestSessionSource[TestSessionSource["XTDesktop"] = 1] = "XTDesktop";
+ /**
+ * The session was created from feedback client.
+ */
+ TestSessionSource[TestSessionSource["FeedbackDesktop"] = 2] = "FeedbackDesktop";
+ /**
+ * The session was created from browser extension.
+ */
+ TestSessionSource[TestSessionSource["XTWeb"] = 3] = "XTWeb";
+ /**
+ * The session was created from browser extension.
+ */
+ TestSessionSource[TestSessionSource["FeedbackWeb"] = 4] = "FeedbackWeb";
+ /**
+ * The session was created from web access using Microsoft Test Manager exploratory desktop tool.
+ */
+ TestSessionSource[TestSessionSource["XTDesktop2"] = 5] = "XTDesktop2";
+ /**
+ * To show sessions from all supported sources.
+ */
+ TestSessionSource[TestSessionSource["SessionInsightsForAll"] = 6] = "SessionInsightsForAll";
+})(TestSessionSource = exports.TestSessionSource || (exports.TestSessionSource = {}));
+/**
+ * Represents the state of the test session.
+ */
+var TestSessionState;
+(function (TestSessionState) {
+ /**
+ * Only used during an update to preserve the existing value.
+ */
+ TestSessionState[TestSessionState["Unspecified"] = 0] = "Unspecified";
+ /**
+ * The session is still being created.
+ */
+ TestSessionState[TestSessionState["NotStarted"] = 1] = "NotStarted";
+ /**
+ * The session is running.
+ */
+ TestSessionState[TestSessionState["InProgress"] = 2] = "InProgress";
+ /**
+ * The session has paused.
+ */
+ TestSessionState[TestSessionState["Paused"] = 3] = "Paused";
+ /**
+ * The session has completed.
+ */
+ TestSessionState[TestSessionState["Completed"] = 4] = "Completed";
+ /**
+ * This is required for Feedback session which are declined
+ */
+ TestSessionState[TestSessionState["Declined"] = 5] = "Declined";
+})(TestSessionState = exports.TestSessionState || (exports.TestSessionState = {}));
+exports.TypeInfo = {
+ AfnStrip: {},
+ AggregatedDataForResultTrend: {},
+ AggregatedResultDetailsByOutcome: {},
+ AggregatedResultsAnalysis: {},
+ AggregatedResultsByOutcome: {},
+ AggregatedRunsByOutcome: {},
+ AggregatedRunsByState: {},
+ AttachmentType: {
+ enumValues: {
+ "generalAttachment": 0,
+ "afnStrip": 1,
+ "bugFilingData": 2,
+ "codeCoverage": 3,
+ "intermediateCollectorData": 4,
+ "runConfig": 5,
+ "testImpactDetails": 6,
+ "tmiTestRunDeploymentFiles": 7,
+ "tmiTestRunReverseDeploymentFiles": 8,
+ "tmiTestResultDetail": 9,
+ "tmiTestRunSummary": 10,
+ "consoleLog": 11
+ }
+ },
+ BatchResponse: {},
+ BuildConfiguration: {},
+ BuildCoverage: {},
+ BuildReference2: {},
+ BulkResultUpdateRequest: {},
+ CloneOperationInformation: {},
+ CloneOperationState: {
+ enumValues: {
+ "failed": 2,
+ "inProgress": 1,
+ "queued": 0,
+ "succeeded": 3
+ }
+ },
+ CodeCoverageSummary: {},
+ Coverage2: {},
+ CoverageQueryFlags: {
+ enumValues: {
+ "modules": 1,
+ "functions": 2,
+ "blockData": 4
+ }
+ },
+ CoverageStatus: {
+ enumValues: {
+ "covered": 0,
+ "notCovered": 1,
+ "partiallyCovered": 2
+ }
+ },
+ CoverageSummaryStatus: {
+ enumValues: {
+ "none": 0,
+ "inProgress": 1,
+ "completed": 2,
+ "finalized": 3,
+ "pending": 4,
+ "updateRequestQueued": 5
+ }
+ },
+ CreateTestMessageLogEntryRequest: {},
+ CreateTestResultsRequest: {},
+ CreateTestRunRequest: {},
+ CustomTestFieldDefinition: {},
+ CustomTestFieldScope: {
+ enumValues: {
+ "none": 0,
+ "testRun": 1,
+ "testResult": 2,
+ "system": 4,
+ "all": 7
+ }
+ },
+ CustomTestFieldType: {
+ enumValues: {
+ "bit": 2,
+ "dateTime": 4,
+ "int": 8,
+ "float": 6,
+ "string": 12,
+ "guid": 14
+ }
+ },
+ DatedTestFieldData: {},
+ FailingSince: {},
+ FetchTestResultsResponse: {},
+ FlakyDetection: {},
+ FlakyDetectionType: {
+ enumValues: {
+ "custom": 1,
+ "system": 2
+ }
+ },
+ FlakySettings: {},
+ LastResultDetails: {},
+ LegacyBuildConfiguration: {},
+ LegacyReleaseReference: {},
+ LegacyTestCaseResult: {},
+ LegacyTestRun: {},
+ LegacyTestSettings: {},
+ Metrics: {
+ enumValues: {
+ "all": 1,
+ "resultSummary": 2,
+ "resultsAnalysis": 3,
+ "runSummary": 4
+ }
+ },
+ OperationType: {
+ enumValues: {
+ "add": 1,
+ "delete": 2
+ }
+ },
+ PipelineTestMetrics: {},
+ PointLastResult: {},
+ PointsResults2: {},
+ QueryTestActionResultResponse: {},
+ ReleaseReference: {},
+ ReleaseReference2: {},
+ RequirementsToTestsMapping2: {},
+ Response: {},
+ ResultDetails: {
+ enumValues: {
+ "none": 0,
+ "iterations": 1,
+ "workItems": 2,
+ "subResults": 4,
+ "point": 8
+ }
+ },
+ ResultGroupType: {
+ enumValues: {
+ "none": 0,
+ "rerun": 1,
+ "dataDriven": 2,
+ "orderedTest": 3,
+ "generic": 4
+ }
+ },
+ ResultMetadata: {
+ enumValues: {
+ "rerun": 1,
+ "flaky": 2
+ }
+ },
+ ResultMetaDataDetails: {
+ enumValues: {
+ "none": 0,
+ "flakyIdentifiers": 1
+ }
+ },
+ ResultObjectType: {
+ enumValues: {
+ "testSuite": 0,
+ "testPlan": 1
+ }
+ },
+ ResultRetentionSettings: {},
+ ResultsByQueryResponse: {},
+ ResultsFilter: {},
+ ResultsSummaryByOutcome: {},
+ ResultSummary: {},
+ ResultUpdateRequest: {},
+ ResultUpdateRequestModel: {},
+ ResultUpdateResponse: {},
+ RunCreateModel: {},
+ RunStatistic: {},
+ RunSummary: {},
+ RunSummaryModel: {},
+ RunType: {
+ enumValues: {
+ "unspecified": 0,
+ "normal": 1,
+ "blocking": 2,
+ "web": 4,
+ "mtrRunInitiatedFromWeb": 8,
+ "runWithDtlEnv": 16,
+ "noConfigRun": 32
+ }
+ },
+ RunUpdateModel: {},
+ Service: {
+ enumValues: {
+ "any": 0,
+ "tcm": 1,
+ "tfs": 2
+ }
+ },
+ SuiteExpand: {
+ enumValues: {
+ "children": 1,
+ "defaultTesters": 2
+ }
+ },
+ TCMServiceDataMigrationStatus: {
+ enumValues: {
+ "notStarted": 0,
+ "inProgress": 1,
+ "completed": 2,
+ "failed": 3
+ }
+ },
+ TestActionResult: {},
+ TestActionResult2: {},
+ TestActionResultModel: {},
+ TestAttachment: {},
+ TestAuthoringDetails: {},
+ TestCaseReference2: {},
+ TestCaseResult: {},
+ TestConfiguration: {},
+ TestConfigurationState: {
+ enumValues: {
+ "active": 1,
+ "inactive": 2
+ }
+ },
+ TestExecutionReportData: {},
+ TestExtensionField: {},
+ TestExtensionFieldDetails: {},
+ TestFailuresAnalysis: {},
+ TestHistoryQuery: {},
+ TestIterationDetailsModel: {},
+ TestLog: {},
+ TestLogReference: {},
+ TestLogScope: {
+ enumValues: {
+ "run": 0,
+ "build": 1,
+ "release": 2
+ }
+ },
+ TestLogStatus: {},
+ TestLogStatusCode: {
+ enumValues: {
+ "success": 0,
+ "failed": 1,
+ "fileAlreadyExists": 2,
+ "invalidInput": 3,
+ "invalidFileName": 4,
+ "invalidContainer": 5,
+ "transferFailed": 6,
+ "featureDisabled": 7,
+ "buildDoesNotExist": 8,
+ "runDoesNotExist": 9,
+ "containerNotCreated": 10,
+ "apiNotSupported": 11,
+ "fileSizeExceeds": 12,
+ "containerNotFound": 13,
+ "fileNotFound": 14,
+ "directoryNotFound": 15,
+ "storageCapacityExceeded": 16
+ }
+ },
+ TestLogStoreAttachment: {},
+ TestLogStoreEndpointDetails: {},
+ TestLogStoreEndpointType: {
+ enumValues: {
+ "root": 1,
+ "file": 2
+ }
+ },
+ TestLogStoreOperationType: {
+ enumValues: {
+ "read": 1,
+ "create": 2,
+ "readAndCreate": 3
+ }
+ },
+ TestLogType: {
+ enumValues: {
+ "generalAttachment": 1,
+ "codeCoverage": 2,
+ "testImpact": 3,
+ "intermediate": 4,
+ "system": 5
+ }
+ },
+ TestMessageLogDetails: {},
+ TestMessageLogEntry: {},
+ TestMessageLogEntry2: {},
+ TestOutcome: {
+ enumValues: {
+ "unspecified": 0,
+ "none": 1,
+ "passed": 2,
+ "failed": 3,
+ "inconclusive": 4,
+ "timeout": 5,
+ "aborted": 6,
+ "blocked": 7,
+ "notExecuted": 8,
+ "warning": 9,
+ "error": 10,
+ "notApplicable": 11,
+ "paused": 12,
+ "inProgress": 13,
+ "notImpacted": 14,
+ "maxValue": 14
+ }
+ },
+ TestParameter2: {},
+ TestPlan: {},
+ TestPlanCloneRequest: {},
+ TestPlanHubData: {},
+ TestPlansWithSelection: {},
+ TestPoint: {},
+ TestPointReference: {},
+ TestPointsEvent: {},
+ TestPointsQuery: {},
+ TestPointState: {
+ enumValues: {
+ "none": 0,
+ "ready": 1,
+ "completed": 2,
+ "notReady": 3,
+ "inProgress": 4,
+ "maxValue": 4
+ }
+ },
+ TestPointsUpdatedEvent: {},
+ TestResult2: {},
+ TestResultAcrossProjectResponse: {},
+ TestResultAttachment: {},
+ TestResultGroupBy: {
+ enumValues: {
+ "branch": 1,
+ "environment": 2
+ }
+ },
+ TestResultHistory: {},
+ TestResultHistoryDetailsForGroup: {},
+ TestResultHistoryForGroup: {},
+ TestResultModelBase: {},
+ TestResultReset2: {},
+ TestResultsContext: {},
+ TestResultsContextType: {
+ enumValues: {
+ "build": 1,
+ "release": 2,
+ "pipeline": 3
+ }
+ },
+ TestResultsDetails: {},
+ TestResultsDetailsForGroup: {},
+ TestResultsEx2: {},
+ TestResultsQuery: {},
+ TestResultsSettings: {},
+ TestResultsSettingsType: {
+ enumValues: {
+ "all": 1,
+ "flaky": 2,
+ "newTestLogging": 3
+ }
+ },
+ TestResultSummary: {},
+ TestResultsUpdateSettings: {},
+ TestResultsWithWatermark: {},
+ TestResultTrendFilter: {},
+ TestRun: {},
+ TestRun2: {},
+ TestRunCanceledEvent: {},
+ TestRunCreatedEvent: {},
+ TestRunEvent: {},
+ TestRunEx2: {},
+ TestRunOutcome: {
+ enumValues: {
+ "passed": 0,
+ "failed": 1,
+ "notImpacted": 2,
+ "others": 3
+ }
+ },
+ TestRunPublishContext: {
+ enumValues: {
+ "build": 1,
+ "release": 2,
+ "all": 3
+ }
+ },
+ TestRunStartedEvent: {},
+ TestRunState: {
+ enumValues: {
+ "unspecified": 0,
+ "notStarted": 1,
+ "inProgress": 2,
+ "completed": 3,
+ "aborted": 4,
+ "waiting": 5,
+ "needsInvestigation": 6
+ }
+ },
+ TestRunStatistic: {},
+ TestRunSubstate: {
+ enumValues: {
+ "none": 0,
+ "creatingEnvironment": 1,
+ "runningTests": 2,
+ "canceledByUser": 3,
+ "abortedBySystem": 4,
+ "timedOut": 5,
+ "pendingAnalysis": 6,
+ "analyzed": 7,
+ "cancellationInProgress": 8
+ }
+ },
+ TestRunSummary2: {},
+ TestRunWithDtlEnvEvent: {},
+ TestSession: {},
+ TestSessionExploredWorkItemReference: {},
+ TestSessionSource: {
+ enumValues: {
+ "unknown": 0,
+ "xtDesktop": 1,
+ "feedbackDesktop": 2,
+ "xtWeb": 3,
+ "feedbackWeb": 4,
+ "xtDesktop2": 5,
+ "sessionInsightsForAll": 6
+ }
+ },
+ TestSessionState: {
+ enumValues: {
+ "unspecified": 0,
+ "notStarted": 1,
+ "inProgress": 2,
+ "paused": 3,
+ "completed": 4,
+ "declined": 5
+ }
+ },
+ TestSettings2: {},
+ TestSubResult: {},
+ TestSuite: {},
+ TestSummaryForWorkItem: {},
+ UpdatedProperties: {},
+ UpdateTestRunRequest: {},
+ UpdateTestRunResponse: {},
+ WorkItemToTestLinks: {},
+};
+exports.TypeInfo.AfnStrip.fields = {
+ creationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AggregatedDataForResultTrend.fields = {
+ resultsByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedResultsByOutcome
+ },
+ runSummaryByState: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestRunState,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedRunsByState
+ },
+ testResultsContext: {
+ typeInfo: exports.TypeInfo.TestResultsContext
+ }
+};
+exports.TypeInfo.AggregatedResultDetailsByOutcome.fields = {
+ outcome: {
+ enumType: exports.TypeInfo.TestOutcome
+ }
+};
+exports.TypeInfo.AggregatedResultsAnalysis.fields = {
+ notReportedResultsByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedResultsByOutcome
+ },
+ previousContext: {
+ typeInfo: exports.TypeInfo.TestResultsContext
+ },
+ resultsByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedResultsByOutcome
+ },
+ runSummaryByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestRunOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedRunsByOutcome
+ },
+ runSummaryByState: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestRunState,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedRunsByState
+ }
+};
+exports.TypeInfo.AggregatedResultsByOutcome.fields = {
+ outcome: {
+ enumType: exports.TypeInfo.TestOutcome
+ }
+};
+exports.TypeInfo.AggregatedRunsByOutcome.fields = {
+ outcome: {
+ enumType: exports.TypeInfo.TestRunOutcome
+ }
+};
+exports.TypeInfo.AggregatedRunsByState.fields = {
+ resultsByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedResultsByOutcome
+ },
+ state: {
+ enumType: exports.TypeInfo.TestRunState
+ }
+};
+exports.TypeInfo.BatchResponse.fields = {
+ responses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Response
+ },
+};
+exports.TypeInfo.BuildConfiguration.fields = {
+ creationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BuildCoverage.fields = {
+ configuration: {
+ typeInfo: exports.TypeInfo.BuildConfiguration
+ }
+};
+exports.TypeInfo.BuildReference2.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.BulkResultUpdateRequest.fields = {
+ requests: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.ResultUpdateRequest
+ }
+};
+exports.TypeInfo.CloneOperationInformation.fields = {
+ completionDate: {
+ isDate: true,
+ },
+ creationDate: {
+ isDate: true,
+ },
+ resultObjectType: {
+ enumType: exports.TypeInfo.ResultObjectType
+ },
+ state: {
+ enumType: exports.TypeInfo.CloneOperationState
+ }
+};
+exports.TypeInfo.CodeCoverageSummary.fields = {
+ status: {
+ enumType: exports.TypeInfo.CoverageSummaryStatus
+ }
+};
+exports.TypeInfo.Coverage2.fields = {
+ dateCreated: {
+ isDate: true,
+ },
+ dateModified: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.CreateTestMessageLogEntryRequest.fields = {
+ testMessageLogEntry: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestMessageLogEntry
+ }
+};
+exports.TypeInfo.CreateTestResultsRequest.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.LegacyTestCaseResult
+ }
+};
+exports.TypeInfo.CreateTestRunRequest.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.LegacyTestCaseResult
+ },
+ testRun: {
+ typeInfo: exports.TypeInfo.LegacyTestRun
+ },
+ testSettings: {
+ typeInfo: exports.TypeInfo.LegacyTestSettings
+ }
+};
+exports.TypeInfo.CustomTestFieldDefinition.fields = {
+ fieldType: {
+ enumType: exports.TypeInfo.CustomTestFieldType
+ },
+ scope: {
+ enumType: exports.TypeInfo.CustomTestFieldScope
+ }
+};
+exports.TypeInfo.DatedTestFieldData.fields = {
+ date: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.FailingSince.fields = {
+ date: {
+ isDate: true,
+ },
+ release: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ }
+};
+exports.TypeInfo.FetchTestResultsResponse.fields = {
+ actionResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResult
+ },
+ attachments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultAttachment
+ },
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.LegacyTestCaseResult
+ }
+};
+exports.TypeInfo.FlakyDetection.fields = {
+ flakyDetectionType: {
+ enumType: exports.TypeInfo.FlakyDetectionType
+ }
+};
+exports.TypeInfo.FlakySettings.fields = {
+ flakyDetection: {
+ typeInfo: exports.TypeInfo.FlakyDetection
+ }
+};
+exports.TypeInfo.LastResultDetails.fields = {
+ dateCompleted: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.LegacyBuildConfiguration.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.LegacyReleaseReference.fields = {
+ environmentCreationDate: {
+ isDate: true,
+ },
+ releaseCreationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.LegacyTestCaseResult.fields = {
+ buildReference: {
+ typeInfo: exports.TypeInfo.LegacyBuildConfiguration
+ },
+ creationDate: {
+ isDate: true,
+ },
+ customFields: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestExtensionField
+ },
+ dateCompleted: {
+ isDate: true,
+ },
+ dateStarted: {
+ isDate: true,
+ },
+ failingSince: {
+ typeInfo: exports.TypeInfo.FailingSince
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ releaseReference: {
+ typeInfo: exports.TypeInfo.LegacyReleaseReference
+ },
+ resultGroupType: {
+ enumType: exports.TypeInfo.ResultGroupType
+ },
+ stackTrace: {
+ typeInfo: exports.TypeInfo.TestExtensionField
+ }
+};
+exports.TypeInfo.LegacyTestRun.fields = {
+ buildReference: {
+ typeInfo: exports.TypeInfo.LegacyBuildConfiguration
+ },
+ completeDate: {
+ isDate: true,
+ },
+ creationDate: {
+ isDate: true,
+ },
+ customFields: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestExtensionField
+ },
+ dueDate: {
+ isDate: true,
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ releaseReference: {
+ typeInfo: exports.TypeInfo.LegacyReleaseReference
+ },
+ startDate: {
+ isDate: true,
+ },
+ testMessageLogEntries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestMessageLogDetails
+ }
+};
+exports.TypeInfo.LegacyTestSettings.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.PipelineTestMetrics.fields = {
+ resultSummary: {
+ typeInfo: exports.TypeInfo.ResultSummary
+ },
+ runSummary: {
+ typeInfo: exports.TypeInfo.RunSummary
+ },
+ summaryAtChild: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.PipelineTestMetrics
+ }
+};
+exports.TypeInfo.PointLastResult.fields = {
+ lastUpdatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.PointsResults2.fields = {
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.QueryTestActionResultResponse.fields = {
+ testActionResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResult
+ },
+ testAttachments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultAttachment
+ }
+};
+exports.TypeInfo.ReleaseReference.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ environmentCreationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ReleaseReference2.fields = {
+ environmentCreationDate: {
+ isDate: true,
+ },
+ releaseCreationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.RequirementsToTestsMapping2.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ deletionDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Response.fields = {};
+exports.TypeInfo.ResultRetentionSettings.fields = {
+ lastUpdatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ResultsByQueryResponse.fields = {
+ testResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.LegacyTestCaseResult
+ }
+};
+exports.TypeInfo.ResultsFilter.fields = {
+ executedIn: {
+ enumType: exports.TypeInfo.Service
+ },
+ maxCompleteDate: {
+ isDate: true,
+ },
+ testResultsContext: {
+ typeInfo: exports.TypeInfo.TestResultsContext
+ }
+};
+exports.TypeInfo.ResultsSummaryByOutcome.fields = {
+ aggregatedResultDetailsByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedResultDetailsByOutcome
+ }
+};
+exports.TypeInfo.ResultSummary.fields = {
+ resultSummaryByRunState: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestRunState,
+ dictionaryValueTypeInfo: exports.TypeInfo.ResultsSummaryByOutcome
+ }
+};
+exports.TypeInfo.ResultUpdateRequest.fields = {
+ actionResultDeletes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResult
+ },
+ actionResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResult
+ },
+ attachments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultAttachment
+ },
+ testCaseResult: {
+ typeInfo: exports.TypeInfo.LegacyTestCaseResult
+ }
+};
+exports.TypeInfo.ResultUpdateRequestModel.fields = {
+ actionResultDeletes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResultModel
+ },
+ actionResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResultModel
+ }
+};
+exports.TypeInfo.ResultUpdateResponse.fields = {
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.RunCreateModel.fields = {
+ buildReference: {
+ typeInfo: exports.TypeInfo.BuildConfiguration
+ },
+ releaseReference: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ },
+ runSummary: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RunSummaryModel
+ }
+};
+exports.TypeInfo.RunStatistic.fields = {
+ resultMetadata: {
+ enumType: exports.TypeInfo.ResultMetadata
+ }
+};
+exports.TypeInfo.RunSummary.fields = {
+ runSummaryByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestRunOutcome,
+ },
+ runSummaryByState: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestRunState,
+ }
+};
+exports.TypeInfo.RunSummaryModel.fields = {
+ testOutcome: {
+ enumType: exports.TypeInfo.TestOutcome
+ }
+};
+exports.TypeInfo.RunUpdateModel.fields = {
+ logEntries: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestMessageLogDetails
+ },
+ runSummary: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RunSummaryModel
+ },
+ substate: {
+ enumType: exports.TypeInfo.TestRunSubstate
+ }
+};
+exports.TypeInfo.TestActionResult.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ dateCompleted: {
+ isDate: true,
+ },
+ dateStarted: {
+ isDate: true,
+ },
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestActionResult2.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ dateCompleted: {
+ isDate: true,
+ },
+ dateStarted: {
+ isDate: true,
+ },
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestActionResultModel.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ startedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestAttachment.fields = {
+ attachmentType: {
+ enumType: exports.TypeInfo.AttachmentType
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestAuthoringDetails.fields = {
+ lastUpdated: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.TestPointState
+ }
+};
+exports.TypeInfo.TestCaseReference2.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ lastRefTestRunDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestCaseResult.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ createdDate: {
+ isDate: true,
+ },
+ failingSince: {
+ typeInfo: exports.TypeInfo.FailingSince
+ },
+ iterationDetails: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestIterationDetailsModel
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ releaseReference: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ },
+ resultGroupType: {
+ enumType: exports.TypeInfo.ResultGroupType
+ },
+ startedDate: {
+ isDate: true,
+ },
+ subResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestSubResult
+ }
+};
+exports.TypeInfo.TestConfiguration.fields = {
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.TestConfigurationState
+ }
+};
+exports.TypeInfo.TestExecutionReportData.fields = {
+ reportData: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DatedTestFieldData
+ }
+};
+exports.TypeInfo.TestExtensionField.fields = {
+ field: {
+ typeInfo: exports.TypeInfo.TestExtensionFieldDetails
+ }
+};
+exports.TypeInfo.TestExtensionFieldDetails.fields = {
+ type: {
+ enumType: SystemData.TypeInfo.SqlDbType
+ }
+};
+exports.TypeInfo.TestFailuresAnalysis.fields = {
+ previousContext: {
+ typeInfo: exports.TypeInfo.TestResultsContext
+ }
+};
+exports.TypeInfo.TestHistoryQuery.fields = {
+ groupBy: {
+ enumType: exports.TypeInfo.TestResultGroupBy
+ },
+ maxCompleteDate: {
+ isDate: true,
+ },
+ resultsForGroup: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultHistoryForGroup
+ }
+};
+exports.TypeInfo.TestIterationDetailsModel.fields = {
+ actionResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestActionResultModel
+ },
+ completedDate: {
+ isDate: true,
+ },
+ startedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestLog.fields = {
+ logReference: {
+ typeInfo: exports.TypeInfo.TestLogReference
+ },
+ modifiedOn: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestLogReference.fields = {
+ scope: {
+ enumType: exports.TypeInfo.TestLogScope
+ },
+ type: {
+ enumType: exports.TypeInfo.TestLogType
+ }
+};
+exports.TypeInfo.TestLogStatus.fields = {
+ status: {
+ enumType: exports.TypeInfo.TestLogStatusCode
+ }
+};
+exports.TypeInfo.TestLogStoreAttachment.fields = {
+ attachmentType: {
+ enumType: exports.TypeInfo.AttachmentType
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestLogStoreEndpointDetails.fields = {
+ endpointType: {
+ enumType: exports.TypeInfo.TestLogStoreEndpointType
+ },
+ status: {
+ enumType: exports.TypeInfo.TestLogStatusCode
+ }
+};
+exports.TypeInfo.TestMessageLogDetails.fields = {
+ dateCreated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestMessageLogEntry.fields = {
+ dateCreated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestMessageLogEntry2.fields = {
+ dateCreated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestParameter2.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ dateModified: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPlan.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPlanCloneRequest.fields = {
+ destinationTestPlan: {
+ typeInfo: exports.TypeInfo.TestPlan
+ }
+};
+exports.TypeInfo.TestPlanHubData.fields = {
+ testPlan: {
+ typeInfo: exports.TypeInfo.TestPlan
+ },
+ testPoints: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPoint
+ },
+ testSuites: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestSuite
+ }
+};
+exports.TypeInfo.TestPlansWithSelection.fields = {
+ plans: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPlan
+ }
+};
+exports.TypeInfo.TestPoint.fields = {
+ lastResetToActive: {
+ isDate: true,
+ },
+ lastResultDetails: {
+ typeInfo: exports.TypeInfo.LastResultDetails
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPointReference.fields = {
+ state: {
+ enumType: exports.TypeInfo.TestPointState
+ }
+};
+exports.TypeInfo.TestPointsEvent.fields = {
+ testPoints: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPointReference
+ }
+};
+exports.TypeInfo.TestPointsQuery.fields = {
+ points: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPoint
+ }
+};
+exports.TypeInfo.TestPointsUpdatedEvent.fields = {
+ testPoints: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPointReference
+ }
+};
+exports.TypeInfo.TestResult2.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ dateCompleted: {
+ isDate: true,
+ },
+ dateStarted: {
+ isDate: true,
+ },
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestResultAcrossProjectResponse.fields = {
+ testResult: {
+ typeInfo: exports.TypeInfo.LegacyTestCaseResult
+ }
+};
+exports.TypeInfo.TestResultAttachment.fields = {
+ attachmentType: {
+ enumType: exports.TypeInfo.AttachmentType
+ },
+ creationDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestResultHistory.fields = {
+ resultsForGroup: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultHistoryDetailsForGroup
+ }
+};
+exports.TypeInfo.TestResultHistoryDetailsForGroup.fields = {
+ latestResult: {
+ typeInfo: exports.TypeInfo.TestCaseResult
+ }
+};
+exports.TypeInfo.TestResultHistoryForGroup.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestCaseResult
+ }
+};
+exports.TypeInfo.TestResultModelBase.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ startedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestResultReset2.fields = {
+ dateModified: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestResultsContext.fields = {
+ contextType: {
+ enumType: exports.TypeInfo.TestResultsContextType
+ },
+ release: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ }
+};
+exports.TypeInfo.TestResultsDetails.fields = {
+ resultsForGroup: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultsDetailsForGroup
+ }
+};
+exports.TypeInfo.TestResultsDetailsForGroup.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestCaseResult
+ },
+ resultsCountByOutcome: {
+ isDictionary: true,
+ dictionaryKeyEnumType: exports.TypeInfo.TestOutcome,
+ dictionaryValueTypeInfo: exports.TypeInfo.AggregatedResultsByOutcome
+ }
+};
+exports.TypeInfo.TestResultsEx2.fields = {
+ creationDate: {
+ isDate: true,
+ },
+ dateTimeValue: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestResultsQuery.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestCaseResult
+ },
+ resultsFilter: {
+ typeInfo: exports.TypeInfo.ResultsFilter
+ }
+};
+exports.TypeInfo.TestResultsSettings.fields = {
+ flakySettings: {
+ typeInfo: exports.TypeInfo.FlakySettings
+ }
+};
+exports.TypeInfo.TestResultSummary.fields = {
+ aggregatedResultsAnalysis: {
+ typeInfo: exports.TypeInfo.AggregatedResultsAnalysis
+ },
+ teamProject: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ testFailures: {
+ typeInfo: exports.TypeInfo.TestFailuresAnalysis
+ },
+ testResultsContext: {
+ typeInfo: exports.TypeInfo.TestResultsContext
+ }
+};
+exports.TypeInfo.TestResultsUpdateSettings.fields = {
+ flakySettings: {
+ typeInfo: exports.TypeInfo.FlakySettings
+ }
+};
+exports.TypeInfo.TestResultsWithWatermark.fields = {
+ changedDate: {
+ isDate: true,
+ },
+ pointsResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.PointsResults2
+ }
+};
+exports.TypeInfo.TestResultTrendFilter.fields = {
+ maxCompleteDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestRun.fields = {
+ buildConfiguration: {
+ typeInfo: exports.TypeInfo.BuildConfiguration
+ },
+ completedDate: {
+ isDate: true,
+ },
+ createdDate: {
+ isDate: true,
+ },
+ dueDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ release: {
+ typeInfo: exports.TypeInfo.ReleaseReference
+ },
+ runStatistics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RunStatistic
+ },
+ startedDate: {
+ isDate: true,
+ },
+ substate: {
+ enumType: exports.TypeInfo.TestRunSubstate
+ }
+};
+exports.TypeInfo.TestRun2.fields = {
+ completeDate: {
+ isDate: true,
+ },
+ creationDate: {
+ isDate: true,
+ },
+ deletedOn: {
+ isDate: true,
+ },
+ dueDate: {
+ isDate: true,
+ },
+ lastUpdated: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestRunCanceledEvent.fields = {
+ testRun: {
+ typeInfo: exports.TypeInfo.TestRun
+ }
+};
+exports.TypeInfo.TestRunCreatedEvent.fields = {
+ testRun: {
+ typeInfo: exports.TypeInfo.TestRun
+ }
+};
+exports.TypeInfo.TestRunEvent.fields = {
+ testRun: {
+ typeInfo: exports.TypeInfo.TestRun
+ }
+};
+exports.TypeInfo.TestRunEx2.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ dateTimeValue: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestRunStartedEvent.fields = {
+ testRun: {
+ typeInfo: exports.TypeInfo.TestRun
+ }
+};
+exports.TypeInfo.TestRunStatistic.fields = {
+ runStatistics: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RunStatistic
+ }
+};
+exports.TypeInfo.TestRunSummary2.fields = {
+ testRunCompletedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestRunWithDtlEnvEvent.fields = {
+ testRun: {
+ typeInfo: exports.TypeInfo.TestRun
+ }
+};
+exports.TypeInfo.TestSession.fields = {
+ endDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ source: {
+ enumType: exports.TypeInfo.TestSessionSource
+ },
+ startDate: {
+ isDate: true,
+ },
+ state: {
+ enumType: exports.TypeInfo.TestSessionState
+ }
+};
+exports.TypeInfo.TestSessionExploredWorkItemReference.fields = {
+ endTime: {
+ isDate: true,
+ },
+ startTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestSettings2.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestSubResult.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ resultGroupType: {
+ enumType: exports.TypeInfo.ResultGroupType
+ },
+ startedDate: {
+ isDate: true,
+ },
+ subResults: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestSubResult
+ }
+};
+exports.TypeInfo.TestSuite.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestSuite
+ },
+ lastPopulatedDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestSummaryForWorkItem.fields = {
+ summary: {
+ typeInfo: exports.TypeInfo.AggregatedDataForResultTrend
+ }
+};
+exports.TypeInfo.UpdatedProperties.fields = {
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.UpdateTestRunRequest.fields = {
+ attachmentsToAdd: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestResultAttachment
+ },
+ testRun: {
+ typeInfo: exports.TypeInfo.LegacyTestRun
+ }
+};
+exports.TypeInfo.UpdateTestRunResponse.fields = {
+ updatedProperties: {
+ typeInfo: exports.TypeInfo.UpdatedProperties
+ }
+};
+exports.TypeInfo.WorkItemToTestLinks.fields = {
+ executedIn: {
+ enumType: exports.TypeInfo.Service
+ }
+};
+
+
+/***/ }),
+
+/***/ 8969:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const TFS_TestManagement_Contracts = __nccwpck_require__(3047);
+const TfsCoreInterfaces = __nccwpck_require__(3931);
+/**
+ * Exclude Flags for suite test case object. Exclude Flags exclude various objects from payload depending on the value passed
+ */
+var ExcludeFlags;
+(function (ExcludeFlags) {
+ /**
+ * To exclude nothing
+ */
+ ExcludeFlags[ExcludeFlags["None"] = 0] = "None";
+ /**
+ * To exclude point assignments, pass exclude = 1
+ */
+ ExcludeFlags[ExcludeFlags["PointAssignments"] = 1] = "PointAssignments";
+ /**
+ * To exclude extra information (links, test plan, test suite), pass exclude = 2
+ */
+ ExcludeFlags[ExcludeFlags["ExtraInformation"] = 2] = "ExtraInformation";
+})(ExcludeFlags = exports.ExcludeFlags || (exports.ExcludeFlags = {}));
+var FailureType;
+(function (FailureType) {
+ FailureType[FailureType["None"] = 0] = "None";
+ FailureType[FailureType["Regression"] = 1] = "Regression";
+ FailureType[FailureType["New_Issue"] = 2] = "New_Issue";
+ FailureType[FailureType["Known_Issue"] = 3] = "Known_Issue";
+ FailureType[FailureType["Unknown"] = 4] = "Unknown";
+ FailureType[FailureType["Null_Value"] = 5] = "Null_Value";
+ FailureType[FailureType["MaxValue"] = 5] = "MaxValue";
+})(FailureType = exports.FailureType || (exports.FailureType = {}));
+var LastResolutionState;
+(function (LastResolutionState) {
+ LastResolutionState[LastResolutionState["None"] = 0] = "None";
+ LastResolutionState[LastResolutionState["NeedsInvestigation"] = 1] = "NeedsInvestigation";
+ LastResolutionState[LastResolutionState["TestIssue"] = 2] = "TestIssue";
+ LastResolutionState[LastResolutionState["ProductIssue"] = 3] = "ProductIssue";
+ LastResolutionState[LastResolutionState["ConfigurationIssue"] = 4] = "ConfigurationIssue";
+ LastResolutionState[LastResolutionState["NullValue"] = 5] = "NullValue";
+ LastResolutionState[LastResolutionState["MaxValue"] = 5] = "MaxValue";
+})(LastResolutionState = exports.LastResolutionState || (exports.LastResolutionState = {}));
+/**
+ * Enum representing the return code of data provider.
+ */
+var LibraryTestCasesDataReturnCode;
+(function (LibraryTestCasesDataReturnCode) {
+ LibraryTestCasesDataReturnCode[LibraryTestCasesDataReturnCode["Success"] = 0] = "Success";
+ LibraryTestCasesDataReturnCode[LibraryTestCasesDataReturnCode["Error"] = 1] = "Error";
+})(LibraryTestCasesDataReturnCode = exports.LibraryTestCasesDataReturnCode || (exports.LibraryTestCasesDataReturnCode = {}));
+var Outcome;
+(function (Outcome) {
+ /**
+ * Only used during an update to preserve the existing value.
+ */
+ Outcome[Outcome["Unspecified"] = 0] = "Unspecified";
+ /**
+ * Test has not been completed, or the test type does not report pass/failure.
+ */
+ Outcome[Outcome["None"] = 1] = "None";
+ /**
+ * Test was executed w/o any issues.
+ */
+ Outcome[Outcome["Passed"] = 2] = "Passed";
+ /**
+ * Test was executed, but there were issues. Issues may involve exceptions or failed assertions.
+ */
+ Outcome[Outcome["Failed"] = 3] = "Failed";
+ /**
+ * Test has completed, but we can't say if it passed or failed. May be used for aborted tests...
+ */
+ Outcome[Outcome["Inconclusive"] = 4] = "Inconclusive";
+ /**
+ * The test timed out
+ */
+ Outcome[Outcome["Timeout"] = 5] = "Timeout";
+ /**
+ * Test was aborted. This was not caused by a user gesture, but rather by a framework decision.
+ */
+ Outcome[Outcome["Aborted"] = 6] = "Aborted";
+ /**
+ * Test had it chance for been executed but was not, as ITestElement.IsRunnable == false.
+ */
+ Outcome[Outcome["Blocked"] = 7] = "Blocked";
+ /**
+ * Test was not executed. This was caused by a user gesture - e.g. user hit stop button.
+ */
+ Outcome[Outcome["NotExecuted"] = 8] = "NotExecuted";
+ /**
+ * To be used by Run level results. This is not a failure.
+ */
+ Outcome[Outcome["Warning"] = 9] = "Warning";
+ /**
+ * There was a system error while we were trying to execute a test.
+ */
+ Outcome[Outcome["Error"] = 10] = "Error";
+ /**
+ * Test is Not Applicable for execution.
+ */
+ Outcome[Outcome["NotApplicable"] = 11] = "NotApplicable";
+ /**
+ * Test is paused.
+ */
+ Outcome[Outcome["Paused"] = 12] = "Paused";
+ /**
+ * Test is currently executing. Added this for TCM charts
+ */
+ Outcome[Outcome["InProgress"] = 13] = "InProgress";
+ /**
+ * Test is not impacted. Added fot TIA.
+ */
+ Outcome[Outcome["NotImpacted"] = 14] = "NotImpacted";
+ Outcome[Outcome["MaxValue"] = 14] = "MaxValue";
+})(Outcome = exports.Outcome || (exports.Outcome = {}));
+var PointState;
+(function (PointState) {
+ /**
+ * Default
+ */
+ PointState[PointState["None"] = 0] = "None";
+ /**
+ * The test point needs to be executed in order for the test pass to be considered complete. Either the test has not been run before or the previous run failed.
+ */
+ PointState[PointState["Ready"] = 1] = "Ready";
+ /**
+ * The test has passed successfully and does not need to be re-run for the test pass to be considered complete.
+ */
+ PointState[PointState["Completed"] = 2] = "Completed";
+ /**
+ * The test point needs to be executed but is not able to.
+ */
+ PointState[PointState["NotReady"] = 3] = "NotReady";
+ /**
+ * The test is being executed.
+ */
+ PointState[PointState["InProgress"] = 4] = "InProgress";
+ PointState[PointState["MaxValue"] = 4] = "MaxValue";
+})(PointState = exports.PointState || (exports.PointState = {}));
+var ResultState;
+(function (ResultState) {
+ /**
+ * Only used during an update to preserve the existing value.
+ */
+ ResultState[ResultState["Unspecified"] = 0] = "Unspecified";
+ /**
+ * Test is in the execution queue, was not started yet.
+ */
+ ResultState[ResultState["Pending"] = 1] = "Pending";
+ /**
+ * Test has been queued. This is applicable when a test case is queued for execution
+ */
+ ResultState[ResultState["Queued"] = 2] = "Queued";
+ /**
+ * Test is currently executing.
+ */
+ ResultState[ResultState["InProgress"] = 3] = "InProgress";
+ /**
+ * Test has been paused. This is applicable when a test case is paused by the user (For e.g. Manual Tester can pause the execution of the manual test case)
+ */
+ ResultState[ResultState["Paused"] = 4] = "Paused";
+ /**
+ * Test has completed, but there is no quantitative measure of completeness. This may apply to load tests.
+ */
+ ResultState[ResultState["Completed"] = 5] = "Completed";
+ ResultState[ResultState["MaxValue"] = 5] = "MaxValue";
+})(ResultState = exports.ResultState || (exports.ResultState = {}));
+var SuiteEntryTypes;
+(function (SuiteEntryTypes) {
+ /**
+ * Test Case
+ */
+ SuiteEntryTypes[SuiteEntryTypes["TestCase"] = 0] = "TestCase";
+ /**
+ * Child Suite
+ */
+ SuiteEntryTypes[SuiteEntryTypes["Suite"] = 1] = "Suite";
+})(SuiteEntryTypes = exports.SuiteEntryTypes || (exports.SuiteEntryTypes = {}));
+/**
+ * Option to get details in response
+ */
+var SuiteExpand;
+(function (SuiteExpand) {
+ /**
+ * Dont include any of the expansions in output.
+ */
+ SuiteExpand[SuiteExpand["None"] = 0] = "None";
+ /**
+ * Include children in response.
+ */
+ SuiteExpand[SuiteExpand["Children"] = 1] = "Children";
+ /**
+ * Include default testers in response.
+ */
+ SuiteExpand[SuiteExpand["DefaultTesters"] = 2] = "DefaultTesters";
+})(SuiteExpand = exports.SuiteExpand || (exports.SuiteExpand = {}));
+var TestEntityTypes;
+(function (TestEntityTypes) {
+ TestEntityTypes[TestEntityTypes["TestCase"] = 0] = "TestCase";
+ TestEntityTypes[TestEntityTypes["TestPoint"] = 1] = "TestPoint";
+})(TestEntityTypes = exports.TestEntityTypes || (exports.TestEntityTypes = {}));
+/**
+ * Enum used to define the queries used in Test Plans Library.
+ */
+var TestPlansLibraryQuery;
+(function (TestPlansLibraryQuery) {
+ TestPlansLibraryQuery[TestPlansLibraryQuery["None"] = 0] = "None";
+ TestPlansLibraryQuery[TestPlansLibraryQuery["AllTestCases"] = 1] = "AllTestCases";
+ TestPlansLibraryQuery[TestPlansLibraryQuery["TestCasesWithActiveBugs"] = 2] = "TestCasesWithActiveBugs";
+ TestPlansLibraryQuery[TestPlansLibraryQuery["TestCasesNotLinkedToRequirements"] = 3] = "TestCasesNotLinkedToRequirements";
+ TestPlansLibraryQuery[TestPlansLibraryQuery["TestCasesLinkedToRequirements"] = 4] = "TestCasesLinkedToRequirements";
+ TestPlansLibraryQuery[TestPlansLibraryQuery["AllSharedSteps"] = 11] = "AllSharedSteps";
+ TestPlansLibraryQuery[TestPlansLibraryQuery["SharedStepsNotLinkedToRequirement"] = 12] = "SharedStepsNotLinkedToRequirement";
+})(TestPlansLibraryQuery = exports.TestPlansLibraryQuery || (exports.TestPlansLibraryQuery = {}));
+var TestPlansLibraryWorkItemFilterMode;
+(function (TestPlansLibraryWorkItemFilterMode) {
+ /**
+ * Default. Have the field values separated by an OR clause.
+ */
+ TestPlansLibraryWorkItemFilterMode[TestPlansLibraryWorkItemFilterMode["Or"] = 0] = "Or";
+ /**
+ * Have the field values separated by an AND clause.
+ */
+ TestPlansLibraryWorkItemFilterMode[TestPlansLibraryWorkItemFilterMode["And"] = 1] = "And";
+})(TestPlansLibraryWorkItemFilterMode = exports.TestPlansLibraryWorkItemFilterMode || (exports.TestPlansLibraryWorkItemFilterMode = {}));
+/**
+ * Type of TestSuite
+ */
+var TestSuiteType;
+(function (TestSuiteType) {
+ /**
+ * Default suite type
+ */
+ TestSuiteType[TestSuiteType["None"] = 0] = "None";
+ /**
+ * Query Based test Suite
+ */
+ TestSuiteType[TestSuiteType["DynamicTestSuite"] = 1] = "DynamicTestSuite";
+ /**
+ * Static Test Suite
+ */
+ TestSuiteType[TestSuiteType["StaticTestSuite"] = 2] = "StaticTestSuite";
+ /**
+ * Requirement based Test Suite
+ */
+ TestSuiteType[TestSuiteType["RequirementTestSuite"] = 3] = "RequirementTestSuite";
+})(TestSuiteType = exports.TestSuiteType || (exports.TestSuiteType = {}));
+var UserFriendlyTestOutcome;
+(function (UserFriendlyTestOutcome) {
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["InProgress"] = 0] = "InProgress";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Blocked"] = 1] = "Blocked";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Failed"] = 2] = "Failed";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Passed"] = 3] = "Passed";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Ready"] = 4] = "Ready";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["NotApplicable"] = 5] = "NotApplicable";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Paused"] = 6] = "Paused";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Timeout"] = 7] = "Timeout";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Warning"] = 8] = "Warning";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Error"] = 9] = "Error";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["NotExecuted"] = 10] = "NotExecuted";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Inconclusive"] = 11] = "Inconclusive";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Aborted"] = 12] = "Aborted";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["None"] = 13] = "None";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["NotImpacted"] = 14] = "NotImpacted";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["Unspecified"] = 15] = "Unspecified";
+ UserFriendlyTestOutcome[UserFriendlyTestOutcome["MaxValue"] = 15] = "MaxValue";
+})(UserFriendlyTestOutcome = exports.UserFriendlyTestOutcome || (exports.UserFriendlyTestOutcome = {}));
+exports.TypeInfo = {
+ CloneOperationCommonResponse: {},
+ CloneTestCaseOperationInformation: {},
+ CloneTestPlanOperationInformation: {},
+ CloneTestPlanParams: {},
+ CloneTestSuiteOperationInformation: {},
+ DestinationTestPlanCloneParams: {},
+ ExcludeFlags: {
+ enumValues: {
+ "none": 0,
+ "pointAssignments": 1,
+ "extraInformation": 2
+ }
+ },
+ FailureType: {
+ enumValues: {
+ "none": 0,
+ "regression": 1,
+ "new_Issue": 2,
+ "known_Issue": 3,
+ "unknown": 4,
+ "null_Value": 5,
+ "maxValue": 5
+ }
+ },
+ LastResolutionState: {
+ enumValues: {
+ "none": 0,
+ "needsInvestigation": 1,
+ "testIssue": 2,
+ "productIssue": 3,
+ "configurationIssue": 4,
+ "nullValue": 5,
+ "maxValue": 5
+ }
+ },
+ LibraryTestCasesDataReturnCode: {
+ enumValues: {
+ "success": 0,
+ "error": 1
+ }
+ },
+ LibraryWorkItemsData: {},
+ LibraryWorkItemsDataProviderRequest: {},
+ Outcome: {
+ enumValues: {
+ "unspecified": 0,
+ "none": 1,
+ "passed": 2,
+ "failed": 3,
+ "inconclusive": 4,
+ "timeout": 5,
+ "aborted": 6,
+ "blocked": 7,
+ "notExecuted": 8,
+ "warning": 9,
+ "error": 10,
+ "notApplicable": 11,
+ "paused": 12,
+ "inProgress": 13,
+ "notImpacted": 14,
+ "maxValue": 14
+ }
+ },
+ PointState: {
+ enumValues: {
+ "none": 0,
+ "ready": 1,
+ "completed": 2,
+ "notReady": 3,
+ "inProgress": 4,
+ "maxValue": 4
+ }
+ },
+ Results: {},
+ ResultState: {
+ enumValues: {
+ "unspecified": 0,
+ "pending": 1,
+ "queued": 2,
+ "inProgress": 3,
+ "paused": 4,
+ "completed": 5,
+ "maxValue": 5
+ }
+ },
+ SourceTestplanResponse: {},
+ SourceTestSuiteResponse: {},
+ SuiteEntry: {},
+ SuiteEntryTypes: {
+ enumValues: {
+ "testCase": 0,
+ "suite": 1
+ }
+ },
+ SuiteEntryUpdateParams: {},
+ SuiteExpand: {
+ enumValues: {
+ "none": 0,
+ "children": 1,
+ "defaultTesters": 2
+ }
+ },
+ TestCase: {},
+ TestCaseAssociatedResult: {},
+ TestCaseResultsData: {},
+ TestConfiguration: {},
+ TestConfigurationCreateUpdateParameters: {},
+ TestEntityTypes: {
+ enumValues: {
+ "testCase": 0,
+ "testPoint": 1
+ }
+ },
+ TestPlan: {},
+ TestPlanCreateParams: {},
+ TestPlanDetailedReference: {},
+ TestPlansHubRefreshData: {},
+ TestPlansLibraryQuery: {
+ enumValues: {
+ "none": 0,
+ "allTestCases": 1,
+ "testCasesWithActiveBugs": 2,
+ "testCasesNotLinkedToRequirements": 3,
+ "testCasesLinkedToRequirements": 4,
+ "allSharedSteps": 11,
+ "sharedStepsNotLinkedToRequirement": 12
+ }
+ },
+ TestPlansLibraryWorkItemFilter: {},
+ TestPlansLibraryWorkItemFilterMode: {
+ enumValues: {
+ "or": 0,
+ "and": 1
+ }
+ },
+ TestPlanUpdateParams: {},
+ TestPoint: {},
+ TestPointResults: {},
+ TestPointUpdateParams: {},
+ TestSuite: {},
+ TestSuiteCreateParams: {},
+ TestSuiteReferenceWithProject: {},
+ TestSuiteType: {
+ enumValues: {
+ "none": 0,
+ "dynamicTestSuite": 1,
+ "staticTestSuite": 2,
+ "requirementTestSuite": 3
+ }
+ },
+ TestVariable: {},
+ UserFriendlyTestOutcome: {
+ enumValues: {
+ "inProgress": 0,
+ "blocked": 1,
+ "failed": 2,
+ "passed": 3,
+ "ready": 4,
+ "notApplicable": 5,
+ "paused": 6,
+ "timeout": 7,
+ "warning": 8,
+ "error": 9,
+ "notExecuted": 10,
+ "inconclusive": 11,
+ "aborted": 12,
+ "none": 13,
+ "notImpacted": 14,
+ "unspecified": 15,
+ "maxValue": 15
+ }
+ },
+};
+exports.TypeInfo.CloneOperationCommonResponse.fields = {
+ completionDate: {
+ isDate: true,
+ },
+ creationDate: {
+ isDate: true,
+ },
+ state: {
+ enumType: TFS_TestManagement_Contracts.TypeInfo.CloneOperationState
+ }
+};
+exports.TypeInfo.CloneTestCaseOperationInformation.fields = {
+ cloneOperationResponse: {
+ typeInfo: exports.TypeInfo.CloneOperationCommonResponse
+ },
+ destinationTestSuite: {
+ typeInfo: exports.TypeInfo.TestSuiteReferenceWithProject
+ },
+ sourceTestSuite: {
+ typeInfo: exports.TypeInfo.SourceTestSuiteResponse
+ }
+};
+exports.TypeInfo.CloneTestPlanOperationInformation.fields = {
+ cloneOperationResponse: {
+ typeInfo: exports.TypeInfo.CloneOperationCommonResponse
+ },
+ destinationTestPlan: {
+ typeInfo: exports.TypeInfo.TestPlan
+ },
+ sourceTestPlan: {
+ typeInfo: exports.TypeInfo.SourceTestplanResponse
+ }
+};
+exports.TypeInfo.CloneTestPlanParams.fields = {
+ destinationTestPlan: {
+ typeInfo: exports.TypeInfo.DestinationTestPlanCloneParams
+ }
+};
+exports.TypeInfo.CloneTestSuiteOperationInformation.fields = {
+ clonedTestSuite: {
+ typeInfo: exports.TypeInfo.TestSuiteReferenceWithProject
+ },
+ cloneOperationResponse: {
+ typeInfo: exports.TypeInfo.CloneOperationCommonResponse
+ },
+ destinationTestSuite: {
+ typeInfo: exports.TypeInfo.TestSuiteReferenceWithProject
+ },
+ sourceTestSuite: {
+ typeInfo: exports.TypeInfo.TestSuiteReferenceWithProject
+ }
+};
+exports.TypeInfo.DestinationTestPlanCloneParams.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.LibraryWorkItemsData.fields = {
+ returnCode: {
+ enumType: exports.TypeInfo.LibraryTestCasesDataReturnCode
+ }
+};
+exports.TypeInfo.LibraryWorkItemsDataProviderRequest.fields = {
+ filterValues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPlansLibraryWorkItemFilter
+ },
+ libraryQueryType: {
+ enumType: exports.TypeInfo.TestPlansLibraryQuery
+ }
+};
+exports.TypeInfo.Results.fields = {
+ outcome: {
+ enumType: exports.TypeInfo.Outcome
+ }
+};
+exports.TypeInfo.SourceTestplanResponse.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.SourceTestSuiteResponse.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.SuiteEntry.fields = {
+ suiteEntryType: {
+ enumType: exports.TypeInfo.SuiteEntryTypes
+ }
+};
+exports.TypeInfo.SuiteEntryUpdateParams.fields = {
+ suiteEntryType: {
+ enumType: exports.TypeInfo.SuiteEntryTypes
+ }
+};
+exports.TypeInfo.TestCase.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.TestCaseAssociatedResult.fields = {
+ completedDate: {
+ isDate: true,
+ },
+ outcome: {
+ enumType: exports.TypeInfo.UserFriendlyTestOutcome
+ }
+};
+exports.TypeInfo.TestCaseResultsData.fields = {
+ results: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestCaseAssociatedResult
+ }
+};
+exports.TypeInfo.TestConfiguration.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ state: {
+ enumType: TFS_TestManagement_Contracts.TypeInfo.TestConfigurationState
+ }
+};
+exports.TypeInfo.TestConfigurationCreateUpdateParameters.fields = {
+ state: {
+ enumType: TFS_TestManagement_Contracts.TypeInfo.TestConfigurationState
+ }
+};
+exports.TypeInfo.TestPlan.fields = {
+ endDate: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ startDate: {
+ isDate: true,
+ },
+ updatedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPlanCreateParams.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPlanDetailedReference.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPlansHubRefreshData.fields = {
+ testCases: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestCase
+ },
+ testPlan: {
+ typeInfo: exports.TypeInfo.TestPlanDetailedReference
+ },
+ testPoints: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestPoint
+ },
+ testSuites: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestSuite
+ }
+};
+exports.TypeInfo.TestPlansLibraryWorkItemFilter.fields = {
+ filterMode: {
+ enumType: exports.TypeInfo.TestPlansLibraryWorkItemFilterMode
+ }
+};
+exports.TypeInfo.TestPlanUpdateParams.fields = {
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TestPoint.fields = {
+ lastResetToActive: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ results: {
+ typeInfo: exports.TypeInfo.TestPointResults
+ }
+};
+exports.TypeInfo.TestPointResults.fields = {
+ failureType: {
+ enumType: exports.TypeInfo.FailureType
+ },
+ lastResolutionState: {
+ enumType: exports.TypeInfo.LastResolutionState
+ },
+ lastResultDetails: {
+ typeInfo: TFS_TestManagement_Contracts.TypeInfo.LastResultDetails
+ },
+ lastResultState: {
+ enumType: exports.TypeInfo.ResultState
+ },
+ outcome: {
+ enumType: exports.TypeInfo.Outcome
+ },
+ state: {
+ enumType: exports.TypeInfo.PointState
+ }
+};
+exports.TypeInfo.TestPointUpdateParams.fields = {
+ results: {
+ typeInfo: exports.TypeInfo.Results
+ }
+};
+exports.TypeInfo.TestSuite.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TestSuite
+ },
+ lastPopulatedDate: {
+ isDate: true,
+ },
+ lastUpdatedDate: {
+ isDate: true,
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ },
+ suiteType: {
+ enumType: exports.TypeInfo.TestSuiteType
+ }
+};
+exports.TypeInfo.TestSuiteCreateParams.fields = {
+ suiteType: {
+ enumType: exports.TypeInfo.TestSuiteType
+ }
+};
+exports.TypeInfo.TestSuiteReferenceWithProject.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.TestVariable.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+
+
+/***/ }),
+
+/***/ 9003:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const TfsCoreInterfaces = __nccwpck_require__(3931);
+var ItemContentType;
+(function (ItemContentType) {
+ ItemContentType[ItemContentType["RawText"] = 0] = "RawText";
+ ItemContentType[ItemContentType["Base64Encoded"] = 1] = "Base64Encoded";
+})(ItemContentType = exports.ItemContentType || (exports.ItemContentType = {}));
+/**
+ * Options for Version handling.
+ */
+var TfvcVersionOption;
+(function (TfvcVersionOption) {
+ /**
+ * None.
+ */
+ TfvcVersionOption[TfvcVersionOption["None"] = 0] = "None";
+ /**
+ * Return the previous version.
+ */
+ TfvcVersionOption[TfvcVersionOption["Previous"] = 1] = "Previous";
+ /**
+ * Only usuable with versiontype MergeSource and integer versions, uses RenameSource identifier instead of Merge identifier.
+ */
+ TfvcVersionOption[TfvcVersionOption["UseRename"] = 2] = "UseRename";
+})(TfvcVersionOption = exports.TfvcVersionOption || (exports.TfvcVersionOption = {}));
+/**
+ * Type of Version object
+ */
+var TfvcVersionType;
+(function (TfvcVersionType) {
+ /**
+ * Version is treated as a ChangesetId.
+ */
+ TfvcVersionType[TfvcVersionType["None"] = 0] = "None";
+ /**
+ * Version is treated as a ChangesetId.
+ */
+ TfvcVersionType[TfvcVersionType["Changeset"] = 1] = "Changeset";
+ /**
+ * Version is treated as a Shelveset name and owner.
+ */
+ TfvcVersionType[TfvcVersionType["Shelveset"] = 2] = "Shelveset";
+ /**
+ * Version is treated as a Change.
+ */
+ TfvcVersionType[TfvcVersionType["Change"] = 3] = "Change";
+ /**
+ * Version is treated as a Date.
+ */
+ TfvcVersionType[TfvcVersionType["Date"] = 4] = "Date";
+ /**
+ * If Version is defined the Latest of that Version will be used, if no version is defined the latest ChangesetId will be used.
+ */
+ TfvcVersionType[TfvcVersionType["Latest"] = 5] = "Latest";
+ /**
+ * Version will be treated as a Tip, if no version is defined latest will be used.
+ */
+ TfvcVersionType[TfvcVersionType["Tip"] = 6] = "Tip";
+ /**
+ * Version will be treated as a MergeSource.
+ */
+ TfvcVersionType[TfvcVersionType["MergeSource"] = 7] = "MergeSource";
+})(TfvcVersionType = exports.TfvcVersionType || (exports.TfvcVersionType = {}));
+var VersionControlChangeType;
+(function (VersionControlChangeType) {
+ VersionControlChangeType[VersionControlChangeType["None"] = 0] = "None";
+ VersionControlChangeType[VersionControlChangeType["Add"] = 1] = "Add";
+ VersionControlChangeType[VersionControlChangeType["Edit"] = 2] = "Edit";
+ VersionControlChangeType[VersionControlChangeType["Encoding"] = 4] = "Encoding";
+ VersionControlChangeType[VersionControlChangeType["Rename"] = 8] = "Rename";
+ VersionControlChangeType[VersionControlChangeType["Delete"] = 16] = "Delete";
+ VersionControlChangeType[VersionControlChangeType["Undelete"] = 32] = "Undelete";
+ VersionControlChangeType[VersionControlChangeType["Branch"] = 64] = "Branch";
+ VersionControlChangeType[VersionControlChangeType["Merge"] = 128] = "Merge";
+ VersionControlChangeType[VersionControlChangeType["Lock"] = 256] = "Lock";
+ VersionControlChangeType[VersionControlChangeType["Rollback"] = 512] = "Rollback";
+ VersionControlChangeType[VersionControlChangeType["SourceRename"] = 1024] = "SourceRename";
+ VersionControlChangeType[VersionControlChangeType["TargetRename"] = 2048] = "TargetRename";
+ VersionControlChangeType[VersionControlChangeType["Property"] = 4096] = "Property";
+ VersionControlChangeType[VersionControlChangeType["All"] = 8191] = "All";
+})(VersionControlChangeType = exports.VersionControlChangeType || (exports.VersionControlChangeType = {}));
+var VersionControlRecursionType;
+(function (VersionControlRecursionType) {
+ /**
+ * Only return the specified item.
+ */
+ VersionControlRecursionType[VersionControlRecursionType["None"] = 0] = "None";
+ /**
+ * Return the specified item and its direct children.
+ */
+ VersionControlRecursionType[VersionControlRecursionType["OneLevel"] = 1] = "OneLevel";
+ /**
+ * Return the specified item and its direct children, as well as recursive chains of nested child folders that only contain a single folder.
+ */
+ VersionControlRecursionType[VersionControlRecursionType["OneLevelPlusNestedEmptyFolders"] = 4] = "OneLevelPlusNestedEmptyFolders";
+ /**
+ * Return specified item and all descendants
+ */
+ VersionControlRecursionType[VersionControlRecursionType["Full"] = 120] = "Full";
+})(VersionControlRecursionType = exports.VersionControlRecursionType || (exports.VersionControlRecursionType = {}));
+exports.TypeInfo = {
+ Change: {},
+ GitRepository: {},
+ GitRepositoryRef: {},
+ ItemContent: {},
+ ItemContentType: {
+ enumValues: {
+ "rawText": 0,
+ "base64Encoded": 1
+ }
+ },
+ TfvcBranch: {},
+ TfvcBranchRef: {},
+ TfvcChange: {},
+ TfvcChangeset: {},
+ TfvcChangesetRef: {},
+ TfvcItem: {},
+ TfvcItemDescriptor: {},
+ TfvcItemRequestData: {},
+ TfvcLabel: {},
+ TfvcLabelRef: {},
+ TfvcShelveset: {},
+ TfvcShelvesetRef: {},
+ TfvcVersionDescriptor: {},
+ TfvcVersionOption: {
+ enumValues: {
+ "none": 0,
+ "previous": 1,
+ "useRename": 2
+ }
+ },
+ TfvcVersionType: {
+ enumValues: {
+ "none": 0,
+ "changeset": 1,
+ "shelveset": 2,
+ "change": 3,
+ "date": 4,
+ "latest": 5,
+ "tip": 6,
+ "mergeSource": 7
+ }
+ },
+ VersionControlChangeType: {
+ enumValues: {
+ "none": 0,
+ "add": 1,
+ "edit": 2,
+ "encoding": 4,
+ "rename": 8,
+ "delete": 16,
+ "undelete": 32,
+ "branch": 64,
+ "merge": 128,
+ "lock": 256,
+ "rollback": 512,
+ "sourceRename": 1024,
+ "targetRename": 2048,
+ "property": 4096,
+ "all": 8191
+ }
+ },
+ VersionControlProjectInfo: {},
+ VersionControlRecursionType: {
+ enumValues: {
+ "none": 0,
+ "oneLevel": 1,
+ "oneLevelPlusNestedEmptyFolders": 4,
+ "full": 120
+ }
+ },
+};
+exports.TypeInfo.Change.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ newContent: {
+ typeInfo: exports.TypeInfo.ItemContent
+ }
+};
+exports.TypeInfo.GitRepository.fields = {
+ parentRepository: {
+ typeInfo: exports.TypeInfo.GitRepositoryRef
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.GitRepositoryRef.fields = {
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+exports.TypeInfo.ItemContent.fields = {
+ contentType: {
+ enumType: exports.TypeInfo.ItemContentType
+ }
+};
+exports.TypeInfo.TfvcBranch.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcBranch
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcBranchRef.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcChange.fields = {
+ changeType: {
+ enumType: exports.TypeInfo.VersionControlChangeType
+ },
+ newContent: {
+ typeInfo: exports.TypeInfo.ItemContent
+ }
+};
+exports.TypeInfo.TfvcChangeset.fields = {
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcChange
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcChangesetRef.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcItem.fields = {
+ changeDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcItemDescriptor.fields = {
+ recursionLevel: {
+ enumType: exports.TypeInfo.VersionControlRecursionType
+ },
+ versionOption: {
+ enumType: exports.TypeInfo.TfvcVersionOption
+ },
+ versionType: {
+ enumType: exports.TypeInfo.TfvcVersionType
+ }
+};
+exports.TypeInfo.TfvcItemRequestData.fields = {
+ itemDescriptors: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcItemDescriptor
+ }
+};
+exports.TypeInfo.TfvcLabel.fields = {
+ items: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcItem
+ },
+ modifiedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcLabelRef.fields = {
+ modifiedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcShelveset.fields = {
+ changes: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TfvcChange
+ },
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcShelvesetRef.fields = {
+ createdDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TfvcVersionDescriptor.fields = {
+ versionOption: {
+ enumType: exports.TypeInfo.TfvcVersionOption
+ },
+ versionType: {
+ enumType: exports.TypeInfo.TfvcVersionType
+ }
+};
+exports.TypeInfo.VersionControlProjectInfo.fields = {
+ defaultSourceControlType: {
+ enumType: TfsCoreInterfaces.TypeInfo.SourceControlTypes
+ },
+ project: {
+ typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
+ }
+};
+
+
+/***/ }),
+
+/***/ 5787:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const GitInterfaces = __nccwpck_require__(9803);
+/**
+ * Wiki types.
+ */
+var WikiType;
+(function (WikiType) {
+ /**
+ * Indicates that the wiki is provisioned for the team project
+ */
+ WikiType[WikiType["ProjectWiki"] = 0] = "ProjectWiki";
+ /**
+ * Indicates that the wiki is published from a git repository
+ */
+ WikiType[WikiType["CodeWiki"] = 1] = "CodeWiki";
+})(WikiType = exports.WikiType || (exports.WikiType = {}));
+exports.TypeInfo = {
+ Wiki: {},
+ WikiCreateBaseParameters: {},
+ WikiCreateParametersV2: {},
+ WikiPageDetail: {},
+ WikiPageStat: {},
+ WikiPageViewStats: {},
+ WikiType: {
+ enumValues: {
+ "projectWiki": 0,
+ "codeWiki": 1
+ }
+ },
+ WikiUpdateParameters: {},
+ WikiV2: {},
+};
+exports.TypeInfo.Wiki.fields = {
+ repository: {
+ typeInfo: GitInterfaces.TypeInfo.GitRepository
+ }
+};
+exports.TypeInfo.WikiCreateBaseParameters.fields = {
+ type: {
+ enumType: exports.TypeInfo.WikiType
+ }
+};
+exports.TypeInfo.WikiCreateParametersV2.fields = {
+ type: {
+ enumType: exports.TypeInfo.WikiType
+ },
+ version: {
+ typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
+ }
+};
+exports.TypeInfo.WikiPageDetail.fields = {
+ viewStats: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WikiPageStat
+ }
+};
+exports.TypeInfo.WikiPageStat.fields = {
+ day: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.WikiPageViewStats.fields = {
+ lastViewedTime: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.WikiUpdateParameters.fields = {
+ versions: {
+ isArray: true,
+ typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
+ }
+};
+exports.TypeInfo.WikiV2.fields = {
+ type: {
+ enumType: exports.TypeInfo.WikiType
+ },
+ versions: {
+ isArray: true,
+ typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
+ }
+};
+
+
+/***/ }),
+
+/***/ 7480:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const SystemInterfaces = __nccwpck_require__(6790);
+/**
+ * Definition of the type of backlog level
+ */
+var BacklogType;
+(function (BacklogType) {
+ /**
+ * Portfolio backlog level
+ */
+ BacklogType[BacklogType["Portfolio"] = 0] = "Portfolio";
+ /**
+ * Requirement backlog level
+ */
+ BacklogType[BacklogType["Requirement"] = 1] = "Requirement";
+ /**
+ * Task backlog level
+ */
+ BacklogType[BacklogType["Task"] = 2] = "Task";
+})(BacklogType = exports.BacklogType || (exports.BacklogType = {}));
+/**
+ * Determines what columns to include on the board badge
+ */
+var BoardBadgeColumnOptions;
+(function (BoardBadgeColumnOptions) {
+ /**
+ * Only include In Progress columns
+ */
+ BoardBadgeColumnOptions[BoardBadgeColumnOptions["InProgressColumns"] = 0] = "InProgressColumns";
+ /**
+ * Include all columns
+ */
+ BoardBadgeColumnOptions[BoardBadgeColumnOptions["AllColumns"] = 1] = "AllColumns";
+ /**
+ * Include a custom set of columns
+ */
+ BoardBadgeColumnOptions[BoardBadgeColumnOptions["CustomColumns"] = 2] = "CustomColumns";
+})(BoardBadgeColumnOptions = exports.BoardBadgeColumnOptions || (exports.BoardBadgeColumnOptions = {}));
+var BoardColumnType;
+(function (BoardColumnType) {
+ BoardColumnType[BoardColumnType["Incoming"] = 0] = "Incoming";
+ BoardColumnType[BoardColumnType["InProgress"] = 1] = "InProgress";
+ BoardColumnType[BoardColumnType["Outgoing"] = 2] = "Outgoing";
+})(BoardColumnType = exports.BoardColumnType || (exports.BoardColumnType = {}));
+/**
+ * The behavior of the work item types that are in the work item category specified in the BugWorkItems section in the Process Configuration
+ */
+var BugsBehavior;
+(function (BugsBehavior) {
+ BugsBehavior[BugsBehavior["Off"] = 0] = "Off";
+ BugsBehavior[BugsBehavior["AsRequirements"] = 1] = "AsRequirements";
+ BugsBehavior[BugsBehavior["AsTasks"] = 2] = "AsTasks";
+})(BugsBehavior = exports.BugsBehavior || (exports.BugsBehavior = {}));
+var FieldType;
+(function (FieldType) {
+ FieldType[FieldType["String"] = 0] = "String";
+ FieldType[FieldType["PlainText"] = 1] = "PlainText";
+ FieldType[FieldType["Integer"] = 2] = "Integer";
+ FieldType[FieldType["DateTime"] = 3] = "DateTime";
+ FieldType[FieldType["TreePath"] = 4] = "TreePath";
+ FieldType[FieldType["Boolean"] = 5] = "Boolean";
+ FieldType[FieldType["Double"] = 6] = "Double";
+})(FieldType = exports.FieldType || (exports.FieldType = {}));
+/**
+ * Enum for the various modes of identity picker
+ */
+var IdentityDisplayFormat;
+(function (IdentityDisplayFormat) {
+ /**
+ * Display avatar only
+ */
+ IdentityDisplayFormat[IdentityDisplayFormat["AvatarOnly"] = 0] = "AvatarOnly";
+ /**
+ * Display Full name only
+ */
+ IdentityDisplayFormat[IdentityDisplayFormat["FullName"] = 1] = "FullName";
+ /**
+ * Display Avatar and Full name
+ */
+ IdentityDisplayFormat[IdentityDisplayFormat["AvatarAndFullName"] = 2] = "AvatarAndFullName";
+})(IdentityDisplayFormat = exports.IdentityDisplayFormat || (exports.IdentityDisplayFormat = {}));
+/**
+ * Enum for the various types of plans
+ */
+var PlanType;
+(function (PlanType) {
+ PlanType[PlanType["DeliveryTimelineView"] = 0] = "DeliveryTimelineView";
+})(PlanType = exports.PlanType || (exports.PlanType = {}));
+/**
+ * Flag for permissions a user can have for this plan.
+ */
+var PlanUserPermissions;
+(function (PlanUserPermissions) {
+ /**
+ * None
+ */
+ PlanUserPermissions[PlanUserPermissions["None"] = 0] = "None";
+ /**
+ * Permission to view this plan.
+ */
+ PlanUserPermissions[PlanUserPermissions["View"] = 1] = "View";
+ /**
+ * Permission to update this plan.
+ */
+ PlanUserPermissions[PlanUserPermissions["Edit"] = 2] = "Edit";
+ /**
+ * Permission to delete this plan.
+ */
+ PlanUserPermissions[PlanUserPermissions["Delete"] = 4] = "Delete";
+ /**
+ * Permission to manage this plan.
+ */
+ PlanUserPermissions[PlanUserPermissions["Manage"] = 8] = "Manage";
+ /**
+ * Full control permission for this plan.
+ */
+ PlanUserPermissions[PlanUserPermissions["AllPermissions"] = 15] = "AllPermissions";
+})(PlanUserPermissions = exports.PlanUserPermissions || (exports.PlanUserPermissions = {}));
+var TimeFrame;
+(function (TimeFrame) {
+ TimeFrame[TimeFrame["Past"] = 0] = "Past";
+ TimeFrame[TimeFrame["Current"] = 1] = "Current";
+ TimeFrame[TimeFrame["Future"] = 2] = "Future";
+})(TimeFrame = exports.TimeFrame || (exports.TimeFrame = {}));
+var TimelineCriteriaStatusCode;
+(function (TimelineCriteriaStatusCode) {
+ /**
+ * No error - filter is good.
+ */
+ TimelineCriteriaStatusCode[TimelineCriteriaStatusCode["OK"] = 0] = "OK";
+ /**
+ * One of the filter clause is invalid.
+ */
+ TimelineCriteriaStatusCode[TimelineCriteriaStatusCode["InvalidFilterClause"] = 1] = "InvalidFilterClause";
+ /**
+ * Unknown error.
+ */
+ TimelineCriteriaStatusCode[TimelineCriteriaStatusCode["Unknown"] = 2] = "Unknown";
+})(TimelineCriteriaStatusCode = exports.TimelineCriteriaStatusCode || (exports.TimelineCriteriaStatusCode = {}));
+var TimelineIterationStatusCode;
+(function (TimelineIterationStatusCode) {
+ /**
+ * No error - iteration data is good.
+ */
+ TimelineIterationStatusCode[TimelineIterationStatusCode["OK"] = 0] = "OK";
+ /**
+ * This iteration overlaps with another iteration, no data is returned for this iteration.
+ */
+ TimelineIterationStatusCode[TimelineIterationStatusCode["IsOverlapping"] = 1] = "IsOverlapping";
+})(TimelineIterationStatusCode = exports.TimelineIterationStatusCode || (exports.TimelineIterationStatusCode = {}));
+var TimelineTeamStatusCode;
+(function (TimelineTeamStatusCode) {
+ /**
+ * No error - all data for team is good.
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["OK"] = 0] = "OK";
+ /**
+ * Team does not exist or access is denied.
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["DoesntExistOrAccessDenied"] = 1] = "DoesntExistOrAccessDenied";
+ /**
+ * Maximum number of teams was exceeded. No team data will be returned for this team.
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["MaxTeamsExceeded"] = 2] = "MaxTeamsExceeded";
+ /**
+ * Maximum number of team fields (ie Area paths) have been exceeded. No team data will be returned for this team.
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["MaxTeamFieldsExceeded"] = 3] = "MaxTeamFieldsExceeded";
+ /**
+ * Backlog does not exist or is missing crucial information.
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["BacklogInError"] = 4] = "BacklogInError";
+ /**
+ * Team field value is not set for this team. No team data will be returned for this team
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["MissingTeamFieldValue"] = 5] = "MissingTeamFieldValue";
+ /**
+ * Team does not have a single iteration with date range.
+ */
+ TimelineTeamStatusCode[TimelineTeamStatusCode["NoIterationsExist"] = 6] = "NoIterationsExist";
+})(TimelineTeamStatusCode = exports.TimelineTeamStatusCode || (exports.TimelineTeamStatusCode = {}));
+exports.TypeInfo = {
+ BacklogConfiguration: {},
+ BacklogLevelConfiguration: {},
+ BacklogType: {
+ enumValues: {
+ "portfolio": 0,
+ "requirement": 1,
+ "task": 2
+ }
+ },
+ Board: {},
+ BoardBadgeColumnOptions: {
+ enumValues: {
+ "inProgressColumns": 0,
+ "allColumns": 1,
+ "customColumns": 2
+ }
+ },
+ BoardColumn: {},
+ BoardColumnType: {
+ enumValues: {
+ "incoming": 0,
+ "inProgress": 1,
+ "outgoing": 2
+ }
+ },
+ BugsBehavior: {
+ enumValues: {
+ "off": 0,
+ "asRequirements": 1,
+ "asTasks": 2
+ }
+ },
+ CapacityContractBase: {},
+ CapacityPatch: {},
+ CardFieldSettings: {},
+ CardSettings: {},
+ CreatePlan: {},
+ DateRange: {},
+ DeliveryViewData: {},
+ DeliveryViewPropertyCollection: {},
+ FieldInfo: {},
+ FieldType: {
+ enumValues: {
+ "string": 0,
+ "plainText": 1,
+ "integer": 2,
+ "dateTime": 3,
+ "treePath": 4,
+ "boolean": 5,
+ "double": 6
+ }
+ },
+ IdentityDisplayFormat: {
+ enumValues: {
+ "avatarOnly": 0,
+ "fullName": 1,
+ "avatarAndFullName": 2
+ }
+ },
+ Marker: {},
+ Plan: {},
+ PlanMetadata: {},
+ PlanType: {
+ enumValues: {
+ "deliveryTimelineView": 0
+ }
+ },
+ PlanUserPermissions: {
+ enumValues: {
+ "none": 0,
+ "view": 1,
+ "edit": 2,
+ "delete": 4,
+ "manage": 8,
+ "allPermissions": 15
+ }
+ },
+ TeamCapacity: {},
+ TeamIterationAttributes: {},
+ TeamMemberCapacity: {},
+ TeamMemberCapacityIdentityRef: {},
+ TeamSetting: {},
+ TeamSettingsDaysOff: {},
+ TeamSettingsDaysOffPatch: {},
+ TeamSettingsIteration: {},
+ TeamSettingsPatch: {},
+ TimeFrame: {
+ enumValues: {
+ "past": 0,
+ "current": 1,
+ "future": 2
+ }
+ },
+ TimelineCriteriaStatus: {},
+ TimelineCriteriaStatusCode: {
+ enumValues: {
+ "ok": 0,
+ "invalidFilterClause": 1,
+ "unknown": 2
+ }
+ },
+ TimelineIterationStatus: {},
+ TimelineIterationStatusCode: {
+ enumValues: {
+ "ok": 0,
+ "isOverlapping": 1
+ }
+ },
+ TimelineTeamData: {},
+ TimelineTeamIteration: {},
+ TimelineTeamStatus: {},
+ TimelineTeamStatusCode: {
+ enumValues: {
+ "ok": 0,
+ "doesntExistOrAccessDenied": 1,
+ "maxTeamsExceeded": 2,
+ "maxTeamFieldsExceeded": 3,
+ "backlogInError": 4,
+ "missingTeamFieldValue": 5,
+ "noIterationsExist": 6
+ }
+ },
+ UpdatePlan: {},
+};
+exports.TypeInfo.BacklogConfiguration.fields = {
+ bugsBehavior: {
+ enumType: exports.TypeInfo.BugsBehavior
+ },
+ portfolioBacklogs: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BacklogLevelConfiguration
+ },
+ requirementBacklog: {
+ typeInfo: exports.TypeInfo.BacklogLevelConfiguration
+ },
+ taskBacklog: {
+ typeInfo: exports.TypeInfo.BacklogLevelConfiguration
+ }
+};
+exports.TypeInfo.BacklogLevelConfiguration.fields = {
+ type: {
+ enumType: exports.TypeInfo.BacklogType
+ }
+};
+exports.TypeInfo.Board.fields = {
+ columns: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.BoardColumn
+ }
+};
+exports.TypeInfo.BoardColumn.fields = {
+ columnType: {
+ enumType: exports.TypeInfo.BoardColumnType
+ }
+};
+exports.TypeInfo.CapacityContractBase.fields = {
+ daysOff: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DateRange
+ }
+};
+exports.TypeInfo.CapacityPatch.fields = {
+ daysOff: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DateRange
+ }
+};
+exports.TypeInfo.CardFieldSettings.fields = {
+ additionalFields: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.FieldInfo
+ },
+ assignedToDisplayFormat: {
+ enumType: exports.TypeInfo.IdentityDisplayFormat
+ },
+ coreFields: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.FieldInfo
+ }
+};
+exports.TypeInfo.CardSettings.fields = {
+ fields: {
+ typeInfo: exports.TypeInfo.CardFieldSettings
+ }
+};
+exports.TypeInfo.CreatePlan.fields = {
+ type: {
+ enumType: exports.TypeInfo.PlanType
+ }
+};
+exports.TypeInfo.DateRange.fields = {
+ end: {
+ isDate: true,
+ },
+ start: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.DeliveryViewData.fields = {
+ criteriaStatus: {
+ typeInfo: exports.TypeInfo.TimelineCriteriaStatus
+ },
+ endDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ },
+ teams: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TimelineTeamData
+ }
+};
+exports.TypeInfo.DeliveryViewPropertyCollection.fields = {
+ cardSettings: {
+ typeInfo: exports.TypeInfo.CardSettings
+ },
+ markers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Marker
+ }
+};
+exports.TypeInfo.FieldInfo.fields = {
+ fieldType: {
+ enumType: exports.TypeInfo.FieldType
+ }
+};
+exports.TypeInfo.Marker.fields = {
+ date: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Plan.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ lastAccessed: {
+ isDate: true,
+ },
+ modifiedDate: {
+ isDate: true,
+ },
+ type: {
+ enumType: exports.TypeInfo.PlanType
+ },
+ userPermissions: {
+ enumType: exports.TypeInfo.PlanUserPermissions
+ }
+};
+exports.TypeInfo.PlanMetadata.fields = {
+ modifiedDate: {
+ isDate: true,
+ },
+ userPermissions: {
+ enumType: exports.TypeInfo.PlanUserPermissions
+ }
+};
+exports.TypeInfo.TeamCapacity.fields = {
+ teamMembers: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TeamMemberCapacityIdentityRef
+ }
+};
+exports.TypeInfo.TeamIterationAttributes.fields = {
+ finishDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ },
+ timeFrame: {
+ enumType: exports.TypeInfo.TimeFrame
+ }
+};
+exports.TypeInfo.TeamMemberCapacity.fields = {
+ daysOff: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DateRange
+ }
+};
+exports.TypeInfo.TeamMemberCapacityIdentityRef.fields = {
+ daysOff: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DateRange
+ }
+};
+exports.TypeInfo.TeamSetting.fields = {
+ backlogIteration: {
+ typeInfo: exports.TypeInfo.TeamSettingsIteration
+ },
+ bugsBehavior: {
+ enumType: exports.TypeInfo.BugsBehavior
+ },
+ defaultIteration: {
+ typeInfo: exports.TypeInfo.TeamSettingsIteration
+ },
+ workingDays: {
+ isArray: true,
+ enumType: SystemInterfaces.TypeInfo.DayOfWeek
+ }
+};
+exports.TypeInfo.TeamSettingsDaysOff.fields = {
+ daysOff: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DateRange
+ }
+};
+exports.TypeInfo.TeamSettingsDaysOffPatch.fields = {
+ daysOff: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.DateRange
+ }
+};
+exports.TypeInfo.TeamSettingsIteration.fields = {
+ attributes: {
+ typeInfo: exports.TypeInfo.TeamIterationAttributes
+ }
+};
+exports.TypeInfo.TeamSettingsPatch.fields = {
+ bugsBehavior: {
+ enumType: exports.TypeInfo.BugsBehavior
+ },
+ workingDays: {
+ isArray: true,
+ enumType: SystemInterfaces.TypeInfo.DayOfWeek
+ }
+};
+exports.TypeInfo.TimelineCriteriaStatus.fields = {
+ type: {
+ enumType: exports.TypeInfo.TimelineCriteriaStatusCode
+ }
+};
+exports.TypeInfo.TimelineIterationStatus.fields = {
+ type: {
+ enumType: exports.TypeInfo.TimelineIterationStatusCode
+ }
+};
+exports.TypeInfo.TimelineTeamData.fields = {
+ iterations: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.TimelineTeamIteration
+ },
+ status: {
+ typeInfo: exports.TypeInfo.TimelineTeamStatus
+ }
+};
+exports.TypeInfo.TimelineTeamIteration.fields = {
+ finishDate: {
+ isDate: true,
+ },
+ startDate: {
+ isDate: true,
+ },
+ status: {
+ typeInfo: exports.TypeInfo.TimelineIterationStatus
+ }
+};
+exports.TypeInfo.TimelineTeamStatus.fields = {
+ type: {
+ enumType: exports.TypeInfo.TimelineTeamStatusCode
+ }
+};
+exports.TypeInfo.UpdatePlan.fields = {
+ type: {
+ enumType: exports.TypeInfo.PlanType
+ }
+};
+
+
+/***/ }),
+
+/***/ 6938:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Flag to control error policy in a batch classification nodes get request.
+ */
+var ClassificationNodesErrorPolicy;
+(function (ClassificationNodesErrorPolicy) {
+ ClassificationNodesErrorPolicy[ClassificationNodesErrorPolicy["Fail"] = 1] = "Fail";
+ ClassificationNodesErrorPolicy[ClassificationNodesErrorPolicy["Omit"] = 2] = "Omit";
+})(ClassificationNodesErrorPolicy = exports.ClassificationNodesErrorPolicy || (exports.ClassificationNodesErrorPolicy = {}));
+/**
+ * Specifies the additional data retrieval options for work item comments.
+ */
+var CommentExpandOptions;
+(function (CommentExpandOptions) {
+ CommentExpandOptions[CommentExpandOptions["None"] = 0] = "None";
+ /**
+ * Include comment reactions.
+ */
+ CommentExpandOptions[CommentExpandOptions["Reactions"] = 1] = "Reactions";
+ /**
+ * Include the rendered text (html) in addition to MD text.
+ */
+ CommentExpandOptions[CommentExpandOptions["RenderedText"] = 8] = "RenderedText";
+ /**
+ * If specified, then ONLY rendered text (html) will be returned, w/o markdown. Supposed to be used internally from data provides for optimization purposes.
+ */
+ CommentExpandOptions[CommentExpandOptions["RenderedTextOnly"] = 16] = "RenderedTextOnly";
+ CommentExpandOptions[CommentExpandOptions["All"] = -17] = "All";
+})(CommentExpandOptions = exports.CommentExpandOptions || (exports.CommentExpandOptions = {}));
+/**
+ * Represents different reaction types for a work item comment.
+ */
+var CommentReactionType;
+(function (CommentReactionType) {
+ CommentReactionType[CommentReactionType["Like"] = 0] = "Like";
+ CommentReactionType[CommentReactionType["Dislike"] = 1] = "Dislike";
+ CommentReactionType[CommentReactionType["Heart"] = 2] = "Heart";
+ CommentReactionType[CommentReactionType["Hooray"] = 3] = "Hooray";
+ CommentReactionType[CommentReactionType["Smile"] = 4] = "Smile";
+ CommentReactionType[CommentReactionType["Confused"] = 5] = "Confused";
+})(CommentReactionType = exports.CommentReactionType || (exports.CommentReactionType = {}));
+var CommentSortOrder;
+(function (CommentSortOrder) {
+ /**
+ * The results will be sorted in Ascending order.
+ */
+ CommentSortOrder[CommentSortOrder["Asc"] = 1] = "Asc";
+ /**
+ * The results will be sorted in Descending order.
+ */
+ CommentSortOrder[CommentSortOrder["Desc"] = 2] = "Desc";
+})(CommentSortOrder = exports.CommentSortOrder || (exports.CommentSortOrder = {}));
+/**
+ * Enum for field types.
+ */
+var FieldType;
+(function (FieldType) {
+ /**
+ * String field type.
+ */
+ FieldType[FieldType["String"] = 0] = "String";
+ /**
+ * Integer field type.
+ */
+ FieldType[FieldType["Integer"] = 1] = "Integer";
+ /**
+ * Datetime field type.
+ */
+ FieldType[FieldType["DateTime"] = 2] = "DateTime";
+ /**
+ * Plain text field type.
+ */
+ FieldType[FieldType["PlainText"] = 3] = "PlainText";
+ /**
+ * HTML (Multiline) field type.
+ */
+ FieldType[FieldType["Html"] = 4] = "Html";
+ /**
+ * Treepath field type.
+ */
+ FieldType[FieldType["TreePath"] = 5] = "TreePath";
+ /**
+ * History field type.
+ */
+ FieldType[FieldType["History"] = 6] = "History";
+ /**
+ * Double field type.
+ */
+ FieldType[FieldType["Double"] = 7] = "Double";
+ /**
+ * Guid field type.
+ */
+ FieldType[FieldType["Guid"] = 8] = "Guid";
+ /**
+ * Boolean field type.
+ */
+ FieldType[FieldType["Boolean"] = 9] = "Boolean";
+ /**
+ * Identity field type.
+ */
+ FieldType[FieldType["Identity"] = 10] = "Identity";
+ /**
+ * String picklist field type. When creating a string picklist field from REST API, use "String" FieldType.
+ */
+ FieldType[FieldType["PicklistString"] = 11] = "PicklistString";
+ /**
+ * Integer picklist field type. When creating a integer picklist field from REST API, use "Integer" FieldType.
+ */
+ FieldType[FieldType["PicklistInteger"] = 12] = "PicklistInteger";
+ /**
+ * Double picklist field type. When creating a double picklist field from REST API, use "Double" FieldType.
+ */
+ FieldType[FieldType["PicklistDouble"] = 13] = "PicklistDouble";
+})(FieldType = exports.FieldType || (exports.FieldType = {}));
+/**
+ * Enum for field usages.
+ */
+var FieldUsage;
+(function (FieldUsage) {
+ /**
+ * Empty usage.
+ */
+ FieldUsage[FieldUsage["None"] = 0] = "None";
+ /**
+ * Work item field usage.
+ */
+ FieldUsage[FieldUsage["WorkItem"] = 1] = "WorkItem";
+ /**
+ * Work item link field usage.
+ */
+ FieldUsage[FieldUsage["WorkItemLink"] = 2] = "WorkItemLink";
+ /**
+ * Treenode field usage.
+ */
+ FieldUsage[FieldUsage["Tree"] = 3] = "Tree";
+ /**
+ * Work Item Type Extension usage.
+ */
+ FieldUsage[FieldUsage["WorkItemTypeExtension"] = 4] = "WorkItemTypeExtension";
+})(FieldUsage = exports.FieldUsage || (exports.FieldUsage = {}));
+/**
+ * Flag to expand types of fields.
+ */
+var GetFieldsExpand;
+(function (GetFieldsExpand) {
+ /**
+ * Default behavior.
+ */
+ GetFieldsExpand[GetFieldsExpand["None"] = 0] = "None";
+ /**
+ * Adds extension fields to the response.
+ */
+ GetFieldsExpand[GetFieldsExpand["ExtensionFields"] = 1] = "ExtensionFields";
+ /**
+ * Includes fields that have been deleted.
+ */
+ GetFieldsExpand[GetFieldsExpand["IncludeDeleted"] = 2] = "IncludeDeleted";
+})(GetFieldsExpand = exports.GetFieldsExpand || (exports.GetFieldsExpand = {}));
+/**
+ * The link query mode which determines the behavior of the query.
+ */
+var LinkQueryMode;
+(function (LinkQueryMode) {
+ /**
+ * Returns flat list of work items.
+ */
+ LinkQueryMode[LinkQueryMode["WorkItems"] = 0] = "WorkItems";
+ /**
+ * Returns work items where the source, target, and link criteria are all satisfied.
+ */
+ LinkQueryMode[LinkQueryMode["LinksOneHopMustContain"] = 1] = "LinksOneHopMustContain";
+ /**
+ * Returns work items that satisfy the source and link criteria, even if no linked work item satisfies the target criteria.
+ */
+ LinkQueryMode[LinkQueryMode["LinksOneHopMayContain"] = 2] = "LinksOneHopMayContain";
+ /**
+ * Returns work items that satisfy the source, only if no linked work item satisfies the link and target criteria.
+ */
+ LinkQueryMode[LinkQueryMode["LinksOneHopDoesNotContain"] = 3] = "LinksOneHopDoesNotContain";
+ LinkQueryMode[LinkQueryMode["LinksRecursiveMustContain"] = 4] = "LinksRecursiveMustContain";
+ /**
+ * Returns work items a hierarchy of work items that by default satisfy the source
+ */
+ LinkQueryMode[LinkQueryMode["LinksRecursiveMayContain"] = 5] = "LinksRecursiveMayContain";
+ LinkQueryMode[LinkQueryMode["LinksRecursiveDoesNotContain"] = 6] = "LinksRecursiveDoesNotContain";
+})(LinkQueryMode = exports.LinkQueryMode || (exports.LinkQueryMode = {}));
+var LogicalOperation;
+(function (LogicalOperation) {
+ LogicalOperation[LogicalOperation["NONE"] = 0] = "NONE";
+ LogicalOperation[LogicalOperation["AND"] = 1] = "AND";
+ LogicalOperation[LogicalOperation["OR"] = 2] = "OR";
+})(LogicalOperation = exports.LogicalOperation || (exports.LogicalOperation = {}));
+/**
+ * Enumerates the possible provisioning actions that can be triggered on process template update.
+ */
+var ProvisioningActionType;
+(function (ProvisioningActionType) {
+ ProvisioningActionType[ProvisioningActionType["Import"] = 0] = "Import";
+ ProvisioningActionType[ProvisioningActionType["Validate"] = 1] = "Validate";
+})(ProvisioningActionType = exports.ProvisioningActionType || (exports.ProvisioningActionType = {}));
+/**
+ * Enum to control error policy in a query batch request.
+ */
+var QueryErrorPolicy;
+(function (QueryErrorPolicy) {
+ QueryErrorPolicy[QueryErrorPolicy["Fail"] = 1] = "Fail";
+ QueryErrorPolicy[QueryErrorPolicy["Omit"] = 2] = "Omit";
+})(QueryErrorPolicy = exports.QueryErrorPolicy || (exports.QueryErrorPolicy = {}));
+/**
+ * Determines which set of additional query properties to display
+ */
+var QueryExpand;
+(function (QueryExpand) {
+ /**
+ * Expands Columns, Links and ChangeInfo
+ */
+ QueryExpand[QueryExpand["None"] = 0] = "None";
+ /**
+ * Expands Columns, Links, ChangeInfo and WIQL text
+ */
+ QueryExpand[QueryExpand["Wiql"] = 1] = "Wiql";
+ /**
+ * Expands Columns, Links, ChangeInfo, WIQL text and clauses
+ */
+ QueryExpand[QueryExpand["Clauses"] = 2] = "Clauses";
+ /**
+ * Expands all properties
+ */
+ QueryExpand[QueryExpand["All"] = 3] = "All";
+ /**
+ * Displays minimal properties and the WIQL text
+ */
+ QueryExpand[QueryExpand["Minimal"] = 4] = "Minimal";
+})(QueryExpand = exports.QueryExpand || (exports.QueryExpand = {}));
+var QueryOption;
+(function (QueryOption) {
+ QueryOption[QueryOption["Doing"] = 1] = "Doing";
+ QueryOption[QueryOption["Done"] = 2] = "Done";
+ QueryOption[QueryOption["Followed"] = 3] = "Followed";
+})(QueryOption = exports.QueryOption || (exports.QueryOption = {}));
+/**
+ * Determines whether a tree query matches parents or children first.
+ */
+var QueryRecursionOption;
+(function (QueryRecursionOption) {
+ /**
+ * Returns work items that satisfy the source, even if no linked work item satisfies the target and link criteria.
+ */
+ QueryRecursionOption[QueryRecursionOption["ParentFirst"] = 0] = "ParentFirst";
+ /**
+ * Returns work items that satisfy the target criteria, even if no work item satisfies the source and link criteria.
+ */
+ QueryRecursionOption[QueryRecursionOption["ChildFirst"] = 1] = "ChildFirst";
+})(QueryRecursionOption = exports.QueryRecursionOption || (exports.QueryRecursionOption = {}));
+/**
+ * The query result type
+ */
+var QueryResultType;
+(function (QueryResultType) {
+ /**
+ * A list of work items (for flat queries).
+ */
+ QueryResultType[QueryResultType["WorkItem"] = 1] = "WorkItem";
+ /**
+ * A list of work item links (for OneHop and Tree queries).
+ */
+ QueryResultType[QueryResultType["WorkItemLink"] = 2] = "WorkItemLink";
+})(QueryResultType = exports.QueryResultType || (exports.QueryResultType = {}));
+/**
+ * The type of query.
+ */
+var QueryType;
+(function (QueryType) {
+ /**
+ * Gets a flat list of work items.
+ */
+ QueryType[QueryType["Flat"] = 1] = "Flat";
+ /**
+ * Gets a tree of work items showing their link hierarchy.
+ */
+ QueryType[QueryType["Tree"] = 2] = "Tree";
+ /**
+ * Gets a list of work items and their direct links.
+ */
+ QueryType[QueryType["OneHop"] = 3] = "OneHop";
+})(QueryType = exports.QueryType || (exports.QueryType = {}));
+/**
+ * The reporting revision expand level.
+ */
+var ReportingRevisionsExpand;
+(function (ReportingRevisionsExpand) {
+ /**
+ * Default behavior.
+ */
+ ReportingRevisionsExpand[ReportingRevisionsExpand["None"] = 0] = "None";
+ /**
+ * Add fields to the response.
+ */
+ ReportingRevisionsExpand[ReportingRevisionsExpand["Fields"] = 1] = "Fields";
+})(ReportingRevisionsExpand = exports.ReportingRevisionsExpand || (exports.ReportingRevisionsExpand = {}));
+/**
+ * Enumerates types of supported xml templates used for customization.
+ */
+var TemplateType;
+(function (TemplateType) {
+ TemplateType[TemplateType["WorkItemType"] = 0] = "WorkItemType";
+ TemplateType[TemplateType["GlobalWorkflow"] = 1] = "GlobalWorkflow";
+})(TemplateType = exports.TemplateType || (exports.TemplateType = {}));
+/**
+ * Types of tree node structures.
+ */
+var TreeNodeStructureType;
+(function (TreeNodeStructureType) {
+ /**
+ * Area type.
+ */
+ TreeNodeStructureType[TreeNodeStructureType["Area"] = 0] = "Area";
+ /**
+ * Iteration type.
+ */
+ TreeNodeStructureType[TreeNodeStructureType["Iteration"] = 1] = "Iteration";
+})(TreeNodeStructureType = exports.TreeNodeStructureType || (exports.TreeNodeStructureType = {}));
+/**
+ * Types of tree structures groups.
+ */
+var TreeStructureGroup;
+(function (TreeStructureGroup) {
+ TreeStructureGroup[TreeStructureGroup["Areas"] = 0] = "Areas";
+ TreeStructureGroup[TreeStructureGroup["Iterations"] = 1] = "Iterations";
+})(TreeStructureGroup = exports.TreeStructureGroup || (exports.TreeStructureGroup = {}));
+/**
+ * Enum to control error policy in a bulk get work items request.
+ */
+var WorkItemErrorPolicy;
+(function (WorkItemErrorPolicy) {
+ /**
+ * Fail work error policy.
+ */
+ WorkItemErrorPolicy[WorkItemErrorPolicy["Fail"] = 1] = "Fail";
+ /**
+ * Omit work error policy.
+ */
+ WorkItemErrorPolicy[WorkItemErrorPolicy["Omit"] = 2] = "Omit";
+})(WorkItemErrorPolicy = exports.WorkItemErrorPolicy || (exports.WorkItemErrorPolicy = {}));
+/**
+ * Flag to control payload properties from get work item command.
+ */
+var WorkItemExpand;
+(function (WorkItemExpand) {
+ /**
+ * Default behavior.
+ */
+ WorkItemExpand[WorkItemExpand["None"] = 0] = "None";
+ /**
+ * Relations work item expand.
+ */
+ WorkItemExpand[WorkItemExpand["Relations"] = 1] = "Relations";
+ /**
+ * Fields work item expand.
+ */
+ WorkItemExpand[WorkItemExpand["Fields"] = 2] = "Fields";
+ /**
+ * Links work item expand.
+ */
+ WorkItemExpand[WorkItemExpand["Links"] = 3] = "Links";
+ /**
+ * Expands all.
+ */
+ WorkItemExpand[WorkItemExpand["All"] = 4] = "All";
+})(WorkItemExpand = exports.WorkItemExpand || (exports.WorkItemExpand = {}));
+/**
+ * Type of the activity
+ */
+var WorkItemRecentActivityType;
+(function (WorkItemRecentActivityType) {
+ WorkItemRecentActivityType[WorkItemRecentActivityType["Visited"] = 0] = "Visited";
+ WorkItemRecentActivityType[WorkItemRecentActivityType["Edited"] = 1] = "Edited";
+ WorkItemRecentActivityType[WorkItemRecentActivityType["Deleted"] = 2] = "Deleted";
+ WorkItemRecentActivityType[WorkItemRecentActivityType["Restored"] = 3] = "Restored";
+})(WorkItemRecentActivityType = exports.WorkItemRecentActivityType || (exports.WorkItemRecentActivityType = {}));
+/**
+ * Expand options for the work item field(s) request.
+ */
+var WorkItemTypeFieldsExpandLevel;
+(function (WorkItemTypeFieldsExpandLevel) {
+ /**
+ * Includes only basic properties of the field.
+ */
+ WorkItemTypeFieldsExpandLevel[WorkItemTypeFieldsExpandLevel["None"] = 0] = "None";
+ /**
+ * Includes allowed values for the field.
+ */
+ WorkItemTypeFieldsExpandLevel[WorkItemTypeFieldsExpandLevel["AllowedValues"] = 1] = "AllowedValues";
+ /**
+ * Includes dependent fields of the field.
+ */
+ WorkItemTypeFieldsExpandLevel[WorkItemTypeFieldsExpandLevel["DependentFields"] = 2] = "DependentFields";
+ /**
+ * Includes allowed values and dependent fields of the field.
+ */
+ WorkItemTypeFieldsExpandLevel[WorkItemTypeFieldsExpandLevel["All"] = 3] = "All";
+})(WorkItemTypeFieldsExpandLevel = exports.WorkItemTypeFieldsExpandLevel || (exports.WorkItemTypeFieldsExpandLevel = {}));
+exports.TypeInfo = {
+ AccountMyWorkResult: {},
+ AccountRecentActivityWorkItemModel: {},
+ AccountRecentActivityWorkItemModel2: {},
+ AccountRecentActivityWorkItemModelBase: {},
+ AccountRecentMentionWorkItemModel: {},
+ AccountWorkWorkItemModel: {},
+ ClassificationNodesErrorPolicy: {
+ enumValues: {
+ "fail": 1,
+ "omit": 2
+ }
+ },
+ Comment: {},
+ CommentExpandOptions: {
+ enumValues: {
+ "none": 0,
+ "reactions": 1,
+ "renderedText": 8,
+ "renderedTextOnly": 16,
+ "all": -17
+ }
+ },
+ CommentList: {},
+ CommentReaction: {},
+ CommentReactionType: {
+ enumValues: {
+ "like": 0,
+ "dislike": 1,
+ "heart": 2,
+ "hooray": 3,
+ "smile": 4,
+ "confused": 5
+ }
+ },
+ CommentSortOrder: {
+ enumValues: {
+ "asc": 1,
+ "desc": 2
+ }
+ },
+ CommentVersion: {},
+ ExternalDeployment: {},
+ FieldType: {
+ enumValues: {
+ "string": 0,
+ "integer": 1,
+ "dateTime": 2,
+ "plainText": 3,
+ "html": 4,
+ "treePath": 5,
+ "history": 6,
+ "double": 7,
+ "guid": 8,
+ "boolean": 9,
+ "identity": 10,
+ "picklistString": 11,
+ "picklistInteger": 12,
+ "picklistDouble": 13
+ }
+ },
+ FieldUsage: {
+ enumValues: {
+ "none": 0,
+ "workItem": 1,
+ "workItemLink": 2,
+ "tree": 3,
+ "workItemTypeExtension": 4
+ }
+ },
+ GetFieldsExpand: {
+ enumValues: {
+ "none": 0,
+ "extensionFields": 1,
+ "includeDeleted": 2
+ }
+ },
+ LinkQueryMode: {
+ enumValues: {
+ "workItems": 0,
+ "linksOneHopMustContain": 1,
+ "linksOneHopMayContain": 2,
+ "linksOneHopDoesNotContain": 3,
+ "linksRecursiveMustContain": 4,
+ "linksRecursiveMayContain": 5,
+ "linksRecursiveDoesNotContain": 6
+ }
+ },
+ LogicalOperation: {
+ enumValues: {
+ "none": 0,
+ "and": 1,
+ "or": 2
+ }
+ },
+ ProvisioningActionType: {
+ enumValues: {
+ "import": 0,
+ "validate": 1
+ }
+ },
+ QueryBatchGetRequest: {},
+ QueryErrorPolicy: {
+ enumValues: {
+ "fail": 1,
+ "omit": 2
+ }
+ },
+ QueryExpand: {
+ enumValues: {
+ "none": 0,
+ "wiql": 1,
+ "clauses": 2,
+ "all": 3,
+ "minimal": 4
+ }
+ },
+ QueryHierarchyItem: {},
+ QueryHierarchyItemsResult: {},
+ QueryOption: {
+ enumValues: {
+ "doing": 1,
+ "done": 2,
+ "followed": 3
+ }
+ },
+ QueryRecursionOption: {
+ enumValues: {
+ "parentFirst": 0,
+ "childFirst": 1
+ }
+ },
+ QueryResultType: {
+ enumValues: {
+ "workItem": 1,
+ "workItemLink": 2
+ }
+ },
+ QueryType: {
+ enumValues: {
+ "flat": 1,
+ "tree": 2,
+ "oneHop": 3
+ }
+ },
+ ReportingRevisionsExpand: {
+ enumValues: {
+ "none": 0,
+ "fields": 1
+ }
+ },
+ TemplateType: {
+ enumValues: {
+ "workItemType": 0,
+ "globalWorkflow": 1
+ }
+ },
+ TreeNodeStructureType: {
+ enumValues: {
+ "area": 0,
+ "iteration": 1
+ }
+ },
+ TreeStructureGroup: {
+ enumValues: {
+ "areas": 0,
+ "iterations": 1
+ }
+ },
+ WorkItemBatchGetRequest: {},
+ WorkItemClassificationNode: {},
+ WorkItemComment: {},
+ WorkItemComments: {},
+ WorkItemErrorPolicy: {
+ enumValues: {
+ "fail": 1,
+ "omit": 2
+ }
+ },
+ WorkItemExpand: {
+ enumValues: {
+ "none": 0,
+ "relations": 1,
+ "fields": 2,
+ "links": 3,
+ "all": 4
+ }
+ },
+ WorkItemField: {},
+ WorkItemField2: {},
+ WorkItemHistory: {},
+ WorkItemQueryClause: {},
+ WorkItemQueryResult: {},
+ WorkItemRecentActivityType: {
+ enumValues: {
+ "visited": 0,
+ "edited": 1,
+ "deleted": 2,
+ "restored": 3
+ }
+ },
+ WorkItemTagDefinition: {},
+ WorkItemTypeFieldsExpandLevel: {
+ enumValues: {
+ "none": 0,
+ "allowedValues": 1,
+ "dependentFields": 2,
+ "all": 3
+ }
+ },
+ WorkItemTypeTemplateUpdateModel: {},
+ WorkItemUpdate: {},
+};
+exports.TypeInfo.AccountMyWorkResult.fields = {
+ workItemDetails: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.AccountWorkWorkItemModel
+ }
+};
+exports.TypeInfo.AccountRecentActivityWorkItemModel.fields = {
+ activityDate: {
+ isDate: true,
+ },
+ activityType: {
+ enumType: exports.TypeInfo.WorkItemRecentActivityType
+ },
+ changedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AccountRecentActivityWorkItemModel2.fields = {
+ activityDate: {
+ isDate: true,
+ },
+ activityType: {
+ enumType: exports.TypeInfo.WorkItemRecentActivityType
+ },
+ changedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AccountRecentActivityWorkItemModelBase.fields = {
+ activityDate: {
+ isDate: true,
+ },
+ activityType: {
+ enumType: exports.TypeInfo.WorkItemRecentActivityType
+ },
+ changedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AccountRecentMentionWorkItemModel.fields = {
+ mentionedDateField: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.AccountWorkWorkItemModel.fields = {
+ changedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.Comment.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ createdOnBehalfDate: {
+ isDate: true,
+ },
+ modifiedDate: {
+ isDate: true,
+ },
+ reactions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.CommentReaction
+ }
+};
+exports.TypeInfo.CommentList.fields = {
+ comments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Comment
+ }
+};
+exports.TypeInfo.CommentReaction.fields = {
+ type: {
+ enumType: exports.TypeInfo.CommentReactionType
+ }
+};
+exports.TypeInfo.CommentVersion.fields = {
+ createdDate: {
+ isDate: true,
+ },
+ createdOnBehalfDate: {
+ isDate: true,
+ },
+ modifiedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.ExternalDeployment.fields = {
+ statusDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.QueryBatchGetRequest.fields = {
+ $expand: {
+ enumType: exports.TypeInfo.QueryExpand
+ },
+ errorPolicy: {
+ enumType: exports.TypeInfo.QueryErrorPolicy
+ }
+};
+exports.TypeInfo.QueryHierarchyItem.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.QueryHierarchyItem
+ },
+ clauses: {
+ typeInfo: exports.TypeInfo.WorkItemQueryClause
+ },
+ createdDate: {
+ isDate: true,
+ },
+ filterOptions: {
+ enumType: exports.TypeInfo.LinkQueryMode
+ },
+ lastExecutedDate: {
+ isDate: true,
+ },
+ lastModifiedDate: {
+ isDate: true,
+ },
+ linkClauses: {
+ typeInfo: exports.TypeInfo.WorkItemQueryClause
+ },
+ queryRecursionOption: {
+ enumType: exports.TypeInfo.QueryRecursionOption
+ },
+ queryType: {
+ enumType: exports.TypeInfo.QueryType
+ },
+ sourceClauses: {
+ typeInfo: exports.TypeInfo.WorkItemQueryClause
+ },
+ targetClauses: {
+ typeInfo: exports.TypeInfo.WorkItemQueryClause
+ }
+};
+exports.TypeInfo.QueryHierarchyItemsResult.fields = {
+ value: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.QueryHierarchyItem
+ }
+};
+exports.TypeInfo.WorkItemBatchGetRequest.fields = {
+ $expand: {
+ enumType: exports.TypeInfo.WorkItemExpand
+ },
+ asOf: {
+ isDate: true,
+ },
+ errorPolicy: {
+ enumType: exports.TypeInfo.WorkItemErrorPolicy
+ }
+};
+exports.TypeInfo.WorkItemClassificationNode.fields = {
+ children: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WorkItemClassificationNode
+ },
+ structureType: {
+ enumType: exports.TypeInfo.TreeNodeStructureType
+ }
+};
+exports.TypeInfo.WorkItemComment.fields = {
+ revisedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.WorkItemComments.fields = {
+ comments: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WorkItemComment
+ }
+};
+exports.TypeInfo.WorkItemField.fields = {
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ },
+ usage: {
+ enumType: exports.TypeInfo.FieldUsage
+ }
+};
+exports.TypeInfo.WorkItemField2.fields = {
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ },
+ usage: {
+ enumType: exports.TypeInfo.FieldUsage
+ }
+};
+exports.TypeInfo.WorkItemHistory.fields = {
+ revisedDate: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.WorkItemQueryClause.fields = {
+ clauses: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WorkItemQueryClause
+ },
+ logicalOperator: {
+ enumType: exports.TypeInfo.LogicalOperation
+ }
+};
+exports.TypeInfo.WorkItemQueryResult.fields = {
+ asOf: {
+ isDate: true,
+ },
+ queryResultType: {
+ enumType: exports.TypeInfo.QueryResultType
+ },
+ queryType: {
+ enumType: exports.TypeInfo.QueryType
+ }
+};
+exports.TypeInfo.WorkItemTagDefinition.fields = {
+ lastUpdated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.WorkItemTypeTemplateUpdateModel.fields = {
+ actionType: {
+ enumType: exports.TypeInfo.ProvisioningActionType
+ },
+ templateType: {
+ enumType: exports.TypeInfo.TemplateType
+ }
+};
+exports.TypeInfo.WorkItemUpdate.fields = {
+ revisedDate: {
+ isDate: true,
+ }
+};
+
+
+/***/ }),
+
+/***/ 1655:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Enum for the type of a field.
+ */
+var FieldType;
+(function (FieldType) {
+ /**
+ * String field type.
+ */
+ FieldType[FieldType["String"] = 1] = "String";
+ /**
+ * Integer field type.
+ */
+ FieldType[FieldType["Integer"] = 2] = "Integer";
+ /**
+ * Datetime field type.
+ */
+ FieldType[FieldType["DateTime"] = 3] = "DateTime";
+ /**
+ * Plain Text field type.
+ */
+ FieldType[FieldType["PlainText"] = 5] = "PlainText";
+ /**
+ * HTML (Multiline) field type.
+ */
+ FieldType[FieldType["Html"] = 7] = "Html";
+ /**
+ * Treepath field type.
+ */
+ FieldType[FieldType["TreePath"] = 8] = "TreePath";
+ /**
+ * History field type.
+ */
+ FieldType[FieldType["History"] = 9] = "History";
+ /**
+ * Double field type.
+ */
+ FieldType[FieldType["Double"] = 10] = "Double";
+ /**
+ * Guid field type.
+ */
+ FieldType[FieldType["Guid"] = 11] = "Guid";
+ /**
+ * Boolean field type.
+ */
+ FieldType[FieldType["Boolean"] = 12] = "Boolean";
+ /**
+ * Identity field type.
+ */
+ FieldType[FieldType["Identity"] = 13] = "Identity";
+ /**
+ * Integer picklist field type.
+ */
+ FieldType[FieldType["PicklistInteger"] = 14] = "PicklistInteger";
+ /**
+ * String picklist field type.
+ */
+ FieldType[FieldType["PicklistString"] = 15] = "PicklistString";
+ /**
+ * Double picklist field type.
+ */
+ FieldType[FieldType["PicklistDouble"] = 16] = "PicklistDouble";
+})(FieldType = exports.FieldType || (exports.FieldType = {}));
+var GetWorkItemTypeExpand;
+(function (GetWorkItemTypeExpand) {
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["None"] = 0] = "None";
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["States"] = 1] = "States";
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["Behaviors"] = 2] = "Behaviors";
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["Layout"] = 4] = "Layout";
+})(GetWorkItemTypeExpand = exports.GetWorkItemTypeExpand || (exports.GetWorkItemTypeExpand = {}));
+/**
+ * Type of page
+ */
+var PageType;
+(function (PageType) {
+ PageType[PageType["Custom"] = 1] = "Custom";
+ PageType[PageType["History"] = 2] = "History";
+ PageType[PageType["Links"] = 3] = "Links";
+ PageType[PageType["Attachments"] = 4] = "Attachments";
+})(PageType = exports.PageType || (exports.PageType = {}));
+/**
+ * Work item type classes'
+ */
+var WorkItemTypeClass;
+(function (WorkItemTypeClass) {
+ WorkItemTypeClass[WorkItemTypeClass["System"] = 0] = "System";
+ WorkItemTypeClass[WorkItemTypeClass["Derived"] = 1] = "Derived";
+ WorkItemTypeClass[WorkItemTypeClass["Custom"] = 2] = "Custom";
+})(WorkItemTypeClass = exports.WorkItemTypeClass || (exports.WorkItemTypeClass = {}));
+exports.TypeInfo = {
+ FieldModel: {},
+ FieldType: {
+ enumValues: {
+ "string": 1,
+ "integer": 2,
+ "dateTime": 3,
+ "plainText": 5,
+ "html": 7,
+ "treePath": 8,
+ "history": 9,
+ "double": 10,
+ "guid": 11,
+ "boolean": 12,
+ "identity": 13,
+ "picklistInteger": 14,
+ "picklistString": 15,
+ "picklistDouble": 16
+ }
+ },
+ FormLayout: {},
+ GetWorkItemTypeExpand: {
+ enumValues: {
+ "none": 0,
+ "states": 1,
+ "behaviors": 2,
+ "layout": 4
+ }
+ },
+ Page: {},
+ PageType: {
+ enumValues: {
+ "custom": 1,
+ "history": 2,
+ "links": 3,
+ "attachments": 4
+ }
+ },
+ WorkItemTypeClass: {
+ enumValues: {
+ "system": 0,
+ "derived": 1,
+ "custom": 2
+ }
+ },
+ WorkItemTypeFieldModel: {},
+ WorkItemTypeFieldModel2: {},
+ WorkItemTypeModel: {},
+};
+exports.TypeInfo.FieldModel.fields = {
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ }
+};
+exports.TypeInfo.FormLayout.fields = {
+ pages: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Page
+ }
+};
+exports.TypeInfo.Page.fields = {
+ pageType: {
+ enumType: exports.TypeInfo.PageType
+ }
+};
+exports.TypeInfo.WorkItemTypeFieldModel.fields = {
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ }
+};
+exports.TypeInfo.WorkItemTypeFieldModel2.fields = {
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ }
+};
+exports.TypeInfo.WorkItemTypeModel.fields = {
+ class: {
+ enumType: exports.TypeInfo.WorkItemTypeClass
+ },
+ layout: {
+ typeInfo: exports.TypeInfo.FormLayout
+ }
+};
+
+
+/***/ }),
+
+/***/ 4524:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Indicates the customization-type. Customization-type is System if is system generated or by default. Customization-type is Inherited if the existing workitemtype of inherited process is customized. Customization-type is Custom if the newly created workitemtype is customized.
+ */
+var CustomizationType;
+(function (CustomizationType) {
+ /**
+ * Customization-type is System if is system generated workitemtype.
+ */
+ CustomizationType[CustomizationType["System"] = 1] = "System";
+ /**
+ * Customization-type is Inherited if the existing workitemtype of inherited process is customized.
+ */
+ CustomizationType[CustomizationType["Inherited"] = 2] = "Inherited";
+ /**
+ * Customization-type is Custom if the newly created workitemtype is customized.
+ */
+ CustomizationType[CustomizationType["Custom"] = 3] = "Custom";
+})(CustomizationType = exports.CustomizationType || (exports.CustomizationType = {}));
+/**
+ * Enum for the type of a field.
+ */
+var FieldType;
+(function (FieldType) {
+ /**
+ * String field type.
+ */
+ FieldType[FieldType["String"] = 1] = "String";
+ /**
+ * Integer field type.
+ */
+ FieldType[FieldType["Integer"] = 2] = "Integer";
+ /**
+ * DateTime field type.
+ */
+ FieldType[FieldType["DateTime"] = 3] = "DateTime";
+ /**
+ * Plain text field type.
+ */
+ FieldType[FieldType["PlainText"] = 5] = "PlainText";
+ /**
+ * HTML (Multiline) field type.
+ */
+ FieldType[FieldType["Html"] = 7] = "Html";
+ /**
+ * Treepath field type.
+ */
+ FieldType[FieldType["TreePath"] = 8] = "TreePath";
+ /**
+ * History field type.
+ */
+ FieldType[FieldType["History"] = 9] = "History";
+ /**
+ * Double field type.
+ */
+ FieldType[FieldType["Double"] = 10] = "Double";
+ /**
+ * Guid field type.
+ */
+ FieldType[FieldType["Guid"] = 11] = "Guid";
+ /**
+ * Boolean field type.
+ */
+ FieldType[FieldType["Boolean"] = 12] = "Boolean";
+ /**
+ * Identity field type.
+ */
+ FieldType[FieldType["Identity"] = 13] = "Identity";
+ /**
+ * Integer picklist field type.
+ */
+ FieldType[FieldType["PicklistInteger"] = 14] = "PicklistInteger";
+ /**
+ * String picklist field type.
+ */
+ FieldType[FieldType["PicklistString"] = 15] = "PicklistString";
+ /**
+ * Double picklist field type.
+ */
+ FieldType[FieldType["PicklistDouble"] = 16] = "PicklistDouble";
+})(FieldType = exports.FieldType || (exports.FieldType = {}));
+/**
+ * Expand options to fetch fields for behaviors API.
+ */
+var GetBehaviorsExpand;
+(function (GetBehaviorsExpand) {
+ /**
+ * Default none option.
+ */
+ GetBehaviorsExpand[GetBehaviorsExpand["None"] = 0] = "None";
+ /**
+ * This option returns fields associated with a behavior.
+ */
+ GetBehaviorsExpand[GetBehaviorsExpand["Fields"] = 1] = "Fields";
+ /**
+ * This option returns fields associated with this behavior and all behaviors from which it inherits.
+ */
+ GetBehaviorsExpand[GetBehaviorsExpand["CombinedFields"] = 2] = "CombinedFields";
+})(GetBehaviorsExpand = exports.GetBehaviorsExpand || (exports.GetBehaviorsExpand = {}));
+/**
+ * The expand level of returned processes.
+ */
+var GetProcessExpandLevel;
+(function (GetProcessExpandLevel) {
+ /**
+ * No expand level.
+ */
+ GetProcessExpandLevel[GetProcessExpandLevel["None"] = 0] = "None";
+ /**
+ * Projects expand level.
+ */
+ GetProcessExpandLevel[GetProcessExpandLevel["Projects"] = 1] = "Projects";
+})(GetProcessExpandLevel = exports.GetProcessExpandLevel || (exports.GetProcessExpandLevel = {}));
+/**
+ * Flag to define what properties to return in get work item type response.
+ */
+var GetWorkItemTypeExpand;
+(function (GetWorkItemTypeExpand) {
+ /**
+ * Returns no properties in get work item type response.
+ */
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["None"] = 0] = "None";
+ /**
+ * Returns states property in get work item type response.
+ */
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["States"] = 1] = "States";
+ /**
+ * Returns behaviors property in get work item type response.
+ */
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["Behaviors"] = 2] = "Behaviors";
+ /**
+ * Returns layout property in get work item type response.
+ */
+ GetWorkItemTypeExpand[GetWorkItemTypeExpand["Layout"] = 4] = "Layout";
+})(GetWorkItemTypeExpand = exports.GetWorkItemTypeExpand || (exports.GetWorkItemTypeExpand = {}));
+/**
+ * Enum for the types of pages in the work item form layout
+ */
+var PageType;
+(function (PageType) {
+ /**
+ * Custom page type.
+ */
+ PageType[PageType["Custom"] = 1] = "Custom";
+ /**
+ * History page type.
+ */
+ PageType[PageType["History"] = 2] = "History";
+ /**
+ * Link page type.
+ */
+ PageType[PageType["Links"] = 3] = "Links";
+ /**
+ * Attachment page type.
+ */
+ PageType[PageType["Attachments"] = 4] = "Attachments";
+})(PageType = exports.PageType || (exports.PageType = {}));
+var ProcessClass;
+(function (ProcessClass) {
+ ProcessClass[ProcessClass["System"] = 0] = "System";
+ ProcessClass[ProcessClass["Derived"] = 1] = "Derived";
+ ProcessClass[ProcessClass["Custom"] = 2] = "Custom";
+})(ProcessClass = exports.ProcessClass || (exports.ProcessClass = {}));
+/**
+ * Expand options for the work item field(s) request.
+ */
+var ProcessWorkItemTypeFieldsExpandLevel;
+(function (ProcessWorkItemTypeFieldsExpandLevel) {
+ /**
+ * Includes only basic properties of the field.
+ */
+ ProcessWorkItemTypeFieldsExpandLevel[ProcessWorkItemTypeFieldsExpandLevel["None"] = 0] = "None";
+ /**
+ * Includes allowed values for the field.
+ */
+ ProcessWorkItemTypeFieldsExpandLevel[ProcessWorkItemTypeFieldsExpandLevel["AllowedValues"] = 1] = "AllowedValues";
+ /**
+ * Includes allowed values and dependent fields of the field.
+ */
+ ProcessWorkItemTypeFieldsExpandLevel[ProcessWorkItemTypeFieldsExpandLevel["All"] = 2] = "All";
+})(ProcessWorkItemTypeFieldsExpandLevel = exports.ProcessWorkItemTypeFieldsExpandLevel || (exports.ProcessWorkItemTypeFieldsExpandLevel = {}));
+/**
+ * Type of action to take when the rule is triggered.
+ */
+var RuleActionType;
+(function (RuleActionType) {
+ /**
+ * Make the target field required. Example : {"actionType":"$makeRequired","targetField":"Microsoft.VSTS.Common.Activity","value":""}
+ */
+ RuleActionType[RuleActionType["MakeRequired"] = 1] = "MakeRequired";
+ /**
+ * Make the target field read-only. Example : {"actionType":"$makeReadOnly","targetField":"Microsoft.VSTS.Common.Activity","value":""}
+ */
+ RuleActionType[RuleActionType["MakeReadOnly"] = 2] = "MakeReadOnly";
+ /**
+ * Set a default value on the target field. This is used if the user creates a integer/string field and sets a default value of this field.
+ */
+ RuleActionType[RuleActionType["SetDefaultValue"] = 3] = "SetDefaultValue";
+ /**
+ * Set the default value on the target field from server clock. This is used if user creates the field like Date/Time and uses default value.
+ */
+ RuleActionType[RuleActionType["SetDefaultFromClock"] = 4] = "SetDefaultFromClock";
+ /**
+ * Set the default current user value on the target field. This is used if the user creates the field of type identity and uses default value.
+ */
+ RuleActionType[RuleActionType["SetDefaultFromCurrentUser"] = 5] = "SetDefaultFromCurrentUser";
+ /**
+ * Set the default value on from existing field to the target field. This used wants to set a existing field value to the current field.
+ */
+ RuleActionType[RuleActionType["SetDefaultFromField"] = 6] = "SetDefaultFromField";
+ /**
+ * Set the value of target field to given value. Example : {actionType: "$copyValue", targetField: "ScrumInherited.mypicklist", value: "samplevalue"}
+ */
+ RuleActionType[RuleActionType["CopyValue"] = 7] = "CopyValue";
+ /**
+ * Set the value from clock.
+ */
+ RuleActionType[RuleActionType["CopyFromClock"] = 8] = "CopyFromClock";
+ /**
+ * Set the current user to the target field. Example : {"actionType":"$copyFromCurrentUser","targetField":"System.AssignedTo","value":""}.
+ */
+ RuleActionType[RuleActionType["CopyFromCurrentUser"] = 9] = "CopyFromCurrentUser";
+ /**
+ * Copy the value from a specified field and set to target field. Example : {actionType: "$copyFromField", targetField: "System.AssignedTo", value:"System.ChangedBy"}. Here, value is copied from "System.ChangedBy" and set to "System.AssingedTo" field.
+ */
+ RuleActionType[RuleActionType["CopyFromField"] = 10] = "CopyFromField";
+ /**
+ * Set the value of the target field to empty.
+ */
+ RuleActionType[RuleActionType["SetValueToEmpty"] = 11] = "SetValueToEmpty";
+ /**
+ * Use the current time to set the value of the target field. Example : {actionType: "$copyFromServerClock", targetField: "System.CreatedDate", value: ""}
+ */
+ RuleActionType[RuleActionType["CopyFromServerClock"] = 12] = "CopyFromServerClock";
+ /**
+ * Use the current user to set the value of the target field.
+ */
+ RuleActionType[RuleActionType["CopyFromServerCurrentUser"] = 13] = "CopyFromServerCurrentUser";
+ /**
+ * Hides target field from the form. This is a server side only action.
+ */
+ RuleActionType[RuleActionType["HideTargetField"] = 14] = "HideTargetField";
+ /**
+ * Disallows a field from being set to a specific value.
+ */
+ RuleActionType[RuleActionType["DisallowValue"] = 15] = "DisallowValue";
+})(RuleActionType = exports.RuleActionType || (exports.RuleActionType = {}));
+/**
+ * Type of rule condition.
+ */
+var RuleConditionType;
+(function (RuleConditionType) {
+ /**
+ * $When. This condition limits the execution of its children to cases when another field has a particular value, i.e. when the Is value of the referenced field is equal to the given literal value.
+ */
+ RuleConditionType[RuleConditionType["When"] = 1] = "When";
+ /**
+ * $WhenNot.This condition limits the execution of its children to cases when another field does not have a particular value, i.e.when the Is value of the referenced field is not equal to the given literal value.
+ */
+ RuleConditionType[RuleConditionType["WhenNot"] = 2] = "WhenNot";
+ /**
+ * $WhenChanged.This condition limits the execution of its children to cases when another field has changed, i.e.when the Is value of the referenced field is not equal to the Was value of that field.
+ */
+ RuleConditionType[RuleConditionType["WhenChanged"] = 3] = "WhenChanged";
+ /**
+ * $WhenNotChanged.This condition limits the execution of its children to cases when another field has not changed, i.e.when the Is value of the referenced field is equal to the Was value of that field.
+ */
+ RuleConditionType[RuleConditionType["WhenNotChanged"] = 4] = "WhenNotChanged";
+ RuleConditionType[RuleConditionType["WhenWas"] = 5] = "WhenWas";
+ RuleConditionType[RuleConditionType["WhenStateChangedTo"] = 6] = "WhenStateChangedTo";
+ RuleConditionType[RuleConditionType["WhenStateChangedFromAndTo"] = 7] = "WhenStateChangedFromAndTo";
+ RuleConditionType[RuleConditionType["WhenWorkItemIsCreated"] = 8] = "WhenWorkItemIsCreated";
+ RuleConditionType[RuleConditionType["WhenValueIsDefined"] = 9] = "WhenValueIsDefined";
+ RuleConditionType[RuleConditionType["WhenValueIsNotDefined"] = 10] = "WhenValueIsNotDefined";
+ RuleConditionType[RuleConditionType["WhenCurrentUserIsMemberOfGroup"] = 11] = "WhenCurrentUserIsMemberOfGroup";
+ RuleConditionType[RuleConditionType["WhenCurrentUserIsNotMemberOfGroup"] = 12] = "WhenCurrentUserIsNotMemberOfGroup";
+})(RuleConditionType = exports.RuleConditionType || (exports.RuleConditionType = {}));
+var WorkItemTypeClass;
+(function (WorkItemTypeClass) {
+ WorkItemTypeClass[WorkItemTypeClass["System"] = 0] = "System";
+ WorkItemTypeClass[WorkItemTypeClass["Derived"] = 1] = "Derived";
+ WorkItemTypeClass[WorkItemTypeClass["Custom"] = 2] = "Custom";
+})(WorkItemTypeClass = exports.WorkItemTypeClass || (exports.WorkItemTypeClass = {}));
+exports.TypeInfo = {
+ CreateProcessRuleRequest: {},
+ CustomizationType: {
+ enumValues: {
+ "system": 1,
+ "inherited": 2,
+ "custom": 3
+ }
+ },
+ FieldModel: {},
+ FieldType: {
+ enumValues: {
+ "string": 1,
+ "integer": 2,
+ "dateTime": 3,
+ "plainText": 5,
+ "html": 7,
+ "treePath": 8,
+ "history": 9,
+ "double": 10,
+ "guid": 11,
+ "boolean": 12,
+ "identity": 13,
+ "picklistInteger": 14,
+ "picklistString": 15,
+ "picklistDouble": 16
+ }
+ },
+ FormLayout: {},
+ GetBehaviorsExpand: {
+ enumValues: {
+ "none": 0,
+ "fields": 1,
+ "combinedFields": 2
+ }
+ },
+ GetProcessExpandLevel: {
+ enumValues: {
+ "none": 0,
+ "projects": 1
+ }
+ },
+ GetWorkItemTypeExpand: {
+ enumValues: {
+ "none": 0,
+ "states": 1,
+ "behaviors": 2,
+ "layout": 4
+ }
+ },
+ Page: {},
+ PageType: {
+ enumValues: {
+ "custom": 1,
+ "history": 2,
+ "links": 3,
+ "attachments": 4
+ }
+ },
+ ProcessBehavior: {},
+ ProcessClass: {
+ enumValues: {
+ "system": 0,
+ "derived": 1,
+ "custom": 2
+ }
+ },
+ ProcessInfo: {},
+ ProcessModel: {},
+ ProcessProperties: {},
+ ProcessRule: {},
+ ProcessWorkItemType: {},
+ ProcessWorkItemTypeField: {},
+ ProcessWorkItemTypeFieldsExpandLevel: {
+ enumValues: {
+ "none": 0,
+ "allowedValues": 1,
+ "all": 2
+ }
+ },
+ RuleAction: {},
+ RuleActionType: {
+ enumValues: {
+ "makeRequired": 1,
+ "makeReadOnly": 2,
+ "setDefaultValue": 3,
+ "setDefaultFromClock": 4,
+ "setDefaultFromCurrentUser": 5,
+ "setDefaultFromField": 6,
+ "copyValue": 7,
+ "copyFromClock": 8,
+ "copyFromCurrentUser": 9,
+ "copyFromField": 10,
+ "setValueToEmpty": 11,
+ "copyFromServerClock": 12,
+ "copyFromServerCurrentUser": 13,
+ "hideTargetField": 14,
+ "disallowValue": 15
+ }
+ },
+ RuleCondition: {},
+ RuleConditionType: {
+ enumValues: {
+ "when": 1,
+ "whenNot": 2,
+ "whenChanged": 3,
+ "whenNotChanged": 4,
+ "whenWas": 5,
+ "whenStateChangedTo": 6,
+ "whenStateChangedFromAndTo": 7,
+ "whenWorkItemIsCreated": 8,
+ "whenValueIsDefined": 9,
+ "whenValueIsNotDefined": 10,
+ "whenCurrentUserIsMemberOfGroup": 11,
+ "whenCurrentUserIsNotMemberOfGroup": 12
+ }
+ },
+ UpdateProcessRuleRequest: {},
+ WorkItemStateResultModel: {},
+ WorkItemTypeClass: {
+ enumValues: {
+ "system": 0,
+ "derived": 1,
+ "custom": 2
+ }
+ },
+ WorkItemTypeModel: {},
+};
+exports.TypeInfo.CreateProcessRuleRequest.fields = {
+ actions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RuleAction
+ },
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RuleCondition
+ }
+};
+exports.TypeInfo.FieldModel.fields = {
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ }
+};
+exports.TypeInfo.FormLayout.fields = {
+ pages: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.Page
+ }
+};
+exports.TypeInfo.Page.fields = {
+ pageType: {
+ enumType: exports.TypeInfo.PageType
+ }
+};
+exports.TypeInfo.ProcessBehavior.fields = {
+ customization: {
+ enumType: exports.TypeInfo.CustomizationType
+ }
+};
+exports.TypeInfo.ProcessInfo.fields = {
+ customizationType: {
+ enumType: exports.TypeInfo.CustomizationType
+ }
+};
+exports.TypeInfo.ProcessModel.fields = {
+ properties: {
+ typeInfo: exports.TypeInfo.ProcessProperties
+ }
+};
+exports.TypeInfo.ProcessProperties.fields = {
+ class: {
+ enumType: exports.TypeInfo.ProcessClass
+ }
+};
+exports.TypeInfo.ProcessRule.fields = {
+ actions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RuleAction
+ },
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RuleCondition
+ },
+ customizationType: {
+ enumType: exports.TypeInfo.CustomizationType
+ }
+};
+exports.TypeInfo.ProcessWorkItemType.fields = {
+ customization: {
+ enumType: exports.TypeInfo.CustomizationType
+ },
+ layout: {
+ typeInfo: exports.TypeInfo.FormLayout
+ },
+ states: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WorkItemStateResultModel
+ }
+};
+exports.TypeInfo.ProcessWorkItemTypeField.fields = {
+ customization: {
+ enumType: exports.TypeInfo.CustomizationType
+ },
+ type: {
+ enumType: exports.TypeInfo.FieldType
+ }
+};
+exports.TypeInfo.RuleAction.fields = {
+ actionType: {
+ enumType: exports.TypeInfo.RuleActionType
+ }
+};
+exports.TypeInfo.RuleCondition.fields = {
+ conditionType: {
+ enumType: exports.TypeInfo.RuleConditionType
+ }
+};
+exports.TypeInfo.UpdateProcessRuleRequest.fields = {
+ actions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RuleAction
+ },
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.RuleCondition
+ }
+};
+exports.TypeInfo.WorkItemStateResultModel.fields = {
+ customizationType: {
+ enumType: exports.TypeInfo.CustomizationType
+ }
+};
+exports.TypeInfo.WorkItemTypeModel.fields = {
+ class: {
+ enumType: exports.TypeInfo.WorkItemTypeClass
+ },
+ layout: {
+ typeInfo: exports.TypeInfo.FormLayout
+ },
+ states: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.WorkItemStateResultModel
+ }
+};
+
+
+/***/ }),
+
+/***/ 3627:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+* ---------------------------------------------------------
+* Copyright(C) Microsoft Corporation. All rights reserved.
+* ---------------------------------------------------------
+*
+* ---------------------------------------------------------
+* Generated file, DO NOT EDIT
+* ---------------------------------------------------------
+*
+* See following wiki page for instructions on how to regenerate:
+* https://vsowiki.com/index.php?title=Rest_Client_Generation
+*/
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var InputDataType;
+(function (InputDataType) {
+ /**
+ * No data type is specified.
+ */
+ InputDataType[InputDataType["None"] = 0] = "None";
+ /**
+ * Represents a textual value.
+ */
+ InputDataType[InputDataType["String"] = 10] = "String";
+ /**
+ * Represents a numberic value.
+ */
+ InputDataType[InputDataType["Number"] = 20] = "Number";
+ /**
+ * Represents a value of true or false.
+ */
+ InputDataType[InputDataType["Boolean"] = 30] = "Boolean";
+ /**
+ * Represents a Guid.
+ */
+ InputDataType[InputDataType["Guid"] = 40] = "Guid";
+ /**
+ * Represents a URI.
+ */
+ InputDataType[InputDataType["Uri"] = 50] = "Uri";
+})(InputDataType = exports.InputDataType || (exports.InputDataType = {}));
+var InputFilterOperator;
+(function (InputFilterOperator) {
+ InputFilterOperator[InputFilterOperator["Equals"] = 0] = "Equals";
+ InputFilterOperator[InputFilterOperator["NotEquals"] = 1] = "NotEquals";
+})(InputFilterOperator = exports.InputFilterOperator || (exports.InputFilterOperator = {}));
+var InputMode;
+(function (InputMode) {
+ /**
+ * This input should not be shown in the UI
+ */
+ InputMode[InputMode["None"] = 0] = "None";
+ /**
+ * An input text box should be shown
+ */
+ InputMode[InputMode["TextBox"] = 10] = "TextBox";
+ /**
+ * An password input box should be shown
+ */
+ InputMode[InputMode["PasswordBox"] = 20] = "PasswordBox";
+ /**
+ * A select/combo control should be shown
+ */
+ InputMode[InputMode["Combo"] = 30] = "Combo";
+ /**
+ * Radio buttons should be shown
+ */
+ InputMode[InputMode["RadioButtons"] = 40] = "RadioButtons";
+ /**
+ * Checkbox should be shown(for true/false values)
+ */
+ InputMode[InputMode["CheckBox"] = 50] = "CheckBox";
+ /**
+ * A multi-line text area should be shown
+ */
+ InputMode[InputMode["TextArea"] = 60] = "TextArea";
+})(InputMode = exports.InputMode || (exports.InputMode = {}));
+exports.TypeInfo = {
+ InputDataType: {
+ enumValues: {
+ "none": 0,
+ "string": 10,
+ "number": 20,
+ "boolean": 30,
+ "guid": 40,
+ "uri": 50,
+ }
+ },
+ InputDescriptor: {
+ fields: null
+ },
+ InputFilter: {
+ fields: null
+ },
+ InputFilterCondition: {
+ fields: null
+ },
+ InputFilterOperator: {
+ enumValues: {
+ "equals": 0,
+ "notEquals": 1,
+ }
+ },
+ InputMode: {
+ enumValues: {
+ "none": 0,
+ "textBox": 10,
+ "passwordBox": 20,
+ "combo": 30,
+ "radioButtons": 40,
+ "checkBox": 50,
+ "textArea": 60,
+ }
+ },
+ InputValidation: {
+ fields: null
+ },
+ InputValue: {
+ fields: null
+ },
+ InputValues: {
+ fields: null
+ },
+ InputValuesError: {
+ fields: null
+ },
+ InputValuesQuery: {
+ fields: null
+ },
+};
+exports.TypeInfo.InputDescriptor.fields = {
+ inputMode: {
+ enumType: exports.TypeInfo.InputMode
+ },
+ validation: {
+ typeInfo: exports.TypeInfo.InputValidation
+ },
+ values: {
+ typeInfo: exports.TypeInfo.InputValues
+ },
+};
+exports.TypeInfo.InputFilter.fields = {
+ conditions: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.InputFilterCondition
+ },
+};
+exports.TypeInfo.InputFilterCondition.fields = {
+ operator: {
+ enumType: exports.TypeInfo.InputFilterOperator
+ },
+};
+exports.TypeInfo.InputValidation.fields = {
+ dataType: {
+ enumType: exports.TypeInfo.InputDataType
+ },
+};
+exports.TypeInfo.InputValue.fields = {};
+exports.TypeInfo.InputValues.fields = {
+ error: {
+ typeInfo: exports.TypeInfo.InputValuesError
+ },
+ possibleValues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.InputValue
+ },
+};
+exports.TypeInfo.InputValuesError.fields = {};
+exports.TypeInfo.InputValuesQuery.fields = {
+ inputValues: {
+ isArray: true,
+ typeInfo: exports.TypeInfo.InputValues
+ },
+};
+
+
+/***/ }),
+
+/***/ 3052:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+* ---------------------------------------------------------
+* Copyright(C) Microsoft Corporation. All rights reserved.
+* ---------------------------------------------------------
+*
+* ---------------------------------------------------------
+* Generated file, DO NOT EDIT
+* ---------------------------------------------------------
+*/
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var OperationStatus;
+(function (OperationStatus) {
+ /**
+ * The operation object does not have the status set.
+ */
+ OperationStatus[OperationStatus["NotSet"] = 0] = "NotSet";
+ /**
+ * The operation has been queued.
+ */
+ OperationStatus[OperationStatus["Queued"] = 1] = "Queued";
+ /**
+ * The operation is in progress.
+ */
+ OperationStatus[OperationStatus["InProgress"] = 2] = "InProgress";
+ /**
+ * The operation was cancelled by the user.
+ */
+ OperationStatus[OperationStatus["Cancelled"] = 3] = "Cancelled";
+ /**
+ * The operation completed successfully.
+ */
+ OperationStatus[OperationStatus["Succeeded"] = 4] = "Succeeded";
+ /**
+ * The operation completed with a failure.
+ */
+ OperationStatus[OperationStatus["Failed"] = 5] = "Failed";
+})(OperationStatus = exports.OperationStatus || (exports.OperationStatus = {}));
+exports.TypeInfo = {
+ OperationReference: {
+ fields: null
+ },
+ OperationStatus: {
+ enumValues: {
+ "notSet": 0,
+ "queued": 1,
+ "inProgress": 2,
+ "cancelled": 3,
+ "succeeded": 4,
+ "failed": 5,
+ }
+ },
+};
+exports.TypeInfo.OperationReference.fields = {
+ status: {
+ enumType: exports.TypeInfo.OperationStatus
+ },
+};
+
+
+/***/ }),
+
+/***/ 6790:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var DayOfWeek;
+(function (DayOfWeek) {
+ /**
+ * Indicates Sunday.
+ */
+ DayOfWeek[DayOfWeek["Sunday"] = 0] = "Sunday";
+ /**
+ * Indicates Monday.
+ */
+ DayOfWeek[DayOfWeek["Monday"] = 1] = "Monday";
+ /**
+ * Indicates Tuesday.
+ */
+ DayOfWeek[DayOfWeek["Tuesday"] = 2] = "Tuesday";
+ /**
+ * Indicates Wednesday.
+ */
+ DayOfWeek[DayOfWeek["Wednesday"] = 3] = "Wednesday";
+ /**
+ * Indicates Thursday.
+ */
+ DayOfWeek[DayOfWeek["Thursday"] = 4] = "Thursday";
+ /**
+ * Indicates Friday.
+ */
+ DayOfWeek[DayOfWeek["Friday"] = 5] = "Friday";
+ /**
+ * Indicates Saturday.
+ */
+ DayOfWeek[DayOfWeek["Saturday"] = 6] = "Saturday";
+})(DayOfWeek = exports.DayOfWeek || (exports.DayOfWeek = {}));
+exports.TypeInfo = {
+ DayOfWeek: {
+ enumValues: {
+ "sunday": 0,
+ "monday": 1,
+ "tuesday": 2,
+ "wednesday": 3,
+ "thursday": 4,
+ "friday": 5,
+ "saturday": 6
+ }
+ }
+};
+
+
+/***/ }),
+
+/***/ 4652:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+//----------------------------------------------------------
+// Copyright (C) Microsoft Corporation. All rights reserved.
+//----------------------------------------------------------
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Specifies SQL Server-specific data type of a field, property, for use in a System.Data.SqlClient.SqlParameter.
+ */
+var SqlDbType;
+(function (SqlDbType) {
+ /**
+ * A 64-bit signed integer.
+ */
+ SqlDbType[SqlDbType["BigInt"] = 0] = "BigInt";
+ /**
+ * Array of type Byte. A fixed-length stream of binary data ranging between 1 and 8,000 bytes.
+ */
+ SqlDbType[SqlDbType["Binary"] = 1] = "Binary";
+ /**
+ * Boolean. An unsigned numeric value that can be 0, 1, or null.
+ */
+ SqlDbType[SqlDbType["Bit"] = 2] = "Bit";
+ /**
+ * String. A fixed-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
+ */
+ SqlDbType[SqlDbType["Char"] = 3] = "Char";
+ /**
+ * DateTime. Date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds.
+ */
+ SqlDbType[SqlDbType["DateTime"] = 4] = "DateTime";
+ /**
+ * Decimal. A fixed precision and scale numeric value between -10 38 -1 and 10 38 -1.
+ */
+ SqlDbType[SqlDbType["Decimal"] = 5] = "Decimal";
+ /**
+ * Double. A floating point number within the range of -1.79E +308 through 1.79E +308.
+ */
+ SqlDbType[SqlDbType["Float"] = 6] = "Float";
+ /**
+ * Array of type Byte. A variable-length stream of binary data ranging from 0 to 2 31 -1 (or 2,147,483,647) bytes.
+ */
+ SqlDbType[SqlDbType["Image"] = 7] = "Image";
+ /**
+ * Int32. A 32-bit signed integer.
+ */
+ SqlDbType[SqlDbType["Int"] = 8] = "Int";
+ /**
+ * Decimal. A currency value ranging from -2 63 (or -9,223,372,036,854,775,808) to 2 63 -1 (or +9,223,372,036,854,775,807) with an accuracy to a ten-thousandth of a currency unit.
+ */
+ SqlDbType[SqlDbType["Money"] = 9] = "Money";
+ /**
+ * String. A fixed-length stream of Unicode characters ranging between 1 and 4,000 characters.
+ */
+ SqlDbType[SqlDbType["NChar"] = 10] = "NChar";
+ /**
+ * String. A variable-length stream of Unicode data with a maximum length of 2 30 - 1 (or 1,073,741,823) characters.
+ */
+ SqlDbType[SqlDbType["NText"] = 11] = "NText";
+ /**
+ * String. A variable-length stream of Unicode characters ranging between 1 and 4,000 characters. Implicit conversion fails if the string is greater than 4,000 characters. Explicitly set the object when working with strings longer than 4,000 characters. Use System.Data.SqlDbType.NVarChar when the database column is nvarchar(max).
+ */
+ SqlDbType[SqlDbType["NVarChar"] = 12] = "NVarChar";
+ /**
+ * Single. A floating point number within the range of -3.40E +38 through 3.40E +38.
+ */
+ SqlDbType[SqlDbType["Real"] = 13] = "Real";
+ /**
+ * Guid. A globally unique identifier (or GUID).
+ */
+ SqlDbType[SqlDbType["UniqueIdentifier"] = 14] = "UniqueIdentifier";
+ /**
+ * DateTime. Date and time data ranging in value from January 1, 1900 to June 6, 2079 to an accuracy of one minute.
+ */
+ SqlDbType[SqlDbType["SmallDateTime"] = 15] = "SmallDateTime";
+ /**
+ * Int16. A 16-bit signed integer.
+ */
+ SqlDbType[SqlDbType["SmallInt"] = 16] = "SmallInt";
+ /**
+ * Decimal. A currency value ranging from -214,748.3648 to +214,748.3647 with an accuracy to a ten-thousandth of a currency unit.
+ */
+ SqlDbType[SqlDbType["SmallMoney"] = 17] = "SmallMoney";
+ /**
+ * String. A variable-length stream of non-Unicode data with a maximum length of 2 31 -1 (or 2,147,483,647) characters.
+ */
+ SqlDbType[SqlDbType["Text"] = 18] = "Text";
+ /**
+ * Array of type System.Byte. Automatically generated binary numbers, which are guaranteed to be unique within a database. timestamp is used typically as a mechanism for version-stamping table rows. The storage size is 8 bytes.
+ */
+ SqlDbType[SqlDbType["Timestamp"] = 19] = "Timestamp";
+ /**
+ * Byte. An 8-bit unsigned integer.
+ */
+ SqlDbType[SqlDbType["TinyInt"] = 20] = "TinyInt";
+ /**
+ * Array of type Byte. A variable-length stream of binary data ranging between 1 and 8,000 bytes. Implicit conversion fails if the byte array is greater than 8,000 bytes. Explicitly set the object when working with byte arrays larger than 8,000 bytes.
+ */
+ SqlDbType[SqlDbType["VarBinary"] = 21] = "VarBinary";
+ /**
+ * String. A variable-length stream of non-Unicode characters ranging between 1 and 8,000 characters. Use System.Data.SqlDbType.VarChar when the database column is varchar(max).
+ */
+ SqlDbType[SqlDbType["VarChar"] = 22] = "VarChar";
+ /**
+ * Object. A special data type that can contain numeric, string, binary, or date data as well as the SQL Server values Empty and Null, which is assumed if no other type is declared.
+ */
+ SqlDbType[SqlDbType["Variant"] = 23] = "Variant";
+ /**
+ * An XML value. Obtain the XML as a string using the System.Data.SqlClient.SqlDataReader.GetValue(System.Int32) method or System.Data.SqlTypes.SqlXml.Value property, or as an System.Xml.XmlReader by calling the System.Data.SqlTypes.SqlXml.CreateReader method.
+ */
+ SqlDbType[SqlDbType["Xml"] = 25] = "Xml";
+ /**
+ * A SQL Server user-defined type (UDT).
+ */
+ SqlDbType[SqlDbType["Udt"] = 29] = "Udt";
+ /**
+ * A special data type for specifying structured data contained in table-valued parameters.
+ */
+ SqlDbType[SqlDbType["Structured"] = 30] = "Structured";
+ /**
+ * Date data ranging in value from January 1,1 AD through December 31, 9999 AD.
+ */
+ SqlDbType[SqlDbType["Date"] = 31] = "Date";
+ /**
+ * Time data based on a 24-hour clock. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds. Corresponds to a SQL Server time value.
+ */
+ SqlDbType[SqlDbType["Time"] = 32] = "Time";
+ /**
+ * Date and time data. Date value range is from January 1,1 AD through December 31, 9999 AD. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds.
+ */
+ SqlDbType[SqlDbType["DateTime2"] = 33] = "DateTime2";
+ /**
+ * Date and time data with time zone awareness. Date value range is from January 1,1 AD through December 31, 9999 AD. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds. Time zone value range is -14:00 through +14:00.
+ */
+ SqlDbType[SqlDbType["DateTimeOffset"] = 34] = "DateTimeOffset";
+})(SqlDbType = exports.SqlDbType || (exports.SqlDbType = {}));
+exports.TypeInfo = {
+ SqlDbType: {
+ enumValues: {
+ "BigInt": 0,
+ "Binary": 1,
+ "Bit": 2,
+ "Char": 3,
+ "DateTime": 4,
+ "Decimal": 5,
+ "Float": 6,
+ "Image": 7,
+ "Int": 8,
+ "Money": 9,
+ "NChar": 10,
+ "NText": 11,
+ "NVarChar": 12,
+ "Real": 13,
+ "UniqueIdentifier": 14,
+ "SmallDateTime": 15,
+ "SmallInt": 16,
+ "SmallMoney": 17,
+ "Text": 18,
+ "Timestamp": 19,
+ "TinyInt": 20,
+ "VarBinary": 21,
+ "VarChar": 22,
+ "Variant": 23,
+ "Xml": 25,
+ "Udt": 29,
+ "Structured": 30,
+ "Date": 31,
+ "Time": 32,
+ "DateTime2": 33,
+ "DateTimeOffset": 34
+ }
+ }
+};
+
+
+/***/ }),
+
+/***/ 4498:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+/*
+ * ---------------------------------------------------------
+ * Copyright(C) Microsoft Corporation. All rights reserved.
+ * ---------------------------------------------------------
+ *
+ * ---------------------------------------------------------
+ * Generated file, DO NOT EDIT
+ * ---------------------------------------------------------
+ */
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+/**
+ * Enumeration of the options that can be passed in on Connect.
+ */
+var ConnectOptions;
+(function (ConnectOptions) {
+ /**
+ * Retrieve no optional data.
+ */
+ ConnectOptions[ConnectOptions["None"] = 0] = "None";
+ /**
+ * Includes information about AccessMappings and ServiceDefinitions.
+ */
+ ConnectOptions[ConnectOptions["IncludeServices"] = 1] = "IncludeServices";
+ /**
+ * Includes the last user access for this host.
+ */
+ ConnectOptions[ConnectOptions["IncludeLastUserAccess"] = 2] = "IncludeLastUserAccess";
+ /**
+ * This is only valid on the deployment host and when true. Will only return inherited definitions.
+ */
+ ConnectOptions[ConnectOptions["IncludeInheritedDefinitionsOnly"] = 4] = "IncludeInheritedDefinitionsOnly";
+ /**
+ * When true will only return non inherited definitions. Only valid at non-deployment host.
+ */
+ ConnectOptions[ConnectOptions["IncludeNonInheritedDefinitionsOnly"] = 8] = "IncludeNonInheritedDefinitionsOnly";
+})(ConnectOptions = exports.ConnectOptions || (exports.ConnectOptions = {}));
+var DeploymentFlags;
+(function (DeploymentFlags) {
+ DeploymentFlags[DeploymentFlags["None"] = 0] = "None";
+ DeploymentFlags[DeploymentFlags["Hosted"] = 1] = "Hosted";
+ DeploymentFlags[DeploymentFlags["OnPremises"] = 2] = "OnPremises";
+})(DeploymentFlags = exports.DeploymentFlags || (exports.DeploymentFlags = {}));
+var JWTAlgorithm;
+(function (JWTAlgorithm) {
+ JWTAlgorithm[JWTAlgorithm["None"] = 0] = "None";
+ JWTAlgorithm[JWTAlgorithm["HS256"] = 1] = "HS256";
+ JWTAlgorithm[JWTAlgorithm["RS256"] = 2] = "RS256";
+})(JWTAlgorithm = exports.JWTAlgorithm || (exports.JWTAlgorithm = {}));
+var Operation;
+(function (Operation) {
+ Operation[Operation["Add"] = 0] = "Add";
+ Operation[Operation["Remove"] = 1] = "Remove";
+ Operation[Operation["Replace"] = 2] = "Replace";
+ Operation[Operation["Move"] = 3] = "Move";
+ Operation[Operation["Copy"] = 4] = "Copy";
+ Operation[Operation["Test"] = 5] = "Test";
+})(Operation = exports.Operation || (exports.Operation = {}));
+exports.TypeInfo = {
+ ConnectOptions: {
+ enumValues: {
+ "none": 0,
+ "includeServices": 1,
+ "includeLastUserAccess": 2,
+ "includeInheritedDefinitionsOnly": 4,
+ "includeNonInheritedDefinitionsOnly": 8
+ }
+ },
+ DeploymentFlags: {
+ enumValues: {
+ "none": 0,
+ "hosted": 1,
+ "onPremises": 2
+ }
+ },
+ JsonPatchOperation: {},
+ JWTAlgorithm: {
+ enumValues: {
+ "none": 0,
+ "hS256": 1,
+ "rS256": 2
+ }
+ },
+ Operation: {
+ enumValues: {
+ "add": 0,
+ "remove": 1,
+ "replace": 2,
+ "move": 3,
+ "copy": 4,
+ "test": 5
+ }
+ },
+ SignedUrl: {},
+ TraceFilter: {},
+ VssNotificationEvent: {},
+};
+exports.TypeInfo.JsonPatchOperation.fields = {
+ op: {
+ enumType: exports.TypeInfo.Operation
+ }
+};
+exports.TypeInfo.SignedUrl.fields = {
+ signatureExpires: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.TraceFilter.fields = {
+ timeCreated: {
+ isDate: true,
+ }
+};
+exports.TypeInfo.VssNotificationEvent.fields = {
+ sourceEventCreatedTime: {
+ isDate: true,
+ }
+};
+
+
+/***/ }),
+
+/***/ 3682:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var register = __nccwpck_require__(4670);
+var addHook = __nccwpck_require__(5549);
+var removeHook = __nccwpck_require__(6819);
+
+// bind with array of arguments: https://stackoverflow.com/a/21792913
+var bind = Function.bind;
+var bindable = bind.bind(bind);
+
+function bindApi(hook, state, name) {
+ var removeHookRef = bindable(removeHook, null).apply(
+ null,
+ name ? [state, name] : [state]
+ );
+ hook.api = { remove: removeHookRef };
+ hook.remove = removeHookRef;
+ ["before", "error", "after", "wrap"].forEach(function (kind) {
+ var args = name ? [state, kind, name] : [state, kind];
+ hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
+ });
+}
+
+function HookSingular() {
+ var singularHookName = "h";
+ var singularHookState = {
+ registry: {},
+ };
+ var singularHook = register.bind(null, singularHookState, singularHookName);
+ bindApi(singularHook, singularHookState, singularHookName);
+ return singularHook;
+}
+
+function HookCollection() {
+ var state = {
+ registry: {},
+ };
+
+ var hook = register.bind(null, state);
+ bindApi(hook, state);
+
+ return hook;
+}
+
+var collectionHookDeprecationMessageDisplayed = false;
+function Hook() {
+ if (!collectionHookDeprecationMessageDisplayed) {
+ console.warn(
+ '[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
+ );
+ collectionHookDeprecationMessageDisplayed = true;
+ }
+ return HookCollection();
+}
+
+Hook.Singular = HookSingular.bind();
+Hook.Collection = HookCollection.bind();
+
+module.exports = Hook;
+// expose constructors as a named property for TypeScript
+module.exports.Hook = Hook;
+module.exports.Singular = Hook.Singular;
+module.exports.Collection = Hook.Collection;
+
+
+/***/ }),
+
+/***/ 5549:
+/***/ ((module) => {
+
+module.exports = addHook;
+
+function addHook(state, kind, name, hook) {
+ var orig = hook;
+ if (!state.registry[name]) {
+ state.registry[name] = [];
+ }
+
+ if (kind === "before") {
+ hook = function (method, options) {
+ return Promise.resolve()
+ .then(orig.bind(null, options))
+ .then(method.bind(null, options));
+ };
+ }
+
+ if (kind === "after") {
+ hook = function (method, options) {
+ var result;
+ return Promise.resolve()
+ .then(method.bind(null, options))
+ .then(function (result_) {
+ result = result_;
+ return orig(result, options);
+ })
+ .then(function () {
+ return result;
+ });
+ };
+ }
+
+ if (kind === "error") {
+ hook = function (method, options) {
+ return Promise.resolve()
+ .then(method.bind(null, options))
+ .catch(function (error) {
+ return orig(error, options);
+ });
+ };
+ }
+
+ state.registry[name].push({
+ hook: hook,
+ orig: orig,
+ });
+}
+
+
+/***/ }),
+
+/***/ 4670:
+/***/ ((module) => {
+
+module.exports = register;
+
+function register(state, name, method, options) {
+ if (typeof method !== "function") {
+ throw new Error("method for before hook must be a function");
+ }
+
+ if (!options) {
+ options = {};
+ }
+
+ if (Array.isArray(name)) {
+ return name.reverse().reduce(function (callback, name) {
+ return register.bind(null, state, name, callback, options);
+ }, method)();
+ }
+
+ return Promise.resolve().then(function () {
+ if (!state.registry[name]) {
+ return method(options);
+ }
+
+ return state.registry[name].reduce(function (method, registered) {
+ return registered.hook.bind(null, method, options);
+ }, method)();
+ });
+}
+
+
+/***/ }),
+
+/***/ 6819:
+/***/ ((module) => {
+
+module.exports = removeHook;
+
+function removeHook(state, name, method) {
+ if (!state.registry[name]) {
+ return;
+ }
+
+ var index = state.registry[name]
+ .map(function (registered) {
+ return registered.orig;
+ })
+ .indexOf(method);
+
+ if (index === -1) {
+ return;
+ }
+
+ state.registry[name].splice(index, 1);
+}
+
+
+/***/ }),
+
+/***/ 1174:
+/***/ (function(module) {
+
+/**
+ * This file contains the Bottleneck library (MIT), compiled to ES2017, and without Clustering support.
+ * https://github.com/SGrondin/bottleneck
+ */
+(function (global, factory) {
+ true ? module.exports = factory() :
+ 0;
+}(this, (function () { 'use strict';
+
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
+
+ function getCjsExportFromNamespace (n) {
+ return n && n['default'] || n;
+ }
+
+ var load = function(received, defaults, onto = {}) {
+ var k, ref, v;
+ for (k in defaults) {
+ v = defaults[k];
+ onto[k] = (ref = received[k]) != null ? ref : v;
+ }
+ return onto;
+ };
+
+ var overwrite = function(received, defaults, onto = {}) {
+ var k, v;
+ for (k in received) {
+ v = received[k];
+ if (defaults[k] !== void 0) {
+ onto[k] = v;
+ }
+ }
+ return onto;
+ };
+
+ var parser = {
+ load: load,
+ overwrite: overwrite
+ };
+
+ var DLList;
+
+ DLList = class DLList {
+ constructor(incr, decr) {
+ this.incr = incr;
+ this.decr = decr;
+ this._first = null;
+ this._last = null;
+ this.length = 0;
+ }
+
+ push(value) {
+ var node;
+ this.length++;
+ if (typeof this.incr === "function") {
+ this.incr();
+ }
+ node = {
+ value,
+ prev: this._last,
+ next: null
+ };
+ if (this._last != null) {
+ this._last.next = node;
+ this._last = node;
+ } else {
+ this._first = this._last = node;
+ }
+ return void 0;
+ }
+
+ shift() {
+ var value;
+ if (this._first == null) {
+ return;
+ } else {
+ this.length--;
+ if (typeof this.decr === "function") {
+ this.decr();
+ }
+ }
+ value = this._first.value;
+ if ((this._first = this._first.next) != null) {
+ this._first.prev = null;
+ } else {
+ this._last = null;
+ }
+ return value;
+ }
+
+ first() {
+ if (this._first != null) {
+ return this._first.value;
+ }
+ }
+
+ getArray() {
+ var node, ref, results;
+ node = this._first;
+ results = [];
+ while (node != null) {
+ results.push((ref = node, node = node.next, ref.value));
+ }
+ return results;
+ }
+
+ forEachShift(cb) {
+ var node;
+ node = this.shift();
+ while (node != null) {
+ (cb(node), node = this.shift());
+ }
+ return void 0;
+ }
+
+ debug() {
+ var node, ref, ref1, ref2, results;
+ node = this._first;
+ results = [];
+ while (node != null) {
+ results.push((ref = node, node = node.next, {
+ value: ref.value,
+ prev: (ref1 = ref.prev) != null ? ref1.value : void 0,
+ next: (ref2 = ref.next) != null ? ref2.value : void 0
+ }));
+ }
+ return results;
+ }
+
+ };
+
+ var DLList_1 = DLList;
+
+ var Events;
+
+ Events = class Events {
+ constructor(instance) {
+ this.instance = instance;
+ this._events = {};
+ if ((this.instance.on != null) || (this.instance.once != null) || (this.instance.removeAllListeners != null)) {
+ throw new Error("An Emitter already exists for this object");
+ }
+ this.instance.on = (name, cb) => {
+ return this._addListener(name, "many", cb);
+ };
+ this.instance.once = (name, cb) => {
+ return this._addListener(name, "once", cb);
+ };
+ this.instance.removeAllListeners = (name = null) => {
+ if (name != null) {
+ return delete this._events[name];
+ } else {
+ return this._events = {};
+ }
+ };
+ }
+
+ _addListener(name, status, cb) {
+ var base;
+ if ((base = this._events)[name] == null) {
+ base[name] = [];
+ }
+ this._events[name].push({cb, status});
+ return this.instance;
+ }
+
+ listenerCount(name) {
+ if (this._events[name] != null) {
+ return this._events[name].length;
+ } else {
+ return 0;
+ }
+ }
+
+ async trigger(name, ...args) {
+ var e, promises;
+ try {
+ if (name !== "debug") {
+ this.trigger("debug", `Event triggered: ${name}`, args);
+ }
+ if (this._events[name] == null) {
+ return;
+ }
+ this._events[name] = this._events[name].filter(function(listener) {
+ return listener.status !== "none";
+ });
+ promises = this._events[name].map(async(listener) => {
+ var e, returned;
+ if (listener.status === "none") {
+ return;
+ }
+ if (listener.status === "once") {
+ listener.status = "none";
+ }
+ try {
+ returned = typeof listener.cb === "function" ? listener.cb(...args) : void 0;
+ if (typeof (returned != null ? returned.then : void 0) === "function") {
+ return (await returned);
+ } else {
+ return returned;
+ }
+ } catch (error) {
+ e = error;
+ {
+ this.trigger("error", e);
+ }
+ return null;
+ }
+ });
+ return ((await Promise.all(promises))).find(function(x) {
+ return x != null;
+ });
+ } catch (error) {
+ e = error;
+ {
+ this.trigger("error", e);
+ }
+ return null;
+ }
+ }
+
+ };
+
+ var Events_1 = Events;
+
+ var DLList$1, Events$1, Queues;
+
+ DLList$1 = DLList_1;
+
+ Events$1 = Events_1;
+
+ Queues = class Queues {
+ constructor(num_priorities) {
+ var i;
+ this.Events = new Events$1(this);
+ this._length = 0;
+ this._lists = (function() {
+ var j, ref, results;
+ results = [];
+ for (i = j = 1, ref = num_priorities; (1 <= ref ? j <= ref : j >= ref); i = 1 <= ref ? ++j : --j) {
+ results.push(new DLList$1((() => {
+ return this.incr();
+ }), (() => {
+ return this.decr();
+ })));
+ }
+ return results;
+ }).call(this);
+ }
+
+ incr() {
+ if (this._length++ === 0) {
+ return this.Events.trigger("leftzero");
+ }
+ }
+
+ decr() {
+ if (--this._length === 0) {
+ return this.Events.trigger("zero");
+ }
+ }
+
+ push(job) {
+ return this._lists[job.options.priority].push(job);
+ }
+
+ queued(priority) {
+ if (priority != null) {
+ return this._lists[priority].length;
+ } else {
+ return this._length;
+ }
+ }
+
+ shiftAll(fn) {
+ return this._lists.forEach(function(list) {
+ return list.forEachShift(fn);
+ });
+ }
+
+ getFirst(arr = this._lists) {
+ var j, len, list;
+ for (j = 0, len = arr.length; j < len; j++) {
+ list = arr[j];
+ if (list.length > 0) {
+ return list;
+ }
+ }
+ return [];
+ }
+
+ shiftLastFrom(priority) {
+ return this.getFirst(this._lists.slice(priority).reverse()).shift();
+ }
+
+ };
+
+ var Queues_1 = Queues;
+
+ var BottleneckError;
+
+ BottleneckError = class BottleneckError extends Error {};
+
+ var BottleneckError_1 = BottleneckError;
+
+ var BottleneckError$1, DEFAULT_PRIORITY, Job, NUM_PRIORITIES, parser$1;
+
+ NUM_PRIORITIES = 10;
+
+ DEFAULT_PRIORITY = 5;
+
+ parser$1 = parser;
+
+ BottleneckError$1 = BottleneckError_1;
+
+ Job = class Job {
+ constructor(task, args, options, jobDefaults, rejectOnDrop, Events, _states, Promise) {
+ this.task = task;
+ this.args = args;
+ this.rejectOnDrop = rejectOnDrop;
+ this.Events = Events;
+ this._states = _states;
+ this.Promise = Promise;
+ this.options = parser$1.load(options, jobDefaults);
+ this.options.priority = this._sanitizePriority(this.options.priority);
+ if (this.options.id === jobDefaults.id) {
+ this.options.id = `${this.options.id}-${this._randomIndex()}`;
+ }
+ this.promise = new this.Promise((_resolve, _reject) => {
+ this._resolve = _resolve;
+ this._reject = _reject;
+ });
+ this.retryCount = 0;
+ }
+
+ _sanitizePriority(priority) {
+ var sProperty;
+ sProperty = ~~priority !== priority ? DEFAULT_PRIORITY : priority;
+ if (sProperty < 0) {
+ return 0;
+ } else if (sProperty > NUM_PRIORITIES - 1) {
+ return NUM_PRIORITIES - 1;
+ } else {
+ return sProperty;
+ }
+ }
+
+ _randomIndex() {
+ return Math.random().toString(36).slice(2);
+ }
+
+ doDrop({error, message = "This job has been dropped by Bottleneck"} = {}) {
+ if (this._states.remove(this.options.id)) {
+ if (this.rejectOnDrop) {
+ this._reject(error != null ? error : new BottleneckError$1(message));
+ }
+ this.Events.trigger("dropped", {args: this.args, options: this.options, task: this.task, promise: this.promise});
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ _assertStatus(expected) {
+ var status;
+ status = this._states.jobStatus(this.options.id);
+ if (!(status === expected || (expected === "DONE" && status === null))) {
+ throw new BottleneckError$1(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`);
+ }
+ }
+
+ doReceive() {
+ this._states.start(this.options.id);
+ return this.Events.trigger("received", {args: this.args, options: this.options});
+ }
+
+ doQueue(reachedHWM, blocked) {
+ this._assertStatus("RECEIVED");
+ this._states.next(this.options.id);
+ return this.Events.trigger("queued", {args: this.args, options: this.options, reachedHWM, blocked});
+ }
+
+ doRun() {
+ if (this.retryCount === 0) {
+ this._assertStatus("QUEUED");
+ this._states.next(this.options.id);
+ } else {
+ this._assertStatus("EXECUTING");
+ }
+ return this.Events.trigger("scheduled", {args: this.args, options: this.options});
+ }
+
+ async doExecute(chained, clearGlobalState, run, free) {
+ var error, eventInfo, passed;
+ if (this.retryCount === 0) {
+ this._assertStatus("RUNNING");
+ this._states.next(this.options.id);
+ } else {
+ this._assertStatus("EXECUTING");
+ }
+ eventInfo = {args: this.args, options: this.options, retryCount: this.retryCount};
+ this.Events.trigger("executing", eventInfo);
+ try {
+ passed = (await (chained != null ? chained.schedule(this.options, this.task, ...this.args) : this.task(...this.args)));
+ if (clearGlobalState()) {
+ this.doDone(eventInfo);
+ await free(this.options, eventInfo);
+ this._assertStatus("DONE");
+ return this._resolve(passed);
+ }
+ } catch (error1) {
+ error = error1;
+ return this._onFailure(error, eventInfo, clearGlobalState, run, free);
+ }
+ }
+
+ doExpire(clearGlobalState, run, free) {
+ var error, eventInfo;
+ if (this._states.jobStatus(this.options.id === "RUNNING")) {
+ this._states.next(this.options.id);
+ }
+ this._assertStatus("EXECUTING");
+ eventInfo = {args: this.args, options: this.options, retryCount: this.retryCount};
+ error = new BottleneckError$1(`This job timed out after ${this.options.expiration} ms.`);
+ return this._onFailure(error, eventInfo, clearGlobalState, run, free);
+ }
+
+ async _onFailure(error, eventInfo, clearGlobalState, run, free) {
+ var retry, retryAfter;
+ if (clearGlobalState()) {
+ retry = (await this.Events.trigger("failed", error, eventInfo));
+ if (retry != null) {
+ retryAfter = ~~retry;
+ this.Events.trigger("retry", `Retrying ${this.options.id} after ${retryAfter} ms`, eventInfo);
+ this.retryCount++;
+ return run(retryAfter);
+ } else {
+ this.doDone(eventInfo);
+ await free(this.options, eventInfo);
+ this._assertStatus("DONE");
+ return this._reject(error);
+ }
+ }
+ }
+
+ doDone(eventInfo) {
+ this._assertStatus("EXECUTING");
+ this._states.next(this.options.id);
+ return this.Events.trigger("done", eventInfo);
+ }
+
+ };
+
+ var Job_1 = Job;
+
+ var BottleneckError$2, LocalDatastore, parser$2;
+
+ parser$2 = parser;
+
+ BottleneckError$2 = BottleneckError_1;
+
+ LocalDatastore = class LocalDatastore {
+ constructor(instance, storeOptions, storeInstanceOptions) {
+ this.instance = instance;
+ this.storeOptions = storeOptions;
+ this.clientId = this.instance._randomIndex();
+ parser$2.load(storeInstanceOptions, storeInstanceOptions, this);
+ this._nextRequest = this._lastReservoirRefresh = this._lastReservoirIncrease = Date.now();
+ this._running = 0;
+ this._done = 0;
+ this._unblockTime = 0;
+ this.ready = this.Promise.resolve();
+ this.clients = {};
+ this._startHeartbeat();
+ }
+
+ _startHeartbeat() {
+ var base;
+ if ((this.heartbeat == null) && (((this.storeOptions.reservoirRefreshInterval != null) && (this.storeOptions.reservoirRefreshAmount != null)) || ((this.storeOptions.reservoirIncreaseInterval != null) && (this.storeOptions.reservoirIncreaseAmount != null)))) {
+ return typeof (base = (this.heartbeat = setInterval(() => {
+ var amount, incr, maximum, now, reservoir;
+ now = Date.now();
+ if ((this.storeOptions.reservoirRefreshInterval != null) && now >= this._lastReservoirRefresh + this.storeOptions.reservoirRefreshInterval) {
+ this._lastReservoirRefresh = now;
+ this.storeOptions.reservoir = this.storeOptions.reservoirRefreshAmount;
+ this.instance._drainAll(this.computeCapacity());
+ }
+ if ((this.storeOptions.reservoirIncreaseInterval != null) && now >= this._lastReservoirIncrease + this.storeOptions.reservoirIncreaseInterval) {
+ ({
+ reservoirIncreaseAmount: amount,
+ reservoirIncreaseMaximum: maximum,
+ reservoir
+ } = this.storeOptions);
+ this._lastReservoirIncrease = now;
+ incr = maximum != null ? Math.min(amount, maximum - reservoir) : amount;
+ if (incr > 0) {
+ this.storeOptions.reservoir += incr;
+ return this.instance._drainAll(this.computeCapacity());
+ }
+ }
+ }, this.heartbeatInterval))).unref === "function" ? base.unref() : void 0;
+ } else {
+ return clearInterval(this.heartbeat);
+ }
+ }
+
+ async __publish__(message) {
+ await this.yieldLoop();
+ return this.instance.Events.trigger("message", message.toString());
+ }
+
+ async __disconnect__(flush) {
+ await this.yieldLoop();
+ clearInterval(this.heartbeat);
+ return this.Promise.resolve();
+ }
+
+ yieldLoop(t = 0) {
+ return new this.Promise(function(resolve, reject) {
+ return setTimeout(resolve, t);
+ });
+ }
+
+ computePenalty() {
+ var ref;
+ return (ref = this.storeOptions.penalty) != null ? ref : (15 * this.storeOptions.minTime) || 5000;
+ }
+
+ async __updateSettings__(options) {
+ await this.yieldLoop();
+ parser$2.overwrite(options, options, this.storeOptions);
+ this._startHeartbeat();
+ this.instance._drainAll(this.computeCapacity());
+ return true;
+ }
+
+ async __running__() {
+ await this.yieldLoop();
+ return this._running;
+ }
+
+ async __queued__() {
+ await this.yieldLoop();
+ return this.instance.queued();
+ }
+
+ async __done__() {
+ await this.yieldLoop();
+ return this._done;
+ }
+
+ async __groupCheck__(time) {
+ await this.yieldLoop();
+ return (this._nextRequest + this.timeout) < time;
+ }
+
+ computeCapacity() {
+ var maxConcurrent, reservoir;
+ ({maxConcurrent, reservoir} = this.storeOptions);
+ if ((maxConcurrent != null) && (reservoir != null)) {
+ return Math.min(maxConcurrent - this._running, reservoir);
+ } else if (maxConcurrent != null) {
+ return maxConcurrent - this._running;
+ } else if (reservoir != null) {
+ return reservoir;
+ } else {
+ return null;
+ }
+ }
+
+ conditionsCheck(weight) {
+ var capacity;
+ capacity = this.computeCapacity();
+ return (capacity == null) || weight <= capacity;
+ }
+
+ async __incrementReservoir__(incr) {
+ var reservoir;
+ await this.yieldLoop();
+ reservoir = this.storeOptions.reservoir += incr;
+ this.instance._drainAll(this.computeCapacity());
+ return reservoir;
+ }
+
+ async __currentReservoir__() {
+ await this.yieldLoop();
+ return this.storeOptions.reservoir;
+ }
+
+ isBlocked(now) {
+ return this._unblockTime >= now;
+ }
+
+ check(weight, now) {
+ return this.conditionsCheck(weight) && (this._nextRequest - now) <= 0;
+ }
+
+ async __check__(weight) {
+ var now;
+ await this.yieldLoop();
+ now = Date.now();
+ return this.check(weight, now);
+ }
+
+ async __register__(index, weight, expiration) {
+ var now, wait;
+ await this.yieldLoop();
+ now = Date.now();
+ if (this.conditionsCheck(weight)) {
+ this._running += weight;
+ if (this.storeOptions.reservoir != null) {
+ this.storeOptions.reservoir -= weight;
+ }
+ wait = Math.max(this._nextRequest - now, 0);
+ this._nextRequest = now + wait + this.storeOptions.minTime;
+ return {
+ success: true,
+ wait,
+ reservoir: this.storeOptions.reservoir
+ };
+ } else {
+ return {
+ success: false
+ };
+ }
+ }
+
+ strategyIsBlock() {
+ return this.storeOptions.strategy === 3;
+ }
+
+ async __submit__(queueLength, weight) {
+ var blocked, now, reachedHWM;
+ await this.yieldLoop();
+ if ((this.storeOptions.maxConcurrent != null) && weight > this.storeOptions.maxConcurrent) {
+ throw new BottleneckError$2(`Impossible to add a job having a weight of ${weight} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);
+ }
+ now = Date.now();
+ reachedHWM = (this.storeOptions.highWater != null) && queueLength === this.storeOptions.highWater && !this.check(weight, now);
+ blocked = this.strategyIsBlock() && (reachedHWM || this.isBlocked(now));
+ if (blocked) {
+ this._unblockTime = now + this.computePenalty();
+ this._nextRequest = this._unblockTime + this.storeOptions.minTime;
+ this.instance._dropAllQueued();
+ }
+ return {
+ reachedHWM,
+ blocked,
+ strategy: this.storeOptions.strategy
+ };
+ }
+
+ async __free__(index, weight) {
+ await this.yieldLoop();
+ this._running -= weight;
+ this._done += weight;
+ this.instance._drainAll(this.computeCapacity());
+ return {
+ running: this._running
+ };
+ }
+
+ };
+
+ var LocalDatastore_1 = LocalDatastore;
+
+ var BottleneckError$3, States;
+
+ BottleneckError$3 = BottleneckError_1;
+
+ States = class States {
+ constructor(status1) {
+ this.status = status1;
+ this._jobs = {};
+ this.counts = this.status.map(function() {
+ return 0;
+ });
+ }
+
+ next(id) {
+ var current, next;
+ current = this._jobs[id];
+ next = current + 1;
+ if ((current != null) && next < this.status.length) {
+ this.counts[current]--;
+ this.counts[next]++;
+ return this._jobs[id]++;
+ } else if (current != null) {
+ this.counts[current]--;
+ return delete this._jobs[id];
+ }
+ }
+
+ start(id) {
+ var initial;
+ initial = 0;
+ this._jobs[id] = initial;
+ return this.counts[initial]++;
+ }
+
+ remove(id) {
+ var current;
+ current = this._jobs[id];
+ if (current != null) {
+ this.counts[current]--;
+ delete this._jobs[id];
+ }
+ return current != null;
+ }
+
+ jobStatus(id) {
+ var ref;
+ return (ref = this.status[this._jobs[id]]) != null ? ref : null;
+ }
+
+ statusJobs(status) {
+ var k, pos, ref, results, v;
+ if (status != null) {
+ pos = this.status.indexOf(status);
+ if (pos < 0) {
+ throw new BottleneckError$3(`status must be one of ${this.status.join(', ')}`);
+ }
+ ref = this._jobs;
+ results = [];
+ for (k in ref) {
+ v = ref[k];
+ if (v === pos) {
+ results.push(k);
+ }
+ }
+ return results;
+ } else {
+ return Object.keys(this._jobs);
+ }
+ }
+
+ statusCounts() {
+ return this.counts.reduce(((acc, v, i) => {
+ acc[this.status[i]] = v;
+ return acc;
+ }), {});
+ }
+
+ };
+
+ var States_1 = States;
+
+ var DLList$2, Sync;
+
+ DLList$2 = DLList_1;
+
+ Sync = class Sync {
+ constructor(name, Promise) {
+ this.schedule = this.schedule.bind(this);
+ this.name = name;
+ this.Promise = Promise;
+ this._running = 0;
+ this._queue = new DLList$2();
+ }
+
+ isEmpty() {
+ return this._queue.length === 0;
+ }
+
+ async _tryToRun() {
+ var args, cb, error, reject, resolve, returned, task;
+ if ((this._running < 1) && this._queue.length > 0) {
+ this._running++;
+ ({task, args, resolve, reject} = this._queue.shift());
+ cb = (await (async function() {
+ try {
+ returned = (await task(...args));
+ return function() {
+ return resolve(returned);
+ };
+ } catch (error1) {
+ error = error1;
+ return function() {
+ return reject(error);
+ };
+ }
+ })());
+ this._running--;
+ this._tryToRun();
+ return cb();
+ }
+ }
+
+ schedule(task, ...args) {
+ var promise, reject, resolve;
+ resolve = reject = null;
+ promise = new this.Promise(function(_resolve, _reject) {
+ resolve = _resolve;
+ return reject = _reject;
+ });
+ this._queue.push({task, args, resolve, reject});
+ this._tryToRun();
+ return promise;
+ }
+
+ };
+
+ var Sync_1 = Sync;
+
+ var version = "2.19.5";
+ var version$1 = {
+ version: version
+ };
+
+ var version$2 = /*#__PURE__*/Object.freeze({
+ version: version,
+ default: version$1
+ });
+
+ var require$$2 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');
+
+ var require$$3 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');
+
+ var require$$4 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');
+
+ var Events$2, Group, IORedisConnection$1, RedisConnection$1, Scripts$1, parser$3;
+
+ parser$3 = parser;
+
+ Events$2 = Events_1;
+
+ RedisConnection$1 = require$$2;
+
+ IORedisConnection$1 = require$$3;
+
+ Scripts$1 = require$$4;
+
+ Group = (function() {
+ class Group {
+ constructor(limiterOptions = {}) {
+ this.deleteKey = this.deleteKey.bind(this);
+ this.limiterOptions = limiterOptions;
+ parser$3.load(this.limiterOptions, this.defaults, this);
+ this.Events = new Events$2(this);
+ this.instances = {};
+ this.Bottleneck = Bottleneck_1;
+ this._startAutoCleanup();
+ this.sharedConnection = this.connection != null;
+ if (this.connection == null) {
+ if (this.limiterOptions.datastore === "redis") {
+ this.connection = new RedisConnection$1(Object.assign({}, this.limiterOptions, {Events: this.Events}));
+ } else if (this.limiterOptions.datastore === "ioredis") {
+ this.connection = new IORedisConnection$1(Object.assign({}, this.limiterOptions, {Events: this.Events}));
+ }
+ }
+ }
+
+ key(key = "") {
+ var ref;
+ return (ref = this.instances[key]) != null ? ref : (() => {
+ var limiter;
+ limiter = this.instances[key] = new this.Bottleneck(Object.assign(this.limiterOptions, {
+ id: `${this.id}-${key}`,
+ timeout: this.timeout,
+ connection: this.connection
+ }));
+ this.Events.trigger("created", limiter, key);
+ return limiter;
+ })();
+ }
+
+ async deleteKey(key = "") {
+ var deleted, instance;
+ instance = this.instances[key];
+ if (this.connection) {
+ deleted = (await this.connection.__runCommand__(['del', ...Scripts$1.allKeys(`${this.id}-${key}`)]));
+ }
+ if (instance != null) {
+ delete this.instances[key];
+ await instance.disconnect();
+ }
+ return (instance != null) || deleted > 0;
+ }
+
+ limiters() {
+ var k, ref, results, v;
+ ref = this.instances;
+ results = [];
+ for (k in ref) {
+ v = ref[k];
+ results.push({
+ key: k,
+ limiter: v
+ });
+ }
+ return results;
+ }
+
+ keys() {
+ return Object.keys(this.instances);
+ }
+
+ async clusterKeys() {
+ var cursor, end, found, i, k, keys, len, next, start;
+ if (this.connection == null) {
+ return this.Promise.resolve(this.keys());
+ }
+ keys = [];
+ cursor = null;
+ start = `b_${this.id}-`.length;
+ end = "_settings".length;
+ while (cursor !== 0) {
+ [next, found] = (await this.connection.__runCommand__(["scan", cursor != null ? cursor : 0, "match", `b_${this.id}-*_settings`, "count", 10000]));
+ cursor = ~~next;
+ for (i = 0, len = found.length; i < len; i++) {
+ k = found[i];
+ keys.push(k.slice(start, -end));
+ }
+ }
+ return keys;
+ }
+
+ _startAutoCleanup() {
+ var base;
+ clearInterval(this.interval);
+ return typeof (base = (this.interval = setInterval(async() => {
+ var e, k, ref, results, time, v;
+ time = Date.now();
+ ref = this.instances;
+ results = [];
+ for (k in ref) {
+ v = ref[k];
+ try {
+ if ((await v._store.__groupCheck__(time))) {
+ results.push(this.deleteKey(k));
+ } else {
+ results.push(void 0);
+ }
+ } catch (error) {
+ e = error;
+ results.push(v.Events.trigger("error", e));
+ }
+ }
+ return results;
+ }, this.timeout / 2))).unref === "function" ? base.unref() : void 0;
+ }
+
+ updateSettings(options = {}) {
+ parser$3.overwrite(options, this.defaults, this);
+ parser$3.overwrite(options, options, this.limiterOptions);
+ if (options.timeout != null) {
+ return this._startAutoCleanup();
+ }
+ }
+
+ disconnect(flush = true) {
+ var ref;
+ if (!this.sharedConnection) {
+ return (ref = this.connection) != null ? ref.disconnect(flush) : void 0;
+ }
+ }
+
+ }
+ Group.prototype.defaults = {
+ timeout: 1000 * 60 * 5,
+ connection: null,
+ Promise: Promise,
+ id: "group-key"
+ };
+
+ return Group;
+
+ }).call(commonjsGlobal);
+
+ var Group_1 = Group;
+
+ var Batcher, Events$3, parser$4;
+
+ parser$4 = parser;
+
+ Events$3 = Events_1;
+
+ Batcher = (function() {
+ class Batcher {
+ constructor(options = {}) {
+ this.options = options;
+ parser$4.load(this.options, this.defaults, this);
+ this.Events = new Events$3(this);
+ this._arr = [];
+ this._resetPromise();
+ this._lastFlush = Date.now();
+ }
+
+ _resetPromise() {
+ return this._promise = new this.Promise((res, rej) => {
+ return this._resolve = res;
+ });
+ }
+
+ _flush() {
+ clearTimeout(this._timeout);
+ this._lastFlush = Date.now();
+ this._resolve();
+ this.Events.trigger("batch", this._arr);
+ this._arr = [];
+ return this._resetPromise();
+ }
+
+ add(data) {
+ var ret;
+ this._arr.push(data);
+ ret = this._promise;
+ if (this._arr.length === this.maxSize) {
+ this._flush();
+ } else if ((this.maxTime != null) && this._arr.length === 1) {
+ this._timeout = setTimeout(() => {
+ return this._flush();
+ }, this.maxTime);
+ }
+ return ret;
+ }
+
+ }
+ Batcher.prototype.defaults = {
+ maxTime: null,
+ maxSize: null,
+ Promise: Promise
+ };
+
+ return Batcher;
+
+ }).call(commonjsGlobal);
+
+ var Batcher_1 = Batcher;
+
+ var require$$4$1 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');
+
+ var require$$8 = getCjsExportFromNamespace(version$2);
+
+ var Bottleneck, DEFAULT_PRIORITY$1, Events$4, Job$1, LocalDatastore$1, NUM_PRIORITIES$1, Queues$1, RedisDatastore$1, States$1, Sync$1, parser$5,
+ splice = [].splice;
+
+ NUM_PRIORITIES$1 = 10;
+
+ DEFAULT_PRIORITY$1 = 5;
+
+ parser$5 = parser;
+
+ Queues$1 = Queues_1;
+
+ Job$1 = Job_1;
+
+ LocalDatastore$1 = LocalDatastore_1;
+
+ RedisDatastore$1 = require$$4$1;
+
+ Events$4 = Events_1;
+
+ States$1 = States_1;
+
+ Sync$1 = Sync_1;
+
+ Bottleneck = (function() {
+ class Bottleneck {
+ constructor(options = {}, ...invalid) {
+ var storeInstanceOptions, storeOptions;
+ this._addToQueue = this._addToQueue.bind(this);
+ this._validateOptions(options, invalid);
+ parser$5.load(options, this.instanceDefaults, this);
+ this._queues = new Queues$1(NUM_PRIORITIES$1);
+ this._scheduled = {};
+ this._states = new States$1(["RECEIVED", "QUEUED", "RUNNING", "EXECUTING"].concat(this.trackDoneStatus ? ["DONE"] : []));
+ this._limiter = null;
+ this.Events = new Events$4(this);
+ this._submitLock = new Sync$1("submit", this.Promise);
+ this._registerLock = new Sync$1("register", this.Promise);
+ storeOptions = parser$5.load(options, this.storeDefaults, {});
+ this._store = (function() {
+ if (this.datastore === "redis" || this.datastore === "ioredis" || (this.connection != null)) {
+ storeInstanceOptions = parser$5.load(options, this.redisStoreDefaults, {});
+ return new RedisDatastore$1(this, storeOptions, storeInstanceOptions);
+ } else if (this.datastore === "local") {
+ storeInstanceOptions = parser$5.load(options, this.localStoreDefaults, {});
+ return new LocalDatastore$1(this, storeOptions, storeInstanceOptions);
+ } else {
+ throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`);
+ }
+ }).call(this);
+ this._queues.on("leftzero", () => {
+ var ref;
+ return (ref = this._store.heartbeat) != null ? typeof ref.ref === "function" ? ref.ref() : void 0 : void 0;
+ });
+ this._queues.on("zero", () => {
+ var ref;
+ return (ref = this._store.heartbeat) != null ? typeof ref.unref === "function" ? ref.unref() : void 0 : void 0;
+ });
+ }
+
+ _validateOptions(options, invalid) {
+ if (!((options != null) && typeof options === "object" && invalid.length === 0)) {
+ throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.");
+ }
+ }
+
+ ready() {
+ return this._store.ready;
+ }
+
+ clients() {
+ return this._store.clients;
+ }
+
+ channel() {
+ return `b_${this.id}`;
+ }
+
+ channel_client() {
+ return `b_${this.id}_${this._store.clientId}`;
+ }
+
+ publish(message) {
+ return this._store.__publish__(message);
+ }
+
+ disconnect(flush = true) {
+ return this._store.__disconnect__(flush);
+ }
+
+ chain(_limiter) {
+ this._limiter = _limiter;
+ return this;
+ }
+
+ queued(priority) {
+ return this._queues.queued(priority);
+ }
+
+ clusterQueued() {
+ return this._store.__queued__();
+ }
+
+ empty() {
+ return this.queued() === 0 && this._submitLock.isEmpty();
+ }
+
+ running() {
+ return this._store.__running__();
+ }
+
+ done() {
+ return this._store.__done__();
+ }
+
+ jobStatus(id) {
+ return this._states.jobStatus(id);
+ }
+
+ jobs(status) {
+ return this._states.statusJobs(status);
+ }
+
+ counts() {
+ return this._states.statusCounts();
+ }
+
+ _randomIndex() {
+ return Math.random().toString(36).slice(2);
+ }
+
+ check(weight = 1) {
+ return this._store.__check__(weight);
+ }
+
+ _clearGlobalState(index) {
+ if (this._scheduled[index] != null) {
+ clearTimeout(this._scheduled[index].expiration);
+ delete this._scheduled[index];
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ async _free(index, job, options, eventInfo) {
+ var e, running;
+ try {
+ ({running} = (await this._store.__free__(index, options.weight)));
+ this.Events.trigger("debug", `Freed ${options.id}`, eventInfo);
+ if (running === 0 && this.empty()) {
+ return this.Events.trigger("idle");
+ }
+ } catch (error1) {
+ e = error1;
+ return this.Events.trigger("error", e);
+ }
+ }
+
+ _run(index, job, wait) {
+ var clearGlobalState, free, run;
+ job.doRun();
+ clearGlobalState = this._clearGlobalState.bind(this, index);
+ run = this._run.bind(this, index, job);
+ free = this._free.bind(this, index, job);
+ return this._scheduled[index] = {
+ timeout: setTimeout(() => {
+ return job.doExecute(this._limiter, clearGlobalState, run, free);
+ }, wait),
+ expiration: job.options.expiration != null ? setTimeout(function() {
+ return job.doExpire(clearGlobalState, run, free);
+ }, wait + job.options.expiration) : void 0,
+ job: job
+ };
+ }
+
+ _drainOne(capacity) {
+ return this._registerLock.schedule(() => {
+ var args, index, next, options, queue;
+ if (this.queued() === 0) {
+ return this.Promise.resolve(null);
+ }
+ queue = this._queues.getFirst();
+ ({options, args} = next = queue.first());
+ if ((capacity != null) && options.weight > capacity) {
+ return this.Promise.resolve(null);
+ }
+ this.Events.trigger("debug", `Draining ${options.id}`, {args, options});
+ index = this._randomIndex();
+ return this._store.__register__(index, options.weight, options.expiration).then(({success, wait, reservoir}) => {
+ var empty;
+ this.Events.trigger("debug", `Drained ${options.id}`, {success, args, options});
+ if (success) {
+ queue.shift();
+ empty = this.empty();
+ if (empty) {
+ this.Events.trigger("empty");
+ }
+ if (reservoir === 0) {
+ this.Events.trigger("depleted", empty);
+ }
+ this._run(index, next, wait);
+ return this.Promise.resolve(options.weight);
+ } else {
+ return this.Promise.resolve(null);
+ }
+ });
+ });
+ }
+
+ _drainAll(capacity, total = 0) {
+ return this._drainOne(capacity).then((drained) => {
+ var newCapacity;
+ if (drained != null) {
+ newCapacity = capacity != null ? capacity - drained : capacity;
+ return this._drainAll(newCapacity, total + drained);
+ } else {
+ return this.Promise.resolve(total);
+ }
+ }).catch((e) => {
+ return this.Events.trigger("error", e);
+ });
+ }
+
+ _dropAllQueued(message) {
+ return this._queues.shiftAll(function(job) {
+ return job.doDrop({message});
+ });
+ }
+
+ stop(options = {}) {
+ var done, waitForExecuting;
+ options = parser$5.load(options, this.stopDefaults);
+ waitForExecuting = (at) => {
+ var finished;
+ finished = () => {
+ var counts;
+ counts = this._states.counts;
+ return (counts[0] + counts[1] + counts[2] + counts[3]) === at;
+ };
+ return new this.Promise((resolve, reject) => {
+ if (finished()) {
+ return resolve();
+ } else {
+ return this.on("done", () => {
+ if (finished()) {
+ this.removeAllListeners("done");
+ return resolve();
+ }
+ });
+ }
+ });
+ };
+ done = options.dropWaitingJobs ? (this._run = function(index, next) {
+ return next.doDrop({
+ message: options.dropErrorMessage
+ });
+ }, this._drainOne = () => {
+ return this.Promise.resolve(null);
+ }, this._registerLock.schedule(() => {
+ return this._submitLock.schedule(() => {
+ var k, ref, v;
+ ref = this._scheduled;
+ for (k in ref) {
+ v = ref[k];
+ if (this.jobStatus(v.job.options.id) === "RUNNING") {
+ clearTimeout(v.timeout);
+ clearTimeout(v.expiration);
+ v.job.doDrop({
+ message: options.dropErrorMessage
+ });
+ }
+ }
+ this._dropAllQueued(options.dropErrorMessage);
+ return waitForExecuting(0);
+ });
+ })) : this.schedule({
+ priority: NUM_PRIORITIES$1 - 1,
+ weight: 0
+ }, () => {
+ return waitForExecuting(1);
+ });
+ this._receive = function(job) {
+ return job._reject(new Bottleneck.prototype.BottleneckError(options.enqueueErrorMessage));
+ };
+ this.stop = () => {
+ return this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));
+ };
+ return done;
+ }
+
+ async _addToQueue(job) {
+ var args, blocked, error, options, reachedHWM, shifted, strategy;
+ ({args, options} = job);
+ try {
+ ({reachedHWM, blocked, strategy} = (await this._store.__submit__(this.queued(), options.weight)));
+ } catch (error1) {
+ error = error1;
+ this.Events.trigger("debug", `Could not queue ${options.id}`, {args, options, error});
+ job.doDrop({error});
+ return false;
+ }
+ if (blocked) {
+ job.doDrop();
+ return true;
+ } else if (reachedHWM) {
+ shifted = strategy === Bottleneck.prototype.strategy.LEAK ? this._queues.shiftLastFrom(options.priority) : strategy === Bottleneck.prototype.strategy.OVERFLOW_PRIORITY ? this._queues.shiftLastFrom(options.priority + 1) : strategy === Bottleneck.prototype.strategy.OVERFLOW ? job : void 0;
+ if (shifted != null) {
+ shifted.doDrop();
+ }
+ if ((shifted == null) || strategy === Bottleneck.prototype.strategy.OVERFLOW) {
+ if (shifted == null) {
+ job.doDrop();
+ }
+ return reachedHWM;
+ }
+ }
+ job.doQueue(reachedHWM, blocked);
+ this._queues.push(job);
+ await this._drainAll();
+ return reachedHWM;
+ }
+
+ _receive(job) {
+ if (this._states.jobStatus(job.options.id) != null) {
+ job._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${job.options.id})`));
+ return false;
+ } else {
+ job.doReceive();
+ return this._submitLock.schedule(this._addToQueue, job);
+ }
+ }
+
+ submit(...args) {
+ var cb, fn, job, options, ref, ref1, task;
+ if (typeof args[0] === "function") {
+ ref = args, [fn, ...args] = ref, [cb] = splice.call(args, -1);
+ options = parser$5.load({}, this.jobDefaults);
+ } else {
+ ref1 = args, [options, fn, ...args] = ref1, [cb] = splice.call(args, -1);
+ options = parser$5.load(options, this.jobDefaults);
+ }
+ task = (...args) => {
+ return new this.Promise(function(resolve, reject) {
+ return fn(...args, function(...args) {
+ return (args[0] != null ? reject : resolve)(args);
+ });
+ });
+ };
+ job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise);
+ job.promise.then(function(args) {
+ return typeof cb === "function" ? cb(...args) : void 0;
+ }).catch(function(args) {
+ if (Array.isArray(args)) {
+ return typeof cb === "function" ? cb(...args) : void 0;
+ } else {
+ return typeof cb === "function" ? cb(args) : void 0;
+ }
+ });
+ return this._receive(job);
+ }
+
+ schedule(...args) {
+ var job, options, task;
+ if (typeof args[0] === "function") {
+ [task, ...args] = args;
+ options = {};
+ } else {
+ [options, task, ...args] = args;
+ }
+ job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise);
+ this._receive(job);
+ return job.promise;
+ }
+
+ wrap(fn) {
+ var schedule, wrapped;
+ schedule = this.schedule.bind(this);
+ wrapped = function(...args) {
+ return schedule(fn.bind(this), ...args);
+ };
+ wrapped.withOptions = function(options, ...args) {
+ return schedule(options, fn, ...args);
+ };
+ return wrapped;
+ }
+
+ async updateSettings(options = {}) {
+ await this._store.__updateSettings__(parser$5.overwrite(options, this.storeDefaults));
+ parser$5.overwrite(options, this.instanceDefaults, this);
+ return this;
+ }
+
+ currentReservoir() {
+ return this._store.__currentReservoir__();
+ }
+
+ incrementReservoir(incr = 0) {
+ return this._store.__incrementReservoir__(incr);
+ }
+
+ }
+ Bottleneck.default = Bottleneck;
+
+ Bottleneck.Events = Events$4;
+
+ Bottleneck.version = Bottleneck.prototype.version = require$$8.version;
+
+ Bottleneck.strategy = Bottleneck.prototype.strategy = {
+ LEAK: 1,
+ OVERFLOW: 2,
+ OVERFLOW_PRIORITY: 4,
+ BLOCK: 3
+ };
+
+ Bottleneck.BottleneckError = Bottleneck.prototype.BottleneckError = BottleneckError_1;
+
+ Bottleneck.Group = Bottleneck.prototype.Group = Group_1;
+
+ Bottleneck.RedisConnection = Bottleneck.prototype.RedisConnection = require$$2;
+
+ Bottleneck.IORedisConnection = Bottleneck.prototype.IORedisConnection = require$$3;
+
+ Bottleneck.Batcher = Bottleneck.prototype.Batcher = Batcher_1;
+
+ Bottleneck.prototype.jobDefaults = {
+ priority: DEFAULT_PRIORITY$1,
+ weight: 1,
+ expiration: null,
+ id: ""
+ };
+
+ Bottleneck.prototype.storeDefaults = {
+ maxConcurrent: null,
+ minTime: 0,
+ highWater: null,
+ strategy: Bottleneck.prototype.strategy.LEAK,
+ penalty: null,
+ reservoir: null,
+ reservoirRefreshInterval: null,
+ reservoirRefreshAmount: null,
+ reservoirIncreaseInterval: null,
+ reservoirIncreaseAmount: null,
+ reservoirIncreaseMaximum: null
+ };
+
+ Bottleneck.prototype.localStoreDefaults = {
+ Promise: Promise,
+ timeout: null,
+ heartbeatInterval: 250
+ };
+
+ Bottleneck.prototype.redisStoreDefaults = {
+ Promise: Promise,
+ timeout: null,
+ heartbeatInterval: 5000,
+ clientTimeout: 10000,
+ Redis: null,
+ clientOptions: {},
+ clusterNodes: null,
+ clearDatastore: false,
+ connection: null
+ };
+
+ Bottleneck.prototype.instanceDefaults = {
+ datastore: "local",
+ connection: null,
+ id: "",
+ rejectOnDrop: true,
+ trackDoneStatus: false,
+ Promise: Promise
+ };
+
+ Bottleneck.prototype.stopDefaults = {
+ enqueueErrorMessage: "This limiter has been stopped and cannot accept new jobs.",
+ dropWaitingJobs: true,
+ dropErrorMessage: "This limiter has been stopped."
+ };
+
+ return Bottleneck;
+
+ }).call(commonjsGlobal);
+
+ var Bottleneck_1 = Bottleneck;
+
+ var lib = Bottleneck_1;
+
+ return lib;
+
+})));
+
+
+/***/ }),
+
+/***/ 8803:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var GetIntrinsic = __nccwpck_require__(4538);
+
+var callBind = __nccwpck_require__(2977);
+
+var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
+
+module.exports = function callBoundIntrinsic(name, allowMissing) {
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
+ return callBind(intrinsic);
+ }
+ return intrinsic;
+};
+
+
+/***/ }),
+
+/***/ 2977:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var bind = __nccwpck_require__(8334);
+var GetIntrinsic = __nccwpck_require__(4538);
+var setFunctionLength = __nccwpck_require__(4056);
+
+var $TypeError = __nccwpck_require__(6361);
+var $apply = GetIntrinsic('%Function.prototype.apply%');
+var $call = GetIntrinsic('%Function.prototype.call%');
+var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
+
+var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
+var $max = GetIntrinsic('%Math.max%');
+
+if ($defineProperty) {
+ try {
+ $defineProperty({}, 'a', { value: 1 });
+ } catch (e) {
+ // IE 8 has a broken defineProperty
+ $defineProperty = null;
+ }
+}
+
+module.exports = function callBind(originalFunction) {
+ if (typeof originalFunction !== 'function') {
+ throw new $TypeError('a function is required');
+ }
+ var func = $reflectApply(bind, $call, arguments);
+ return setFunctionLength(
+ func,
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
+ true
+ );
+};
+
+var applyBind = function applyBind() {
+ return $reflectApply(bind, $apply, arguments);
+};
+
+if ($defineProperty) {
+ $defineProperty(module.exports, 'apply', { value: applyBind });
+} else {
+ module.exports.apply = applyBind;
+}
+
+
+/***/ }),
+
+/***/ 4564:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var hasPropertyDescriptors = __nccwpck_require__(176)();
+
+var GetIntrinsic = __nccwpck_require__(4538);
+
+var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
+if ($defineProperty) {
+ try {
+ $defineProperty({}, 'a', { value: 1 });
+ } catch (e) {
+ // IE 8 has a broken defineProperty
+ $defineProperty = false;
+ }
+}
+
+var $SyntaxError = __nccwpck_require__(5474);
+var $TypeError = __nccwpck_require__(6361);
+
+var gopd = __nccwpck_require__(8501);
+
+/** @type {(obj: Record, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
+module.exports = function defineDataProperty(
+ obj,
+ property,
+ value
+) {
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
+ throw new $TypeError('`obj` must be an object or a function`');
+ }
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
+ throw new $TypeError('`property` must be a string or a symbol`');
+ }
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
+ throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
+ }
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
+ throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
+ }
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
+ throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
+ }
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
+ throw new $TypeError('`loose`, if provided, must be a boolean');
+ }
+
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
+ var loose = arguments.length > 6 ? arguments[6] : false;
+
+ /* @type {false | TypedPropertyDescriptor} */
+ var desc = !!gopd && gopd(obj, property);
+
+ if ($defineProperty) {
+ $defineProperty(obj, property, {
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
+ value: value,
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
+ });
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
+ obj[property] = value; // eslint-disable-line no-param-reassign
+ } else {
+ throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
+ }
+};
+
+
+/***/ }),
+
+/***/ 8932:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+
+class Deprecation extends Error {
+ constructor(message) {
+ super(message); // Maintains proper stack trace (only available on V8)
+
+ /* istanbul ignore next */
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+
+ this.name = 'Deprecation';
+ }
+
+}
+
+exports.Deprecation = Deprecation;
+
+
+/***/ }),
+
+/***/ 1933:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('./eval')} */
+module.exports = EvalError;
+
+
+/***/ }),
+
+/***/ 8015:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('.')} */
+module.exports = Error;
+
+
+/***/ }),
+
+/***/ 4415:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('./range')} */
+module.exports = RangeError;
+
+
+/***/ }),
+
+/***/ 6279:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('./ref')} */
+module.exports = ReferenceError;
+
+
+/***/ }),
+
+/***/ 5474:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('./syntax')} */
+module.exports = SyntaxError;
+
+
+/***/ }),
+
+/***/ 6361:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('./type')} */
+module.exports = TypeError;
+
+
+/***/ }),
+
+/***/ 5065:
+/***/ ((module) => {
+
+"use strict";
+
+
+/** @type {import('./uri')} */
+module.exports = URIError;
+
+
+/***/ }),
+
+/***/ 9320:
+/***/ ((module) => {
+
+"use strict";
+
+
+/* eslint no-invalid-this: 1 */
+
+var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
+var toStr = Object.prototype.toString;
+var max = Math.max;
+var funcType = '[object Function]';
+
+var concatty = function concatty(a, b) {
+ var arr = [];
+
+ for (var i = 0; i < a.length; i += 1) {
+ arr[i] = a[i];
+ }
+ for (var j = 0; j < b.length; j += 1) {
+ arr[j + a.length] = b[j];
+ }
+
+ return arr;
+};
+
+var slicy = function slicy(arrLike, offset) {
+ var arr = [];
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
+ arr[j] = arrLike[i];
+ }
+ return arr;
+};
+
+var joiny = function (arr, joiner) {
+ var str = '';
+ for (var i = 0; i < arr.length; i += 1) {
+ str += arr[i];
+ if (i + 1 < arr.length) {
+ str += joiner;
+ }
+ }
+ return str;
+};
+
+module.exports = function bind(that) {
+ var target = this;
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
+ throw new TypeError(ERROR_MESSAGE + target);
+ }
+ var args = slicy(arguments, 1);
+
+ var bound;
+ var binder = function () {
+ if (this instanceof bound) {
+ var result = target.apply(
+ this,
+ concatty(args, arguments)
+ );
+ if (Object(result) === result) {
+ return result;
+ }
+ return this;
+ }
+ return target.apply(
+ that,
+ concatty(args, arguments)
+ );
+
+ };
+
+ var boundLength = max(0, target.length - args.length);
+ var boundArgs = [];
+ for (var i = 0; i < boundLength; i++) {
+ boundArgs[i] = '$' + i;
+ }
+
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
+
+ if (target.prototype) {
+ var Empty = function Empty() {};
+ Empty.prototype = target.prototype;
+ bound.prototype = new Empty();
+ Empty.prototype = null;
+ }
+
+ return bound;
+};
+
+
+/***/ }),
+
+/***/ 8334:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var implementation = __nccwpck_require__(9320);
+
+module.exports = Function.prototype.bind || implementation;
+
+
+/***/ }),
+
+/***/ 4538:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var undefined;
+
+var $Error = __nccwpck_require__(8015);
+var $EvalError = __nccwpck_require__(1933);
+var $RangeError = __nccwpck_require__(4415);
+var $ReferenceError = __nccwpck_require__(6279);
+var $SyntaxError = __nccwpck_require__(5474);
+var $TypeError = __nccwpck_require__(6361);
+var $URIError = __nccwpck_require__(5065);
+
+var $Function = Function;
+
+// eslint-disable-next-line consistent-return
+var getEvalledConstructor = function (expressionSyntax) {
+ try {
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
+ } catch (e) {}
+};
+
+var $gOPD = Object.getOwnPropertyDescriptor;
+if ($gOPD) {
+ try {
+ $gOPD({}, '');
+ } catch (e) {
+ $gOPD = null; // this is IE 8, which has a broken gOPD
+ }
+}
+
+var throwTypeError = function () {
+ throw new $TypeError();
+};
+var ThrowTypeError = $gOPD
+ ? (function () {
+ try {
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
+ arguments.callee; // IE 8 does not throw here
+ return throwTypeError;
+ } catch (calleeThrows) {
+ try {
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
+ return $gOPD(arguments, 'callee').get;
+ } catch (gOPDthrows) {
+ return throwTypeError;
+ }
+ }
+ }())
+ : throwTypeError;
+
+var hasSymbols = __nccwpck_require__(587)();
+var hasProto = __nccwpck_require__(5894)();
+
+var getProto = Object.getPrototypeOf || (
+ hasProto
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
+ : null
+);
+
+var needsEval = {};
+
+var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
+
+var INTRINSICS = {
+ __proto__: null,
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
+ '%Array%': Array,
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
+ '%AsyncFromSyncIteratorPrototype%': undefined,
+ '%AsyncFunction%': needsEval,
+ '%AsyncGenerator%': needsEval,
+ '%AsyncGeneratorFunction%': needsEval,
+ '%AsyncIteratorPrototype%': needsEval,
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
+ '%Boolean%': Boolean,
+ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
+ '%Date%': Date,
+ '%decodeURI%': decodeURI,
+ '%decodeURIComponent%': decodeURIComponent,
+ '%encodeURI%': encodeURI,
+ '%encodeURIComponent%': encodeURIComponent,
+ '%Error%': $Error,
+ '%eval%': eval, // eslint-disable-line no-eval
+ '%EvalError%': $EvalError,
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
+ '%Function%': $Function,
+ '%GeneratorFunction%': needsEval,
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
+ '%isFinite%': isFinite,
+ '%isNaN%': isNaN,
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined,
+ '%Map%': typeof Map === 'undefined' ? undefined : Map,
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
+ '%Math%': Math,
+ '%Number%': Number,
+ '%Object%': Object,
+ '%parseFloat%': parseFloat,
+ '%parseInt%': parseInt,
+ '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
+ '%RangeError%': $RangeError,
+ '%ReferenceError%': $ReferenceError,
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
+ '%RegExp%': RegExp,
+ '%Set%': typeof Set === 'undefined' ? undefined : Set,
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
+ '%String%': String,
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
+ '%Symbol%': hasSymbols ? Symbol : undefined,
+ '%SyntaxError%': $SyntaxError,
+ '%ThrowTypeError%': ThrowTypeError,
+ '%TypedArray%': TypedArray,
+ '%TypeError%': $TypeError,
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
+ '%URIError%': $URIError,
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
+};
+
+if (getProto) {
+ try {
+ null.error; // eslint-disable-line no-unused-expressions
+ } catch (e) {
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
+ var errorProto = getProto(getProto(e));
+ INTRINSICS['%Error.prototype%'] = errorProto;
+ }
+}
+
+var doEval = function doEval(name) {
+ var value;
+ if (name === '%AsyncFunction%') {
+ value = getEvalledConstructor('async function () {}');
+ } else if (name === '%GeneratorFunction%') {
+ value = getEvalledConstructor('function* () {}');
+ } else if (name === '%AsyncGeneratorFunction%') {
+ value = getEvalledConstructor('async function* () {}');
+ } else if (name === '%AsyncGenerator%') {
+ var fn = doEval('%AsyncGeneratorFunction%');
+ if (fn) {
+ value = fn.prototype;
+ }
+ } else if (name === '%AsyncIteratorPrototype%') {
+ var gen = doEval('%AsyncGenerator%');
+ if (gen && getProto) {
+ value = getProto(gen.prototype);
+ }
+ }
+
+ INTRINSICS[name] = value;
+
+ return value;
+};
+
+var LEGACY_ALIASES = {
+ __proto__: null,
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
+ '%ArrayPrototype%': ['Array', 'prototype'],
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
+ '%DataViewPrototype%': ['DataView', 'prototype'],
+ '%DatePrototype%': ['Date', 'prototype'],
+ '%ErrorPrototype%': ['Error', 'prototype'],
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
+ '%FunctionPrototype%': ['Function', 'prototype'],
+ '%Generator%': ['GeneratorFunction', 'prototype'],
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
+ '%JSONParse%': ['JSON', 'parse'],
+ '%JSONStringify%': ['JSON', 'stringify'],
+ '%MapPrototype%': ['Map', 'prototype'],
+ '%NumberPrototype%': ['Number', 'prototype'],
+ '%ObjectPrototype%': ['Object', 'prototype'],
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
+ '%PromisePrototype%': ['Promise', 'prototype'],
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
+ '%Promise_all%': ['Promise', 'all'],
+ '%Promise_reject%': ['Promise', 'reject'],
+ '%Promise_resolve%': ['Promise', 'resolve'],
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
+ '%SetPrototype%': ['Set', 'prototype'],
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
+ '%StringPrototype%': ['String', 'prototype'],
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
+};
+
+var bind = __nccwpck_require__(8334);
+var hasOwn = __nccwpck_require__(2157);
+var $concat = bind.call(Function.call, Array.prototype.concat);
+var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
+var $replace = bind.call(Function.call, String.prototype.replace);
+var $strSlice = bind.call(Function.call, String.prototype.slice);
+var $exec = bind.call(Function.call, RegExp.prototype.exec);
+
+/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
+var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
+var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
+var stringToPath = function stringToPath(string) {
+ var first = $strSlice(string, 0, 1);
+ var last = $strSlice(string, -1);
+ if (first === '%' && last !== '%') {
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
+ } else if (last === '%' && first !== '%') {
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
+ }
+ var result = [];
+ $replace(string, rePropName, function (match, number, quote, subString) {
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
+ });
+ return result;
+};
+/* end adaptation */
+
+var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
+ var intrinsicName = name;
+ var alias;
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
+ alias = LEGACY_ALIASES[intrinsicName];
+ intrinsicName = '%' + alias[0] + '%';
+ }
+
+ if (hasOwn(INTRINSICS, intrinsicName)) {
+ var value = INTRINSICS[intrinsicName];
+ if (value === needsEval) {
+ value = doEval(intrinsicName);
+ }
+ if (typeof value === 'undefined' && !allowMissing) {
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
+ }
+
+ return {
+ alias: alias,
+ name: intrinsicName,
+ value: value
+ };
+ }
+
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
+};
+
+module.exports = function GetIntrinsic(name, allowMissing) {
+ if (typeof name !== 'string' || name.length === 0) {
+ throw new $TypeError('intrinsic name must be a non-empty string');
+ }
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
+ throw new $TypeError('"allowMissing" argument must be a boolean');
+ }
+
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
+ }
+ var parts = stringToPath(name);
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
+
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
+ var intrinsicRealName = intrinsic.name;
+ var value = intrinsic.value;
+ var skipFurtherCaching = false;
+
+ var alias = intrinsic.alias;
+ if (alias) {
+ intrinsicBaseName = alias[0];
+ $spliceApply(parts, $concat([0, 1], alias));
+ }
+
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
+ var part = parts[i];
+ var first = $strSlice(part, 0, 1);
+ var last = $strSlice(part, -1);
+ if (
+ (
+ (first === '"' || first === "'" || first === '`')
+ || (last === '"' || last === "'" || last === '`')
+ )
+ && first !== last
+ ) {
+ throw new $SyntaxError('property names with quotes must have matching quotes');
+ }
+ if (part === 'constructor' || !isOwn) {
+ skipFurtherCaching = true;
+ }
+
+ intrinsicBaseName += '.' + part;
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
+
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
+ value = INTRINSICS[intrinsicRealName];
+ } else if (value != null) {
+ if (!(part in value)) {
+ if (!allowMissing) {
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
+ }
+ return void undefined;
+ }
+ if ($gOPD && (i + 1) >= parts.length) {
+ var desc = $gOPD(value, part);
+ isOwn = !!desc;
+
+ // By convention, when a data property is converted to an accessor
+ // property to emulate a data property that does not suffer from
+ // the override mistake, that accessor's getter is marked with
+ // an `originalValue` property. Here, when we detect this, we
+ // uphold the illusion by pretending to see that original data
+ // property, i.e., returning the value rather than the getter
+ // itself.
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
+ value = desc.get;
+ } else {
+ value = value[part];
+ }
+ } else {
+ isOwn = hasOwn(value, part);
+ value = value[part];
+ }
+
+ if (isOwn && !skipFurtherCaching) {
+ INTRINSICS[intrinsicRealName] = value;
+ }
+ }
+ }
+ return value;
+};
+
+
+/***/ }),
+
+/***/ 8501:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var GetIntrinsic = __nccwpck_require__(4538);
+
+var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
+
+if ($gOPD) {
+ try {
+ $gOPD([], 'length');
+ } catch (e) {
+ // IE 8 has a broken gOPD
+ $gOPD = null;
+ }
+}
+
+module.exports = $gOPD;
+
+
+/***/ }),
+
+/***/ 176:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var GetIntrinsic = __nccwpck_require__(4538);
+
+var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
+
+var hasPropertyDescriptors = function hasPropertyDescriptors() {
+ if ($defineProperty) {
+ try {
+ $defineProperty({}, 'a', { value: 1 });
+ return true;
+ } catch (e) {
+ // IE 8 has a broken defineProperty
+ return false;
+ }
+ }
+ return false;
+};
+
+hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
+ // node v0.6 has a bug where array lengths can be Set but not Defined
+ if (!hasPropertyDescriptors()) {
+ return null;
+ }
+ try {
+ return $defineProperty([], 'length', { value: 1 }).length !== 1;
+ } catch (e) {
+ // In Firefox 4-22, defining length on an array throws an exception.
+ return true;
+ }
+};
+
+module.exports = hasPropertyDescriptors;
+
+
+/***/ }),
+
+/***/ 5894:
+/***/ ((module) => {
+
+"use strict";
+
+
+var test = {
+ foo: {}
+};
+
+var $Object = Object;
+
+module.exports = function hasProto() {
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
+};
+
+
+/***/ }),
+
+/***/ 587:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var origSymbol = typeof Symbol !== 'undefined' && Symbol;
+var hasSymbolSham = __nccwpck_require__(7747);
+
+module.exports = function hasNativeSymbols() {
+ if (typeof origSymbol !== 'function') { return false; }
+ if (typeof Symbol !== 'function') { return false; }
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
+
+ return hasSymbolSham();
+};
+
+
+/***/ }),
+
+/***/ 7747:
+/***/ ((module) => {
+
+"use strict";
+
+
+/* eslint complexity: [2, 18], max-statements: [2, 33] */
+module.exports = function hasSymbols() {
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
+ if (typeof Symbol.iterator === 'symbol') { return true; }
+
+ var obj = {};
+ var sym = Symbol('test');
+ var symObj = Object(sym);
+ if (typeof sym === 'string') { return false; }
+
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
+
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
+ // if (sym instanceof Symbol) { return false; }
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
+ // if (!(symObj instanceof Symbol)) { return false; }
+
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
+
+ var symVal = 42;
+ obj[sym] = symVal;
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
+
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
+
+ var syms = Object.getOwnPropertySymbols(obj);
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
+
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
+
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
+ }
+
+ return true;
+};
+
+
+/***/ }),
+
+/***/ 2157:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var call = Function.prototype.call;
+var $hasOwn = Object.prototype.hasOwnProperty;
+var bind = __nccwpck_require__(8334);
+
+/** @type {(o: {}, p: PropertyKey) => p is keyof o} */
+module.exports = bind.call(call, $hasOwn);
+
+
+/***/ }),
+
+/***/ 3287:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+
+/*!
+ * is-plain-object
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+function isObject(o) {
+ return Object.prototype.toString.call(o) === '[object Object]';
+}
+
+function isPlainObject(o) {
+ var ctor,prot;
+
+ if (isObject(o) === false) return false;
+
+ // If has modified constructor
+ ctor = o.constructor;
+ if (ctor === undefined) return true;
+
+ // If has modified prototype
+ prot = ctor.prototype;
+ if (isObject(prot) === false) return false;
+
+ // If constructor does not have an Object-specific method
+ if (prot.hasOwnProperty('isPrototypeOf') === false) {
+ return false;
+ }
+
+ // Most likely a plain Object
+ return true;
+}
+
+exports.isPlainObject = isPlainObject;
+
+
+/***/ }),
+
+/***/ 467:
+/***/ ((module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
+
+var Stream = _interopDefault(__nccwpck_require__(2781));
+var http = _interopDefault(__nccwpck_require__(3685));
+var Url = _interopDefault(__nccwpck_require__(7310));
+var whatwgUrl = _interopDefault(__nccwpck_require__(8665));
+var https = _interopDefault(__nccwpck_require__(5687));
+var zlib = _interopDefault(__nccwpck_require__(9796));
+
+// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
+
+// fix for "Readable" isn't a named export issue
+const Readable = Stream.Readable;
+
+const BUFFER = Symbol('buffer');
+const TYPE = Symbol('type');
+
+class Blob {
+ constructor() {
+ this[TYPE] = '';
+
+ const blobParts = arguments[0];
+ const options = arguments[1];
+
+ const buffers = [];
+ let size = 0;
+
+ if (blobParts) {
+ const a = blobParts;
+ const length = Number(a.length);
+ for (let i = 0; i < length; i++) {
+ const element = a[i];
+ let buffer;
+ if (element instanceof Buffer) {
+ buffer = element;
+ } else if (ArrayBuffer.isView(element)) {
+ buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
+ } else if (element instanceof ArrayBuffer) {
+ buffer = Buffer.from(element);
+ } else if (element instanceof Blob) {
+ buffer = element[BUFFER];
+ } else {
+ buffer = Buffer.from(typeof element === 'string' ? element : String(element));
+ }
+ size += buffer.length;
+ buffers.push(buffer);
+ }
+ }
+
+ this[BUFFER] = Buffer.concat(buffers);
+
+ let type = options && options.type !== undefined && String(options.type).toLowerCase();
+ if (type && !/[^\u0020-\u007E]/.test(type)) {
+ this[TYPE] = type;
+ }
+ }
+ get size() {
+ return this[BUFFER].length;
+ }
+ get type() {
+ return this[TYPE];
+ }
+ text() {
+ return Promise.resolve(this[BUFFER].toString());
+ }
+ arrayBuffer() {
+ const buf = this[BUFFER];
+ const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
+ return Promise.resolve(ab);
+ }
+ stream() {
+ const readable = new Readable();
+ readable._read = function () {};
+ readable.push(this[BUFFER]);
+ readable.push(null);
+ return readable;
+ }
+ toString() {
+ return '[object Blob]';
+ }
+ slice() {
+ const size = this.size;
+
+ const start = arguments[0];
+ const end = arguments[1];
+ let relativeStart, relativeEnd;
+ if (start === undefined) {
+ relativeStart = 0;
+ } else if (start < 0) {
+ relativeStart = Math.max(size + start, 0);
+ } else {
+ relativeStart = Math.min(start, size);
+ }
+ if (end === undefined) {
+ relativeEnd = size;
+ } else if (end < 0) {
+ relativeEnd = Math.max(size + end, 0);
+ } else {
+ relativeEnd = Math.min(end, size);
+ }
+ const span = Math.max(relativeEnd - relativeStart, 0);
+
+ const buffer = this[BUFFER];
+ const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
+ const blob = new Blob([], { type: arguments[2] });
+ blob[BUFFER] = slicedBuffer;
+ return blob;
+ }
+}
+
+Object.defineProperties(Blob.prototype, {
+ size: { enumerable: true },
+ type: { enumerable: true },
+ slice: { enumerable: true }
+});
+
+Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
+ value: 'Blob',
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+/**
+ * fetch-error.js
+ *
+ * FetchError interface for operational errors
+ */
+
+/**
+ * Create FetchError instance
+ *
+ * @param String message Error message for human
+ * @param String type Error type for machine
+ * @param String systemError For Node.js system error
+ * @return FetchError
+ */
+function FetchError(message, type, systemError) {
+ Error.call(this, message);
+
+ this.message = message;
+ this.type = type;
+
+ // when err.type is `system`, err.code contains system error code
+ if (systemError) {
+ this.code = this.errno = systemError.code;
+ }
+
+ // hide custom error implementation details from end-users
+ Error.captureStackTrace(this, this.constructor);
+}
+
+FetchError.prototype = Object.create(Error.prototype);
+FetchError.prototype.constructor = FetchError;
+FetchError.prototype.name = 'FetchError';
+
+let convert;
+try {
+ convert = (__nccwpck_require__(2877).convert);
+} catch (e) {}
+
+const INTERNALS = Symbol('Body internals');
+
+// fix an issue where "PassThrough" isn't a named export for node <10
+const PassThrough = Stream.PassThrough;
+
+/**
+ * Body mixin
+ *
+ * Ref: https://fetch.spec.whatwg.org/#body
+ *
+ * @param Stream body Readable stream
+ * @param Object opts Response options
+ * @return Void
+ */
+function Body(body) {
+ var _this = this;
+
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
+ _ref$size = _ref.size;
+
+ let size = _ref$size === undefined ? 0 : _ref$size;
+ var _ref$timeout = _ref.timeout;
+ let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
+
+ if (body == null) {
+ // body is undefined or null
+ body = null;
+ } else if (isURLSearchParams(body)) {
+ // body is a URLSearchParams
+ body = Buffer.from(body.toString());
+ } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
+ // body is ArrayBuffer
+ body = Buffer.from(body);
+ } else if (ArrayBuffer.isView(body)) {
+ // body is ArrayBufferView
+ body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
+ } else if (body instanceof Stream) ; else {
+ // none of the above
+ // coerce to string then buffer
+ body = Buffer.from(String(body));
+ }
+ this[INTERNALS] = {
+ body,
+ disturbed: false,
+ error: null
+ };
+ this.size = size;
+ this.timeout = timeout;
+
+ if (body instanceof Stream) {
+ body.on('error', function (err) {
+ const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
+ _this[INTERNALS].error = error;
+ });
+ }
+}
+
+Body.prototype = {
+ get body() {
+ return this[INTERNALS].body;
+ },
+
+ get bodyUsed() {
+ return this[INTERNALS].disturbed;
+ },
+
+ /**
+ * Decode response as ArrayBuffer
+ *
+ * @return Promise
+ */
+ arrayBuffer() {
+ return consumeBody.call(this).then(function (buf) {
+ return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
+ });
+ },
+
+ /**
+ * Return raw response as Blob
+ *
+ * @return Promise
+ */
+ blob() {
+ let ct = this.headers && this.headers.get('content-type') || '';
+ return consumeBody.call(this).then(function (buf) {
+ return Object.assign(
+ // Prevent copying
+ new Blob([], {
+ type: ct.toLowerCase()
+ }), {
+ [BUFFER]: buf
+ });
+ });
+ },
+
+ /**
+ * Decode response as json
+ *
+ * @return Promise
+ */
+ json() {
+ var _this2 = this;
+
+ return consumeBody.call(this).then(function (buffer) {
+ try {
+ return JSON.parse(buffer.toString());
+ } catch (err) {
+ return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
+ }
+ });
+ },
+
+ /**
+ * Decode response as text
+ *
+ * @return Promise
+ */
+ text() {
+ return consumeBody.call(this).then(function (buffer) {
+ return buffer.toString();
+ });
+ },
+
+ /**
+ * Decode response as buffer (non-spec api)
+ *
+ * @return Promise
+ */
+ buffer() {
+ return consumeBody.call(this);
+ },
+
+ /**
+ * Decode response as text, while automatically detecting the encoding and
+ * trying to decode to UTF-8 (non-spec api)
+ *
+ * @return Promise
+ */
+ textConverted() {
+ var _this3 = this;
+
+ return consumeBody.call(this).then(function (buffer) {
+ return convertBody(buffer, _this3.headers);
+ });
+ }
+};
+
+// In browsers, all properties are enumerable.
+Object.defineProperties(Body.prototype, {
+ body: { enumerable: true },
+ bodyUsed: { enumerable: true },
+ arrayBuffer: { enumerable: true },
+ blob: { enumerable: true },
+ json: { enumerable: true },
+ text: { enumerable: true }
+});
+
+Body.mixIn = function (proto) {
+ for (const name of Object.getOwnPropertyNames(Body.prototype)) {
+ // istanbul ignore else: future proof
+ if (!(name in proto)) {
+ const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
+ Object.defineProperty(proto, name, desc);
+ }
+ }
+};
+
+/**
+ * Consume and convert an entire Body to a Buffer.
+ *
+ * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
+ *
+ * @return Promise
+ */
+function consumeBody() {
+ var _this4 = this;
+
+ if (this[INTERNALS].disturbed) {
+ return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
+ }
+
+ this[INTERNALS].disturbed = true;
+
+ if (this[INTERNALS].error) {
+ return Body.Promise.reject(this[INTERNALS].error);
+ }
+
+ let body = this.body;
+
+ // body is null
+ if (body === null) {
+ return Body.Promise.resolve(Buffer.alloc(0));
+ }
+
+ // body is blob
+ if (isBlob(body)) {
+ body = body.stream();
+ }
+
+ // body is buffer
+ if (Buffer.isBuffer(body)) {
+ return Body.Promise.resolve(body);
+ }
+
+ // istanbul ignore if: should never happen
+ if (!(body instanceof Stream)) {
+ return Body.Promise.resolve(Buffer.alloc(0));
+ }
+
+ // body is stream
+ // get ready to actually consume the body
+ let accum = [];
+ let accumBytes = 0;
+ let abort = false;
+
+ return new Body.Promise(function (resolve, reject) {
+ let resTimeout;
+
+ // allow timeout on slow response body
+ if (_this4.timeout) {
+ resTimeout = setTimeout(function () {
+ abort = true;
+ reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
+ }, _this4.timeout);
+ }
+
+ // handle stream errors
+ body.on('error', function (err) {
+ if (err.name === 'AbortError') {
+ // if the request was aborted, reject with this Error
+ abort = true;
+ reject(err);
+ } else {
+ // other errors, such as incorrect content-encoding
+ reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
+ }
+ });
+
+ body.on('data', function (chunk) {
+ if (abort || chunk === null) {
+ return;
+ }
+
+ if (_this4.size && accumBytes + chunk.length > _this4.size) {
+ abort = true;
+ reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
+ return;
+ }
+
+ accumBytes += chunk.length;
+ accum.push(chunk);
+ });
+
+ body.on('end', function () {
+ if (abort) {
+ return;
+ }
+
+ clearTimeout(resTimeout);
+
+ try {
+ resolve(Buffer.concat(accum, accumBytes));
+ } catch (err) {
+ // handle streams that have accumulated too much data (issue #414)
+ reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
+ }
+ });
+ });
+}
+
+/**
+ * Detect buffer encoding and convert to target encoding
+ * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
+ *
+ * @param Buffer buffer Incoming buffer
+ * @param String encoding Target encoding
+ * @return String
+ */
+function convertBody(buffer, headers) {
+ if (typeof convert !== 'function') {
+ throw new Error('The package `encoding` must be installed to use the textConverted() function');
+ }
+
+ const ct = headers.get('content-type');
+ let charset = 'utf-8';
+ let res, str;
+
+ // header
+ if (ct) {
+ res = /charset=([^;]*)/i.exec(ct);
+ }
+
+ // no charset in content type, peek at response body for at most 1024 bytes
+ str = buffer.slice(0, 1024).toString();
+
+ // html5
+ if (!res && str) {
+ res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined;
+
+ this[MAP] = Object.create(null);
+
+ if (init instanceof Headers) {
+ const rawHeaders = init.raw();
+ const headerNames = Object.keys(rawHeaders);
+
+ for (const headerName of headerNames) {
+ for (const value of rawHeaders[headerName]) {
+ this.append(headerName, value);
+ }
+ }
+
+ return;
+ }
+
+ // We don't worry about converting prop to ByteString here as append()
+ // will handle it.
+ if (init == null) ; else if (typeof init === 'object') {
+ const method = init[Symbol.iterator];
+ if (method != null) {
+ if (typeof method !== 'function') {
+ throw new TypeError('Header pairs must be iterable');
+ }
+
+ // sequence>
+ // Note: per spec we have to first exhaust the lists then process them
+ const pairs = [];
+ for (const pair of init) {
+ if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
+ throw new TypeError('Each header pair must be iterable');
+ }
+ pairs.push(Array.from(pair));
+ }
+
+ for (const pair of pairs) {
+ if (pair.length !== 2) {
+ throw new TypeError('Each header pair must be a name/value tuple');
+ }
+ this.append(pair[0], pair[1]);
+ }
+ } else {
+ // record
+ for (const key of Object.keys(init)) {
+ const value = init[key];
+ this.append(key, value);
+ }
+ }
+ } else {
+ throw new TypeError('Provided initializer must be an object');
+ }
+ }
+
+ /**
+ * Return combined header value given name
+ *
+ * @param String name Header name
+ * @return Mixed
+ */
+ get(name) {
+ name = `${name}`;
+ validateName(name);
+ const key = find(this[MAP], name);
+ if (key === undefined) {
+ return null;
+ }
+
+ return this[MAP][key].join(', ');
+ }
+
+ /**
+ * Iterate over all headers
+ *
+ * @param Function callback Executed for each item with parameters (value, name, thisArg)
+ * @param Boolean thisArg `this` context for callback function
+ * @return Void
+ */
+ forEach(callback) {
+ let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
+
+ let pairs = getHeaders(this);
+ let i = 0;
+ while (i < pairs.length) {
+ var _pairs$i = pairs[i];
+ const name = _pairs$i[0],
+ value = _pairs$i[1];
+
+ callback.call(thisArg, value, name, this);
+ pairs = getHeaders(this);
+ i++;
+ }
+ }
+
+ /**
+ * Overwrite header values given name
+ *
+ * @param String name Header name
+ * @param String value Header value
+ * @return Void
+ */
+ set(name, value) {
+ name = `${name}`;
+ value = `${value}`;
+ validateName(name);
+ validateValue(value);
+ const key = find(this[MAP], name);
+ this[MAP][key !== undefined ? key : name] = [value];
+ }
+
+ /**
+ * Append a value onto existing header
+ *
+ * @param String name Header name
+ * @param String value Header value
+ * @return Void
+ */
+ append(name, value) {
+ name = `${name}`;
+ value = `${value}`;
+ validateName(name);
+ validateValue(value);
+ const key = find(this[MAP], name);
+ if (key !== undefined) {
+ this[MAP][key].push(value);
+ } else {
+ this[MAP][name] = [value];
+ }
+ }
+
+ /**
+ * Check for header name existence
+ *
+ * @param String name Header name
+ * @return Boolean
+ */
+ has(name) {
+ name = `${name}`;
+ validateName(name);
+ return find(this[MAP], name) !== undefined;
+ }
+
+ /**
+ * Delete all header values given name
+ *
+ * @param String name Header name
+ * @return Void
+ */
+ delete(name) {
+ name = `${name}`;
+ validateName(name);
+ const key = find(this[MAP], name);
+ if (key !== undefined) {
+ delete this[MAP][key];
+ }
+ }
+
+ /**
+ * Return raw headers (non-spec api)
+ *
+ * @return Object
+ */
+ raw() {
+ return this[MAP];
+ }
+
+ /**
+ * Get an iterator on keys.
+ *
+ * @return Iterator
+ */
+ keys() {
+ return createHeadersIterator(this, 'key');
+ }
+
+ /**
+ * Get an iterator on values.
+ *
+ * @return Iterator
+ */
+ values() {
+ return createHeadersIterator(this, 'value');
+ }
+
+ /**
+ * Get an iterator on entries.
+ *
+ * This is the default iterator of the Headers object.
+ *
+ * @return Iterator
+ */
+ [Symbol.iterator]() {
+ return createHeadersIterator(this, 'key+value');
+ }
+}
+Headers.prototype.entries = Headers.prototype[Symbol.iterator];
+
+Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
+ value: 'Headers',
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+Object.defineProperties(Headers.prototype, {
+ get: { enumerable: true },
+ forEach: { enumerable: true },
+ set: { enumerable: true },
+ append: { enumerable: true },
+ has: { enumerable: true },
+ delete: { enumerable: true },
+ keys: { enumerable: true },
+ values: { enumerable: true },
+ entries: { enumerable: true }
+});
+
+function getHeaders(headers) {
+ let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
+
+ const keys = Object.keys(headers[MAP]).sort();
+ return keys.map(kind === 'key' ? function (k) {
+ return k.toLowerCase();
+ } : kind === 'value' ? function (k) {
+ return headers[MAP][k].join(', ');
+ } : function (k) {
+ return [k.toLowerCase(), headers[MAP][k].join(', ')];
+ });
+}
+
+const INTERNAL = Symbol('internal');
+
+function createHeadersIterator(target, kind) {
+ const iterator = Object.create(HeadersIteratorPrototype);
+ iterator[INTERNAL] = {
+ target,
+ kind,
+ index: 0
+ };
+ return iterator;
+}
+
+const HeadersIteratorPrototype = Object.setPrototypeOf({
+ next() {
+ // istanbul ignore if
+ if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
+ throw new TypeError('Value of `this` is not a HeadersIterator');
+ }
+
+ var _INTERNAL = this[INTERNAL];
+ const target = _INTERNAL.target,
+ kind = _INTERNAL.kind,
+ index = _INTERNAL.index;
+
+ const values = getHeaders(target, kind);
+ const len = values.length;
+ if (index >= len) {
+ return {
+ value: undefined,
+ done: true
+ };
+ }
+
+ this[INTERNAL].index = index + 1;
+
+ return {
+ value: values[index],
+ done: false
+ };
+ }
+}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
+
+Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
+ value: 'HeadersIterator',
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+/**
+ * Export the Headers object in a form that Node.js can consume.
+ *
+ * @param Headers headers
+ * @return Object
+ */
+function exportNodeCompatibleHeaders(headers) {
+ const obj = Object.assign({ __proto__: null }, headers[MAP]);
+
+ // http.request() only supports string as Host header. This hack makes
+ // specifying custom Host header possible.
+ const hostHeaderKey = find(headers[MAP], 'Host');
+ if (hostHeaderKey !== undefined) {
+ obj[hostHeaderKey] = obj[hostHeaderKey][0];
+ }
+
+ return obj;
+}
+
+/**
+ * Create a Headers object from an object of headers, ignoring those that do
+ * not conform to HTTP grammar productions.
+ *
+ * @param Object obj Object of headers
+ * @return Headers
+ */
+function createHeadersLenient(obj) {
+ const headers = new Headers();
+ for (const name of Object.keys(obj)) {
+ if (invalidTokenRegex.test(name)) {
+ continue;
+ }
+ if (Array.isArray(obj[name])) {
+ for (const val of obj[name]) {
+ if (invalidHeaderCharRegex.test(val)) {
+ continue;
+ }
+ if (headers[MAP][name] === undefined) {
+ headers[MAP][name] = [val];
+ } else {
+ headers[MAP][name].push(val);
+ }
+ }
+ } else if (!invalidHeaderCharRegex.test(obj[name])) {
+ headers[MAP][name] = [obj[name]];
+ }
+ }
+ return headers;
+}
+
+const INTERNALS$1 = Symbol('Response internals');
+
+// fix an issue where "STATUS_CODES" aren't a named export for node <10
+const STATUS_CODES = http.STATUS_CODES;
+
+/**
+ * Response class
+ *
+ * @param Stream body Readable stream
+ * @param Object opts Response options
+ * @return Void
+ */
+class Response {
+ constructor() {
+ let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
+ let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ Body.call(this, body, opts);
+
+ const status = opts.status || 200;
+ const headers = new Headers(opts.headers);
+
+ if (body != null && !headers.has('Content-Type')) {
+ const contentType = extractContentType(body);
+ if (contentType) {
+ headers.append('Content-Type', contentType);
+ }
+ }
+
+ this[INTERNALS$1] = {
+ url: opts.url,
+ status,
+ statusText: opts.statusText || STATUS_CODES[status],
+ headers,
+ counter: opts.counter
+ };
+ }
+
+ get url() {
+ return this[INTERNALS$1].url || '';
+ }
+
+ get status() {
+ return this[INTERNALS$1].status;
+ }
+
+ /**
+ * Convenience property representing if the request ended normally
+ */
+ get ok() {
+ return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
+ }
+
+ get redirected() {
+ return this[INTERNALS$1].counter > 0;
+ }
+
+ get statusText() {
+ return this[INTERNALS$1].statusText;
+ }
+
+ get headers() {
+ return this[INTERNALS$1].headers;
+ }
+
+ /**
+ * Clone this response
+ *
+ * @return Response
+ */
+ clone() {
+ return new Response(clone(this), {
+ url: this.url,
+ status: this.status,
+ statusText: this.statusText,
+ headers: this.headers,
+ ok: this.ok,
+ redirected: this.redirected
+ });
+ }
+}
+
+Body.mixIn(Response.prototype);
+
+Object.defineProperties(Response.prototype, {
+ url: { enumerable: true },
+ status: { enumerable: true },
+ ok: { enumerable: true },
+ redirected: { enumerable: true },
+ statusText: { enumerable: true },
+ headers: { enumerable: true },
+ clone: { enumerable: true }
+});
+
+Object.defineProperty(Response.prototype, Symbol.toStringTag, {
+ value: 'Response',
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+const INTERNALS$2 = Symbol('Request internals');
+const URL = Url.URL || whatwgUrl.URL;
+
+// fix an issue where "format", "parse" aren't a named export for node <10
+const parse_url = Url.parse;
+const format_url = Url.format;
+
+/**
+ * Wrapper around `new URL` to handle arbitrary URLs
+ *
+ * @param {string} urlStr
+ * @return {void}
+ */
+function parseURL(urlStr) {
+ /*
+ Check whether the URL is absolute or not
+ Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
+ Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
+ */
+ if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
+ urlStr = new URL(urlStr).toString();
+ }
+
+ // Fallback to old implementation for arbitrary URLs
+ return parse_url(urlStr);
+}
+
+const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
+
+/**
+ * Check if a value is an instance of Request.
+ *
+ * @param Mixed input
+ * @return Boolean
+ */
+function isRequest(input) {
+ return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
+}
+
+function isAbortSignal(signal) {
+ const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
+ return !!(proto && proto.constructor.name === 'AbortSignal');
+}
+
+/**
+ * Request class
+ *
+ * @param Mixed input Url or Request instance
+ * @param Object init Custom options
+ * @return Void
+ */
+class Request {
+ constructor(input) {
+ let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ let parsedURL;
+
+ // normalize input
+ if (!isRequest(input)) {
+ if (input && input.href) {
+ // in order to support Node.js' Url objects; though WHATWG's URL objects
+ // will fall into this branch also (since their `toString()` will return
+ // `href` property anyway)
+ parsedURL = parseURL(input.href);
+ } else {
+ // coerce input to a string before attempting to parse
+ parsedURL = parseURL(`${input}`);
+ }
+ input = {};
+ } else {
+ parsedURL = parseURL(input.url);
+ }
+
+ let method = init.method || input.method || 'GET';
+ method = method.toUpperCase();
+
+ if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
+ throw new TypeError('Request with GET/HEAD method cannot have body');
+ }
+
+ let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
+
+ Body.call(this, inputBody, {
+ timeout: init.timeout || input.timeout || 0,
+ size: init.size || input.size || 0
+ });
+
+ const headers = new Headers(init.headers || input.headers || {});
+
+ if (inputBody != null && !headers.has('Content-Type')) {
+ const contentType = extractContentType(inputBody);
+ if (contentType) {
+ headers.append('Content-Type', contentType);
+ }
+ }
+
+ let signal = isRequest(input) ? input.signal : null;
+ if ('signal' in init) signal = init.signal;
+
+ if (signal != null && !isAbortSignal(signal)) {
+ throw new TypeError('Expected signal to be an instanceof AbortSignal');
+ }
+
+ this[INTERNALS$2] = {
+ method,
+ redirect: init.redirect || input.redirect || 'follow',
+ headers,
+ parsedURL,
+ signal
+ };
+
+ // node-fetch-only options
+ this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
+ this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
+ this.counter = init.counter || input.counter || 0;
+ this.agent = init.agent || input.agent;
+ }
+
+ get method() {
+ return this[INTERNALS$2].method;
+ }
+
+ get url() {
+ return format_url(this[INTERNALS$2].parsedURL);
+ }
+
+ get headers() {
+ return this[INTERNALS$2].headers;
+ }
+
+ get redirect() {
+ return this[INTERNALS$2].redirect;
+ }
+
+ get signal() {
+ return this[INTERNALS$2].signal;
+ }
+
+ /**
+ * Clone this request
+ *
+ * @return Request
+ */
+ clone() {
+ return new Request(this);
+ }
+}
+
+Body.mixIn(Request.prototype);
+
+Object.defineProperty(Request.prototype, Symbol.toStringTag, {
+ value: 'Request',
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+Object.defineProperties(Request.prototype, {
+ method: { enumerable: true },
+ url: { enumerable: true },
+ headers: { enumerable: true },
+ redirect: { enumerable: true },
+ clone: { enumerable: true },
+ signal: { enumerable: true }
+});
+
+/**
+ * Convert a Request to Node.js http request options.
+ *
+ * @param Request A Request instance
+ * @return Object The options object to be passed to http.request
+ */
+function getNodeRequestOptions(request) {
+ const parsedURL = request[INTERNALS$2].parsedURL;
+ const headers = new Headers(request[INTERNALS$2].headers);
+
+ // fetch step 1.3
+ if (!headers.has('Accept')) {
+ headers.set('Accept', '*/*');
+ }
+
+ // Basic fetch
+ if (!parsedURL.protocol || !parsedURL.hostname) {
+ throw new TypeError('Only absolute URLs are supported');
+ }
+
+ if (!/^https?:$/.test(parsedURL.protocol)) {
+ throw new TypeError('Only HTTP(S) protocols are supported');
+ }
+
+ if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
+ throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
+ }
+
+ // HTTP-network-or-cache fetch steps 2.4-2.7
+ let contentLengthValue = null;
+ if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
+ contentLengthValue = '0';
+ }
+ if (request.body != null) {
+ const totalBytes = getTotalBytes(request);
+ if (typeof totalBytes === 'number') {
+ contentLengthValue = String(totalBytes);
+ }
+ }
+ if (contentLengthValue) {
+ headers.set('Content-Length', contentLengthValue);
+ }
+
+ // HTTP-network-or-cache fetch step 2.11
+ if (!headers.has('User-Agent')) {
+ headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
+ }
+
+ // HTTP-network-or-cache fetch step 2.15
+ if (request.compress && !headers.has('Accept-Encoding')) {
+ headers.set('Accept-Encoding', 'gzip,deflate');
+ }
+
+ let agent = request.agent;
+ if (typeof agent === 'function') {
+ agent = agent(parsedURL);
+ }
+
+ // HTTP-network fetch step 4.2
+ // chunked encoding is handled by Node.js
+
+ return Object.assign({}, parsedURL, {
+ method: request.method,
+ headers: exportNodeCompatibleHeaders(headers),
+ agent
+ });
+}
+
+/**
+ * abort-error.js
+ *
+ * AbortError interface for cancelled requests
+ */
+
+/**
+ * Create AbortError instance
+ *
+ * @param String message Error message for human
+ * @return AbortError
+ */
+function AbortError(message) {
+ Error.call(this, message);
+
+ this.type = 'aborted';
+ this.message = message;
+
+ // hide custom error implementation details from end-users
+ Error.captureStackTrace(this, this.constructor);
+}
+
+AbortError.prototype = Object.create(Error.prototype);
+AbortError.prototype.constructor = AbortError;
+AbortError.prototype.name = 'AbortError';
+
+const URL$1 = Url.URL || whatwgUrl.URL;
+
+// fix an issue where "PassThrough", "resolve" aren't a named export for node <10
+const PassThrough$1 = Stream.PassThrough;
+
+const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
+ const orig = new URL$1(original).hostname;
+ const dest = new URL$1(destination).hostname;
+
+ return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
+};
+
+/**
+ * isSameProtocol reports whether the two provided URLs use the same protocol.
+ *
+ * Both domains must already be in canonical form.
+ * @param {string|URL} original
+ * @param {string|URL} destination
+ */
+const isSameProtocol = function isSameProtocol(destination, original) {
+ const orig = new URL$1(original).protocol;
+ const dest = new URL$1(destination).protocol;
+
+ return orig === dest;
+};
+
+/**
+ * Fetch function
+ *
+ * @param Mixed url Absolute url or Request instance
+ * @param Object opts Fetch options
+ * @return Promise
+ */
+function fetch(url, opts) {
+
+ // allow custom promise
+ if (!fetch.Promise) {
+ throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
+ }
+
+ Body.Promise = fetch.Promise;
+
+ // wrap http.request into fetch
+ return new fetch.Promise(function (resolve, reject) {
+ // build request object
+ const request = new Request(url, opts);
+ const options = getNodeRequestOptions(request);
+
+ const send = (options.protocol === 'https:' ? https : http).request;
+ const signal = request.signal;
+
+ let response = null;
+
+ const abort = function abort() {
+ let error = new AbortError('The user aborted a request.');
+ reject(error);
+ if (request.body && request.body instanceof Stream.Readable) {
+ destroyStream(request.body, error);
+ }
+ if (!response || !response.body) return;
+ response.body.emit('error', error);
+ };
+
+ if (signal && signal.aborted) {
+ abort();
+ return;
+ }
+
+ const abortAndFinalize = function abortAndFinalize() {
+ abort();
+ finalize();
+ };
+
+ // send request
+ const req = send(options);
+ let reqTimeout;
+
+ if (signal) {
+ signal.addEventListener('abort', abortAndFinalize);
+ }
+
+ function finalize() {
+ req.abort();
+ if (signal) signal.removeEventListener('abort', abortAndFinalize);
+ clearTimeout(reqTimeout);
+ }
+
+ if (request.timeout) {
+ req.once('socket', function (socket) {
+ reqTimeout = setTimeout(function () {
+ reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
+ finalize();
+ }, request.timeout);
+ });
+ }
+
+ req.on('error', function (err) {
+ reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
+
+ if (response && response.body) {
+ destroyStream(response.body, err);
+ }
+
+ finalize();
+ });
+
+ fixResponseChunkedTransferBadEnding(req, function (err) {
+ if (signal && signal.aborted) {
+ return;
+ }
+
+ if (response && response.body) {
+ destroyStream(response.body, err);
+ }
+ });
+
+ /* c8 ignore next 18 */
+ if (parseInt(process.version.substring(1)) < 14) {
+ // Before Node.js 14, pipeline() does not fully support async iterators and does not always
+ // properly handle when the socket close/end events are out of order.
+ req.on('socket', function (s) {
+ s.addListener('close', function (hadError) {
+ // if a data listener is still present we didn't end cleanly
+ const hasDataListener = s.listenerCount('data') > 0;
+
+ // if end happened before close but the socket didn't emit an error, do it now
+ if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
+ const err = new Error('Premature close');
+ err.code = 'ERR_STREAM_PREMATURE_CLOSE';
+ response.body.emit('error', err);
+ }
+ });
+ });
+ }
+
+ req.on('response', function (res) {
+ clearTimeout(reqTimeout);
+
+ const headers = createHeadersLenient(res.headers);
+
+ // HTTP fetch step 5
+ if (fetch.isRedirect(res.statusCode)) {
+ // HTTP fetch step 5.2
+ const location = headers.get('Location');
+
+ // HTTP fetch step 5.3
+ let locationURL = null;
+ try {
+ locationURL = location === null ? null : new URL$1(location, request.url).toString();
+ } catch (err) {
+ // error here can only be invalid URL in Location: header
+ // do not throw when options.redirect == manual
+ // let the user extract the errorneous redirect URL
+ if (request.redirect !== 'manual') {
+ reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
+ finalize();
+ return;
+ }
+ }
+
+ // HTTP fetch step 5.5
+ switch (request.redirect) {
+ case 'error':
+ reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
+ finalize();
+ return;
+ case 'manual':
+ // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
+ if (locationURL !== null) {
+ // handle corrupted header
+ try {
+ headers.set('Location', locationURL);
+ } catch (err) {
+ // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
+ reject(err);
+ }
+ }
+ break;
+ case 'follow':
+ // HTTP-redirect fetch step 2
+ if (locationURL === null) {
+ break;
+ }
+
+ // HTTP-redirect fetch step 5
+ if (request.counter >= request.follow) {
+ reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
+ finalize();
+ return;
+ }
+
+ // HTTP-redirect fetch step 6 (counter increment)
+ // Create a new Request object.
+ const requestOpts = {
+ headers: new Headers(request.headers),
+ follow: request.follow,
+ counter: request.counter + 1,
+ agent: request.agent,
+ compress: request.compress,
+ method: request.method,
+ body: request.body,
+ signal: request.signal,
+ timeout: request.timeout,
+ size: request.size
+ };
+
+ if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
+ for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
+ requestOpts.headers.delete(name);
+ }
+ }
+
+ // HTTP-redirect fetch step 9
+ if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
+ reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
+ finalize();
+ return;
+ }
+
+ // HTTP-redirect fetch step 11
+ if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
+ requestOpts.method = 'GET';
+ requestOpts.body = undefined;
+ requestOpts.headers.delete('content-length');
+ }
+
+ // HTTP-redirect fetch step 15
+ resolve(fetch(new Request(locationURL, requestOpts)));
+ finalize();
+ return;
+ }
+ }
+
+ // prepare response
+ res.once('end', function () {
+ if (signal) signal.removeEventListener('abort', abortAndFinalize);
+ });
+ let body = res.pipe(new PassThrough$1());
+
+ const response_options = {
+ url: request.url,
+ status: res.statusCode,
+ statusText: res.statusMessage,
+ headers: headers,
+ size: request.size,
+ timeout: request.timeout,
+ counter: request.counter
+ };
+
+ // HTTP-network fetch step 12.1.1.3
+ const codings = headers.get('Content-Encoding');
+
+ // HTTP-network fetch step 12.1.1.4: handle content codings
+
+ // in following scenarios we ignore compression support
+ // 1. compression support is disabled
+ // 2. HEAD request
+ // 3. no Content-Encoding header
+ // 4. no content response (204)
+ // 5. content not modified response (304)
+ if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
+ response = new Response(body, response_options);
+ resolve(response);
+ return;
+ }
+
+ // For Node v6+
+ // Be less strict when decoding compressed responses, since sometimes
+ // servers send slightly invalid responses that are still accepted
+ // by common browsers.
+ // Always using Z_SYNC_FLUSH is what cURL does.
+ const zlibOptions = {
+ flush: zlib.Z_SYNC_FLUSH,
+ finishFlush: zlib.Z_SYNC_FLUSH
+ };
+
+ // for gzip
+ if (codings == 'gzip' || codings == 'x-gzip') {
+ body = body.pipe(zlib.createGunzip(zlibOptions));
+ response = new Response(body, response_options);
+ resolve(response);
+ return;
+ }
+
+ // for deflate
+ if (codings == 'deflate' || codings == 'x-deflate') {
+ // handle the infamous raw deflate response from old servers
+ // a hack for old IIS and Apache servers
+ const raw = res.pipe(new PassThrough$1());
+ raw.once('data', function (chunk) {
+ // see http://stackoverflow.com/questions/37519828
+ if ((chunk[0] & 0x0F) === 0x08) {
+ body = body.pipe(zlib.createInflate());
+ } else {
+ body = body.pipe(zlib.createInflateRaw());
+ }
+ response = new Response(body, response_options);
+ resolve(response);
+ });
+ raw.on('end', function () {
+ // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
+ if (!response) {
+ response = new Response(body, response_options);
+ resolve(response);
+ }
+ });
+ return;
+ }
+
+ // for br
+ if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
+ body = body.pipe(zlib.createBrotliDecompress());
+ response = new Response(body, response_options);
+ resolve(response);
+ return;
+ }
+
+ // otherwise, use response as-is
+ response = new Response(body, response_options);
+ resolve(response);
+ });
+
+ writeToStream(req, request);
+ });
+}
+function fixResponseChunkedTransferBadEnding(request, errorCallback) {
+ let socket;
+
+ request.on('socket', function (s) {
+ socket = s;
+ });
+
+ request.on('response', function (response) {
+ const headers = response.headers;
+
+ if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
+ response.once('close', function (hadError) {
+ // tests for socket presence, as in some situations the
+ // the 'socket' event is not triggered for the request
+ // (happens in deno), avoids `TypeError`
+ // if a data listener is still present we didn't end cleanly
+ const hasDataListener = socket && socket.listenerCount('data') > 0;
+
+ if (hasDataListener && !hadError) {
+ const err = new Error('Premature close');
+ err.code = 'ERR_STREAM_PREMATURE_CLOSE';
+ errorCallback(err);
+ }
+ });
+ }
+ });
+}
+
+function destroyStream(stream, err) {
+ if (stream.destroy) {
+ stream.destroy(err);
+ } else {
+ // node < 8
+ stream.emit('error', err);
+ stream.end();
+ }
+}
+
+/**
+ * Redirect code matching
+ *
+ * @param Number code Status code
+ * @return Boolean
+ */
+fetch.isRedirect = function (code) {
+ return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
+};
+
+// expose Promise
+fetch.Promise = global.Promise;
+
+module.exports = exports = fetch;
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports["default"] = exports;
+exports.Headers = Headers;
+exports.Request = Request;
+exports.Response = Response;
+exports.FetchError = FetchError;
+exports.AbortError = AbortError;
+
+
+/***/ }),
+
+/***/ 504:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var hasMap = typeof Map === 'function' && Map.prototype;
+var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
+var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
+var mapForEach = hasMap && Map.prototype.forEach;
+var hasSet = typeof Set === 'function' && Set.prototype;
+var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
+var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
+var setForEach = hasSet && Set.prototype.forEach;
+var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
+var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
+var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
+var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
+var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
+var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
+var booleanValueOf = Boolean.prototype.valueOf;
+var objectToString = Object.prototype.toString;
+var functionToString = Function.prototype.toString;
+var $match = String.prototype.match;
+var $slice = String.prototype.slice;
+var $replace = String.prototype.replace;
+var $toUpperCase = String.prototype.toUpperCase;
+var $toLowerCase = String.prototype.toLowerCase;
+var $test = RegExp.prototype.test;
+var $concat = Array.prototype.concat;
+var $join = Array.prototype.join;
+var $arrSlice = Array.prototype.slice;
+var $floor = Math.floor;
+var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
+var gOPS = Object.getOwnPropertySymbols;
+var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
+var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
+// ie, `has-tostringtag/shams
+var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
+ ? Symbol.toStringTag
+ : null;
+var isEnumerable = Object.prototype.propertyIsEnumerable;
+
+var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
+ ? function (O) {
+ return O.__proto__; // eslint-disable-line no-proto
+ }
+ : null
+);
+
+function addNumericSeparator(num, str) {
+ if (
+ num === Infinity
+ || num === -Infinity
+ || num !== num
+ || (num && num > -1000 && num < 1000)
+ || $test.call(/e/, str)
+ ) {
+ return str;
+ }
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
+ if (typeof num === 'number') {
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
+ if (int !== num) {
+ var intStr = String(int);
+ var dec = $slice.call(str, intStr.length + 1);
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
+ }
+ }
+ return $replace.call(str, sepRegex, '$&_');
+}
+
+var utilInspect = __nccwpck_require__(7265);
+var inspectCustom = utilInspect.custom;
+var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
+
+module.exports = function inspect_(obj, options, depth, seen) {
+ var opts = options || {};
+
+ if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
+ }
+ if (
+ has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
+ : opts.maxStringLength !== null
+ )
+ ) {
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
+ }
+ var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
+ }
+
+ if (
+ has(opts, 'indent')
+ && opts.indent !== null
+ && opts.indent !== '\t'
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
+ ) {
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
+ }
+ if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
+ }
+ var numericSeparator = opts.numericSeparator;
+
+ if (typeof obj === 'undefined') {
+ return 'undefined';
+ }
+ if (obj === null) {
+ return 'null';
+ }
+ if (typeof obj === 'boolean') {
+ return obj ? 'true' : 'false';
+ }
+
+ if (typeof obj === 'string') {
+ return inspectString(obj, opts);
+ }
+ if (typeof obj === 'number') {
+ if (obj === 0) {
+ return Infinity / obj > 0 ? '0' : '-0';
+ }
+ var str = String(obj);
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
+ }
+ if (typeof obj === 'bigint') {
+ var bigIntStr = String(obj) + 'n';
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
+ }
+
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
+ if (typeof depth === 'undefined') { depth = 0; }
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
+ return isArray(obj) ? '[Array]' : '[Object]';
+ }
+
+ var indent = getIndent(opts, depth);
+
+ if (typeof seen === 'undefined') {
+ seen = [];
+ } else if (indexOf(seen, obj) >= 0) {
+ return '[Circular]';
+ }
+
+ function inspect(value, from, noIndent) {
+ if (from) {
+ seen = $arrSlice.call(seen);
+ seen.push(from);
+ }
+ if (noIndent) {
+ var newOpts = {
+ depth: opts.depth
+ };
+ if (has(opts, 'quoteStyle')) {
+ newOpts.quoteStyle = opts.quoteStyle;
+ }
+ return inspect_(value, newOpts, depth + 1, seen);
+ }
+ return inspect_(value, opts, depth + 1, seen);
+ }
+
+ if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
+ var name = nameOf(obj);
+ var keys = arrObjKeys(obj, inspect);
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
+ }
+ if (isSymbol(obj)) {
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
+ }
+ if (isElement(obj)) {
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
+ var attrs = obj.attributes || [];
+ for (var i = 0; i < attrs.length; i++) {
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
+ }
+ s += '>';
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
+ s += '' + $toLowerCase.call(String(obj.nodeName)) + '>';
+ return s;
+ }
+ if (isArray(obj)) {
+ if (obj.length === 0) { return '[]'; }
+ var xs = arrObjKeys(obj, inspect);
+ if (indent && !singleLineValues(xs)) {
+ return '[' + indentedJoin(xs, indent) + ']';
+ }
+ return '[ ' + $join.call(xs, ', ') + ' ]';
+ }
+ if (isError(obj)) {
+ var parts = arrObjKeys(obj, inspect);
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
+ }
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
+ }
+ if (typeof obj === 'object' && customInspect) {
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
+ return utilInspect(obj, { depth: maxDepth - depth });
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
+ return obj.inspect();
+ }
+ }
+ if (isMap(obj)) {
+ var mapParts = [];
+ if (mapForEach) {
+ mapForEach.call(obj, function (value, key) {
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
+ });
+ }
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
+ }
+ if (isSet(obj)) {
+ var setParts = [];
+ if (setForEach) {
+ setForEach.call(obj, function (value) {
+ setParts.push(inspect(value, obj));
+ });
+ }
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
+ }
+ if (isWeakMap(obj)) {
+ return weakCollectionOf('WeakMap');
+ }
+ if (isWeakSet(obj)) {
+ return weakCollectionOf('WeakSet');
+ }
+ if (isWeakRef(obj)) {
+ return weakCollectionOf('WeakRef');
+ }
+ if (isNumber(obj)) {
+ return markBoxed(inspect(Number(obj)));
+ }
+ if (isBigInt(obj)) {
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
+ }
+ if (isBoolean(obj)) {
+ return markBoxed(booleanValueOf.call(obj));
+ }
+ if (isString(obj)) {
+ return markBoxed(inspect(String(obj)));
+ }
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
+ /* eslint-env browser */
+ if (typeof window !== 'undefined' && obj === window) {
+ return '{ [object Window] }';
+ }
+ if (obj === global) {
+ return '{ [object globalThis] }';
+ }
+ if (!isDate(obj) && !isRegExp(obj)) {
+ var ys = arrObjKeys(obj, inspect);
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
+ if (ys.length === 0) { return tag + '{}'; }
+ if (indent) {
+ return tag + '{' + indentedJoin(ys, indent) + '}';
+ }
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
+ }
+ return String(obj);
+};
+
+function wrapQuotes(s, defaultStyle, opts) {
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
+ return quoteChar + s + quoteChar;
+}
+
+function quote(s) {
+ return $replace.call(String(s), /"/g, '"');
+}
+
+function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
+
+// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
+function isSymbol(obj) {
+ if (hasShammedSymbols) {
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
+ }
+ if (typeof obj === 'symbol') {
+ return true;
+ }
+ if (!obj || typeof obj !== 'object' || !symToString) {
+ return false;
+ }
+ try {
+ symToString.call(obj);
+ return true;
+ } catch (e) {}
+ return false;
+}
+
+function isBigInt(obj) {
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
+ return false;
+ }
+ try {
+ bigIntValueOf.call(obj);
+ return true;
+ } catch (e) {}
+ return false;
+}
+
+var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
+function has(obj, key) {
+ return hasOwn.call(obj, key);
+}
+
+function toStr(obj) {
+ return objectToString.call(obj);
+}
+
+function nameOf(f) {
+ if (f.name) { return f.name; }
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
+ if (m) { return m[1]; }
+ return null;
+}
+
+function indexOf(xs, x) {
+ if (xs.indexOf) { return xs.indexOf(x); }
+ for (var i = 0, l = xs.length; i < l; i++) {
+ if (xs[i] === x) { return i; }
+ }
+ return -1;
+}
+
+function isMap(x) {
+ if (!mapSize || !x || typeof x !== 'object') {
+ return false;
+ }
+ try {
+ mapSize.call(x);
+ try {
+ setSize.call(x);
+ } catch (s) {
+ return true;
+ }
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
+ } catch (e) {}
+ return false;
+}
+
+function isWeakMap(x) {
+ if (!weakMapHas || !x || typeof x !== 'object') {
+ return false;
+ }
+ try {
+ weakMapHas.call(x, weakMapHas);
+ try {
+ weakSetHas.call(x, weakSetHas);
+ } catch (s) {
+ return true;
+ }
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
+ } catch (e) {}
+ return false;
+}
+
+function isWeakRef(x) {
+ if (!weakRefDeref || !x || typeof x !== 'object') {
+ return false;
+ }
+ try {
+ weakRefDeref.call(x);
+ return true;
+ } catch (e) {}
+ return false;
+}
+
+function isSet(x) {
+ if (!setSize || !x || typeof x !== 'object') {
+ return false;
+ }
+ try {
+ setSize.call(x);
+ try {
+ mapSize.call(x);
+ } catch (m) {
+ return true;
+ }
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
+ } catch (e) {}
+ return false;
+}
+
+function isWeakSet(x) {
+ if (!weakSetHas || !x || typeof x !== 'object') {
+ return false;
+ }
+ try {
+ weakSetHas.call(x, weakSetHas);
+ try {
+ weakMapHas.call(x, weakMapHas);
+ } catch (s) {
+ return true;
+ }
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
+ } catch (e) {}
+ return false;
+}
+
+function isElement(x) {
+ if (!x || typeof x !== 'object') { return false; }
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
+ return true;
+ }
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
+}
+
+function inspectString(str, opts) {
+ if (str.length > opts.maxStringLength) {
+ var remaining = str.length - opts.maxStringLength;
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
+ }
+ // eslint-disable-next-line no-control-regex
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
+ return wrapQuotes(s, 'single', opts);
+}
+
+function lowbyte(c) {
+ var n = c.charCodeAt(0);
+ var x = {
+ 8: 'b',
+ 9: 't',
+ 10: 'n',
+ 12: 'f',
+ 13: 'r'
+ }[n];
+ if (x) { return '\\' + x; }
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
+}
+
+function markBoxed(str) {
+ return 'Object(' + str + ')';
+}
+
+function weakCollectionOf(type) {
+ return type + ' { ? }';
+}
+
+function collectionOf(type, size, entries, indent) {
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
+ return type + ' (' + size + ') {' + joinedEntries + '}';
+}
+
+function singleLineValues(xs) {
+ for (var i = 0; i < xs.length; i++) {
+ if (indexOf(xs[i], '\n') >= 0) {
+ return false;
+ }
+ }
+ return true;
+}
+
+function getIndent(opts, depth) {
+ var baseIndent;
+ if (opts.indent === '\t') {
+ baseIndent = '\t';
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
+ } else {
+ return null;
+ }
+ return {
+ base: baseIndent,
+ prev: $join.call(Array(depth + 1), baseIndent)
+ };
+}
+
+function indentedJoin(xs, indent) {
+ if (xs.length === 0) { return ''; }
+ var lineJoiner = '\n' + indent.prev + indent.base;
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
+}
+
+function arrObjKeys(obj, inspect) {
+ var isArr = isArray(obj);
+ var xs = [];
+ if (isArr) {
+ xs.length = obj.length;
+ for (var i = 0; i < obj.length; i++) {
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
+ }
+ }
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
+ var symMap;
+ if (hasShammedSymbols) {
+ symMap = {};
+ for (var k = 0; k < syms.length; k++) {
+ symMap['$' + syms[k]] = syms[k];
+ }
+ }
+
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
+ if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
+ } else if ($test.call(/[^\w$]/, key)) {
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
+ } else {
+ xs.push(key + ': ' + inspect(obj[key], obj));
+ }
+ }
+ if (typeof gOPS === 'function') {
+ for (var j = 0; j < syms.length; j++) {
+ if (isEnumerable.call(obj, syms[j])) {
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
+ }
+ }
+ }
+ return xs;
+}
+
+
+/***/ }),
+
+/***/ 7265:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+module.exports = __nccwpck_require__(3837).inspect;
+
+
+/***/ }),
+
+/***/ 1223:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var wrappy = __nccwpck_require__(2940)
+module.exports = wrappy(once)
+module.exports.strict = wrappy(onceStrict)
+
+once.proto = once(function () {
+ Object.defineProperty(Function.prototype, 'once', {
+ value: function () {
+ return once(this)
+ },
+ configurable: true
+ })
+
+ Object.defineProperty(Function.prototype, 'onceStrict', {
+ value: function () {
+ return onceStrict(this)
+ },
+ configurable: true
+ })
+})
+
+function once (fn) {
+ var f = function () {
+ if (f.called) return f.value
+ f.called = true
+ return f.value = fn.apply(this, arguments)
+ }
+ f.called = false
+ return f
+}
+
+function onceStrict (fn) {
+ var f = function () {
+ if (f.called)
+ throw new Error(f.onceError)
+ f.called = true
+ return f.value = fn.apply(this, arguments)
+ }
+ var name = fn.name || 'Function wrapped with `once`'
+ f.onceError = name + " shouldn't be called more than once"
+ f.called = false
+ return f
+}
+
+
+/***/ }),
+
+/***/ 4907:
+/***/ ((module) => {
+
+"use strict";
+
+
+var replace = String.prototype.replace;
+var percentTwenties = /%20/g;
+
+var Format = {
+ RFC1738: 'RFC1738',
+ RFC3986: 'RFC3986'
+};
+
+module.exports = {
+ 'default': Format.RFC3986,
+ formatters: {
+ RFC1738: function (value) {
+ return replace.call(value, percentTwenties, '+');
+ },
+ RFC3986: function (value) {
+ return String(value);
+ }
+ },
+ RFC1738: Format.RFC1738,
+ RFC3986: Format.RFC3986
+};
+
+
+/***/ }),
+
+/***/ 2760:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var stringify = __nccwpck_require__(9954);
+var parse = __nccwpck_require__(3912);
+var formats = __nccwpck_require__(4907);
+
+module.exports = {
+ formats: formats,
+ parse: parse,
+ stringify: stringify
+};
+
+
+/***/ }),
+
+/***/ 3912:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var utils = __nccwpck_require__(2360);
+
+var has = Object.prototype.hasOwnProperty;
+var isArray = Array.isArray;
+
+var defaults = {
+ allowDots: false,
+ allowPrototypes: false,
+ allowSparse: false,
+ arrayLimit: 20,
+ charset: 'utf-8',
+ charsetSentinel: false,
+ comma: false,
+ decoder: utils.decode,
+ delimiter: '&',
+ depth: 5,
+ ignoreQueryPrefix: false,
+ interpretNumericEntities: false,
+ parameterLimit: 1000,
+ parseArrays: true,
+ plainObjects: false,
+ strictNullHandling: false
+};
+
+var interpretNumericEntities = function (str) {
+ return str.replace(/(\d+);/g, function ($0, numberStr) {
+ return String.fromCharCode(parseInt(numberStr, 10));
+ });
+};
+
+var parseArrayValue = function (val, options) {
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
+ return val.split(',');
+ }
+
+ return val;
+};
+
+// This is what browsers will submit when the ✓ character occurs in an
+// application/x-www-form-urlencoded body and the encoding of the page containing
+// the form is iso-8859-1, or when the submitted form has an accept-charset
+// attribute of iso-8859-1. Presumably also with other charsets that do not contain
+// the ✓ character, such as us-ascii.
+var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
+
+// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
+var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
+
+var parseValues = function parseQueryStringValues(str, options) {
+ var obj = { __proto__: null };
+
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
+ var parts = cleanStr.split(options.delimiter, limit);
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
+ var i;
+
+ var charset = options.charset;
+ if (options.charsetSentinel) {
+ for (i = 0; i < parts.length; ++i) {
+ if (parts[i].indexOf('utf8=') === 0) {
+ if (parts[i] === charsetSentinel) {
+ charset = 'utf-8';
+ } else if (parts[i] === isoSentinel) {
+ charset = 'iso-8859-1';
+ }
+ skipIndex = i;
+ i = parts.length; // The eslint settings do not allow break;
+ }
+ }
+ }
+
+ for (i = 0; i < parts.length; ++i) {
+ if (i === skipIndex) {
+ continue;
+ }
+ var part = parts[i];
+
+ var bracketEqualsPos = part.indexOf(']=');
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
+
+ var key, val;
+ if (pos === -1) {
+ key = options.decoder(part, defaults.decoder, charset, 'key');
+ val = options.strictNullHandling ? null : '';
+ } else {
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
+ val = utils.maybeMap(
+ parseArrayValue(part.slice(pos + 1), options),
+ function (encodedVal) {
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
+ }
+ );
+ }
+
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
+ val = interpretNumericEntities(val);
+ }
+
+ if (part.indexOf('[]=') > -1) {
+ val = isArray(val) ? [val] : val;
+ }
+
+ if (has.call(obj, key)) {
+ obj[key] = utils.combine(obj[key], val);
+ } else {
+ obj[key] = val;
+ }
+ }
+
+ return obj;
+};
+
+var parseObject = function (chain, val, options, valuesParsed) {
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
+
+ for (var i = chain.length - 1; i >= 0; --i) {
+ var obj;
+ var root = chain[i];
+
+ if (root === '[]' && options.parseArrays) {
+ obj = [].concat(leaf);
+ } else {
+ obj = options.plainObjects ? Object.create(null) : {};
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
+ var index = parseInt(cleanRoot, 10);
+ if (!options.parseArrays && cleanRoot === '') {
+ obj = { 0: leaf };
+ } else if (
+ !isNaN(index)
+ && root !== cleanRoot
+ && String(index) === cleanRoot
+ && index >= 0
+ && (options.parseArrays && index <= options.arrayLimit)
+ ) {
+ obj = [];
+ obj[index] = leaf;
+ } else if (cleanRoot !== '__proto__') {
+ obj[cleanRoot] = leaf;
+ }
+ }
+
+ leaf = obj;
+ }
+
+ return leaf;
+};
+
+var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
+ if (!givenKey) {
+ return;
+ }
+
+ // Transform dot notation to bracket notation
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
+
+ // The regex chunks
+
+ var brackets = /(\[[^[\]]*])/;
+ var child = /(\[[^[\]]*])/g;
+
+ // Get the parent
+
+ var segment = options.depth > 0 && brackets.exec(key);
+ var parent = segment ? key.slice(0, segment.index) : key;
+
+ // Stash the parent if it exists
+
+ var keys = [];
+ if (parent) {
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
+ if (!options.allowPrototypes) {
+ return;
+ }
+ }
+
+ keys.push(parent);
+ }
+
+ // Loop through children appending to the array until we hit depth
+
+ var i = 0;
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
+ i += 1;
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
+ if (!options.allowPrototypes) {
+ return;
+ }
+ }
+ keys.push(segment[1]);
+ }
+
+ // If there's a remainder, just add whatever is left
+
+ if (segment) {
+ keys.push('[' + key.slice(segment.index) + ']');
+ }
+
+ return parseObject(keys, val, options, valuesParsed);
+};
+
+var normalizeParseOptions = function normalizeParseOptions(opts) {
+ if (!opts) {
+ return defaults;
+ }
+
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
+ throw new TypeError('Decoder has to be a function.');
+ }
+
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
+ }
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
+
+ return {
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
+ charset: charset,
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
+ parseArrays: opts.parseArrays !== false,
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
+ };
+};
+
+module.exports = function (str, opts) {
+ var options = normalizeParseOptions(opts);
+
+ if (str === '' || str === null || typeof str === 'undefined') {
+ return options.plainObjects ? Object.create(null) : {};
+ }
+
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
+ var obj = options.plainObjects ? Object.create(null) : {};
+
+ // Iterate over the keys and setup the new object
+
+ var keys = Object.keys(tempObj);
+ for (var i = 0; i < keys.length; ++i) {
+ var key = keys[i];
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
+ obj = utils.merge(obj, newObj, options);
+ }
+
+ if (options.allowSparse === true) {
+ return obj;
+ }
+
+ return utils.compact(obj);
+};
+
+
+/***/ }),
+
+/***/ 9954:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var getSideChannel = __nccwpck_require__(4334);
+var utils = __nccwpck_require__(2360);
+var formats = __nccwpck_require__(4907);
+var has = Object.prototype.hasOwnProperty;
+
+var arrayPrefixGenerators = {
+ brackets: function brackets(prefix) {
+ return prefix + '[]';
+ },
+ comma: 'comma',
+ indices: function indices(prefix, key) {
+ return prefix + '[' + key + ']';
+ },
+ repeat: function repeat(prefix) {
+ return prefix;
+ }
+};
+
+var isArray = Array.isArray;
+var push = Array.prototype.push;
+var pushToArray = function (arr, valueOrArray) {
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
+};
+
+var toISO = Date.prototype.toISOString;
+
+var defaultFormat = formats['default'];
+var defaults = {
+ addQueryPrefix: false,
+ allowDots: false,
+ charset: 'utf-8',
+ charsetSentinel: false,
+ delimiter: '&',
+ encode: true,
+ encoder: utils.encode,
+ encodeValuesOnly: false,
+ format: defaultFormat,
+ formatter: formats.formatters[defaultFormat],
+ // deprecated
+ indices: false,
+ serializeDate: function serializeDate(date) {
+ return toISO.call(date);
+ },
+ skipNulls: false,
+ strictNullHandling: false
+};
+
+var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
+ return typeof v === 'string'
+ || typeof v === 'number'
+ || typeof v === 'boolean'
+ || typeof v === 'symbol'
+ || typeof v === 'bigint';
+};
+
+var sentinel = {};
+
+var stringify = function stringify(
+ object,
+ prefix,
+ generateArrayPrefix,
+ commaRoundTrip,
+ strictNullHandling,
+ skipNulls,
+ encoder,
+ filter,
+ sort,
+ allowDots,
+ serializeDate,
+ format,
+ formatter,
+ encodeValuesOnly,
+ charset,
+ sideChannel
+) {
+ var obj = object;
+
+ var tmpSc = sideChannel;
+ var step = 0;
+ var findFlag = false;
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
+ // Where object last appeared in the ref tree
+ var pos = tmpSc.get(object);
+ step += 1;
+ if (typeof pos !== 'undefined') {
+ if (pos === step) {
+ throw new RangeError('Cyclic object value');
+ } else {
+ findFlag = true; // Break while
+ }
+ }
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
+ step = 0;
+ }
+ }
+
+ if (typeof filter === 'function') {
+ obj = filter(prefix, obj);
+ } else if (obj instanceof Date) {
+ obj = serializeDate(obj);
+ } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
+ obj = utils.maybeMap(obj, function (value) {
+ if (value instanceof Date) {
+ return serializeDate(value);
+ }
+ return value;
+ });
+ }
+
+ if (obj === null) {
+ if (strictNullHandling) {
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
+ }
+
+ obj = '';
+ }
+
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
+ if (encoder) {
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
+ }
+ return [formatter(prefix) + '=' + formatter(String(obj))];
+ }
+
+ var values = [];
+
+ if (typeof obj === 'undefined') {
+ return values;
+ }
+
+ var objKeys;
+ if (generateArrayPrefix === 'comma' && isArray(obj)) {
+ // we need to join elements in
+ if (encodeValuesOnly && encoder) {
+ obj = utils.maybeMap(obj, encoder);
+ }
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
+ } else if (isArray(filter)) {
+ objKeys = filter;
+ } else {
+ var keys = Object.keys(obj);
+ objKeys = sort ? keys.sort(sort) : keys;
+ }
+
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
+
+ for (var j = 0; j < objKeys.length; ++j) {
+ var key = objKeys[j];
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
+
+ if (skipNulls && value === null) {
+ continue;
+ }
+
+ var keyPrefix = isArray(obj)
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
+ : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
+
+ sideChannel.set(object, step);
+ var valueSideChannel = getSideChannel();
+ valueSideChannel.set(sentinel, sideChannel);
+ pushToArray(values, stringify(
+ value,
+ keyPrefix,
+ generateArrayPrefix,
+ commaRoundTrip,
+ strictNullHandling,
+ skipNulls,
+ generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
+ filter,
+ sort,
+ allowDots,
+ serializeDate,
+ format,
+ formatter,
+ encodeValuesOnly,
+ charset,
+ valueSideChannel
+ ));
+ }
+
+ return values;
+};
+
+var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
+ if (!opts) {
+ return defaults;
+ }
+
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
+ throw new TypeError('Encoder has to be a function.');
+ }
+
+ var charset = opts.charset || defaults.charset;
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
+ }
+
+ var format = formats['default'];
+ if (typeof opts.format !== 'undefined') {
+ if (!has.call(formats.formatters, opts.format)) {
+ throw new TypeError('Unknown format option provided.');
+ }
+ format = opts.format;
+ }
+ var formatter = formats.formatters[format];
+
+ var filter = defaults.filter;
+ if (typeof opts.filter === 'function' || isArray(opts.filter)) {
+ filter = opts.filter;
+ }
+
+ return {
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
+ charset: charset,
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
+ filter: filter,
+ format: format,
+ formatter: formatter,
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
+ };
+};
+
+module.exports = function (object, opts) {
+ var obj = object;
+ var options = normalizeStringifyOptions(opts);
+
+ var objKeys;
+ var filter;
+
+ if (typeof options.filter === 'function') {
+ filter = options.filter;
+ obj = filter('', obj);
+ } else if (isArray(options.filter)) {
+ filter = options.filter;
+ objKeys = filter;
+ }
+
+ var keys = [];
+
+ if (typeof obj !== 'object' || obj === null) {
+ return '';
+ }
+
+ var arrayFormat;
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
+ arrayFormat = opts.arrayFormat;
+ } else if (opts && 'indices' in opts) {
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
+ } else {
+ arrayFormat = 'indices';
+ }
+
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
+ if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
+ }
+ var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
+
+ if (!objKeys) {
+ objKeys = Object.keys(obj);
+ }
+
+ if (options.sort) {
+ objKeys.sort(options.sort);
+ }
+
+ var sideChannel = getSideChannel();
+ for (var i = 0; i < objKeys.length; ++i) {
+ var key = objKeys[i];
+
+ if (options.skipNulls && obj[key] === null) {
+ continue;
+ }
+ pushToArray(keys, stringify(
+ obj[key],
+ key,
+ generateArrayPrefix,
+ commaRoundTrip,
+ options.strictNullHandling,
+ options.skipNulls,
+ options.encode ? options.encoder : null,
+ options.filter,
+ options.sort,
+ options.allowDots,
+ options.serializeDate,
+ options.format,
+ options.formatter,
+ options.encodeValuesOnly,
+ options.charset,
+ sideChannel
+ ));
+ }
+
+ var joined = keys.join(options.delimiter);
+ var prefix = options.addQueryPrefix === true ? '?' : '';
+
+ if (options.charsetSentinel) {
+ if (options.charset === 'iso-8859-1') {
+ // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
+ prefix += 'utf8=%26%2310003%3B&';
+ } else {
+ // encodeURIComponent('✓')
+ prefix += 'utf8=%E2%9C%93&';
+ }
+ }
+
+ return joined.length > 0 ? prefix + joined : '';
+};
+
+
+/***/ }),
+
+/***/ 2360:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var formats = __nccwpck_require__(4907);
+
+var has = Object.prototype.hasOwnProperty;
+var isArray = Array.isArray;
+
+var hexTable = (function () {
+ var array = [];
+ for (var i = 0; i < 256; ++i) {
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
+ }
+
+ return array;
+}());
+
+var compactQueue = function compactQueue(queue) {
+ while (queue.length > 1) {
+ var item = queue.pop();
+ var obj = item.obj[item.prop];
+
+ if (isArray(obj)) {
+ var compacted = [];
+
+ for (var j = 0; j < obj.length; ++j) {
+ if (typeof obj[j] !== 'undefined') {
+ compacted.push(obj[j]);
+ }
+ }
+
+ item.obj[item.prop] = compacted;
+ }
+ }
+};
+
+var arrayToObject = function arrayToObject(source, options) {
+ var obj = options && options.plainObjects ? Object.create(null) : {};
+ for (var i = 0; i < source.length; ++i) {
+ if (typeof source[i] !== 'undefined') {
+ obj[i] = source[i];
+ }
+ }
+
+ return obj;
+};
+
+var merge = function merge(target, source, options) {
+ /* eslint no-param-reassign: 0 */
+ if (!source) {
+ return target;
+ }
+
+ if (typeof source !== 'object') {
+ if (isArray(target)) {
+ target.push(source);
+ } else if (target && typeof target === 'object') {
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
+ target[source] = true;
+ }
+ } else {
+ return [target, source];
+ }
+
+ return target;
+ }
+
+ if (!target || typeof target !== 'object') {
+ return [target].concat(source);
+ }
+
+ var mergeTarget = target;
+ if (isArray(target) && !isArray(source)) {
+ mergeTarget = arrayToObject(target, options);
+ }
+
+ if (isArray(target) && isArray(source)) {
+ source.forEach(function (item, i) {
+ if (has.call(target, i)) {
+ var targetItem = target[i];
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
+ target[i] = merge(targetItem, item, options);
+ } else {
+ target.push(item);
+ }
+ } else {
+ target[i] = item;
+ }
+ });
+ return target;
+ }
+
+ return Object.keys(source).reduce(function (acc, key) {
+ var value = source[key];
+
+ if (has.call(acc, key)) {
+ acc[key] = merge(acc[key], value, options);
+ } else {
+ acc[key] = value;
+ }
+ return acc;
+ }, mergeTarget);
+};
+
+var assign = function assignSingleSource(target, source) {
+ return Object.keys(source).reduce(function (acc, key) {
+ acc[key] = source[key];
+ return acc;
+ }, target);
+};
+
+var decode = function (str, decoder, charset) {
+ var strWithoutPlus = str.replace(/\+/g, ' ');
+ if (charset === 'iso-8859-1') {
+ // unescape never throws, no try...catch needed:
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
+ }
+ // utf-8
+ try {
+ return decodeURIComponent(strWithoutPlus);
+ } catch (e) {
+ return strWithoutPlus;
+ }
+};
+
+var encode = function encode(str, defaultEncoder, charset, kind, format) {
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
+ // It has been adapted here for stricter adherence to RFC 3986
+ if (str.length === 0) {
+ return str;
+ }
+
+ var string = str;
+ if (typeof str === 'symbol') {
+ string = Symbol.prototype.toString.call(str);
+ } else if (typeof str !== 'string') {
+ string = String(str);
+ }
+
+ if (charset === 'iso-8859-1') {
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
+ });
+ }
+
+ var out = '';
+ for (var i = 0; i < string.length; ++i) {
+ var c = string.charCodeAt(i);
+
+ if (
+ c === 0x2D // -
+ || c === 0x2E // .
+ || c === 0x5F // _
+ || c === 0x7E // ~
+ || (c >= 0x30 && c <= 0x39) // 0-9
+ || (c >= 0x41 && c <= 0x5A) // a-z
+ || (c >= 0x61 && c <= 0x7A) // A-Z
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
+ ) {
+ out += string.charAt(i);
+ continue;
+ }
+
+ if (c < 0x80) {
+ out = out + hexTable[c];
+ continue;
+ }
+
+ if (c < 0x800) {
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
+ continue;
+ }
+
+ if (c < 0xD800 || c >= 0xE000) {
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
+ continue;
+ }
+
+ i += 1;
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
+ /* eslint operator-linebreak: [2, "before"] */
+ out += hexTable[0xF0 | (c >> 18)]
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
+ + hexTable[0x80 | (c & 0x3F)];
+ }
+
+ return out;
+};
+
+var compact = function compact(value) {
+ var queue = [{ obj: { o: value }, prop: 'o' }];
+ var refs = [];
+
+ for (var i = 0; i < queue.length; ++i) {
+ var item = queue[i];
+ var obj = item.obj[item.prop];
+
+ var keys = Object.keys(obj);
+ for (var j = 0; j < keys.length; ++j) {
+ var key = keys[j];
+ var val = obj[key];
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
+ queue.push({ obj: obj, prop: key });
+ refs.push(val);
+ }
+ }
+ }
+
+ compactQueue(queue);
+
+ return value;
+};
+
+var isRegExp = function isRegExp(obj) {
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
+};
+
+var isBuffer = function isBuffer(obj) {
+ if (!obj || typeof obj !== 'object') {
+ return false;
+ }
+
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
+};
+
+var combine = function combine(a, b) {
+ return [].concat(a, b);
+};
+
+var maybeMap = function maybeMap(val, fn) {
+ if (isArray(val)) {
+ var mapped = [];
+ for (var i = 0; i < val.length; i += 1) {
+ mapped.push(fn(val[i]));
+ }
+ return mapped;
+ }
+ return fn(val);
+};
+
+module.exports = {
+ arrayToObject: arrayToObject,
+ assign: assign,
+ combine: combine,
+ compact: compact,
+ decode: decode,
+ encode: encode,
+ isBuffer: isBuffer,
+ isRegExp: isRegExp,
+ maybeMap: maybeMap,
+ merge: merge
+};
+
+
+/***/ }),
+
+/***/ 4056:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var GetIntrinsic = __nccwpck_require__(4538);
+var define = __nccwpck_require__(4564);
+var hasDescriptors = __nccwpck_require__(176)();
+var gOPD = __nccwpck_require__(8501);
+
+var $TypeError = __nccwpck_require__(6361);
+var $floor = GetIntrinsic('%Math.floor%');
+
+/** @typedef {(...args: unknown[]) => unknown} Func */
+
+/** @type {(fn: T, length: number, loose?: boolean) => T} */
+module.exports = function setFunctionLength(fn, length) {
+ if (typeof fn !== 'function') {
+ throw new $TypeError('`fn` is not a function');
+ }
+ if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
+ throw new $TypeError('`length` must be a positive 32-bit integer');
+ }
+
+ var loose = arguments.length > 2 && !!arguments[2];
+
+ var functionLengthIsConfigurable = true;
+ var functionLengthIsWritable = true;
+ if ('length' in fn && gOPD) {
+ var desc = gOPD(fn, 'length');
+ if (desc && !desc.configurable) {
+ functionLengthIsConfigurable = false;
+ }
+ if (desc && !desc.writable) {
+ functionLengthIsWritable = false;
+ }
+ }
+
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
+ if (hasDescriptors) {
+ define(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);
+ } else {
+ define(/** @type {Parameters[0]} */ (fn), 'length', length);
+ }
+ }
+ return fn;
+};
+
+
+/***/ }),
+
+/***/ 4334:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var GetIntrinsic = __nccwpck_require__(4538);
+var callBound = __nccwpck_require__(8803);
+var inspect = __nccwpck_require__(504);
+
+var $TypeError = __nccwpck_require__(6361);
+var $WeakMap = GetIntrinsic('%WeakMap%', true);
+var $Map = GetIntrinsic('%Map%', true);
+
+var $weakMapGet = callBound('WeakMap.prototype.get', true);
+var $weakMapSet = callBound('WeakMap.prototype.set', true);
+var $weakMapHas = callBound('WeakMap.prototype.has', true);
+var $mapGet = callBound('Map.prototype.get', true);
+var $mapSet = callBound('Map.prototype.set', true);
+var $mapHas = callBound('Map.prototype.has', true);
+
+/*
+* This function traverses the list returning the node corresponding to the given key.
+*
+* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
+*/
+var listGetNode = function (list, key) { // eslint-disable-line consistent-return
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
+ if (curr.key === key) {
+ prev.next = curr.next;
+ curr.next = list.next;
+ list.next = curr; // eslint-disable-line no-param-reassign
+ return curr;
+ }
+ }
+};
+
+var listGet = function (objects, key) {
+ var node = listGetNode(objects, key);
+ return node && node.value;
+};
+var listSet = function (objects, key, value) {
+ var node = listGetNode(objects, key);
+ if (node) {
+ node.value = value;
+ } else {
+ // Prepend the new node to the beginning of the list
+ objects.next = { // eslint-disable-line no-param-reassign
+ key: key,
+ next: objects.next,
+ value: value
+ };
+ }
+};
+var listHas = function (objects, key) {
+ return !!listGetNode(objects, key);
+};
+
+module.exports = function getSideChannel() {
+ var $wm;
+ var $m;
+ var $o;
+ var channel = {
+ assert: function (key) {
+ if (!channel.has(key)) {
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
+ }
+ },
+ get: function (key) { // eslint-disable-line consistent-return
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
+ if ($wm) {
+ return $weakMapGet($wm, key);
+ }
+ } else if ($Map) {
+ if ($m) {
+ return $mapGet($m, key);
+ }
+ } else {
+ if ($o) { // eslint-disable-line no-lonely-if
+ return listGet($o, key);
+ }
+ }
+ },
+ has: function (key) {
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
+ if ($wm) {
+ return $weakMapHas($wm, key);
+ }
+ } else if ($Map) {
+ if ($m) {
+ return $mapHas($m, key);
+ }
+ } else {
+ if ($o) { // eslint-disable-line no-lonely-if
+ return listHas($o, key);
+ }
+ }
+ return false;
+ },
+ set: function (key, value) {
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
+ if (!$wm) {
+ $wm = new $WeakMap();
+ }
+ $weakMapSet($wm, key, value);
+ } else if ($Map) {
+ if (!$m) {
+ $m = new $Map();
+ }
+ $mapSet($m, key, value);
+ } else {
+ if (!$o) {
+ // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
+ $o = { key: {}, next: null };
+ }
+ listSet($o, key, value);
+ }
+ }
+ };
+ return channel;
+};
+
+
+/***/ }),
+
+/***/ 4256:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var punycode = __nccwpck_require__(5477);
+var mappingTable = __nccwpck_require__(2020);
+
+var PROCESSING_OPTIONS = {
+ TRANSITIONAL: 0,
+ NONTRANSITIONAL: 1
+};
+
+function normalize(str) { // fix bug in v8
+ return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
+}
+
+function findStatus(val) {
+ var start = 0;
+ var end = mappingTable.length - 1;
+
+ while (start <= end) {
+ var mid = Math.floor((start + end) / 2);
+
+ var target = mappingTable[mid];
+ if (target[0][0] <= val && target[0][1] >= val) {
+ return target;
+ } else if (target[0][0] > val) {
+ end = mid - 1;
+ } else {
+ start = mid + 1;
+ }
+ }
+
+ return null;
+}
+
+var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
+
+function countSymbols(string) {
+ return string
+ // replace every surrogate pair with a BMP symbol
+ .replace(regexAstralSymbols, '_')
+ // then get the length
+ .length;
+}
+
+function mapChars(domain_name, useSTD3, processing_option) {
+ var hasError = false;
+ var processed = "";
+
+ var len = countSymbols(domain_name);
+ for (var i = 0; i < len; ++i) {
+ var codePoint = domain_name.codePointAt(i);
+ var status = findStatus(codePoint);
+
+ switch (status[1]) {
+ case "disallowed":
+ hasError = true;
+ processed += String.fromCodePoint(codePoint);
+ break;
+ case "ignored":
+ break;
+ case "mapped":
+ processed += String.fromCodePoint.apply(String, status[2]);
+ break;
+ case "deviation":
+ if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
+ processed += String.fromCodePoint.apply(String, status[2]);
+ } else {
+ processed += String.fromCodePoint(codePoint);
+ }
+ break;
+ case "valid":
+ processed += String.fromCodePoint(codePoint);
+ break;
+ case "disallowed_STD3_mapped":
+ if (useSTD3) {
+ hasError = true;
+ processed += String.fromCodePoint(codePoint);
+ } else {
+ processed += String.fromCodePoint.apply(String, status[2]);
+ }
+ break;
+ case "disallowed_STD3_valid":
+ if (useSTD3) {
+ hasError = true;
+ }
+
+ processed += String.fromCodePoint(codePoint);
+ break;
+ }
+ }
+
+ return {
+ string: processed,
+ error: hasError
+ };
+}
+
+var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;
+
+function validateLabel(label, processing_option) {
+ if (label.substr(0, 4) === "xn--") {
+ label = punycode.toUnicode(label);
+ processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
+ }
+
+ var error = false;
+
+ if (normalize(label) !== label ||
+ (label[3] === "-" && label[4] === "-") ||
+ label[0] === "-" || label[label.length - 1] === "-" ||
+ label.indexOf(".") !== -1 ||
+ label.search(combiningMarksRegex) === 0) {
+ error = true;
+ }
+
+ var len = countSymbols(label);
+ for (var i = 0; i < len; ++i) {
+ var status = findStatus(label.codePointAt(i));
+ if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
+ (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
+ status[1] !== "valid" && status[1] !== "deviation")) {
+ error = true;
+ break;
+ }
+ }
+
+ return {
+ label: label,
+ error: error
+ };
+}
+
+function processing(domain_name, useSTD3, processing_option) {
+ var result = mapChars(domain_name, useSTD3, processing_option);
+ result.string = normalize(result.string);
+
+ var labels = result.string.split(".");
+ for (var i = 0; i < labels.length; ++i) {
+ try {
+ var validation = validateLabel(labels[i]);
+ labels[i] = validation.label;
+ result.error = result.error || validation.error;
+ } catch(e) {
+ result.error = true;
+ }
+ }
+
+ return {
+ string: labels.join("."),
+ error: result.error
+ };
+}
+
+module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
+ var result = processing(domain_name, useSTD3, processing_option);
+ var labels = result.string.split(".");
+ labels = labels.map(function(l) {
+ try {
+ return punycode.toASCII(l);
+ } catch(e) {
+ result.error = true;
+ return l;
+ }
+ });
+
+ if (verifyDnsLength) {
+ var total = labels.slice(0, labels.length - 1).join(".").length;
+ if (total.length > 253 || total.length === 0) {
+ result.error = true;
+ }
+
+ for (var i=0; i < labels.length; ++i) {
+ if (labels.length > 63 || labels.length === 0) {
+ result.error = true;
+ break;
+ }
+ }
+ }
+
+ if (result.error) return null;
+ return labels.join(".");
+};
+
+module.exports.toUnicode = function(domain_name, useSTD3) {
+ var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
+
+ return {
+ domain: result.string,
+ error: result.error
+ };
+};
+
+module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
+
+
+/***/ }),
+
+/***/ 4294:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+module.exports = __nccwpck_require__(4219);
+
+
+/***/ }),
+
+/***/ 4219:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+var net = __nccwpck_require__(1808);
+var tls = __nccwpck_require__(4404);
+var http = __nccwpck_require__(3685);
+var https = __nccwpck_require__(5687);
+var events = __nccwpck_require__(2361);
+var assert = __nccwpck_require__(9491);
+var util = __nccwpck_require__(3837);
+
+
+exports.httpOverHttp = httpOverHttp;
+exports.httpsOverHttp = httpsOverHttp;
+exports.httpOverHttps = httpOverHttps;
+exports.httpsOverHttps = httpsOverHttps;
+
+
+function httpOverHttp(options) {
+ var agent = new TunnelingAgent(options);
+ agent.request = http.request;
+ return agent;
+}
+
+function httpsOverHttp(options) {
+ var agent = new TunnelingAgent(options);
+ agent.request = http.request;
+ agent.createSocket = createSecureSocket;
+ agent.defaultPort = 443;
+ return agent;
+}
+
+function httpOverHttps(options) {
+ var agent = new TunnelingAgent(options);
+ agent.request = https.request;
+ return agent;
+}
+
+function httpsOverHttps(options) {
+ var agent = new TunnelingAgent(options);
+ agent.request = https.request;
+ agent.createSocket = createSecureSocket;
+ agent.defaultPort = 443;
+ return agent;
+}
+
+
+function TunnelingAgent(options) {
+ var self = this;
+ self.options = options || {};
+ self.proxyOptions = self.options.proxy || {};
+ self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
+ self.requests = [];
+ self.sockets = [];
+
+ self.on('free', function onFree(socket, host, port, localAddress) {
+ var options = toOptions(host, port, localAddress);
+ for (var i = 0, len = self.requests.length; i < len; ++i) {
+ var pending = self.requests[i];
+ if (pending.host === options.host && pending.port === options.port) {
+ // Detect the request to connect same origin server,
+ // reuse the connection.
+ self.requests.splice(i, 1);
+ pending.request.onSocket(socket);
+ return;
+ }
+ }
+ socket.destroy();
+ self.removeSocket(socket);
+ });
+}
+util.inherits(TunnelingAgent, events.EventEmitter);
+
+TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
+ var self = this;
+ var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
+
+ if (self.sockets.length >= this.maxSockets) {
+ // We are over limit so we'll add it to the queue.
+ self.requests.push(options);
+ return;
+ }
+
+ // If we are under maxSockets create a new one.
+ self.createSocket(options, function(socket) {
+ socket.on('free', onFree);
+ socket.on('close', onCloseOrRemove);
+ socket.on('agentRemove', onCloseOrRemove);
+ req.onSocket(socket);
+
+ function onFree() {
+ self.emit('free', socket, options);
+ }
+
+ function onCloseOrRemove(err) {
+ self.removeSocket(socket);
+ socket.removeListener('free', onFree);
+ socket.removeListener('close', onCloseOrRemove);
+ socket.removeListener('agentRemove', onCloseOrRemove);
+ }
+ });
+};
+
+TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
+ var self = this;
+ var placeholder = {};
+ self.sockets.push(placeholder);
+
+ var connectOptions = mergeOptions({}, self.proxyOptions, {
+ method: 'CONNECT',
+ path: options.host + ':' + options.port,
+ agent: false,
+ headers: {
+ host: options.host + ':' + options.port
+ }
+ });
+ if (options.localAddress) {
+ connectOptions.localAddress = options.localAddress;
+ }
+ if (connectOptions.proxyAuth) {
+ connectOptions.headers = connectOptions.headers || {};
+ connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
+ new Buffer(connectOptions.proxyAuth).toString('base64');
+ }
+
+ debug('making CONNECT request');
+ var connectReq = self.request(connectOptions);
+ connectReq.useChunkedEncodingByDefault = false; // for v0.6
+ connectReq.once('response', onResponse); // for v0.6
+ connectReq.once('upgrade', onUpgrade); // for v0.6
+ connectReq.once('connect', onConnect); // for v0.7 or later
+ connectReq.once('error', onError);
+ connectReq.end();
+
+ function onResponse(res) {
+ // Very hacky. This is necessary to avoid http-parser leaks.
+ res.upgrade = true;
+ }
+
+ function onUpgrade(res, socket, head) {
+ // Hacky.
+ process.nextTick(function() {
+ onConnect(res, socket, head);
+ });
+ }
+
+ function onConnect(res, socket, head) {
+ connectReq.removeAllListeners();
+ socket.removeAllListeners();
+
+ if (res.statusCode !== 200) {
+ debug('tunneling socket could not be established, statusCode=%d',
+ res.statusCode);
+ socket.destroy();
+ var error = new Error('tunneling socket could not be established, ' +
+ 'statusCode=' + res.statusCode);
+ error.code = 'ECONNRESET';
+ options.request.emit('error', error);
+ self.removeSocket(placeholder);
+ return;
+ }
+ if (head.length > 0) {
+ debug('got illegal response body from proxy');
+ socket.destroy();
+ var error = new Error('got illegal response body from proxy');
+ error.code = 'ECONNRESET';
+ options.request.emit('error', error);
+ self.removeSocket(placeholder);
+ return;
+ }
+ debug('tunneling connection has established');
+ self.sockets[self.sockets.indexOf(placeholder)] = socket;
+ return cb(socket);
+ }
+
+ function onError(cause) {
+ connectReq.removeAllListeners();
+
+ debug('tunneling socket could not be established, cause=%s\n',
+ cause.message, cause.stack);
+ var error = new Error('tunneling socket could not be established, ' +
+ 'cause=' + cause.message);
+ error.code = 'ECONNRESET';
+ options.request.emit('error', error);
+ self.removeSocket(placeholder);
+ }
+};
+
+TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
+ var pos = this.sockets.indexOf(socket)
+ if (pos === -1) {
+ return;
+ }
+ this.sockets.splice(pos, 1);
+
+ var pending = this.requests.shift();
+ if (pending) {
+ // If we have pending requests and a socket gets closed a new one
+ // needs to be created to take over in the pool for the one that closed.
+ this.createSocket(pending, function(socket) {
+ pending.request.onSocket(socket);
+ });
+ }
+};
+
+function createSecureSocket(options, cb) {
+ var self = this;
+ TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
+ var hostHeader = options.request.getHeader('host');
+ var tlsOptions = mergeOptions({}, self.options, {
+ socket: socket,
+ servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
+ });
+
+ // 0 is dummy port for v0.6
+ var secureSocket = tls.connect(0, tlsOptions);
+ self.sockets[self.sockets.indexOf(socket)] = secureSocket;
+ cb(secureSocket);
+ });
+}
+
+
+function toOptions(host, port, localAddress) {
+ if (typeof host === 'string') { // since v0.10
+ return {
+ host: host,
+ port: port,
+ localAddress: localAddress
+ };
+ }
+ return host; // for v0.11 or later
+}
+
+function mergeOptions(target) {
+ for (var i = 1, len = arguments.length; i < len; ++i) {
+ var overrides = arguments[i];
+ if (typeof overrides === 'object') {
+ var keys = Object.keys(overrides);
+ for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
+ var k = keys[j];
+ if (overrides[k] !== undefined) {
+ target[k] = overrides[k];
+ }
+ }
+ }
+ }
+ return target;
+}
+
+
+var debug;
+if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
+ debug = function() {
+ var args = Array.prototype.slice.call(arguments);
+ if (typeof args[0] === 'string') {
+ args[0] = 'TUNNEL: ' + args[0];
+ } else {
+ args.unshift('TUNNEL:');
+ }
+ console.error.apply(console, args);
+ }
+} else {
+ debug = function() {};
+}
+exports.debug = debug; // for test
+
+
+/***/ }),
+
+/***/ 4442:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var basiccreds_1 = __nccwpck_require__(7954);
+exports.BasicCredentialHandler = basiccreds_1.BasicCredentialHandler;
+var bearertoken_1 = __nccwpck_require__(7431);
+exports.BearerCredentialHandler = bearertoken_1.BearerCredentialHandler;
+var ntlm_1 = __nccwpck_require__(4157);
+exports.NtlmCredentialHandler = ntlm_1.NtlmCredentialHandler;
+var personalaccesstoken_1 = __nccwpck_require__(7799);
+exports.PersonalAccessTokenCredentialHandler = personalaccesstoken_1.PersonalAccessTokenCredentialHandler;
+
+
+/***/ }),
+
+/***/ 5538:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const url = __nccwpck_require__(7310);
+const http = __nccwpck_require__(3685);
+const https = __nccwpck_require__(5687);
+const util = __nccwpck_require__(9470);
+let fs;
+let tunnel;
+var HttpCodes;
+(function (HttpCodes) {
+ HttpCodes[HttpCodes["OK"] = 200] = "OK";
+ HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
+ HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
+ HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
+ HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
+ HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
+ HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
+ HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
+ HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
+ HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
+ HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
+ HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
+ HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
+ HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
+ HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
+ HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
+ HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
+ HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
+ HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
+ HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
+ HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
+ HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
+ HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
+ HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
+ HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
+ HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
+ HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
+})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
+const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
+const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
+const NetworkRetryErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];
+const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
+const ExponentialBackoffCeiling = 10;
+const ExponentialBackoffTimeSlice = 5;
+class HttpClientResponse {
+ constructor(message) {
+ this.message = message;
+ }
+ readBody() {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ const chunks = [];
+ const encodingCharset = util.obtainContentCharset(this);
+ // Extract Encoding from header: 'content-encoding'
+ // Match `gzip`, `gzip, deflate` variations of GZIP encoding
+ const contentEncoding = this.message.headers['content-encoding'] || '';
+ const isGzippedEncoded = new RegExp('(gzip$)|(gzip, *deflate)').test(contentEncoding);
+ this.message.on('data', function (data) {
+ const chunk = (typeof data === 'string') ? Buffer.from(data, encodingCharset) : data;
+ chunks.push(chunk);
+ }).on('end', function () {
+ return __awaiter(this, void 0, void 0, function* () {
+ const buffer = Buffer.concat(chunks);
+ if (isGzippedEncoded) { // Process GZipped Response Body HERE
+ const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset);
+ resolve(gunzippedBody);
+ }
+ else {
+ resolve(buffer.toString(encodingCharset));
+ }
+ });
+ }).on('error', function (err) {
+ reject(err);
+ });
+ }));
+ }
+}
+exports.HttpClientResponse = HttpClientResponse;
+function isHttps(requestUrl) {
+ let parsedUrl = url.parse(requestUrl);
+ return parsedUrl.protocol === 'https:';
+}
+exports.isHttps = isHttps;
+var EnvironmentVariables;
+(function (EnvironmentVariables) {
+ EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
+ EnvironmentVariables["HTTPS_PROXY"] = "HTTPS_PROXY";
+ EnvironmentVariables["NO_PROXY"] = "NO_PROXY";
+})(EnvironmentVariables || (EnvironmentVariables = {}));
+class HttpClient {
+ constructor(userAgent, handlers, requestOptions) {
+ this._ignoreSslError = false;
+ this._allowRedirects = true;
+ this._allowRedirectDowngrade = false;
+ this._maxRedirects = 50;
+ this._allowRetries = false;
+ this._maxRetries = 1;
+ this._keepAlive = false;
+ this._disposed = false;
+ this.userAgent = userAgent;
+ this.handlers = handlers || [];
+ let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
+ if (no_proxy) {
+ this._httpProxyBypassHosts = [];
+ no_proxy.split(',').forEach(bypass => {
+ this._httpProxyBypassHosts.push(util.buildProxyBypassRegexFromEnv(bypass));
+ });
+ }
+ this.requestOptions = requestOptions;
+ if (requestOptions) {
+ if (requestOptions.ignoreSslError != null) {
+ this._ignoreSslError = requestOptions.ignoreSslError;
+ }
+ this._socketTimeout = requestOptions.socketTimeout;
+ this._httpProxy = requestOptions.proxy;
+ if (requestOptions.proxy && requestOptions.proxy.proxyBypassHosts) {
+ this._httpProxyBypassHosts = [];
+ requestOptions.proxy.proxyBypassHosts.forEach(bypass => {
+ this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
+ });
+ }
+ this._certConfig = requestOptions.cert;
+ if (this._certConfig) {
+ // If using cert, need fs
+ fs = __nccwpck_require__(7147);
+ // cache the cert content into memory, so we don't have to read it from disk every time
+ if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
+ this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
+ }
+ if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
+ this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
+ }
+ if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
+ this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
+ }
+ }
+ if (requestOptions.allowRedirects != null) {
+ this._allowRedirects = requestOptions.allowRedirects;
+ }
+ if (requestOptions.allowRedirectDowngrade != null) {
+ this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
+ }
+ if (requestOptions.maxRedirects != null) {
+ this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
+ }
+ if (requestOptions.keepAlive != null) {
+ this._keepAlive = requestOptions.keepAlive;
+ }
+ if (requestOptions.allowRetries != null) {
+ this._allowRetries = requestOptions.allowRetries;
+ }
+ if (requestOptions.maxRetries != null) {
+ this._maxRetries = requestOptions.maxRetries;
+ }
+ }
+ }
+ options(requestUrl, additionalHeaders) {
+ return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
+ }
+ get(requestUrl, additionalHeaders) {
+ return this.request('GET', requestUrl, null, additionalHeaders || {});
+ }
+ del(requestUrl, additionalHeaders) {
+ return this.request('DELETE', requestUrl, null, additionalHeaders || {});
+ }
+ post(requestUrl, data, additionalHeaders) {
+ return this.request('POST', requestUrl, data, additionalHeaders || {});
+ }
+ patch(requestUrl, data, additionalHeaders) {
+ return this.request('PATCH', requestUrl, data, additionalHeaders || {});
+ }
+ put(requestUrl, data, additionalHeaders) {
+ return this.request('PUT', requestUrl, data, additionalHeaders || {});
+ }
+ head(requestUrl, additionalHeaders) {
+ return this.request('HEAD', requestUrl, null, additionalHeaders || {});
+ }
+ sendStream(verb, requestUrl, stream, additionalHeaders) {
+ return this.request(verb, requestUrl, stream, additionalHeaders);
+ }
+ /**
+ * Makes a raw http request.
+ * All other methods such as get, post, patch, and request ultimately call this.
+ * Prefer get, del, post and patch
+ */
+ request(verb, requestUrl, data, headers) {
+ return __awaiter(this, void 0, void 0, function* () {
+ if (this._disposed) {
+ throw new Error("Client has already been disposed.");
+ }
+ let parsedUrl = url.parse(requestUrl);
+ let info = this._prepareRequest(verb, parsedUrl, headers);
+ // Only perform retries on reads since writes may not be idempotent.
+ let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
+ let numTries = 0;
+ let response;
+ while (numTries < maxTries) {
+ try {
+ response = yield this.requestRaw(info, data);
+ }
+ catch (err) {
+ numTries++;
+ if (err && err.code && NetworkRetryErrors.indexOf(err.code) > -1 && numTries < maxTries) {
+ yield this._performExponentialBackoff(numTries);
+ continue;
+ }
+ throw err;
+ }
+ // Check if it's an authentication challenge
+ if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
+ let authenticationHandler;
+ for (let i = 0; i < this.handlers.length; i++) {
+ if (this.handlers[i].canHandleAuthentication(response)) {
+ authenticationHandler = this.handlers[i];
+ break;
+ }
+ }
+ if (authenticationHandler) {
+ return authenticationHandler.handleAuthentication(this, info, data);
+ }
+ else {
+ // We have received an unauthorized response but have no handlers to handle it.
+ // Let the response return to the caller.
+ return response;
+ }
+ }
+ let redirectsRemaining = this._maxRedirects;
+ while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
+ && this._allowRedirects
+ && redirectsRemaining > 0) {
+ const redirectUrl = response.message.headers["location"];
+ if (!redirectUrl) {
+ // if there's no location to redirect to, we won't
+ break;
+ }
+ let parsedRedirectUrl = url.parse(redirectUrl);
+ if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
+ throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");
+ }
+ // we need to finish reading the response before reassigning response
+ // which will leak the open socket.
+ yield response.readBody();
+ // let's make the request with the new redirectUrl
+ info = this._prepareRequest(verb, parsedRedirectUrl, headers);
+ response = yield this.requestRaw(info, data);
+ redirectsRemaining--;
+ }
+ if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
+ // If not a retry code, return immediately instead of retrying
+ return response;
+ }
+ numTries += 1;
+ if (numTries < maxTries) {
+ yield response.readBody();
+ yield this._performExponentialBackoff(numTries);
+ }
+ }
+ return response;
+ });
+ }
+ /**
+ * Needs to be called if keepAlive is set to true in request options.
+ */
+ dispose() {
+ if (this._agent) {
+ this._agent.destroy();
+ }
+ this._disposed = true;
+ }
+ /**
+ * Raw request.
+ * @param info
+ * @param data
+ */
+ requestRaw(info, data) {
+ return new Promise((resolve, reject) => {
+ let callbackForResult = function (err, res) {
+ if (err) {
+ reject(err);
+ }
+ resolve(res);
+ };
+ this.requestRawWithCallback(info, data, callbackForResult);
+ });
+ }
+ /**
+ * Raw request with callback.
+ * @param info
+ * @param data
+ * @param onResult
+ */
+ requestRawWithCallback(info, data, onResult) {
+ let socket;
+ if (typeof (data) === 'string') {
+ info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
+ }
+ let callbackCalled = false;
+ let handleResult = (err, res) => {
+ if (!callbackCalled) {
+ callbackCalled = true;
+ onResult(err, res);
+ }
+ };
+ let req = info.httpModule.request(info.options, (msg) => {
+ let res = new HttpClientResponse(msg);
+ handleResult(null, res);
+ });
+ req.on('socket', (sock) => {
+ socket = sock;
+ });
+ // If we ever get disconnected, we want the socket to timeout eventually
+ req.setTimeout(this._socketTimeout || 3 * 60000, () => {
+ if (socket) {
+ socket.destroy();
+ }
+ handleResult(new Error('Request timeout: ' + info.options.path), null);
+ });
+ req.on('error', function (err) {
+ // err has statusCode property
+ // res should have headers
+ handleResult(err, null);
+ });
+ if (data && typeof (data) === 'string') {
+ req.write(data, 'utf8');
+ }
+ if (data && typeof (data) !== 'string') {
+ data.on('close', function () {
+ req.end();
+ });
+ data.pipe(req);
+ }
+ else {
+ req.end();
+ }
+ }
+ _prepareRequest(method, requestUrl, headers) {
+ const info = {};
+ info.parsedUrl = requestUrl;
+ const usingSsl = info.parsedUrl.protocol === 'https:';
+ info.httpModule = usingSsl ? https : http;
+ const defaultPort = usingSsl ? 443 : 80;
+ info.options = {};
+ info.options.host = info.parsedUrl.hostname;
+ info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
+ info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
+ info.options.method = method;
+ info.options.timeout = (this.requestOptions && this.requestOptions.socketTimeout) || this._socketTimeout;
+ this._socketTimeout = info.options.timeout;
+ info.options.headers = this._mergeHeaders(headers);
+ if (this.userAgent != null) {
+ info.options.headers["user-agent"] = this.userAgent;
+ }
+ info.options.agent = this._getAgent(info.parsedUrl);
+ // gives handlers an opportunity to participate
+ if (this.handlers && !this._isPresigned(url.format(requestUrl))) {
+ this.handlers.forEach((handler) => {
+ handler.prepareRequest(info.options);
+ });
+ }
+ return info;
+ }
+ _isPresigned(requestUrl) {
+ if (this.requestOptions && this.requestOptions.presignedUrlPatterns) {
+ const patterns = this.requestOptions.presignedUrlPatterns;
+ for (let i = 0; i < patterns.length; i++) {
+ if (requestUrl.match(patterns[i])) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+ _mergeHeaders(headers) {
+ const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
+ if (this.requestOptions && this.requestOptions.headers) {
+ return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
+ }
+ return lowercaseKeys(headers || {});
+ }
+ _getAgent(parsedUrl) {
+ let agent;
+ let proxy = this._getProxy(parsedUrl);
+ let useProxy = proxy.proxyUrl && proxy.proxyUrl.hostname && !this._isMatchInBypassProxyList(parsedUrl);
+ if (this._keepAlive && useProxy) {
+ agent = this._proxyAgent;
+ }
+ if (this._keepAlive && !useProxy) {
+ agent = this._agent;
+ }
+ // if agent is already assigned use that agent.
+ if (!!agent) {
+ return agent;
+ }
+ const usingSsl = parsedUrl.protocol === 'https:';
+ let maxSockets = 100;
+ if (!!this.requestOptions) {
+ maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
+ }
+ if (useProxy) {
+ // If using proxy, need tunnel
+ if (!tunnel) {
+ tunnel = __nccwpck_require__(4294);
+ }
+ const agentOptions = {
+ maxSockets: maxSockets,
+ keepAlive: this._keepAlive,
+ proxy: {
+ proxyAuth: proxy.proxyAuth,
+ host: proxy.proxyUrl.hostname,
+ port: proxy.proxyUrl.port
+ },
+ };
+ let tunnelAgent;
+ const overHttps = proxy.proxyUrl.protocol === 'https:';
+ if (usingSsl) {
+ tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
+ }
+ else {
+ tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
+ }
+ agent = tunnelAgent(agentOptions);
+ this._proxyAgent = agent;
+ }
+ // if reusing agent across request and tunneling agent isn't assigned create a new agent
+ if (this._keepAlive && !agent) {
+ const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
+ agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
+ this._agent = agent;
+ }
+ // if not using private agent and tunnel agent isn't setup then use global agent
+ if (!agent) {
+ agent = usingSsl ? https.globalAgent : http.globalAgent;
+ }
+ if (usingSsl && this._ignoreSslError) {
+ // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
+ // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
+ // we have to cast it to any and change it directly
+ agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
+ }
+ if (usingSsl && this._certConfig) {
+ agent.options = Object.assign(agent.options || {}, { ca: this._ca, cert: this._cert, key: this._key, passphrase: this._certConfig.passphrase });
+ }
+ return agent;
+ }
+ _getProxy(parsedUrl) {
+ let usingSsl = parsedUrl.protocol === 'https:';
+ let proxyConfig = this._httpProxy;
+ // fallback to http_proxy and https_proxy env
+ let https_proxy = process.env[EnvironmentVariables.HTTPS_PROXY];
+ let http_proxy = process.env[EnvironmentVariables.HTTP_PROXY];
+ if (!proxyConfig) {
+ if (https_proxy && usingSsl) {
+ proxyConfig = {
+ proxyUrl: https_proxy
+ };
+ }
+ else if (http_proxy) {
+ proxyConfig = {
+ proxyUrl: http_proxy
+ };
+ }
+ }
+ let proxyUrl;
+ let proxyAuth;
+ if (proxyConfig) {
+ if (proxyConfig.proxyUrl.length > 0) {
+ proxyUrl = url.parse(proxyConfig.proxyUrl);
+ }
+ if (proxyConfig.proxyUsername || proxyConfig.proxyPassword) {
+ proxyAuth = proxyConfig.proxyUsername + ":" + proxyConfig.proxyPassword;
+ }
+ }
+ return { proxyUrl: proxyUrl, proxyAuth: proxyAuth };
+ }
+ _isMatchInBypassProxyList(parsedUrl) {
+ if (!this._httpProxyBypassHosts) {
+ return false;
+ }
+ let bypass = false;
+ this._httpProxyBypassHosts.forEach(bypassHost => {
+ if (bypassHost.test(parsedUrl.href)) {
+ bypass = true;
+ }
+ });
+ return bypass;
+ }
+ _performExponentialBackoff(retryNumber) {
+ retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
+ const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
+ return new Promise(resolve => setTimeout(() => resolve(), ms));
+ }
+}
+exports.HttpClient = HttpClient;
+
+
+/***/ }),
+
+/***/ 7405:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const httpm = __nccwpck_require__(5538);
+const util = __nccwpck_require__(9470);
+class RestClient {
+ /**
+ * Creates an instance of the RestClient
+ * @constructor
+ * @param {string} userAgent - userAgent for requests
+ * @param {string} baseUrl - (Optional) If not specified, use full urls per request. If supplied and a function passes a relative url, it will be appended to this
+ * @param {ifm.IRequestHandler[]} handlers - handlers are typically auth handlers (basic, bearer, ntlm supplied)
+ * @param {ifm.IRequestOptions} requestOptions - options for each http requests (http proxy setting, socket timeout)
+ */
+ constructor(userAgent, baseUrl, handlers, requestOptions) {
+ this.client = new httpm.HttpClient(userAgent, handlers, requestOptions);
+ if (baseUrl) {
+ this._baseUrl = baseUrl;
+ }
+ }
+ /**
+ * Gets a resource from an endpoint
+ * Be aware that not found returns a null. Other error conditions reject the promise
+ * @param {string} requestUrl - fully qualified or relative url
+ * @param {IRequestOptions} requestOptions - (optional) requestOptions object
+ */
+ options(requestUrl, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(requestUrl, this._baseUrl);
+ let res = yield this.client.options(url, this._headersFromOptions(options));
+ return this.processResponse(res, options);
+ });
+ }
+ /**
+ * Gets a resource from an endpoint
+ * Be aware that not found returns a null. Other error conditions reject the promise
+ * @param {string} resource - fully qualified url or relative path
+ * @param {IRequestOptions} requestOptions - (optional) requestOptions object
+ */
+ get(resource, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(resource, this._baseUrl, (options || {}).queryParameters);
+ let res = yield this.client.get(url, this._headersFromOptions(options));
+ return this.processResponse(res, options);
+ });
+ }
+ /**
+ * Deletes a resource from an endpoint
+ * Be aware that not found returns a null. Other error conditions reject the promise
+ * @param {string} resource - fully qualified or relative url
+ * @param {IRequestOptions} requestOptions - (optional) requestOptions object
+ */
+ del(resource, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(resource, this._baseUrl, (options || {}).queryParameters);
+ let res = yield this.client.del(url, this._headersFromOptions(options));
+ return this.processResponse(res, options);
+ });
+ }
+ /**
+ * Creates resource(s) from an endpoint
+ * T type of object returned.
+ * Be aware that not found returns a null. Other error conditions reject the promise
+ * @param {string} resource - fully qualified or relative url
+ * @param {IRequestOptions} requestOptions - (optional) requestOptions object
+ */
+ create(resource, resources, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(resource, this._baseUrl);
+ let headers = this._headersFromOptions(options, true);
+ let data = JSON.stringify(resources, null, 2);
+ let res = yield this.client.post(url, data, headers);
+ return this.processResponse(res, options);
+ });
+ }
+ /**
+ * Updates resource(s) from an endpoint
+ * T type of object returned.
+ * Be aware that not found returns a null. Other error conditions reject the promise
+ * @param {string} resource - fully qualified or relative url
+ * @param {IRequestOptions} requestOptions - (optional) requestOptions object
+ */
+ update(resource, resources, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(resource, this._baseUrl);
+ let headers = this._headersFromOptions(options, true);
+ let data = JSON.stringify(resources, null, 2);
+ let res = yield this.client.patch(url, data, headers);
+ return this.processResponse(res, options);
+ });
+ }
+ /**
+ * Replaces resource(s) from an endpoint
+ * T type of object returned.
+ * Be aware that not found returns a null. Other error conditions reject the promise
+ * @param {string} resource - fully qualified or relative url
+ * @param {IRequestOptions} requestOptions - (optional) requestOptions object
+ */
+ replace(resource, resources, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(resource, this._baseUrl);
+ let headers = this._headersFromOptions(options, true);
+ let data = JSON.stringify(resources, null, 2);
+ let res = yield this.client.put(url, data, headers);
+ return this.processResponse(res, options);
+ });
+ }
+ uploadStream(verb, requestUrl, stream, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ let url = util.getUrl(requestUrl, this._baseUrl);
+ let headers = this._headersFromOptions(options, true);
+ let res = yield this.client.sendStream(verb, url, stream, headers);
+ return this.processResponse(res, options);
+ });
+ }
+ _headersFromOptions(options, contentType) {
+ options = options || {};
+ let headers = options.additionalHeaders || {};
+ headers["Accept"] = options.acceptHeader || "application/json";
+ if (contentType) {
+ let found = false;
+ for (let header in headers) {
+ if (header.toLowerCase() == "content-type") {
+ found = true;
+ }
+ }
+ if (!found) {
+ headers["Content-Type"] = 'application/json; charset=utf-8';
+ }
+ }
+ return headers;
+ }
+ static dateTimeDeserializer(key, value) {
+ if (typeof value === 'string') {
+ let a = new Date(value);
+ if (!isNaN(a.valueOf())) {
+ return a;
+ }
+ }
+ return value;
+ }
+ processResponse(res, options) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ const statusCode = res.message.statusCode;
+ const response = {
+ statusCode: statusCode,
+ result: null,
+ headers: {}
+ };
+ // not found leads to null obj returned
+ if (statusCode == httpm.HttpCodes.NotFound) {
+ resolve(response);
+ }
+ let obj;
+ let contents;
+ // get the result from the body
+ try {
+ contents = yield res.readBody();
+ if (contents && contents.length > 0) {
+ if (options && options.deserializeDates) {
+ obj = JSON.parse(contents, RestClient.dateTimeDeserializer);
+ }
+ else {
+ obj = JSON.parse(contents);
+ }
+ if (options && options.responseProcessor) {
+ response.result = options.responseProcessor(obj);
+ }
+ else {
+ response.result = obj;
+ }
+ }
+ response.headers = res.message.headers;
+ }
+ catch (err) {
+ // Invalid resource (contents not json); leaving result obj null
+ }
+ // note that 3xx redirects are handled by the http layer.
+ if (statusCode > 299) {
+ let msg;
+ // if exception/error in body, attempt to get better error
+ if (obj && obj.message) {
+ msg = obj.message;
+ }
+ else if (contents && contents.length > 0) {
+ // it may be the case that the exception is in the body message as string
+ msg = contents;
+ }
+ else {
+ msg = "Failed request: (" + statusCode + ")";
+ }
+ let err = new Error(msg);
+ // attach statusCode and body obj (if available) to the error object
+ err['statusCode'] = statusCode;
+ if (response.result) {
+ err['result'] = response.result;
+ }
+ if (response.headers) {
+ err['responseHeaders'] = response.headers;
+ }
+ reject(err);
+ }
+ else {
+ resolve(response);
+ }
+ }));
+ });
+ }
+}
+exports.RestClient = RestClient;
+
+
+/***/ }),
+
+/***/ 9470:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const qs = __nccwpck_require__(2760);
+const url = __nccwpck_require__(7310);
+const path = __nccwpck_require__(1017);
+const zlib = __nccwpck_require__(9796);
+/**
+ * creates an url from a request url and optional base url (http://server:8080)
+ * @param {string} resource - a fully qualified url or relative path
+ * @param {string} baseUrl - an optional baseUrl (http://server:8080)
+ * @param {IRequestOptions} options - an optional options object, could include QueryParameters e.g.
+ * @return {string} - resultant url
+ */
+function getUrl(resource, baseUrl, queryParams) {
+ const pathApi = path.posix || path;
+ let requestUrl = '';
+ if (!baseUrl) {
+ requestUrl = resource;
+ }
+ else if (!resource) {
+ requestUrl = baseUrl;
+ }
+ else {
+ const base = url.parse(baseUrl);
+ const resultantUrl = url.parse(resource);
+ // resource (specific per request) elements take priority
+ resultantUrl.protocol = resultantUrl.protocol || base.protocol;
+ resultantUrl.auth = resultantUrl.auth || base.auth;
+ resultantUrl.host = resultantUrl.host || base.host;
+ resultantUrl.pathname = pathApi.resolve(base.pathname, resultantUrl.pathname);
+ if (!resultantUrl.pathname.endsWith('/') && resource.endsWith('/')) {
+ resultantUrl.pathname += '/';
+ }
+ requestUrl = url.format(resultantUrl);
+ }
+ return queryParams ?
+ getUrlWithParsedQueryParams(requestUrl, queryParams) :
+ requestUrl;
+}
+exports.getUrl = getUrl;
+/**
+ *
+ * @param {string} requestUrl
+ * @param {IRequestQueryParams} queryParams
+ * @return {string} - Request's URL with Query Parameters appended/parsed.
+ */
+function getUrlWithParsedQueryParams(requestUrl, queryParams) {
+ const url = requestUrl.replace(/\?$/g, ''); // Clean any extra end-of-string "?" character
+ const parsedQueryParams = qs.stringify(queryParams.params, buildParamsStringifyOptions(queryParams));
+ return `${url}${parsedQueryParams}`;
+}
+/**
+ * Build options for QueryParams Stringifying.
+ *
+ * @param {IRequestQueryParams} queryParams
+ * @return {object}
+ */
+function buildParamsStringifyOptions(queryParams) {
+ let options = {
+ addQueryPrefix: true,
+ delimiter: (queryParams.options || {}).separator || '&',
+ allowDots: (queryParams.options || {}).shouldAllowDots || false,
+ arrayFormat: (queryParams.options || {}).arrayFormat || 'repeat',
+ encodeValuesOnly: (queryParams.options || {}).shouldOnlyEncodeValues || true
+ };
+ return options;
+}
+/**
+ * Decompress/Decode gzip encoded JSON
+ * Using Node.js built-in zlib module
+ *
+ * @param {Buffer} buffer
+ * @param {string} charset? - optional; defaults to 'utf-8'
+ * @return {Promise}
+ */
+function decompressGzippedContent(buffer, charset) {
+ return __awaiter(this, void 0, void 0, function* () {
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
+ zlib.gunzip(buffer, function (error, buffer) {
+ if (error) {
+ reject(error);
+ }
+ else {
+ resolve(buffer.toString(charset || 'utf-8'));
+ }
+ });
+ }));
+ });
+}
+exports.decompressGzippedContent = decompressGzippedContent;
+/**
+ * Builds a RegExp to test urls against for deciding
+ * wether to bypass proxy from an entry of the
+ * environment variable setting NO_PROXY
+ *
+ * @param {string} bypass
+ * @return {RegExp}
+ */
+function buildProxyBypassRegexFromEnv(bypass) {
+ try {
+ // We need to keep this around for back-compat purposes
+ return new RegExp(bypass, 'i');
+ }
+ catch (err) {
+ if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
+ let wildcardEscaped = bypass.replace('*', '(.*)');
+ return new RegExp(wildcardEscaped, 'i');
+ }
+ throw err;
+ }
+}
+exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
+/**
+ * Obtain Response's Content Charset.
+ * Through inspecting `content-type` response header.
+ * It Returns 'utf-8' if NO charset specified/matched.
+ *
+ * @param {IHttpClientResponse} response
+ * @return {string} - Content Encoding Charset; Default=utf-8
+ */
+function obtainContentCharset(response) {
+ // Find the charset, if specified.
+ // Search for the `charset=CHARSET` string, not including `;,\r\n`
+ // Example: content-type: 'application/json;charset=utf-8'
+ // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
+ // |_____ matches[1] would have the charset :tada: , in our example it's utf-8
+ // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
+ const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex'];
+ const contentType = response.message.headers['content-type'] || '';
+ const matches = contentType.match(/charset=([^;,\r\n]+)/i);
+ return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8';
+}
+exports.obtainContentCharset = obtainContentCharset;
+
+
+/***/ }),
+
+/***/ 7954:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+class BasicCredentialHandler {
+ constructor(username, password, allowCrossOriginAuthentication) {
+ this.username = username;
+ this.password = password;
+ this.allowCrossOriginAuthentication = allowCrossOriginAuthentication;
+ }
+ // currently implements pre-authorization
+ // TODO: support preAuth = false where it hooks on 401
+ prepareRequest(options) {
+ if (!this.origin) {
+ this.origin = options.host;
+ }
+ // If this is a redirection, don't set the Authorization header
+ if (this.origin === options.host || this.allowCrossOriginAuthentication) {
+ options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
+ }
+ options.headers['X-TFS-FedAuthRedirect'] = 'Suppress';
+ }
+ // This handler cannot handle 401
+ canHandleAuthentication(response) {
+ return false;
+ }
+ handleAuthentication(httpClient, requestInfo, objs) {
+ return null;
+ }
+}
+exports.BasicCredentialHandler = BasicCredentialHandler;
+
+
+/***/ }),
+
+/***/ 7431:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+class BearerCredentialHandler {
+ constructor(token, allowCrossOriginAuthentication) {
+ this.token = token;
+ this.allowCrossOriginAuthentication = allowCrossOriginAuthentication;
+ }
+ // currently implements pre-authorization
+ // TODO: support preAuth = false where it hooks on 401
+ prepareRequest(options) {
+ if (!this.origin) {
+ this.origin = options.host;
+ }
+ // If this is a redirection, don't set the Authorization header
+ if (this.origin === options.host || this.allowCrossOriginAuthentication) {
+ options.headers['Authorization'] = `Bearer ${this.token}`;
+ }
+ options.headers['X-TFS-FedAuthRedirect'] = 'Suppress';
+ }
+ // This handler cannot handle 401
+ canHandleAuthentication(response) {
+ return false;
+ }
+ handleAuthentication(httpClient, requestInfo, objs) {
+ return null;
+ }
+}
+exports.BearerCredentialHandler = BearerCredentialHandler;
+
+
+/***/ }),
+
+/***/ 4157:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const http = __nccwpck_require__(3685);
+const https = __nccwpck_require__(5687);
+const _ = __nccwpck_require__(5067);
+const ntlm = __nccwpck_require__(2673);
+class NtlmCredentialHandler {
+ constructor(username, password, workstation, domain) {
+ this._ntlmOptions = {};
+ this._ntlmOptions.username = username;
+ this._ntlmOptions.password = password;
+ this._ntlmOptions.domain = domain || '';
+ this._ntlmOptions.workstation = workstation || '';
+ }
+ prepareRequest(options) {
+ // No headers or options need to be set. We keep the credentials on the handler itself.
+ // If a (proxy) agent is set, remove it as we don't support proxy for NTLM at this time
+ if (options.agent) {
+ delete options.agent;
+ }
+ }
+ canHandleAuthentication(response) {
+ if (response && response.message && response.message.statusCode === 401) {
+ // Ensure that we're talking NTLM here
+ // Once we have the www-authenticate header, split it so we can ensure we can talk NTLM
+ const wwwAuthenticate = response.message.headers['www-authenticate'];
+ return wwwAuthenticate && (wwwAuthenticate.split(', ').indexOf("NTLM") >= 0);
+ }
+ return false;
+ }
+ handleAuthentication(httpClient, requestInfo, objs) {
+ return new Promise((resolve, reject) => {
+ const callbackForResult = function (err, res) {
+ if (err) {
+ reject(err);
+ }
+ // We have to readbody on the response before continuing otherwise there is a hang.
+ res.readBody().then(() => {
+ resolve(res);
+ });
+ };
+ this.handleAuthenticationPrivate(httpClient, requestInfo, objs, callbackForResult);
+ });
+ }
+ handleAuthenticationPrivate(httpClient, requestInfo, objs, finalCallback) {
+ // Set up the headers for NTLM authentication
+ requestInfo.options = _.extend(requestInfo.options, {
+ username: this._ntlmOptions.username,
+ password: this._ntlmOptions.password,
+ domain: this._ntlmOptions.domain,
+ workstation: this._ntlmOptions.workstation
+ });
+ requestInfo.options.agent = httpClient.isSsl ?
+ new https.Agent({ keepAlive: true }) :
+ new http.Agent({ keepAlive: true });
+ let self = this;
+ // The following pattern of sending the type1 message following immediately (in a setImmediate) is
+ // critical for the NTLM exchange to happen. If we removed setImmediate (or call in a different manner)
+ // the NTLM exchange will always fail with a 401.
+ this.sendType1Message(httpClient, requestInfo, objs, function (err, res) {
+ if (err) {
+ return finalCallback(err, null, null);
+ }
+ /// We have to readbody on the response before continuing otherwise there is a hang.
+ res.readBody().then(() => {
+ // It is critical that we have setImmediate here due to how connection requests are queued.
+ // If setImmediate is removed then the NTLM handshake will not work.
+ // setImmediate allows us to queue a second request on the same connection. If this second
+ // request is not queued on the connection when the first request finishes then node closes
+ // the connection. NTLM requires both requests to be on the same connection so we need this.
+ setImmediate(function () {
+ self.sendType3Message(httpClient, requestInfo, objs, res, finalCallback);
+ });
+ });
+ });
+ }
+ // The following method is an adaptation of code found at https://github.com/SamDecrock/node-http-ntlm/blob/master/httpntlm.js
+ sendType1Message(httpClient, requestInfo, objs, finalCallback) {
+ const type1HexBuffer = ntlm.encodeType1(this._ntlmOptions.workstation, this._ntlmOptions.domain);
+ const type1msg = `NTLM ${type1HexBuffer.toString('base64')}`;
+ const type1options = {
+ headers: {
+ 'Connection': 'keep-alive',
+ 'Authorization': type1msg
+ },
+ timeout: requestInfo.options.timeout || 0,
+ agent: requestInfo.httpModule,
+ };
+ const type1info = {};
+ type1info.httpModule = requestInfo.httpModule;
+ type1info.parsedUrl = requestInfo.parsedUrl;
+ type1info.options = _.extend(type1options, _.omit(requestInfo.options, 'headers'));
+ return httpClient.requestRawWithCallback(type1info, objs, finalCallback);
+ }
+ // The following method is an adaptation of code found at https://github.com/SamDecrock/node-http-ntlm/blob/master/httpntlm.js
+ sendType3Message(httpClient, requestInfo, objs, res, callback) {
+ if (!res.message.headers && !res.message.headers['www-authenticate']) {
+ throw new Error('www-authenticate not found on response of second request');
+ }
+ /**
+ * Server will respond with challenge/nonce
+ * assigned to response's "WWW-AUTHENTICATE" header
+ * and should adhere to RegExp /^NTLM\s+(.+?)(,|\s+|$)/
+ */
+ const serverNonceRegex = /^NTLM\s+(.+?)(,|\s+|$)/;
+ const serverNonce = Buffer.from((res.message.headers['www-authenticate'].match(serverNonceRegex) || [])[1], 'base64');
+ let type2msg;
+ /**
+ * Wrap decoding the Server's challenge/nonce in
+ * try-catch block to throw more comprehensive
+ * Error with clear message to consumer
+ */
+ try {
+ type2msg = ntlm.decodeType2(serverNonce);
+ }
+ catch (error) {
+ throw new Error(`Decoding Server's Challenge to Obtain Type2Message failed with error: ${error.message}`);
+ }
+ const type3msg = ntlm.encodeType3(this._ntlmOptions.username, this._ntlmOptions.workstation, this._ntlmOptions.domain, type2msg, this._ntlmOptions.password).toString('base64');
+ const type3options = {
+ headers: {
+ 'Authorization': `NTLM ${type3msg}`,
+ 'Connection': 'Close'
+ },
+ agent: requestInfo.httpModule,
+ };
+ const type3info = {};
+ type3info.httpModule = requestInfo.httpModule;
+ type3info.parsedUrl = requestInfo.parsedUrl;
+ type3options.headers = _.extend(type3options.headers, requestInfo.options.headers);
+ type3info.options = _.extend(type3options, _.omit(requestInfo.options, 'headers'));
+ return httpClient.requestRawWithCallback(type3info, objs, callback);
+ }
+}
+exports.NtlmCredentialHandler = NtlmCredentialHandler;
+
+
+/***/ }),
+
+/***/ 7799:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+class PersonalAccessTokenCredentialHandler {
+ constructor(token, allowCrossOriginAuthentication) {
+ this.token = token;
+ this.allowCrossOriginAuthentication = allowCrossOriginAuthentication;
+ }
+ // currently implements pre-authorization
+ // TODO: support preAuth = false where it hooks on 401
+ prepareRequest(options) {
+ if (!this.origin) {
+ this.origin = options.host;
+ }
+ // If this is a redirection, don't set the Authorization header
+ if (this.origin === options.host || this.allowCrossOriginAuthentication) {
+ options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
+ }
+ options.headers['X-TFS-FedAuthRedirect'] = 'Suppress';
+ }
+ // This handler cannot handle 401
+ canHandleAuthentication(response) {
+ return false;
+ }
+ handleAuthentication(httpClient, requestInfo, objs) {
+ return null;
+ }
+}
+exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
+
+
+/***/ }),
+
+/***/ 2352:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var crypto = __nccwpck_require__(6113);
+
+function zeroextend(str, len)
+{
+ while (str.length < len)
+ str = '0' + str;
+ return (str);
+}
+
+/*
+ * Fix (odd) parity bits in a 64-bit DES key.
+ */
+function oddpar(buf)
+{
+ for (var j = 0; j < buf.length; j++) {
+ var par = 1;
+ for (var i = 1; i < 8; i++) {
+ par = (par + ((buf[j] >> i) & 1)) % 2;
+ }
+ buf[j] |= par & 1;
+ }
+ return buf;
+}
+
+/*
+ * Expand a 56-bit key buffer to the full 64-bits for DES.
+ *
+ * Based on code sample in:
+ * http://www.innovation.ch/personal/ronald/ntlm.html
+ */
+function expandkey(key56)
+{
+ var key64 = new Buffer(8);
+
+ key64[0] = key56[0] & 0xFE;
+ key64[1] = ((key56[0] << 7) & 0xFF) | (key56[1] >> 1);
+ key64[2] = ((key56[1] << 6) & 0xFF) | (key56[2] >> 2);
+ key64[3] = ((key56[2] << 5) & 0xFF) | (key56[3] >> 3);
+ key64[4] = ((key56[3] << 4) & 0xFF) | (key56[4] >> 4);
+ key64[5] = ((key56[4] << 3) & 0xFF) | (key56[5] >> 5);
+ key64[6] = ((key56[5] << 2) & 0xFF) | (key56[6] >> 6);
+ key64[7] = (key56[6] << 1) & 0xFF;
+
+ return key64;
+}
+
+/*
+ * Convert a binary string to a hex string
+ */
+function bintohex(bin)
+{
+ var buf = (Buffer.isBuffer(buf) ? buf : new Buffer(bin, 'binary'));
+ var str = buf.toString('hex').toUpperCase();
+ return zeroextend(str, 32);
+}
+
+
+module.exports.zeroextend = zeroextend;
+module.exports.oddpar = oddpar;
+module.exports.expandkey = expandkey;
+module.exports.bintohex = bintohex;
+
+
+/***/ }),
+
+/***/ 2673:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+var log = console.log;
+var crypto = __nccwpck_require__(6113);
+var $ = __nccwpck_require__(2352);
+var lmhashbuf = (__nccwpck_require__(8657).lmhashbuf);
+var nthashbuf = (__nccwpck_require__(8657).nthashbuf);
+
+
+function encodeType1(hostname, ntdomain) {
+ hostname = hostname.toUpperCase();
+ ntdomain = ntdomain.toUpperCase();
+ var hostnamelen = Buffer.byteLength(hostname, 'ascii');
+ var ntdomainlen = Buffer.byteLength(ntdomain, 'ascii');
+
+ var pos = 0;
+ var buf = new Buffer(32 + hostnamelen + ntdomainlen);
+
+ buf.write('NTLMSSP', pos, 7, 'ascii'); // byte protocol[8];
+ pos += 7;
+ buf.writeUInt8(0, pos);
+ pos++;
+
+ buf.writeUInt8(0x01, pos); // byte type;
+ pos++;
+
+ buf.fill(0x00, pos, pos + 3); // byte zero[3];
+ pos += 3;
+
+ buf.writeUInt16LE(0xb203, pos); // short flags;
+ pos += 2;
+
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(ntdomainlen, pos); // short dom_len;
+ pos += 2;
+ buf.writeUInt16LE(ntdomainlen, pos); // short dom_len;
+ pos += 2;
+
+ var ntdomainoff = 0x20 + hostnamelen;
+ buf.writeUInt16LE(ntdomainoff, pos); // short dom_off;
+ pos += 2;
+
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(hostnamelen, pos); // short host_len;
+ pos += 2;
+ buf.writeUInt16LE(hostnamelen, pos); // short host_len;
+ pos += 2;
+
+ buf.writeUInt16LE(0x20, pos); // short host_off;
+ pos += 2;
+
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.write(hostname, 0x20, hostnamelen, 'ascii');
+ buf.write(ntdomain, ntdomainoff, ntdomainlen, 'ascii');
+
+ return buf;
+}
+
+
+/*
+ *
+ */
+function decodeType2(buf)
+{
+ var proto = buf.toString('ascii', 0, 7);
+ if (buf[7] !== 0x00 || proto !== 'NTLMSSP')
+ throw new Error('magic was not NTLMSSP');
+
+ var type = buf.readUInt8(8);
+ if (type !== 0x02)
+ throw new Error('message was not NTLMSSP type 0x02');
+
+ //var msg_len = buf.readUInt16LE(16);
+
+ //var flags = buf.readUInt16LE(20);
+
+ var nonce = buf.slice(24, 32);
+ return nonce;
+}
+
+function encodeType3(username, hostname, ntdomain, nonce, password) {
+ hostname = hostname.toUpperCase();
+ ntdomain = ntdomain.toUpperCase();
+
+ var lmh = new Buffer(21);
+ lmhashbuf(password).copy(lmh);
+ lmh.fill(0x00, 16); // null pad to 21 bytes
+ var nth = new Buffer(21);
+ nthashbuf(password).copy(nth);
+ nth.fill(0x00, 16); // null pad to 21 bytes
+
+ var lmr = makeResponse(lmh, nonce);
+ var ntr = makeResponse(nth, nonce);
+
+ var usernamelen = Buffer.byteLength(username, 'ucs2');
+ var hostnamelen = Buffer.byteLength(hostname, 'ucs2');
+ var ntdomainlen = Buffer.byteLength(ntdomain, 'ucs2');
+ var lmrlen = 0x18;
+ var ntrlen = 0x18;
+
+ var ntdomainoff = 0x40;
+ var usernameoff = ntdomainoff + ntdomainlen;
+ var hostnameoff = usernameoff + usernamelen;
+ var lmroff = hostnameoff + hostnamelen;
+ var ntroff = lmroff + lmrlen;
+
+ var pos = 0;
+ var msg_len = 64 + ntdomainlen + usernamelen + hostnamelen + lmrlen + ntrlen;
+ var buf = new Buffer(msg_len);
+
+ buf.write('NTLMSSP', pos, 7, 'ascii'); // byte protocol[8];
+ pos += 7;
+ buf.writeUInt8(0, pos);
+ pos++;
+
+ buf.writeUInt8(0x03, pos); // byte type;
+ pos++;
+
+ buf.fill(0x00, pos, pos + 3); // byte zero[3];
+ pos += 3;
+
+ buf.writeUInt16LE(lmrlen, pos); // short lm_resp_len;
+ pos += 2;
+ buf.writeUInt16LE(lmrlen, pos); // short lm_resp_len;
+ pos += 2;
+ buf.writeUInt16LE(lmroff, pos); // short lm_resp_off;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(ntrlen, pos); // short nt_resp_len;
+ pos += 2;
+ buf.writeUInt16LE(ntrlen, pos); // short nt_resp_len;
+ pos += 2;
+ buf.writeUInt16LE(ntroff, pos); // short nt_resp_off;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(ntdomainlen, pos); // short dom_len;
+ pos += 2;
+ buf.writeUInt16LE(ntdomainlen, pos); // short dom_len;
+ pos += 2;
+ buf.writeUInt16LE(ntdomainoff, pos); // short dom_off;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(usernamelen, pos); // short user_len;
+ pos += 2;
+ buf.writeUInt16LE(usernamelen, pos); // short user_len;
+ pos += 2;
+ buf.writeUInt16LE(usernameoff, pos); // short user_off;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(hostnamelen, pos); // short host_len;
+ pos += 2;
+ buf.writeUInt16LE(hostnamelen, pos); // short host_len;
+ pos += 2;
+ buf.writeUInt16LE(hostnameoff, pos); // short host_off;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 6); // byte zero[6];
+ pos += 6;
+
+ buf.writeUInt16LE(msg_len, pos); // short msg_len;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.writeUInt16LE(0x8201, pos); // short flags;
+ pos += 2;
+ buf.fill(0x00, pos, pos + 2); // byte zero[2];
+ pos += 2;
+
+ buf.write(ntdomain, ntdomainoff, ntdomainlen, 'ucs2');
+ buf.write(username, usernameoff, usernamelen, 'ucs2');
+ buf.write(hostname, hostnameoff, hostnamelen, 'ucs2');
+ lmr.copy(buf, lmroff, 0, lmrlen);
+ ntr.copy(buf, ntroff, 0, ntrlen);
+
+ return buf;
+}
+
+function makeResponse(hash, nonce)
+{
+ var out = new Buffer(24);
+ for (var i = 0; i < 3; i++) {
+ var keybuf = $.oddpar($.expandkey(hash.slice(i * 7, i * 7 + 7)));
+ var des = crypto.createCipheriv('DES-ECB', keybuf, '');
+ var str = des.update(nonce.toString('binary'), 'binary', 'binary');
+ out.write(str, i * 8, i * 8 + 8, 'binary');
+ }
+ return out;
+}
+
+exports.encodeType1 = encodeType1;
+exports.decodeType2 = decodeType2;
+exports.encodeType3 = encodeType3;
+
+// Convenience methods.
+
+exports.challengeHeader = function (hostname, domain) {
+ return 'NTLM ' + exports.encodeType1(hostname, domain).toString('base64');
+};
+
+exports.responseHeader = function (res, url, domain, username, password) {
+ var serverNonce = new Buffer((res.headers['www-authenticate'].match(/^NTLM\s+(.+?)(,|\s+|$)/) || [])[1], 'base64');
+ var hostname = (__nccwpck_require__(7310).parse)(url).hostname;
+ return 'NTLM ' + exports.encodeType3(username, hostname, domain, exports.decodeType2(serverNonce), password).toString('base64')
+};
+
+// Import smbhash module.
+
+exports.smbhash = __nccwpck_require__(8657);
+
+
+/***/ }),
+
+/***/ 8657:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var crypto = __nccwpck_require__(6113);
+var $ = __nccwpck_require__(2352);
+
+/*
+ * Generate the LM Hash
+ */
+function lmhashbuf(inputstr)
+{
+ /* ASCII --> uppercase */
+ var x = inputstr.substring(0, 14).toUpperCase();
+ var xl = Buffer.byteLength(x, 'ascii');
+
+ /* null pad to 14 bytes */
+ var y = new Buffer(14);
+ y.write(x, 0, xl, 'ascii');
+ y.fill(0, xl);
+
+ /* insert odd parity bits in key */
+ var halves = [
+ $.oddpar($.expandkey(y.slice(0, 7))),
+ $.oddpar($.expandkey(y.slice(7, 14)))
+ ];
+
+ /* DES encrypt magic number "KGS!@#$%" to two
+ * 8-byte ciphertexts, (ECB, no padding)
+ */
+ var buf = new Buffer(16);
+ var pos = 0;
+ var cts = halves.forEach(function(z) {
+ var des = crypto.createCipheriv('DES-ECB', z, '');
+ var str = des.update('KGS!@#$%', 'binary', 'binary');
+ buf.write(str, pos, pos + 8, 'binary');
+ pos += 8;
+ });
+
+ /* concat the two ciphertexts to form 16byte value,
+ * the LM hash */
+ return buf;
+}
+
+function nthashbuf(str)
+{
+ /* take MD4 hash of UCS-2 encoded password */
+ var ucs2 = new Buffer(str, 'ucs2');
+ var md4 = crypto.createHash('md4');
+ md4.update(ucs2);
+ return new Buffer(md4.digest('binary'), 'binary');
+}
+
+function lmhash(is)
+{
+ return $.bintohex(lmhashbuf(is));
+}
+
+function nthash(is)
+{
+ return $.bintohex(nthashbuf(is));
+}
+
+module.exports.nthashbuf = nthashbuf;
+module.exports.lmhashbuf = lmhashbuf;
+
+module.exports.nthash = nthash;
+module.exports.lmhash = lmhash;
+
+
+/***/ }),
+
+/***/ 5030:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+
+function getUserAgent() {
+ if (typeof navigator === "object" && "userAgent" in navigator) {
+ return navigator.userAgent;
+ }
+
+ if (typeof process === "object" && "version" in process) {
+ return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
+ }
+
+ return "";
+}
+
+exports.getUserAgent = getUserAgent;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+
+/***/ 5840:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(8628));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(6409));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(5122));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(9120));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(5332));
+
+var _version = _interopRequireDefault(__nccwpck_require__(1595));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(8950));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(2746));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 4569:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 5332:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2746:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 814:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 807:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 5274:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 8950:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).substr(1));
+}
+
+function stringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 8628:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(807));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(8950));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.default)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6409:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5998));
+
+var _md = _interopRequireDefault(__nccwpck_require__(4569));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 5998:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = _default;
+exports.URL = exports.DNS = void 0;
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(8950));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(2746));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function _default(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (namespace.length !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.default)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 5122:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(807));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(8950));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.default)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9120:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(5998));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(5274));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 6900:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(814));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 1595:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(6900));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.substr(14, 1), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 4886:
+/***/ ((module) => {
+
+"use strict";
+
+
+var conversions = {};
+module.exports = conversions;
+
+function sign(x) {
+ return x < 0 ? -1 : 1;
+}
+
+function evenRound(x) {
+ // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
+ if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
+ return Math.floor(x);
+ } else {
+ return Math.round(x);
+ }
+}
+
+function createNumberConversion(bitLength, typeOpts) {
+ if (!typeOpts.unsigned) {
+ --bitLength;
+ }
+ const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
+ const upperBound = Math.pow(2, bitLength) - 1;
+
+ const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
+ const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
+
+ return function(V, opts) {
+ if (!opts) opts = {};
+
+ let x = +V;
+
+ if (opts.enforceRange) {
+ if (!Number.isFinite(x)) {
+ throw new TypeError("Argument is not a finite number");
+ }
+
+ x = sign(x) * Math.floor(Math.abs(x));
+ if (x < lowerBound || x > upperBound) {
+ throw new TypeError("Argument is not in byte range");
+ }
+
+ return x;
+ }
+
+ if (!isNaN(x) && opts.clamp) {
+ x = evenRound(x);
+
+ if (x < lowerBound) x = lowerBound;
+ if (x > upperBound) x = upperBound;
+ return x;
+ }
+
+ if (!Number.isFinite(x) || x === 0) {
+ return 0;
+ }
+
+ x = sign(x) * Math.floor(Math.abs(x));
+ x = x % moduloVal;
+
+ if (!typeOpts.unsigned && x >= moduloBound) {
+ return x - moduloVal;
+ } else if (typeOpts.unsigned) {
+ if (x < 0) {
+ x += moduloVal;
+ } else if (x === -0) { // don't return negative zero
+ return 0;
+ }
+ }
+
+ return x;
+ }
+}
+
+conversions["void"] = function () {
+ return undefined;
+};
+
+conversions["boolean"] = function (val) {
+ return !!val;
+};
+
+conversions["byte"] = createNumberConversion(8, { unsigned: false });
+conversions["octet"] = createNumberConversion(8, { unsigned: true });
+
+conversions["short"] = createNumberConversion(16, { unsigned: false });
+conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
+
+conversions["long"] = createNumberConversion(32, { unsigned: false });
+conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
+
+conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
+conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
+
+conversions["double"] = function (V) {
+ const x = +V;
+
+ if (!Number.isFinite(x)) {
+ throw new TypeError("Argument is not a finite floating-point value");
+ }
+
+ return x;
+};
+
+conversions["unrestricted double"] = function (V) {
+ const x = +V;
+
+ if (isNaN(x)) {
+ throw new TypeError("Argument is NaN");
+ }
+
+ return x;
+};
+
+// not quite valid, but good enough for JS
+conversions["float"] = conversions["double"];
+conversions["unrestricted float"] = conversions["unrestricted double"];
+
+conversions["DOMString"] = function (V, opts) {
+ if (!opts) opts = {};
+
+ if (opts.treatNullAsEmptyString && V === null) {
+ return "";
+ }
+
+ return String(V);
+};
+
+conversions["ByteString"] = function (V, opts) {
+ const x = String(V);
+ let c = undefined;
+ for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
+ if (c > 255) {
+ throw new TypeError("Argument is not a valid bytestring");
+ }
+ }
+
+ return x;
+};
+
+conversions["USVString"] = function (V) {
+ const S = String(V);
+ const n = S.length;
+ const U = [];
+ for (let i = 0; i < n; ++i) {
+ const c = S.charCodeAt(i);
+ if (c < 0xD800 || c > 0xDFFF) {
+ U.push(String.fromCodePoint(c));
+ } else if (0xDC00 <= c && c <= 0xDFFF) {
+ U.push(String.fromCodePoint(0xFFFD));
+ } else {
+ if (i === n - 1) {
+ U.push(String.fromCodePoint(0xFFFD));
+ } else {
+ const d = S.charCodeAt(i + 1);
+ if (0xDC00 <= d && d <= 0xDFFF) {
+ const a = c & 0x3FF;
+ const b = d & 0x3FF;
+ U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
+ ++i;
+ } else {
+ U.push(String.fromCodePoint(0xFFFD));
+ }
+ }
+ }
+ }
+
+ return U.join('');
+};
+
+conversions["Date"] = function (V, opts) {
+ if (!(V instanceof Date)) {
+ throw new TypeError("Argument is not a Date object");
+ }
+ if (isNaN(V)) {
+ return undefined;
+ }
+
+ return V;
+};
+
+conversions["RegExp"] = function (V, opts) {
+ if (!(V instanceof RegExp)) {
+ V = new RegExp(V);
+ }
+
+ return V;
+};
+
+
+/***/ }),
+
+/***/ 7537:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+const usm = __nccwpck_require__(2158);
+
+exports.implementation = class URLImpl {
+ constructor(constructorArgs) {
+ const url = constructorArgs[0];
+ const base = constructorArgs[1];
+
+ let parsedBase = null;
+ if (base !== undefined) {
+ parsedBase = usm.basicURLParse(base);
+ if (parsedBase === "failure") {
+ throw new TypeError("Invalid base URL");
+ }
+ }
+
+ const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
+ if (parsedURL === "failure") {
+ throw new TypeError("Invalid URL");
+ }
+
+ this._url = parsedURL;
+
+ // TODO: query stuff
+ }
+
+ get href() {
+ return usm.serializeURL(this._url);
+ }
+
+ set href(v) {
+ const parsedURL = usm.basicURLParse(v);
+ if (parsedURL === "failure") {
+ throw new TypeError("Invalid URL");
+ }
+
+ this._url = parsedURL;
+ }
+
+ get origin() {
+ return usm.serializeURLOrigin(this._url);
+ }
+
+ get protocol() {
+ return this._url.scheme + ":";
+ }
+
+ set protocol(v) {
+ usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
+ }
+
+ get username() {
+ return this._url.username;
+ }
+
+ set username(v) {
+ if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
+ return;
+ }
+
+ usm.setTheUsername(this._url, v);
+ }
+
+ get password() {
+ return this._url.password;
+ }
+
+ set password(v) {
+ if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
+ return;
+ }
+
+ usm.setThePassword(this._url, v);
+ }
+
+ get host() {
+ const url = this._url;
+
+ if (url.host === null) {
+ return "";
+ }
+
+ if (url.port === null) {
+ return usm.serializeHost(url.host);
+ }
+
+ return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
+ }
+
+ set host(v) {
+ if (this._url.cannotBeABaseURL) {
+ return;
+ }
+
+ usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
+ }
+
+ get hostname() {
+ if (this._url.host === null) {
+ return "";
+ }
+
+ return usm.serializeHost(this._url.host);
+ }
+
+ set hostname(v) {
+ if (this._url.cannotBeABaseURL) {
+ return;
+ }
+
+ usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
+ }
+
+ get port() {
+ if (this._url.port === null) {
+ return "";
+ }
+
+ return usm.serializeInteger(this._url.port);
+ }
+
+ set port(v) {
+ if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
+ return;
+ }
+
+ if (v === "") {
+ this._url.port = null;
+ } else {
+ usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
+ }
+ }
+
+ get pathname() {
+ if (this._url.cannotBeABaseURL) {
+ return this._url.path[0];
+ }
+
+ if (this._url.path.length === 0) {
+ return "";
+ }
+
+ return "/" + this._url.path.join("/");
+ }
+
+ set pathname(v) {
+ if (this._url.cannotBeABaseURL) {
+ return;
+ }
+
+ this._url.path = [];
+ usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
+ }
+
+ get search() {
+ if (this._url.query === null || this._url.query === "") {
+ return "";
+ }
+
+ return "?" + this._url.query;
+ }
+
+ set search(v) {
+ // TODO: query stuff
+
+ const url = this._url;
+
+ if (v === "") {
+ url.query = null;
+ return;
+ }
+
+ const input = v[0] === "?" ? v.substring(1) : v;
+ url.query = "";
+ usm.basicURLParse(input, { url, stateOverride: "query" });
+ }
+
+ get hash() {
+ if (this._url.fragment === null || this._url.fragment === "") {
+ return "";
+ }
+
+ return "#" + this._url.fragment;
+ }
+
+ set hash(v) {
+ if (v === "") {
+ this._url.fragment = null;
+ return;
+ }
+
+ const input = v[0] === "#" ? v.substring(1) : v;
+ this._url.fragment = "";
+ usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
+ }
+
+ toJSON() {
+ return this.href;
+ }
+};
+
+
+/***/ }),
+
+/***/ 3394:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+const conversions = __nccwpck_require__(4886);
+const utils = __nccwpck_require__(3185);
+const Impl = __nccwpck_require__(7537);
+
+const impl = utils.implSymbol;
+
+function URL(url) {
+ if (!this || this[impl] || !(this instanceof URL)) {
+ throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
+ }
+ if (arguments.length < 1) {
+ throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length && i < 2; ++i) {
+ args[i] = arguments[i];
+ }
+ args[0] = conversions["USVString"](args[0]);
+ if (args[1] !== undefined) {
+ args[1] = conversions["USVString"](args[1]);
+ }
+
+ module.exports.setup(this, args);
+}
+
+URL.prototype.toJSON = function toJSON() {
+ if (!this || !module.exports.is(this)) {
+ throw new TypeError("Illegal invocation");
+ }
+ const args = [];
+ for (let i = 0; i < arguments.length && i < 0; ++i) {
+ args[i] = arguments[i];
+ }
+ return this[impl].toJSON.apply(this[impl], args);
+};
+Object.defineProperty(URL.prototype, "href", {
+ get() {
+ return this[impl].href;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].href = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+URL.prototype.toString = function () {
+ if (!this || !module.exports.is(this)) {
+ throw new TypeError("Illegal invocation");
+ }
+ return this.href;
+};
+
+Object.defineProperty(URL.prototype, "origin", {
+ get() {
+ return this[impl].origin;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "protocol", {
+ get() {
+ return this[impl].protocol;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].protocol = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "username", {
+ get() {
+ return this[impl].username;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].username = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "password", {
+ get() {
+ return this[impl].password;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].password = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "host", {
+ get() {
+ return this[impl].host;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].host = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "hostname", {
+ get() {
+ return this[impl].hostname;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].hostname = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "port", {
+ get() {
+ return this[impl].port;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].port = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "pathname", {
+ get() {
+ return this[impl].pathname;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].pathname = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "search", {
+ get() {
+ return this[impl].search;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].search = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperty(URL.prototype, "hash", {
+ get() {
+ return this[impl].hash;
+ },
+ set(V) {
+ V = conversions["USVString"](V);
+ this[impl].hash = V;
+ },
+ enumerable: true,
+ configurable: true
+});
+
+
+module.exports = {
+ is(obj) {
+ return !!obj && obj[impl] instanceof Impl.implementation;
+ },
+ create(constructorArgs, privateData) {
+ let obj = Object.create(URL.prototype);
+ this.setup(obj, constructorArgs, privateData);
+ return obj;
+ },
+ setup(obj, constructorArgs, privateData) {
+ if (!privateData) privateData = {};
+ privateData.wrapper = obj;
+
+ obj[impl] = new Impl.implementation(constructorArgs, privateData);
+ obj[impl][utils.wrapperSymbol] = obj;
+ },
+ interface: URL,
+ expose: {
+ Window: { URL: URL },
+ Worker: { URL: URL }
+ }
+};
+
+
+
+/***/ }),
+
+/***/ 8665:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+exports.URL = __nccwpck_require__(3394)["interface"];
+exports.serializeURL = __nccwpck_require__(2158).serializeURL;
+exports.serializeURLOrigin = __nccwpck_require__(2158).serializeURLOrigin;
+exports.basicURLParse = __nccwpck_require__(2158).basicURLParse;
+exports.setTheUsername = __nccwpck_require__(2158).setTheUsername;
+exports.setThePassword = __nccwpck_require__(2158).setThePassword;
+exports.serializeHost = __nccwpck_require__(2158).serializeHost;
+exports.serializeInteger = __nccwpck_require__(2158).serializeInteger;
+exports.parseURL = __nccwpck_require__(2158).parseURL;
+
+
+/***/ }),
+
+/***/ 2158:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+const punycode = __nccwpck_require__(5477);
+const tr46 = __nccwpck_require__(4256);
+
+const specialSchemes = {
+ ftp: 21,
+ file: null,
+ gopher: 70,
+ http: 80,
+ https: 443,
+ ws: 80,
+ wss: 443
+};
+
+const failure = Symbol("failure");
+
+function countSymbols(str) {
+ return punycode.ucs2.decode(str).length;
+}
+
+function at(input, idx) {
+ const c = input[idx];
+ return isNaN(c) ? undefined : String.fromCodePoint(c);
+}
+
+function isASCIIDigit(c) {
+ return c >= 0x30 && c <= 0x39;
+}
+
+function isASCIIAlpha(c) {
+ return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
+}
+
+function isASCIIAlphanumeric(c) {
+ return isASCIIAlpha(c) || isASCIIDigit(c);
+}
+
+function isASCIIHex(c) {
+ return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
+}
+
+function isSingleDot(buffer) {
+ return buffer === "." || buffer.toLowerCase() === "%2e";
+}
+
+function isDoubleDot(buffer) {
+ buffer = buffer.toLowerCase();
+ return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
+}
+
+function isWindowsDriveLetterCodePoints(cp1, cp2) {
+ return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
+}
+
+function isWindowsDriveLetterString(string) {
+ return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
+}
+
+function isNormalizedWindowsDriveLetterString(string) {
+ return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
+}
+
+function containsForbiddenHostCodePoint(string) {
+ return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
+}
+
+function containsForbiddenHostCodePointExcludingPercent(string) {
+ return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
+}
+
+function isSpecialScheme(scheme) {
+ return specialSchemes[scheme] !== undefined;
+}
+
+function isSpecial(url) {
+ return isSpecialScheme(url.scheme);
+}
+
+function defaultPort(scheme) {
+ return specialSchemes[scheme];
+}
+
+function percentEncode(c) {
+ let hex = c.toString(16).toUpperCase();
+ if (hex.length === 1) {
+ hex = "0" + hex;
+ }
+
+ return "%" + hex;
+}
+
+function utf8PercentEncode(c) {
+ const buf = new Buffer(c);
+
+ let str = "";
+
+ for (let i = 0; i < buf.length; ++i) {
+ str += percentEncode(buf[i]);
+ }
+
+ return str;
+}
+
+function utf8PercentDecode(str) {
+ const input = new Buffer(str);
+ const output = [];
+ for (let i = 0; i < input.length; ++i) {
+ if (input[i] !== 37) {
+ output.push(input[i]);
+ } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
+ output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
+ i += 2;
+ } else {
+ output.push(input[i]);
+ }
+ }
+ return new Buffer(output).toString();
+}
+
+function isC0ControlPercentEncode(c) {
+ return c <= 0x1F || c > 0x7E;
+}
+
+const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
+function isPathPercentEncode(c) {
+ return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
+}
+
+const extraUserinfoPercentEncodeSet =
+ new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
+function isUserinfoPercentEncode(c) {
+ return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
+}
+
+function percentEncodeChar(c, encodeSetPredicate) {
+ const cStr = String.fromCodePoint(c);
+
+ if (encodeSetPredicate(c)) {
+ return utf8PercentEncode(cStr);
+ }
+
+ return cStr;
+}
+
+function parseIPv4Number(input) {
+ let R = 10;
+
+ if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
+ input = input.substring(2);
+ R = 16;
+ } else if (input.length >= 2 && input.charAt(0) === "0") {
+ input = input.substring(1);
+ R = 8;
+ }
+
+ if (input === "") {
+ return 0;
+ }
+
+ const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
+ if (regex.test(input)) {
+ return failure;
+ }
+
+ return parseInt(input, R);
+}
+
+function parseIPv4(input) {
+ const parts = input.split(".");
+ if (parts[parts.length - 1] === "") {
+ if (parts.length > 1) {
+ parts.pop();
+ }
+ }
+
+ if (parts.length > 4) {
+ return input;
+ }
+
+ const numbers = [];
+ for (const part of parts) {
+ if (part === "") {
+ return input;
+ }
+ const n = parseIPv4Number(part);
+ if (n === failure) {
+ return input;
+ }
+
+ numbers.push(n);
+ }
+
+ for (let i = 0; i < numbers.length - 1; ++i) {
+ if (numbers[i] > 255) {
+ return failure;
+ }
+ }
+ if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
+ return failure;
+ }
+
+ let ipv4 = numbers.pop();
+ let counter = 0;
+
+ for (const n of numbers) {
+ ipv4 += n * Math.pow(256, 3 - counter);
+ ++counter;
+ }
+
+ return ipv4;
+}
+
+function serializeIPv4(address) {
+ let output = "";
+ let n = address;
+
+ for (let i = 1; i <= 4; ++i) {
+ output = String(n % 256) + output;
+ if (i !== 4) {
+ output = "." + output;
+ }
+ n = Math.floor(n / 256);
+ }
+
+ return output;
+}
+
+function parseIPv6(input) {
+ const address = [0, 0, 0, 0, 0, 0, 0, 0];
+ let pieceIndex = 0;
+ let compress = null;
+ let pointer = 0;
+
+ input = punycode.ucs2.decode(input);
+
+ if (input[pointer] === 58) {
+ if (input[pointer + 1] !== 58) {
+ return failure;
+ }
+
+ pointer += 2;
+ ++pieceIndex;
+ compress = pieceIndex;
+ }
+
+ while (pointer < input.length) {
+ if (pieceIndex === 8) {
+ return failure;
+ }
+
+ if (input[pointer] === 58) {
+ if (compress !== null) {
+ return failure;
+ }
+ ++pointer;
+ ++pieceIndex;
+ compress = pieceIndex;
+ continue;
+ }
+
+ let value = 0;
+ let length = 0;
+
+ while (length < 4 && isASCIIHex(input[pointer])) {
+ value = value * 0x10 + parseInt(at(input, pointer), 16);
+ ++pointer;
+ ++length;
+ }
+
+ if (input[pointer] === 46) {
+ if (length === 0) {
+ return failure;
+ }
+
+ pointer -= length;
+
+ if (pieceIndex > 6) {
+ return failure;
+ }
+
+ let numbersSeen = 0;
+
+ while (input[pointer] !== undefined) {
+ let ipv4Piece = null;
+
+ if (numbersSeen > 0) {
+ if (input[pointer] === 46 && numbersSeen < 4) {
+ ++pointer;
+ } else {
+ return failure;
+ }
+ }
+
+ if (!isASCIIDigit(input[pointer])) {
+ return failure;
+ }
+
+ while (isASCIIDigit(input[pointer])) {
+ const number = parseInt(at(input, pointer));
+ if (ipv4Piece === null) {
+ ipv4Piece = number;
+ } else if (ipv4Piece === 0) {
+ return failure;
+ } else {
+ ipv4Piece = ipv4Piece * 10 + number;
+ }
+ if (ipv4Piece > 255) {
+ return failure;
+ }
+ ++pointer;
+ }
+
+ address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
+
+ ++numbersSeen;
+
+ if (numbersSeen === 2 || numbersSeen === 4) {
+ ++pieceIndex;
+ }
+ }
+
+ if (numbersSeen !== 4) {
+ return failure;
+ }
+
+ break;
+ } else if (input[pointer] === 58) {
+ ++pointer;
+ if (input[pointer] === undefined) {
+ return failure;
+ }
+ } else if (input[pointer] !== undefined) {
+ return failure;
+ }
+
+ address[pieceIndex] = value;
+ ++pieceIndex;
+ }
+
+ if (compress !== null) {
+ let swaps = pieceIndex - compress;
+ pieceIndex = 7;
+ while (pieceIndex !== 0 && swaps > 0) {
+ const temp = address[compress + swaps - 1];
+ address[compress + swaps - 1] = address[pieceIndex];
+ address[pieceIndex] = temp;
+ --pieceIndex;
+ --swaps;
+ }
+ } else if (compress === null && pieceIndex !== 8) {
+ return failure;
+ }
+
+ return address;
+}
+
+function serializeIPv6(address) {
+ let output = "";
+ const seqResult = findLongestZeroSequence(address);
+ const compress = seqResult.idx;
+ let ignore0 = false;
+
+ for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
+ if (ignore0 && address[pieceIndex] === 0) {
+ continue;
+ } else if (ignore0) {
+ ignore0 = false;
+ }
+
+ if (compress === pieceIndex) {
+ const separator = pieceIndex === 0 ? "::" : ":";
+ output += separator;
+ ignore0 = true;
+ continue;
+ }
+
+ output += address[pieceIndex].toString(16);
+
+ if (pieceIndex !== 7) {
+ output += ":";
+ }
+ }
+
+ return output;
+}
+
+function parseHost(input, isSpecialArg) {
+ if (input[0] === "[") {
+ if (input[input.length - 1] !== "]") {
+ return failure;
+ }
+
+ return parseIPv6(input.substring(1, input.length - 1));
+ }
+
+ if (!isSpecialArg) {
+ return parseOpaqueHost(input);
+ }
+
+ const domain = utf8PercentDecode(input);
+ const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
+ if (asciiDomain === null) {
+ return failure;
+ }
+
+ if (containsForbiddenHostCodePoint(asciiDomain)) {
+ return failure;
+ }
+
+ const ipv4Host = parseIPv4(asciiDomain);
+ if (typeof ipv4Host === "number" || ipv4Host === failure) {
+ return ipv4Host;
+ }
+
+ return asciiDomain;
+}
+
+function parseOpaqueHost(input) {
+ if (containsForbiddenHostCodePointExcludingPercent(input)) {
+ return failure;
+ }
+
+ let output = "";
+ const decoded = punycode.ucs2.decode(input);
+ for (let i = 0; i < decoded.length; ++i) {
+ output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
+ }
+ return output;
+}
+
+function findLongestZeroSequence(arr) {
+ let maxIdx = null;
+ let maxLen = 1; // only find elements > 1
+ let currStart = null;
+ let currLen = 0;
+
+ for (let i = 0; i < arr.length; ++i) {
+ if (arr[i] !== 0) {
+ if (currLen > maxLen) {
+ maxIdx = currStart;
+ maxLen = currLen;
+ }
+
+ currStart = null;
+ currLen = 0;
+ } else {
+ if (currStart === null) {
+ currStart = i;
+ }
+ ++currLen;
+ }
+ }
+
+ // if trailing zeros
+ if (currLen > maxLen) {
+ maxIdx = currStart;
+ maxLen = currLen;
+ }
+
+ return {
+ idx: maxIdx,
+ len: maxLen
+ };
+}
+
+function serializeHost(host) {
+ if (typeof host === "number") {
+ return serializeIPv4(host);
+ }
+
+ // IPv6 serializer
+ if (host instanceof Array) {
+ return "[" + serializeIPv6(host) + "]";
+ }
+
+ return host;
+}
+
+function trimControlChars(url) {
+ return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
+}
+
+function trimTabAndNewline(url) {
+ return url.replace(/\u0009|\u000A|\u000D/g, "");
+}
+
+function shortenPath(url) {
+ const path = url.path;
+ if (path.length === 0) {
+ return;
+ }
+ if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
+ return;
+ }
+
+ path.pop();
+}
+
+function includesCredentials(url) {
+ return url.username !== "" || url.password !== "";
+}
+
+function cannotHaveAUsernamePasswordPort(url) {
+ return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
+}
+
+function isNormalizedWindowsDriveLetter(string) {
+ return /^[A-Za-z]:$/.test(string);
+}
+
+function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
+ this.pointer = 0;
+ this.input = input;
+ this.base = base || null;
+ this.encodingOverride = encodingOverride || "utf-8";
+ this.stateOverride = stateOverride;
+ this.url = url;
+ this.failure = false;
+ this.parseError = false;
+
+ if (!this.url) {
+ this.url = {
+ scheme: "",
+ username: "",
+ password: "",
+ host: null,
+ port: null,
+ path: [],
+ query: null,
+ fragment: null,
+
+ cannotBeABaseURL: false
+ };
+
+ const res = trimControlChars(this.input);
+ if (res !== this.input) {
+ this.parseError = true;
+ }
+ this.input = res;
+ }
+
+ const res = trimTabAndNewline(this.input);
+ if (res !== this.input) {
+ this.parseError = true;
+ }
+ this.input = res;
+
+ this.state = stateOverride || "scheme start";
+
+ this.buffer = "";
+ this.atFlag = false;
+ this.arrFlag = false;
+ this.passwordTokenSeenFlag = false;
+
+ this.input = punycode.ucs2.decode(this.input);
+
+ for (; this.pointer <= this.input.length; ++this.pointer) {
+ const c = this.input[this.pointer];
+ const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
+
+ // exec state machine
+ const ret = this["parse " + this.state](c, cStr);
+ if (!ret) {
+ break; // terminate algorithm
+ } else if (ret === failure) {
+ this.failure = true;
+ break;
+ }
+ }
+}
+
+URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
+ if (isASCIIAlpha(c)) {
+ this.buffer += cStr.toLowerCase();
+ this.state = "scheme";
+ } else if (!this.stateOverride) {
+ this.state = "no scheme";
+ --this.pointer;
+ } else {
+ this.parseError = true;
+ return failure;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
+ if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
+ this.buffer += cStr.toLowerCase();
+ } else if (c === 58) {
+ if (this.stateOverride) {
+ if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
+ return false;
+ }
+
+ if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
+ return false;
+ }
+
+ if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
+ return false;
+ }
+
+ if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
+ return false;
+ }
+ }
+ this.url.scheme = this.buffer;
+ this.buffer = "";
+ if (this.stateOverride) {
+ return false;
+ }
+ if (this.url.scheme === "file") {
+ if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
+ this.parseError = true;
+ }
+ this.state = "file";
+ } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
+ this.state = "special relative or authority";
+ } else if (isSpecial(this.url)) {
+ this.state = "special authority slashes";
+ } else if (this.input[this.pointer + 1] === 47) {
+ this.state = "path or authority";
+ ++this.pointer;
+ } else {
+ this.url.cannotBeABaseURL = true;
+ this.url.path.push("");
+ this.state = "cannot-be-a-base-URL path";
+ }
+ } else if (!this.stateOverride) {
+ this.buffer = "";
+ this.state = "no scheme";
+ this.pointer = -1;
+ } else {
+ this.parseError = true;
+ return failure;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
+ if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
+ return failure;
+ } else if (this.base.cannotBeABaseURL && c === 35) {
+ this.url.scheme = this.base.scheme;
+ this.url.path = this.base.path.slice();
+ this.url.query = this.base.query;
+ this.url.fragment = "";
+ this.url.cannotBeABaseURL = true;
+ this.state = "fragment";
+ } else if (this.base.scheme === "file") {
+ this.state = "file";
+ --this.pointer;
+ } else {
+ this.state = "relative";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
+ if (c === 47 && this.input[this.pointer + 1] === 47) {
+ this.state = "special authority ignore slashes";
+ ++this.pointer;
+ } else {
+ this.parseError = true;
+ this.state = "relative";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
+ if (c === 47) {
+ this.state = "authority";
+ } else {
+ this.state = "path";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
+ this.url.scheme = this.base.scheme;
+ if (isNaN(c)) {
+ this.url.username = this.base.username;
+ this.url.password = this.base.password;
+ this.url.host = this.base.host;
+ this.url.port = this.base.port;
+ this.url.path = this.base.path.slice();
+ this.url.query = this.base.query;
+ } else if (c === 47) {
+ this.state = "relative slash";
+ } else if (c === 63) {
+ this.url.username = this.base.username;
+ this.url.password = this.base.password;
+ this.url.host = this.base.host;
+ this.url.port = this.base.port;
+ this.url.path = this.base.path.slice();
+ this.url.query = "";
+ this.state = "query";
+ } else if (c === 35) {
+ this.url.username = this.base.username;
+ this.url.password = this.base.password;
+ this.url.host = this.base.host;
+ this.url.port = this.base.port;
+ this.url.path = this.base.path.slice();
+ this.url.query = this.base.query;
+ this.url.fragment = "";
+ this.state = "fragment";
+ } else if (isSpecial(this.url) && c === 92) {
+ this.parseError = true;
+ this.state = "relative slash";
+ } else {
+ this.url.username = this.base.username;
+ this.url.password = this.base.password;
+ this.url.host = this.base.host;
+ this.url.port = this.base.port;
+ this.url.path = this.base.path.slice(0, this.base.path.length - 1);
+
+ this.state = "path";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
+ if (isSpecial(this.url) && (c === 47 || c === 92)) {
+ if (c === 92) {
+ this.parseError = true;
+ }
+ this.state = "special authority ignore slashes";
+ } else if (c === 47) {
+ this.state = "authority";
+ } else {
+ this.url.username = this.base.username;
+ this.url.password = this.base.password;
+ this.url.host = this.base.host;
+ this.url.port = this.base.port;
+ this.state = "path";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
+ if (c === 47 && this.input[this.pointer + 1] === 47) {
+ this.state = "special authority ignore slashes";
+ ++this.pointer;
+ } else {
+ this.parseError = true;
+ this.state = "special authority ignore slashes";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
+ if (c !== 47 && c !== 92) {
+ this.state = "authority";
+ --this.pointer;
+ } else {
+ this.parseError = true;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
+ if (c === 64) {
+ this.parseError = true;
+ if (this.atFlag) {
+ this.buffer = "%40" + this.buffer;
+ }
+ this.atFlag = true;
+
+ // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
+ const len = countSymbols(this.buffer);
+ for (let pointer = 0; pointer < len; ++pointer) {
+ const codePoint = this.buffer.codePointAt(pointer);
+
+ if (codePoint === 58 && !this.passwordTokenSeenFlag) {
+ this.passwordTokenSeenFlag = true;
+ continue;
+ }
+ const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
+ if (this.passwordTokenSeenFlag) {
+ this.url.password += encodedCodePoints;
+ } else {
+ this.url.username += encodedCodePoints;
+ }
+ }
+ this.buffer = "";
+ } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
+ (isSpecial(this.url) && c === 92)) {
+ if (this.atFlag && this.buffer === "") {
+ this.parseError = true;
+ return failure;
+ }
+ this.pointer -= countSymbols(this.buffer) + 1;
+ this.buffer = "";
+ this.state = "host";
+ } else {
+ this.buffer += cStr;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse hostname"] =
+URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
+ if (this.stateOverride && this.url.scheme === "file") {
+ --this.pointer;
+ this.state = "file host";
+ } else if (c === 58 && !this.arrFlag) {
+ if (this.buffer === "") {
+ this.parseError = true;
+ return failure;
+ }
+
+ const host = parseHost(this.buffer, isSpecial(this.url));
+ if (host === failure) {
+ return failure;
+ }
+
+ this.url.host = host;
+ this.buffer = "";
+ this.state = "port";
+ if (this.stateOverride === "hostname") {
+ return false;
+ }
+ } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
+ (isSpecial(this.url) && c === 92)) {
+ --this.pointer;
+ if (isSpecial(this.url) && this.buffer === "") {
+ this.parseError = true;
+ return failure;
+ } else if (this.stateOverride && this.buffer === "" &&
+ (includesCredentials(this.url) || this.url.port !== null)) {
+ this.parseError = true;
+ return false;
+ }
+
+ const host = parseHost(this.buffer, isSpecial(this.url));
+ if (host === failure) {
+ return failure;
+ }
+
+ this.url.host = host;
+ this.buffer = "";
+ this.state = "path start";
+ if (this.stateOverride) {
+ return false;
+ }
+ } else {
+ if (c === 91) {
+ this.arrFlag = true;
+ } else if (c === 93) {
+ this.arrFlag = false;
+ }
+ this.buffer += cStr;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
+ if (isASCIIDigit(c)) {
+ this.buffer += cStr;
+ } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
+ (isSpecial(this.url) && c === 92) ||
+ this.stateOverride) {
+ if (this.buffer !== "") {
+ const port = parseInt(this.buffer);
+ if (port > Math.pow(2, 16) - 1) {
+ this.parseError = true;
+ return failure;
+ }
+ this.url.port = port === defaultPort(this.url.scheme) ? null : port;
+ this.buffer = "";
+ }
+ if (this.stateOverride) {
+ return false;
+ }
+ this.state = "path start";
+ --this.pointer;
+ } else {
+ this.parseError = true;
+ return failure;
+ }
+
+ return true;
+};
+
+const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
+
+URLStateMachine.prototype["parse file"] = function parseFile(c) {
+ this.url.scheme = "file";
+
+ if (c === 47 || c === 92) {
+ if (c === 92) {
+ this.parseError = true;
+ }
+ this.state = "file slash";
+ } else if (this.base !== null && this.base.scheme === "file") {
+ if (isNaN(c)) {
+ this.url.host = this.base.host;
+ this.url.path = this.base.path.slice();
+ this.url.query = this.base.query;
+ } else if (c === 63) {
+ this.url.host = this.base.host;
+ this.url.path = this.base.path.slice();
+ this.url.query = "";
+ this.state = "query";
+ } else if (c === 35) {
+ this.url.host = this.base.host;
+ this.url.path = this.base.path.slice();
+ this.url.query = this.base.query;
+ this.url.fragment = "";
+ this.state = "fragment";
+ } else {
+ if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
+ !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
+ (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
+ !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
+ this.url.host = this.base.host;
+ this.url.path = this.base.path.slice();
+ shortenPath(this.url);
+ } else {
+ this.parseError = true;
+ }
+
+ this.state = "path";
+ --this.pointer;
+ }
+ } else {
+ this.state = "path";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
+ if (c === 47 || c === 92) {
+ if (c === 92) {
+ this.parseError = true;
+ }
+ this.state = "file host";
+ } else {
+ if (this.base !== null && this.base.scheme === "file") {
+ if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
+ this.url.path.push(this.base.path[0]);
+ } else {
+ this.url.host = this.base.host;
+ }
+ }
+ this.state = "path";
+ --this.pointer;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
+ if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
+ --this.pointer;
+ if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
+ this.parseError = true;
+ this.state = "path";
+ } else if (this.buffer === "") {
+ this.url.host = "";
+ if (this.stateOverride) {
+ return false;
+ }
+ this.state = "path start";
+ } else {
+ let host = parseHost(this.buffer, isSpecial(this.url));
+ if (host === failure) {
+ return failure;
+ }
+ if (host === "localhost") {
+ host = "";
+ }
+ this.url.host = host;
+
+ if (this.stateOverride) {
+ return false;
+ }
+
+ this.buffer = "";
+ this.state = "path start";
+ }
+ } else {
+ this.buffer += cStr;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
+ if (isSpecial(this.url)) {
+ if (c === 92) {
+ this.parseError = true;
+ }
+ this.state = "path";
+
+ if (c !== 47 && c !== 92) {
+ --this.pointer;
+ }
+ } else if (!this.stateOverride && c === 63) {
+ this.url.query = "";
+ this.state = "query";
+ } else if (!this.stateOverride && c === 35) {
+ this.url.fragment = "";
+ this.state = "fragment";
+ } else if (c !== undefined) {
+ this.state = "path";
+ if (c !== 47) {
+ --this.pointer;
+ }
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse path"] = function parsePath(c) {
+ if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
+ (!this.stateOverride && (c === 63 || c === 35))) {
+ if (isSpecial(this.url) && c === 92) {
+ this.parseError = true;
+ }
+
+ if (isDoubleDot(this.buffer)) {
+ shortenPath(this.url);
+ if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
+ this.url.path.push("");
+ }
+ } else if (isSingleDot(this.buffer) && c !== 47 &&
+ !(isSpecial(this.url) && c === 92)) {
+ this.url.path.push("");
+ } else if (!isSingleDot(this.buffer)) {
+ if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
+ if (this.url.host !== "" && this.url.host !== null) {
+ this.parseError = true;
+ this.url.host = "";
+ }
+ this.buffer = this.buffer[0] + ":";
+ }
+ this.url.path.push(this.buffer);
+ }
+ this.buffer = "";
+ if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
+ while (this.url.path.length > 1 && this.url.path[0] === "") {
+ this.parseError = true;
+ this.url.path.shift();
+ }
+ }
+ if (c === 63) {
+ this.url.query = "";
+ this.state = "query";
+ }
+ if (c === 35) {
+ this.url.fragment = "";
+ this.state = "fragment";
+ }
+ } else {
+ // TODO: If c is not a URL code point and not "%", parse error.
+
+ if (c === 37 &&
+ (!isASCIIHex(this.input[this.pointer + 1]) ||
+ !isASCIIHex(this.input[this.pointer + 2]))) {
+ this.parseError = true;
+ }
+
+ this.buffer += percentEncodeChar(c, isPathPercentEncode);
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
+ if (c === 63) {
+ this.url.query = "";
+ this.state = "query";
+ } else if (c === 35) {
+ this.url.fragment = "";
+ this.state = "fragment";
+ } else {
+ // TODO: Add: not a URL code point
+ if (!isNaN(c) && c !== 37) {
+ this.parseError = true;
+ }
+
+ if (c === 37 &&
+ (!isASCIIHex(this.input[this.pointer + 1]) ||
+ !isASCIIHex(this.input[this.pointer + 2]))) {
+ this.parseError = true;
+ }
+
+ if (!isNaN(c)) {
+ this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
+ }
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
+ if (isNaN(c) || (!this.stateOverride && c === 35)) {
+ if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
+ this.encodingOverride = "utf-8";
+ }
+
+ const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
+ for (let i = 0; i < buffer.length; ++i) {
+ if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
+ buffer[i] === 0x3C || buffer[i] === 0x3E) {
+ this.url.query += percentEncode(buffer[i]);
+ } else {
+ this.url.query += String.fromCodePoint(buffer[i]);
+ }
+ }
+
+ this.buffer = "";
+ if (c === 35) {
+ this.url.fragment = "";
+ this.state = "fragment";
+ }
+ } else {
+ // TODO: If c is not a URL code point and not "%", parse error.
+ if (c === 37 &&
+ (!isASCIIHex(this.input[this.pointer + 1]) ||
+ !isASCIIHex(this.input[this.pointer + 2]))) {
+ this.parseError = true;
+ }
+
+ this.buffer += cStr;
+ }
+
+ return true;
+};
+
+URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
+ if (isNaN(c)) { // do nothing
+ } else if (c === 0x0) {
+ this.parseError = true;
+ } else {
+ // TODO: If c is not a URL code point and not "%", parse error.
+ if (c === 37 &&
+ (!isASCIIHex(this.input[this.pointer + 1]) ||
+ !isASCIIHex(this.input[this.pointer + 2]))) {
+ this.parseError = true;
+ }
+
+ this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
+ }
+
+ return true;
+};
+
+function serializeURL(url, excludeFragment) {
+ let output = url.scheme + ":";
+ if (url.host !== null) {
+ output += "//";
+
+ if (url.username !== "" || url.password !== "") {
+ output += url.username;
+ if (url.password !== "") {
+ output += ":" + url.password;
+ }
+ output += "@";
+ }
+
+ output += serializeHost(url.host);
+
+ if (url.port !== null) {
+ output += ":" + url.port;
+ }
+ } else if (url.host === null && url.scheme === "file") {
+ output += "//";
+ }
+
+ if (url.cannotBeABaseURL) {
+ output += url.path[0];
+ } else {
+ for (const string of url.path) {
+ output += "/" + string;
+ }
+ }
+
+ if (url.query !== null) {
+ output += "?" + url.query;
+ }
+
+ if (!excludeFragment && url.fragment !== null) {
+ output += "#" + url.fragment;
+ }
+
+ return output;
+}
+
+function serializeOrigin(tuple) {
+ let result = tuple.scheme + "://";
+ result += serializeHost(tuple.host);
+
+ if (tuple.port !== null) {
+ result += ":" + tuple.port;
+ }
+
+ return result;
+}
+
+module.exports.serializeURL = serializeURL;
+
+module.exports.serializeURLOrigin = function (url) {
+ // https://url.spec.whatwg.org/#concept-url-origin
+ switch (url.scheme) {
+ case "blob":
+ try {
+ return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
+ } catch (e) {
+ // serializing an opaque origin returns "null"
+ return "null";
+ }
+ case "ftp":
+ case "gopher":
+ case "http":
+ case "https":
+ case "ws":
+ case "wss":
+ return serializeOrigin({
+ scheme: url.scheme,
+ host: url.host,
+ port: url.port
+ });
+ case "file":
+ // spec says "exercise to the reader", chrome says "file://"
+ return "file://";
+ default:
+ // serializing an opaque origin returns "null"
+ return "null";
+ }
+};
+
+module.exports.basicURLParse = function (input, options) {
+ if (options === undefined) {
+ options = {};
+ }
+
+ const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
+ if (usm.failure) {
+ return "failure";
+ }
+
+ return usm.url;
+};
+
+module.exports.setTheUsername = function (url, username) {
+ url.username = "";
+ const decoded = punycode.ucs2.decode(username);
+ for (let i = 0; i < decoded.length; ++i) {
+ url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
+ }
+};
+
+module.exports.setThePassword = function (url, password) {
+ url.password = "";
+ const decoded = punycode.ucs2.decode(password);
+ for (let i = 0; i < decoded.length; ++i) {
+ url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
+ }
+};
+
+module.exports.serializeHost = serializeHost;
+
+module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
+
+module.exports.serializeInteger = function (integer) {
+ return String(integer);
+};
+
+module.exports.parseURL = function (input, options) {
+ if (options === undefined) {
+ options = {};
+ }
+
+ // We don't handle blobs, so this just delegates:
+ return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
+};
+
+
+/***/ }),
+
+/***/ 3185:
+/***/ ((module) => {
+
+"use strict";
+
+
+module.exports.mixin = function mixin(target, source) {
+ const keys = Object.getOwnPropertyNames(source);
+ for (let i = 0; i < keys.length; ++i) {
+ Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
+ }
+};
+
+module.exports.wrapperSymbol = Symbol("wrapper");
+module.exports.implSymbol = Symbol("impl");
+
+module.exports.wrapperForImpl = function (impl) {
+ return impl[module.exports.wrapperSymbol];
+};
+
+module.exports.implForWrapper = function (wrapper) {
+ return wrapper[module.exports.implSymbol];
+};
+
+
+
+/***/ }),
+
+/***/ 2940:
+/***/ ((module) => {
+
+// Returns a wrapper function that returns a wrapped callback
+// The wrapper function should do some stuff, and return a
+// presumably different callback function.
+// This makes sure that own properties are retained, so that
+// decorations and such are not lost along the way.
+module.exports = wrappy
+function wrappy (fn, cb) {
+ if (fn && cb) return wrappy(fn)(cb)
+
+ if (typeof fn !== 'function')
+ throw new TypeError('need wrapper function')
+
+ Object.keys(fn).forEach(function (k) {
+ wrapper[k] = fn[k]
+ })
+
+ return wrapper
+
+ function wrapper() {
+ var args = new Array(arguments.length)
+ for (var i = 0; i < args.length; i++) {
+ args[i] = arguments[i]
+ }
+ var ret = fn.apply(this, args)
+ var cb = args[args.length-1]
+ if (typeof ret === 'function' && ret !== cb) {
+ Object.keys(cb).forEach(function (k) {
+ ret[k] = cb[k]
+ })
+ }
+ return ret
+ }
+}
+
+
+/***/ }),
+
+/***/ 4800:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AccessToCodeService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+class AccessToCodeService {
+ static async setAccessToCodeFindings(octokit, owner, repo) {
+ try {
+ console.log('--- Access To CodeService Control ---');
+ // https://www.npmjs.com/package/octokit#pagination
+ const iterator = octokit.paginate.iterator(octokit.repos.listCollaborators, {
+ owner: owner,
+ repo: repo,
+ per_page: 100,
+ affiliation: 'all',
+ });
+ let numberOfAdmins = 0;
+ let numberOfWriters = 0;
+ let numberOfReaders = 0;
+ for await (const { data: page } of iterator) {
+ for (const user of page) {
+ if (user.permissions.admin) {
+ numberOfAdmins++;
+ }
+ else if (user.permissions.maintain) {
+ numberOfWriters++;
+ }
+ else if (user.permissions.push) {
+ numberOfWriters++;
+ }
+ else if (user.permissions.triage) {
+ numberOfReaders++;
+ }
+ else if (user.permissions.pull) {
+ numberOfReaders++;
+ }
+ }
+ }
+ console.log('numberOfAdmins: ' + numberOfAdmins);
+ console.log('numberOfWriters: ' + numberOfWriters);
+ console.log('numberOfReaders: ' + numberOfReaders);
+ core.exportVariable('numberOfCodeAdmins', numberOfAdmins);
+ core.exportVariable('numberOfCodeWriters', numberOfWriters);
+ core.exportVariable('numberOfCodeReaders', numberOfReaders);
+ }
+ catch (error) {
+ core.info('Failed to fetch access to code for repo');
+ if (error.status === 401 || error.status === 403) {
+ // Removes link to REST API endpoint
+ const errorMessage = error.message.split('-')[0].trim();
+ core.warning(errorMessage, {
+ title: 'Failed to fetch acces to code for repo',
+ });
+ }
+ else {
+ core.info(error.message);
+ }
+ }
+ console.log();
+ }
+}
+exports.AccessToCodeService = AccessToCodeService;
+
+
+/***/ }),
+
+/***/ 6275:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AzureDevOpsBoardService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const AzureDevOpsConnection_1 = __nccwpck_require__(5547);
+const PentestTickets_1 = __nccwpck_require__(4209);
+const ThreatModelingTickets_1 = __nccwpck_require__(9502);
+class AzureDevOpsBoardService {
+ static async getStateOfAzureDevOpsBoards(cydigConfig) {
+ if (cydigConfig.azureDevOps.boards) {
+ try {
+ console.log('--- Azure DevOps Boards control ---');
+ const azureDevOpsConnection = new AzureDevOpsConnection_1.AzureDevOpsConnection(cydigConfig.azureDevOps.boards.organizationName, core.getInput('accessTokenAzureDevOps'));
+ const pentestTagInput = process.env.pentestTag;
+ const threatModelingTagInput = process.env.threatModelingTag;
+ let pentestTag = cydigConfig.pentest.boardsTag;
+ if (pentestTagInput !== undefined && pentestTagInput !== '') {
+ pentestTag = pentestTagInput;
+ }
+ let threatModelingTag = cydigConfig.threatModeling.boardsTag;
+ if (threatModelingTagInput !== undefined && threatModelingTagInput !== '') {
+ threatModelingTag = threatModelingTagInput;
+ }
+ const board = {
+ nameOfBoards: cydigConfig.azureDevOps.boards.nameOfBoard,
+ pentestTag: pentestTag,
+ threatModelingTag: threatModelingTag,
+ projectId: cydigConfig.azureDevOps.boards.projectName,
+ };
+ if (process.env.pentestDate && process.env.pentestDate != 'not specified') {
+ await PentestTickets_1.PentestTickets.setPentestTickets(azureDevOpsConnection, board);
+ }
+ if (process.env.threatModelingDate && process.env.threatModelingDate != 'not specified') {
+ await ThreatModelingTickets_1.ThreatModelingTickets.setThreatModelingTickets(azureDevOpsConnection, board);
+ }
+ }
+ catch (error) {
+ core.warning('Error getting tickets for Azure DevOps Board!');
+ console.log('There is probably somethine wrong with your token, check that it has not expired or been revoked. Please check that you have the correct permissions (Work items: Read)');
+ }
+ console.log();
+ }
+ }
+}
+exports.AzureDevOpsBoardService = AzureDevOpsBoardService;
+
+
+/***/ }),
+
+/***/ 3278:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.PenetrationTestTicketService = void 0;
+class PenetrationTestTicketService {
+ connection;
+ projectId;
+ tag;
+ constructor(azureDevOpsConnection, projectId, tag) {
+ this.connection = azureDevOpsConnection;
+ this.projectId = projectId;
+ this.tag = this.setTag(tag);
+ }
+ setTag(tag) {
+ if (!tag) {
+ return 'PT';
+ }
+ return tag;
+ }
+ async getPenetrationTestTickets(nameOfBoards) {
+ const areaPaths = await this.getAreaPaths(nameOfBoards);
+ const workItems = await this.getWorkItems(areaPaths);
+ const numberOfTickets = await this.getNumberOfActiveAndClosedTickets(workItems);
+ return numberOfTickets;
+ }
+ async getAreaPaths(nameOfBoards) {
+ if (!nameOfBoards || nameOfBoards.toLocaleLowerCase() === null || nameOfBoards === 'not specified') {
+ console.log('No board specified, looking through all boards in project');
+ return [];
+ }
+ let nameOfBoardsArray = [];
+ if (nameOfBoards.length > 0) {
+ nameOfBoardsArray = nameOfBoards.split(', ');
+ console.log(`Boards: ${nameOfBoardsArray}`);
+ }
+ const areaPaths = [];
+ for (const board of nameOfBoardsArray) {
+ const areaPath = (await (await this.connection.getWorkApi()).getTeamFieldValues({
+ team: board,
+ project: this.projectId,
+ })).defaultValue;
+ if (areaPath) {
+ areaPaths.push(areaPath);
+ }
+ }
+ if (areaPaths.length == 0) {
+ throw new Error('Found no board with the specified name');
+ }
+ return areaPaths;
+ }
+ async getWorkItems(areaPaths) {
+ const witApi = await this.connection.getWorkItemTrackingApi();
+ let queryStringAreaPath = '';
+ if (areaPaths.length > 0) {
+ queryStringAreaPath = this.getQueryStringAreaPath(areaPaths);
+ }
+ const workItemsResponse = await witApi.queryByWiql({
+ query: `SELECT [System.Id] FROM WorkItems WHERE ${queryStringAreaPath} [System.TeamProject] = '${this.projectId}' AND [System.Tags] CONTAINS '${this.tag}'`,
+ });
+ const workItems = workItemsResponse.workItems;
+ return workItems;
+ }
+ getQueryStringAreaPath(areaPaths) {
+ let queryStringAreaPath = '(';
+ areaPaths.forEach((areaPath) => {
+ if (areaPath === areaPaths[areaPaths.length - 1]) {
+ queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}') AND`);
+ }
+ else {
+ queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}' OR `);
+ }
+ });
+ return queryStringAreaPath;
+ }
+ async getNumberOfActiveAndClosedTickets(workItems) {
+ const witApi = await this.connection.getWorkItemTrackingApi();
+ let numberOfClosedTickets = 0;
+ let numberOfActiveTickets = 0;
+ for (const workItem of workItems) {
+ const workItemFetched = await witApi.getWorkItem(workItem.id);
+ const state = await workItemFetched.fields['System.State'];
+ if (state === 'Closed' || state === 'Done') {
+ numberOfClosedTickets++;
+ }
+ else {
+ numberOfActiveTickets++;
+ }
+ }
+ return {
+ numberOfActiveTickets: numberOfActiveTickets,
+ numberOfClosedTickets: numberOfClosedTickets,
+ };
+ }
+}
+exports.PenetrationTestTicketService = PenetrationTestTicketService;
+
+
+/***/ }),
+
+/***/ 4209:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.PentestTickets = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const PenetrationTestTicketService_1 = __nccwpck_require__(3278);
+class PentestTickets {
+ static async setPentestTickets(azureDevOpsConnection, board) {
+ console.log('Getting penetration test tickets');
+ const penetrationTestTicketService = new PenetrationTestTicketService_1.PenetrationTestTicketService(azureDevOpsConnection.getConnection(), board.projectId, board.pentestTag);
+ const numberOfTickets = await penetrationTestTicketService.getPenetrationTestTickets(board.nameOfBoards);
+ console.log('Active penetration test tickets: ' + numberOfTickets.numberOfActiveTickets);
+ console.log('Closed penetration test tickets : ' + numberOfTickets.numberOfClosedTickets);
+ core.exportVariable('ptNumberOfActiveTickets', numberOfTickets.numberOfActiveTickets.toString());
+ core.exportVariable('ptNumberOfClosedTickets', numberOfTickets.numberOfClosedTickets.toString());
+ return;
+ }
+}
+exports.PentestTickets = PentestTickets;
+
+
+/***/ }),
+
+/***/ 756:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ThreatModelingTicketService = void 0;
+class ThreatModelingTicketService {
+ connection;
+ projectId;
+ tag;
+ constructor(azureDevOpsConnection, projectId, tag) {
+ this.connection = azureDevOpsConnection;
+ this.projectId = projectId;
+ this.tag = this.setTag(tag);
+ }
+ setTag(tag) {
+ if (!tag || tag === 'not specified') {
+ return 'TM';
+ }
+ return tag;
+ }
+ async getThreatModelingTickets(nameOfBoards) {
+ const areaPaths = await this.getAreaPaths(nameOfBoards);
+ const workItems = await this.getWorkItems(areaPaths);
+ const numberOfTickets = await this.getNumberOfActiveAndClosedTickets(workItems);
+ return numberOfTickets;
+ }
+ async getAreaPaths(nameOfBoards) {
+ if (!nameOfBoards || nameOfBoards.toLocaleLowerCase() === null || nameOfBoards === 'not specified') {
+ console.log('No board specified, looking through all boards in project');
+ return [];
+ }
+ let nameOfBoardsArray = [];
+ if (nameOfBoards.length > 0) {
+ nameOfBoardsArray = nameOfBoards.split(', ');
+ console.log(`Boards: ${nameOfBoardsArray}`);
+ }
+ const areaPaths = [];
+ for (const board of nameOfBoardsArray) {
+ const areaPath = (await (await this.connection.getWorkApi()).getTeamFieldValues({
+ team: board,
+ project: this.projectId,
+ })).defaultValue;
+ if (areaPath) {
+ areaPaths.push(areaPath);
+ }
+ }
+ if (areaPaths.length == 0) {
+ throw new Error('Found no board with the specified name');
+ }
+ return areaPaths;
+ }
+ async getWorkItems(areaPaths) {
+ const witApi = await this.connection.getWorkItemTrackingApi();
+ let queryStringAreaPath = '';
+ if (areaPaths.length > 0) {
+ queryStringAreaPath = this.getQueryStringAreaPath(areaPaths);
+ }
+ const workItemsResponse = await witApi.queryByWiql({
+ query: `SELECT [System.Id] FROM WorkItems WHERE ${queryStringAreaPath} [System.TeamProject] = '${this.projectId}' AND [System.Tags] CONTAINS '${this.tag}'`,
+ });
+ const workItems = workItemsResponse.workItems;
+ return workItems;
+ }
+ getQueryStringAreaPath(areaPaths) {
+ let queryStringAreaPath = '(';
+ areaPaths.forEach((areaPath) => {
+ if (areaPath === areaPaths[areaPaths.length - 1]) {
+ queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}') AND`);
+ }
+ else {
+ queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}' OR `);
+ }
+ });
+ return queryStringAreaPath;
+ }
+ async getNumberOfActiveAndClosedTickets(workItems) {
+ const witApi = await this.connection.getWorkItemTrackingApi();
+ let numberOfClosedTickets = 0;
+ let numberOfActiveTickets = 0;
+ for (const workItem of workItems) {
+ const workItemFetched = await witApi.getWorkItem(workItem.id);
+ const state = await workItemFetched.fields['System.State'];
+ if (state === 'Closed' || state === 'Done') {
+ numberOfClosedTickets++;
+ }
+ else {
+ numberOfActiveTickets++;
+ }
+ }
+ return {
+ numberOfActiveTickets: numberOfActiveTickets,
+ numberOfClosedTickets: numberOfClosedTickets,
+ };
+ }
+}
+exports.ThreatModelingTicketService = ThreatModelingTicketService;
+
+
+/***/ }),
+
+/***/ 9502:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ThreatModelingTickets = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const ThreatModelingTicketService_1 = __nccwpck_require__(756);
+class ThreatModelingTickets {
+ static async setThreatModelingTickets(azureDevOpsConnection, board) {
+ console.log('Getting threat modeling tickets');
+ const threatModelingTicketService = new ThreatModelingTicketService_1.ThreatModelingTicketService(azureDevOpsConnection.getConnection(), board.projectId, board.threatModelingTag);
+ const numberOfTickets = await threatModelingTicketService.getThreatModelingTickets(board.nameOfBoards);
+ console.log('Active threat modeling tickets: ' + numberOfTickets.numberOfActiveTickets);
+ console.log('Closed threat modeling tickets : ' + numberOfTickets.numberOfClosedTickets);
+ core.exportVariable('tmNumberOfActiveTickets', numberOfTickets.numberOfActiveTickets.toString());
+ core.exportVariable('tmNumberOfClosedTickets', numberOfTickets.numberOfClosedTickets.toString());
+ return;
+ }
+}
+exports.ThreatModelingTickets = ThreatModelingTickets;
+
+
+/***/ }),
+
+/***/ 2843:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.BranchProtectionService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+class BranchProtectionService {
+ static async getStateOfBranchProtection(octokit, owner, repo) {
+ try {
+ console.log('--- Branch protection control ---');
+ const response = await octokit.rest.repos.getBranchProtection({
+ owner,
+ repo,
+ branch: 'main',
+ });
+ if (response.data.enforce_admins?.enabled === false) {
+ core.warning('Branch protection can be overridden by admins and is therefore counted as not enabled');
+ }
+ let numberOfReviewers = 0;
+ if (response.data.enforce_admins?.enabled === true &&
+ response.data.required_pull_request_reviews?.required_approving_review_count) {
+ numberOfReviewers = response.data.required_pull_request_reviews?.required_approving_review_count;
+ console.log('Branch protection is enabled, number of reviewers:', numberOfReviewers);
+ }
+ else {
+ console.log('Branch protection is not enabled for repository:', repo);
+ }
+ core.exportVariable('numberOfReviewers', numberOfReviewers);
+ }
+ catch (error) {
+ const errorMessage = error.message.split('-')[0].trim();
+ if (error.status === 401) {
+ core.info('Failed to get branch protection');
+ // Removes link to REST API endpoint
+ core.warning(errorMessage, {
+ title: 'Branch protection control failed',
+ });
+ }
+ else if (error.status === 404) {
+ if (errorMessage === 'Branch not protected') {
+ core.notice(errorMessage, {
+ title: 'Branch protection control',
+ });
+ core.exportVariable('numberOfReviewers', 0);
+ }
+ else {
+ core.info('Failed to get branch protection');
+ core.warning('Credentials probably lack necessary permissions', {
+ title: 'Branch protection control failed',
+ });
+ }
+ }
+ else {
+ switch (errorMessage) {
+ case 'Upgrade to GitHub Pro or make this repository public to enable this feature.':
+ console.log('Branch protection is not enabled for repository:', repo);
+ core.exportVariable('numberOfReviewers', 0);
+ break;
+ default:
+ core.info('Failed to get branch protection');
+ core.notice(errorMessage, {
+ title: 'Branch protection control failed',
+ });
+ break;
+ }
+ }
+ }
+ console.log();
+ }
+}
+exports.BranchProtectionService = BranchProtectionService;
+
+
+/***/ }),
+
+/***/ 1408:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.CodeQualityService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+class CodeQualityService {
+ static async getStateOfCodeQualityTool(codeQualityTool) {
+ console.log('--- Code Quality control ---');
+ if (process.env.codeQualityTool) {
+ console.log(`Tool:`, `${process.env.codeQualityTool}`);
+ core.exportVariable('codeQualityTool', process.env.codeQualityTool);
+ }
+ else {
+ if (!codeQualityTool.nameOfTool || codeQualityTool.nameOfTool === 'name-of-tool') {
+ core.warning('Code Quality Tool is not set!');
+ return;
+ }
+ console.log(`Tool:`, `${codeQualityTool.nameOfTool}`);
+ core.exportVariable('codeQualityTool', codeQualityTool.nameOfTool);
+ }
+ console.log();
+ }
+}
+exports.CodeQualityService = CodeQualityService;
+
+
+/***/ }),
+
+/***/ 5547:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AzureDevOpsConnection = void 0;
+const nodeApi = __importStar(__nccwpck_require__(7967));
+class AzureDevOpsConnection {
+ accessToken;
+ orgUrlDevOps;
+ orgName;
+ constructor(orgName, accessToken) {
+ this.accessToken = this.isNullOrUndefined(accessToken);
+ this.orgName = orgName;
+ this.orgUrlDevOps = `https://dev.azure.com/${orgName}/`;
+ }
+ isNullOrUndefined(value) {
+ if (!value) {
+ throw new Error('Input values cannot be null or undefined');
+ }
+ return value;
+ }
+ getConnection() {
+ const authHandler = nodeApi.getPersonalAccessTokenHandler(this.accessToken);
+ const connection = new nodeApi.WebApi(this.orgUrlDevOps, authHandler);
+ return connection;
+ }
+ getOrgName() {
+ return this.orgName;
+ }
+}
+exports.AzureDevOpsConnection = AzureDevOpsConnection;
+
+
+/***/ }),
+
+/***/ 2254:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getContentOfFile = void 0;
+const fs = __importStar(__nccwpck_require__(7147));
+const path = __importStar(__nccwpck_require__(1017));
+function getContentOfFile(jsonPath) {
+ const jsonFilePath = path.resolve(__dirname, path.relative(__dirname, path.normalize(jsonPath).replace(/^(\.\.(\/|\\|$))+/, '')));
+ const fileContent = fs.readFileSync(jsonFilePath, { encoding: 'utf-8' });
+ const cydigConfig = JSON.parse(fileContent);
+ return cydigConfig;
+}
+exports.getContentOfFile = getContentOfFile;
+
+
+/***/ }),
+
+/***/ 2046:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.PentestService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+class PentestService {
+ static async getStateOfPentest(pentest) {
+ console.log('--- Pentest control ---');
+ if (process.env.pentestDate) {
+ console.log('Pentest date was found');
+ core.exportVariable('pentestDate', process.env.pentestDate);
+ }
+ else {
+ if (!pentest.date || pentest.date === 'date-of-pentest') {
+ core.warning('Pentest Date is not set!');
+ return;
+ }
+ console.log('Pentest date was found');
+ core.exportVariable('pentestDate', pentest.date);
+ }
+ console.log();
+ }
+}
+exports.PentestService = PentestService;
+
+
+/***/ }),
+
+/***/ 3941:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.CodeQLService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const GithubToolSeverityLevel_1 = __importDefault(__nccwpck_require__(6217));
+class CodeQLService {
+ static async setCodeQLFindings(nameOfTool, octokit, owner, repo) {
+ try {
+ // https://www.npmjs.com/package/octokit#pagination
+ const iterator = octokit.paginate.iterator(octokit.codeScanning.listAlertsForRepo, {
+ owner: owner,
+ repo: repo,
+ per_page: 100,
+ state: 'open',
+ tool_name: 'CodeQL',
+ });
+ let sastNumberOfSeverity1 = 0;
+ let sastNumberOfSeverity2 = 0;
+ let sastNumberOfSeverity3 = 0;
+ let sastNumberOfSeverity4 = 0;
+ for await (const { data: alerts } of iterator) {
+ for (const alert of alerts) {
+ switch (alert.rule.security_severity_level) {
+ case GithubToolSeverityLevel_1.default.LOW:
+ sastNumberOfSeverity1++;
+ break;
+ case GithubToolSeverityLevel_1.default.MEDIUM:
+ sastNumberOfSeverity2++;
+ break;
+ case GithubToolSeverityLevel_1.default.HIGH:
+ sastNumberOfSeverity3++;
+ break;
+ case GithubToolSeverityLevel_1.default.CRITICAL:
+ sastNumberOfSeverity4++;
+ break;
+ default:
+ break;
+ }
+ }
+ }
+ console.log('Low: ' + sastNumberOfSeverity1);
+ console.log('Medium: ' + sastNumberOfSeverity2);
+ console.log('High: ' + sastNumberOfSeverity3);
+ console.log('Critical: ' + sastNumberOfSeverity4);
+ core.exportVariable('sastTool', nameOfTool);
+ core.exportVariable('SASTnumberOfSeverity1', sastNumberOfSeverity1);
+ core.exportVariable('SASTnumberOfSeverity2', sastNumberOfSeverity2);
+ core.exportVariable('SASTnumberOfSeverity3', sastNumberOfSeverity3);
+ core.exportVariable('SASTnumberOfSeverity4', sastNumberOfSeverity4);
+ }
+ catch (error) {
+ core.info('Failed to get CodeQL severities');
+ if (error.status === 401 || error.status === 403 || error.status === 404) {
+ // Removes link to REST API endpoint
+ const errorMessage = error.message.split('-')[0].trim();
+ core.warning(errorMessage, {
+ title: 'SAST tool control failed',
+ });
+ }
+ else {
+ core.notice(error.message, {
+ title: 'SAST tool control failed',
+ });
+ }
+ }
+ }
+}
+exports.CodeQLService = CodeQLService;
+
+
+/***/ }),
+
+/***/ 124:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.SastService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const CodeQLService_1 = __nccwpck_require__(3941);
+const GitHubTools_1 = __importDefault(__nccwpck_require__(5775));
+class SastService {
+ static async getStateOfSastTool(nameOfTool, octokit, owner, repo) {
+ console.log('--- SAST control ---');
+ let sast = nameOfTool;
+ if (process.env.sastTool) {
+ sast = process.env.sastTool;
+ }
+ if (!sast || sast === '' || sast === 'name-of-tool') {
+ core.warning('SAST Tool is not set!');
+ return;
+ }
+ console.log(`Tool:`, `${sast}`);
+ switch (sast.toLowerCase()) {
+ case GitHubTools_1.default.CODEQL.toLowerCase():
+ await CodeQLService_1.CodeQLService.setCodeQLFindings(sast, octokit, owner, repo);
+ break;
+ default:
+ core.exportVariable('sastTool', sast);
+ break;
+ }
+ console.log();
+ }
+}
+exports.SastService = SastService;
+
+
+/***/ }),
+
+/***/ 1162:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.DependabotService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const GithubToolSeverityLevel_1 = __importDefault(__nccwpck_require__(6217));
+class DependabotService {
+ static async setDependabotFindings(nameOfTool, octokit, owner, repo) {
+ try {
+ // https://www.npmjs.com/package/octokit#pagination
+ const iterator = octokit.paginate.iterator(octokit.dependabot.listAlertsForRepo, {
+ owner: owner,
+ repo: repo,
+ per_page: 100,
+ state: 'open',
+ });
+ let scaNumberOfSeverity1 = 0;
+ let scaNumberOfSeverity2 = 0;
+ let scaNumberOfSeverity3 = 0;
+ let scaNumberOfSeverity4 = 0;
+ for await (const { data: alerts } of iterator) {
+ for (const alert of alerts) {
+ switch (alert.security_vulnerability.severity) {
+ case GithubToolSeverityLevel_1.default.LOW:
+ scaNumberOfSeverity1++;
+ break;
+ case GithubToolSeverityLevel_1.default.MEDIUM:
+ scaNumberOfSeverity2++;
+ break;
+ case GithubToolSeverityLevel_1.default.HIGH:
+ scaNumberOfSeverity3++;
+ break;
+ case GithubToolSeverityLevel_1.default.CRITICAL:
+ scaNumberOfSeverity4++;
+ break;
+ }
+ }
+ }
+ console.log('Low: ' + scaNumberOfSeverity1);
+ console.log('Medium: ' + scaNumberOfSeverity2);
+ console.log('High: ' + scaNumberOfSeverity3);
+ console.log('Critical: ' + scaNumberOfSeverity4);
+ core.exportVariable('scaTool', nameOfTool);
+ core.exportVariable('SCAnumberOfSeverity1', scaNumberOfSeverity1);
+ core.exportVariable('SCAnumberOfSeverity2', scaNumberOfSeverity2);
+ core.exportVariable('SCAnumberOfSeverity3', scaNumberOfSeverity3);
+ core.exportVariable('SCAnumberOfSeverity4', scaNumberOfSeverity4);
+ }
+ catch (error) {
+ core.info('Failed to get Dependabot severities');
+ if (error.status === 401 || error.status === 403 || error.status === 404) {
+ // Removes link to REST API endpoint
+ const errorMessage = error.message.split('-')[0].trim();
+ core.warning(errorMessage, {
+ title: 'SCA tool control failed',
+ });
+ }
+ else {
+ core.notice(error.message, {
+ title: 'SCA tool control failed',
+ });
+ }
+ }
+ }
+}
+exports.DependabotService = DependabotService;
+
+
+/***/ }),
+
+/***/ 4351:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ScaService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const DependabotService_1 = __nccwpck_require__(1162);
+const GitHubTools_1 = __importDefault(__nccwpck_require__(5775));
+class ScaService {
+ static async getStateOfScaTool(nameOfTool, octokit, owner, repo) {
+ console.log('--- SCA control ---');
+ let sca = nameOfTool;
+ if (process.env.scaTool) {
+ sca = process.env.scaTool;
+ }
+ if (!sca || sca === '' || sca === 'name-of-tool') {
+ core.warning('SCA Tool is not set!');
+ return;
+ }
+ console.log(`Tool:`, `${sca}`);
+ switch (sca.toLowerCase()) {
+ case GitHubTools_1.default.DEPENDABOT.toLowerCase():
+ await DependabotService_1.DependabotService.setDependabotFindings(sca, octokit, owner, repo);
+ break;
+ default:
+ core.exportVariable('scaTool', sca);
+ break;
+ }
+ console.log();
+ }
+}
+exports.ScaService = ScaService;
+
+
+/***/ }),
+
+/***/ 6455:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GithubSecretScanningService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const GitHubTools_1 = __importDefault(__nccwpck_require__(5775));
+class GithubSecretScanningService {
+ static async getStateOfExposedSecrets(octokit, owner, repo) {
+ try {
+ console.log('Tool: Github Secret Scanning');
+ // https://www.npmjs.com/package/octokit#pagination
+ const iterator = octokit.paginate.iterator(octokit.secretScanning.listAlertsForRepo, {
+ owner: owner,
+ repo: repo,
+ per_page: 100,
+ state: 'open',
+ });
+ let numberOfExposedSecrets = 0;
+ for await (const { data: alerts } of iterator) {
+ numberOfExposedSecrets += alerts.length;
+ }
+ console.log('Exposed secrets:', numberOfExposedSecrets);
+ core.exportVariable('secretScanningTool', GitHubTools_1.default.GitHub_SECRET_SCANNING);
+ core.exportVariable('numberOfExposedSecrets', numberOfExposedSecrets);
+ }
+ catch (error) {
+ core.info('Failed to get number of exposed secrets');
+ // Removes link to REST API endpoint
+ const errorMessage = error.message.split('-')[0].trim();
+ if (error.status === 401) {
+ core.warning(errorMessage, {
+ title: 'Number of exposed secrets control failed',
+ });
+ }
+ else if (error.status === 404) {
+ switch (errorMessage) {
+ case 'Secret scanning is disabled on this repository.':
+ core.warning(errorMessage, {
+ title: 'Number of exposed secrets control failed',
+ });
+ break;
+ default:
+ console.log(error);
+ core.warning('Credentials probably lack necessary permissions', {
+ title: 'Number of exposed secrets control failed',
+ });
+ break;
+ }
+ }
+ else {
+ core.notice(error.message, {
+ title: 'Number of exposed secrets control failed',
+ });
+ }
+ }
+ console.log();
+ }
+}
+exports.GithubSecretScanningService = GithubSecretScanningService;
+
+
+/***/ }),
+
+/***/ 341:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.SecretScanningService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+const GitHubTools_1 = __importDefault(__nccwpck_require__(5775));
+const GithubSecretScanningService_1 = __nccwpck_require__(6455);
+class SecretScanningService {
+ static async getStateOfExposedSecrets(nameOfTool, octokit, owner, repo) {
+ console.log('--- Secret Scanning control ---');
+ if (nameOfTool === null || nameOfTool === undefined || nameOfTool === 'name-of-tool') {
+ core.warning('Secret Scanning Tool is not set! Will continue with GitHub Secret Scanning tool:');
+ await GithubSecretScanningService_1.GithubSecretScanningService.getStateOfExposedSecrets(octokit, owner, repo);
+ return;
+ }
+ switch (nameOfTool.toLowerCase()) {
+ case GitHubTools_1.default.GitHub_SECRET_SCANNING.toLowerCase():
+ await GithubSecretScanningService_1.GithubSecretScanningService.getStateOfExposedSecrets(octokit, owner, repo);
+ break;
+ default:
+ core.notice('Given secret scanning tool is not implemented: ' + nameOfTool, {
+ title: 'Number of exposed secrets control failed',
+ });
+ core.exportVariable('secretScanningTool', nameOfTool);
+ break;
+ }
+ console.log();
+ }
+}
+exports.SecretScanningService = SecretScanningService;
+
+
+/***/ }),
+
+/***/ 6121:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ThreatModelingService = void 0;
+const core = __importStar(__nccwpck_require__(2186));
+class ThreatModelingService {
+ static async getStateOfThreatModeling(threatModeling) {
+ console.log('--- Threat Modeling control ---');
+ if (process.env.threatModelingDate) {
+ console.log('Threat Modeling date was found');
+ core.exportVariable('threatModelingDate', process.env.threatModelingDate);
+ }
+ else {
+ if (!threatModeling.date || threatModeling.date === 'date-of-threat-modeling') {
+ core.warning('Threat Modeling Date is not set!');
+ return;
+ }
+ console.log('Threat Modeling date was found');
+ core.exportVariable('threatModelingDate', threatModeling.date);
+ }
+ console.log();
+ }
+}
+exports.ThreatModelingService = ThreatModelingService;
+
+
+/***/ }),
+
+/***/ 5775:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var GitHub_Tools;
+(function (GitHub_Tools) {
+ GitHub_Tools["DEPENDABOT"] = "Dependabot";
+ GitHub_Tools["CODEQL"] = "CodeQL";
+ GitHub_Tools["GitHub_SECRET_SCANNING"] = "GitHub";
+})(GitHub_Tools || (GitHub_Tools = {}));
+exports["default"] = GitHub_Tools;
+
+
+/***/ }),
+
+/***/ 6217:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+var GitHub_Tool_Severity_Level;
+(function (GitHub_Tool_Severity_Level) {
+ GitHub_Tool_Severity_Level["LOW"] = "low";
+ GitHub_Tool_Severity_Level["MEDIUM"] = "medium";
+ GitHub_Tool_Severity_Level["HIGH"] = "high";
+ GitHub_Tool_Severity_Level["CRITICAL"] = "critical";
+})(GitHub_Tool_Severity_Level || (GitHub_Tool_Severity_Level = {}));
+exports["default"] = GitHub_Tool_Severity_Level;
+
+
+/***/ }),
+
+/***/ 2877:
+/***/ ((module) => {
+
+module.exports = eval("require")("encoding");
+
+
+/***/ }),
+
+/***/ 9491:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("assert");
+
+/***/ }),
+
+/***/ 6113:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("crypto");
+
+/***/ }),
+
+/***/ 2361:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("events");
+
+/***/ }),
+
+/***/ 7147:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("fs");
+
+/***/ }),
+
+/***/ 3685:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("http");
+
+/***/ }),
+
+/***/ 5687:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("https");
+
+/***/ }),
+
+/***/ 1808:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("net");
+
+/***/ }),
+
+/***/ 2037:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("os");
+
+/***/ }),
+
+/***/ 1017:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("path");
+
+/***/ }),
+
+/***/ 5477:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("punycode");
+
+/***/ }),
+
+/***/ 2781:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("stream");
+
+/***/ }),
+
+/***/ 4404:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("tls");
+
+/***/ }),
+
+/***/ 7310:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("url");
+
+/***/ }),
+
+/***/ 3837:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("util");
+
+/***/ }),
+
+/***/ 9796:
+/***/ ((module) => {
+
+"use strict";
+module.exports = require("zlib");
+
+/***/ }),
+
+/***/ 6717:
+/***/ ((__unused_webpack_module, exports) => {
+
+// Underscore.js 1.13.6
+// https://underscorejs.org
+// (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
+// Underscore may be freely distributed under the MIT license.
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+
+// Current version.
+var VERSION = '1.13.6';
+
+// Establish the root object, `window` (`self`) in the browser, `global`
+// on the server, or `this` in some virtual machines. We use `self`
+// instead of `window` for `WebWorker` support.
+var root = (typeof self == 'object' && self.self === self && self) ||
+ (typeof global == 'object' && global.global === global && global) ||
+ Function('return this')() ||
+ {};
+
+// Save bytes in the minified (but not gzipped) version:
+var ArrayProto = Array.prototype, ObjProto = Object.prototype;
+var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
+
+// Create quick reference variables for speed access to core prototypes.
+var push = ArrayProto.push,
+ slice = ArrayProto.slice,
+ toString = ObjProto.toString,
+ hasOwnProperty = ObjProto.hasOwnProperty;
+
+// Modern feature detection.
+var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',
+ supportsDataView = typeof DataView !== 'undefined';
+
+// All **ECMAScript 5+** native function implementations that we hope to use
+// are declared here.
+var nativeIsArray = Array.isArray,
+ nativeKeys = Object.keys,
+ nativeCreate = Object.create,
+ nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;
+
+// Create references to these builtin functions because we override them.
+var _isNaN = isNaN,
+ _isFinite = isFinite;
+
+// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
+var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
+var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
+ 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
+
+// The largest integer that can be represented exactly.
+var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
+
+// Some functions take a variable number of arguments, or a few expected
+// arguments at the beginning and then a variable number of values to operate
+// on. This helper accumulates all remaining arguments past the function’s
+// argument length (or an explicit `startIndex`), into an array that becomes
+// the last argument. Similar to ES6’s "rest parameter".
+function restArguments(func, startIndex) {
+ startIndex = startIndex == null ? func.length - 1 : +startIndex;
+ return function() {
+ var length = Math.max(arguments.length - startIndex, 0),
+ rest = Array(length),
+ index = 0;
+ for (; index < length; index++) {
+ rest[index] = arguments[index + startIndex];
+ }
+ switch (startIndex) {
+ case 0: return func.call(this, rest);
+ case 1: return func.call(this, arguments[0], rest);
+ case 2: return func.call(this, arguments[0], arguments[1], rest);
+ }
+ var args = Array(startIndex + 1);
+ for (index = 0; index < startIndex; index++) {
+ args[index] = arguments[index];
+ }
+ args[startIndex] = rest;
+ return func.apply(this, args);
+ };
+}
+
+// Is a given variable an object?
+function isObject(obj) {
+ var type = typeof obj;
+ return type === 'function' || (type === 'object' && !!obj);
+}
+
+// Is a given value equal to null?
+function isNull(obj) {
+ return obj === null;
+}
+
+// Is a given variable undefined?
+function isUndefined(obj) {
+ return obj === void 0;
+}
+
+// Is a given value a boolean?
+function isBoolean(obj) {
+ return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
+}
+
+// Is a given value a DOM element?
+function isElement(obj) {
+ return !!(obj && obj.nodeType === 1);
+}
+
+// Internal function for creating a `toString`-based type tester.
+function tagTester(name) {
+ var tag = '[object ' + name + ']';
+ return function(obj) {
+ return toString.call(obj) === tag;
+ };
+}
+
+var isString = tagTester('String');
+
+var isNumber = tagTester('Number');
+
+var isDate = tagTester('Date');
+
+var isRegExp = tagTester('RegExp');
+
+var isError = tagTester('Error');
+
+var isSymbol = tagTester('Symbol');
+
+var isArrayBuffer = tagTester('ArrayBuffer');
+
+var isFunction = tagTester('Function');
+
+// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old
+// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
+var nodelist = root.document && root.document.childNodes;
+if ( true && typeof Int8Array != 'object' && typeof nodelist != 'function') {
+ isFunction = function(obj) {
+ return typeof obj == 'function' || false;
+ };
+}
+
+var isFunction$1 = isFunction;
+
+var hasObjectTag = tagTester('Object');
+
+// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.
+// In IE 11, the most common among them, this problem also applies to
+// `Map`, `WeakMap` and `Set`.
+var hasStringTagBug = (
+ supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))
+ ),
+ isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));
+
+var isDataView = tagTester('DataView');
+
+// In IE 10 - Edge 13, we need a different heuristic
+// to determine whether an object is a `DataView`.
+function ie10IsDataView(obj) {
+ return obj != null && isFunction$1(obj.getInt8) && isArrayBuffer(obj.buffer);
+}
+
+var isDataView$1 = (hasStringTagBug ? ie10IsDataView : isDataView);
+
+// Is a given value an array?
+// Delegates to ECMA5's native `Array.isArray`.
+var isArray = nativeIsArray || tagTester('Array');
+
+// Internal function to check whether `key` is an own property name of `obj`.
+function has$1(obj, key) {
+ return obj != null && hasOwnProperty.call(obj, key);
+}
+
+var isArguments = tagTester('Arguments');
+
+// Define a fallback version of the method in browsers (ahem, IE < 9), where
+// there isn't any inspectable "Arguments" type.
+(function() {
+ if (!isArguments(arguments)) {
+ isArguments = function(obj) {
+ return has$1(obj, 'callee');
+ };
+ }
+}());
+
+var isArguments$1 = isArguments;
+
+// Is a given object a finite number?
+function isFinite$1(obj) {
+ return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));
+}
+
+// Is the given value `NaN`?
+function isNaN$1(obj) {
+ return isNumber(obj) && _isNaN(obj);
+}
+
+// Predicate-generating function. Often useful outside of Underscore.
+function constant(value) {
+ return function() {
+ return value;
+ };
+}
+
+// Common internal logic for `isArrayLike` and `isBufferLike`.
+function createSizePropertyCheck(getSizeProperty) {
+ return function(collection) {
+ var sizeProperty = getSizeProperty(collection);
+ return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;
+ }
+}
+
+// Internal helper to generate a function to obtain property `key` from `obj`.
+function shallowProperty(key) {
+ return function(obj) {
+ return obj == null ? void 0 : obj[key];
+ };
+}
+
+// Internal helper to obtain the `byteLength` property of an object.
+var getByteLength = shallowProperty('byteLength');
+
+// Internal helper to determine whether we should spend extensive checks against
+// `ArrayBuffer` et al.
+var isBufferLike = createSizePropertyCheck(getByteLength);
+
+// Is a given value a typed array?
+var typedArrayPattern = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
+function isTypedArray(obj) {
+ // `ArrayBuffer.isView` is the most future-proof, so use it when available.
+ // Otherwise, fall back on the above regular expression.
+ return nativeIsView ? (nativeIsView(obj) && !isDataView$1(obj)) :
+ isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));
+}
+
+var isTypedArray$1 = supportsArrayBuffer ? isTypedArray : constant(false);
+
+// Internal helper to obtain the `length` property of an object.
+var getLength = shallowProperty('length');
+
+// Internal helper to create a simple lookup structure.
+// `collectNonEnumProps` used to depend on `_.contains`, but this led to
+// circular imports. `emulatedSet` is a one-off solution that only works for
+// arrays of strings.
+function emulatedSet(keys) {
+ var hash = {};
+ for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
+ return {
+ contains: function(key) { return hash[key] === true; },
+ push: function(key) {
+ hash[key] = true;
+ return keys.push(key);
+ }
+ };
+}
+
+// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't
+// be iterated by `for key in ...` and thus missed. Extends `keys` in place if
+// needed.
+function collectNonEnumProps(obj, keys) {
+ keys = emulatedSet(keys);
+ var nonEnumIdx = nonEnumerableProps.length;
+ var constructor = obj.constructor;
+ var proto = (isFunction$1(constructor) && constructor.prototype) || ObjProto;
+
+ // Constructor is a special case.
+ var prop = 'constructor';
+ if (has$1(obj, prop) && !keys.contains(prop)) keys.push(prop);
+
+ while (nonEnumIdx--) {
+ prop = nonEnumerableProps[nonEnumIdx];
+ if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {
+ keys.push(prop);
+ }
+ }
+}
+
+// Retrieve the names of an object's own properties.
+// Delegates to **ECMAScript 5**'s native `Object.keys`.
+function keys(obj) {
+ if (!isObject(obj)) return [];
+ if (nativeKeys) return nativeKeys(obj);
+ var keys = [];
+ for (var key in obj) if (has$1(obj, key)) keys.push(key);
+ // Ahem, IE < 9.
+ if (hasEnumBug) collectNonEnumProps(obj, keys);
+ return keys;
+}
+
+// Is a given array, string, or object empty?
+// An "empty" object has no enumerable own-properties.
+function isEmpty(obj) {
+ if (obj == null) return true;
+ // Skip the more expensive `toString`-based type checks if `obj` has no
+ // `.length`.
+ var length = getLength(obj);
+ if (typeof length == 'number' && (
+ isArray(obj) || isString(obj) || isArguments$1(obj)
+ )) return length === 0;
+ return getLength(keys(obj)) === 0;
+}
+
+// Returns whether an object has a given set of `key:value` pairs.
+function isMatch(object, attrs) {
+ var _keys = keys(attrs), length = _keys.length;
+ if (object == null) return !length;
+ var obj = Object(object);
+ for (var i = 0; i < length; i++) {
+ var key = _keys[i];
+ if (attrs[key] !== obj[key] || !(key in obj)) return false;
+ }
+ return true;
+}
+
+// If Underscore is called as a function, it returns a wrapped object that can
+// be used OO-style. This wrapper holds altered versions of all functions added
+// through `_.mixin`. Wrapped objects may be chained.
+function _$1(obj) {
+ if (obj instanceof _$1) return obj;
+ if (!(this instanceof _$1)) return new _$1(obj);
+ this._wrapped = obj;
+}
+
+_$1.VERSION = VERSION;
+
+// Extracts the result from a wrapped and chained object.
+_$1.prototype.value = function() {
+ return this._wrapped;
+};
+
+// Provide unwrapping proxies for some methods used in engine operations
+// such as arithmetic and JSON stringification.
+_$1.prototype.valueOf = _$1.prototype.toJSON = _$1.prototype.value;
+
+_$1.prototype.toString = function() {
+ return String(this._wrapped);
+};
+
+// Internal function to wrap or shallow-copy an ArrayBuffer,
+// typed array or DataView to a new view, reusing the buffer.
+function toBufferView(bufferSource) {
+ return new Uint8Array(
+ bufferSource.buffer || bufferSource,
+ bufferSource.byteOffset || 0,
+ getByteLength(bufferSource)
+ );
+}
+
+// We use this string twice, so give it a name for minification.
+var tagDataView = '[object DataView]';
+
+// Internal recursive comparison function for `_.isEqual`.
+function eq(a, b, aStack, bStack) {
+ // Identical objects are equal. `0 === -0`, but they aren't identical.
+ // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).
+ if (a === b) return a !== 0 || 1 / a === 1 / b;
+ // `null` or `undefined` only equal to itself (strict comparison).
+ if (a == null || b == null) return false;
+ // `NaN`s are equivalent, but non-reflexive.
+ if (a !== a) return b !== b;
+ // Exhaust primitive checks
+ var type = typeof a;
+ if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;
+ return deepEq(a, b, aStack, bStack);
+}
+
+// Internal recursive comparison function for `_.isEqual`.
+function deepEq(a, b, aStack, bStack) {
+ // Unwrap any wrapped objects.
+ if (a instanceof _$1) a = a._wrapped;
+ if (b instanceof _$1) b = b._wrapped;
+ // Compare `[[Class]]` names.
+ var className = toString.call(a);
+ if (className !== toString.call(b)) return false;
+ // Work around a bug in IE 10 - Edge 13.
+ if (hasStringTagBug && className == '[object Object]' && isDataView$1(a)) {
+ if (!isDataView$1(b)) return false;
+ className = tagDataView;
+ }
+ switch (className) {
+ // These types are compared by value.
+ case '[object RegExp]':
+ // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
+ case '[object String]':
+ // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
+ // equivalent to `new String("5")`.
+ return '' + a === '' + b;
+ case '[object Number]':
+ // `NaN`s are equivalent, but non-reflexive.
+ // Object(NaN) is equivalent to NaN.
+ if (+a !== +a) return +b !== +b;
+ // An `egal` comparison is performed for other numeric values.
+ return +a === 0 ? 1 / +a === 1 / b : +a === +b;
+ case '[object Date]':
+ case '[object Boolean]':
+ // Coerce dates and booleans to numeric primitive values. Dates are compared by their
+ // millisecond representations. Note that invalid dates with millisecond representations
+ // of `NaN` are not equivalent.
+ return +a === +b;
+ case '[object Symbol]':
+ return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);
+ case '[object ArrayBuffer]':
+ case tagDataView:
+ // Coerce to typed array so we can fall through.
+ return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);
+ }
+
+ var areArrays = className === '[object Array]';
+ if (!areArrays && isTypedArray$1(a)) {
+ var byteLength = getByteLength(a);
+ if (byteLength !== getByteLength(b)) return false;
+ if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;
+ areArrays = true;
+ }
+ if (!areArrays) {
+ if (typeof a != 'object' || typeof b != 'object') return false;
+
+ // Objects with different constructors are not equivalent, but `Object`s or `Array`s
+ // from different frames are.
+ var aCtor = a.constructor, bCtor = b.constructor;
+ if (aCtor !== bCtor && !(isFunction$1(aCtor) && aCtor instanceof aCtor &&
+ isFunction$1(bCtor) && bCtor instanceof bCtor)
+ && ('constructor' in a && 'constructor' in b)) {
+ return false;
+ }
+ }
+ // Assume equality for cyclic structures. The algorithm for detecting cyclic
+ // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
+
+ // Initializing stack of traversed objects.
+ // It's done here since we only need them for objects and arrays comparison.
+ aStack = aStack || [];
+ bStack = bStack || [];
+ var length = aStack.length;
+ while (length--) {
+ // Linear search. Performance is inversely proportional to the number of
+ // unique nested structures.
+ if (aStack[length] === a) return bStack[length] === b;
+ }
+
+ // Add the first object to the stack of traversed objects.
+ aStack.push(a);
+ bStack.push(b);
+
+ // Recursively compare objects and arrays.
+ if (areArrays) {
+ // Compare array lengths to determine if a deep comparison is necessary.
+ length = a.length;
+ if (length !== b.length) return false;
+ // Deep compare the contents, ignoring non-numeric properties.
+ while (length--) {
+ if (!eq(a[length], b[length], aStack, bStack)) return false;
+ }
+ } else {
+ // Deep compare objects.
+ var _keys = keys(a), key;
+ length = _keys.length;
+ // Ensure that both objects contain the same number of properties before comparing deep equality.
+ if (keys(b).length !== length) return false;
+ while (length--) {
+ // Deep compare each member
+ key = _keys[length];
+ if (!(has$1(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
+ }
+ }
+ // Remove the first object from the stack of traversed objects.
+ aStack.pop();
+ bStack.pop();
+ return true;
+}
+
+// Perform a deep comparison to check if two objects are equal.
+function isEqual(a, b) {
+ return eq(a, b);
+}
+
+// Retrieve all the enumerable property names of an object.
+function allKeys(obj) {
+ if (!isObject(obj)) return [];
+ var keys = [];
+ for (var key in obj) keys.push(key);
+ // Ahem, IE < 9.
+ if (hasEnumBug) collectNonEnumProps(obj, keys);
+ return keys;
+}
+
+// Since the regular `Object.prototype.toString` type tests don't work for
+// some types in IE 11, we use a fingerprinting heuristic instead, based
+// on the methods. It's not great, but it's the best we got.
+// The fingerprint method lists are defined below.
+function ie11fingerprint(methods) {
+ var length = getLength(methods);
+ return function(obj) {
+ if (obj == null) return false;
+ // `Map`, `WeakMap` and `Set` have no enumerable keys.
+ var keys = allKeys(obj);
+ if (getLength(keys)) return false;
+ for (var i = 0; i < length; i++) {
+ if (!isFunction$1(obj[methods[i]])) return false;
+ }
+ // If we are testing against `WeakMap`, we need to ensure that
+ // `obj` doesn't have a `forEach` method in order to distinguish
+ // it from a regular `Map`.
+ return methods !== weakMapMethods || !isFunction$1(obj[forEachName]);
+ };
+}
+
+// In the interest of compact minification, we write
+// each string in the fingerprints only once.
+var forEachName = 'forEach',
+ hasName = 'has',
+ commonInit = ['clear', 'delete'],
+ mapTail = ['get', hasName, 'set'];
+
+// `Map`, `WeakMap` and `Set` each have slightly different
+// combinations of the above sublists.
+var mapMethods = commonInit.concat(forEachName, mapTail),
+ weakMapMethods = commonInit.concat(mapTail),
+ setMethods = ['add'].concat(commonInit, forEachName, hasName);
+
+var isMap = isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');
+
+var isWeakMap = isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');
+
+var isSet = isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');
+
+var isWeakSet = tagTester('WeakSet');
+
+// Retrieve the values of an object's properties.
+function values(obj) {
+ var _keys = keys(obj);
+ var length = _keys.length;
+ var values = Array(length);
+ for (var i = 0; i < length; i++) {
+ values[i] = obj[_keys[i]];
+ }
+ return values;
+}
+
+// Convert an object into a list of `[key, value]` pairs.
+// The opposite of `_.object` with one argument.
+function pairs(obj) {
+ var _keys = keys(obj);
+ var length = _keys.length;
+ var pairs = Array(length);
+ for (var i = 0; i < length; i++) {
+ pairs[i] = [_keys[i], obj[_keys[i]]];
+ }
+ return pairs;
+}
+
+// Invert the keys and values of an object. The values must be serializable.
+function invert(obj) {
+ var result = {};
+ var _keys = keys(obj);
+ for (var i = 0, length = _keys.length; i < length; i++) {
+ result[obj[_keys[i]]] = _keys[i];
+ }
+ return result;
+}
+
+// Return a sorted list of the function names available on the object.
+function functions(obj) {
+ var names = [];
+ for (var key in obj) {
+ if (isFunction$1(obj[key])) names.push(key);
+ }
+ return names.sort();
+}
+
+// An internal function for creating assigner functions.
+function createAssigner(keysFunc, defaults) {
+ return function(obj) {
+ var length = arguments.length;
+ if (defaults) obj = Object(obj);
+ if (length < 2 || obj == null) return obj;
+ for (var index = 1; index < length; index++) {
+ var source = arguments[index],
+ keys = keysFunc(source),
+ l = keys.length;
+ for (var i = 0; i < l; i++) {
+ var key = keys[i];
+ if (!defaults || obj[key] === void 0) obj[key] = source[key];
+ }
+ }
+ return obj;
+ };
+}
+
+// Extend a given object with all the properties in passed-in object(s).
+var extend = createAssigner(allKeys);
+
+// Assigns a given object with all the own properties in the passed-in
+// object(s).
+// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
+var extendOwn = createAssigner(keys);
+
+// Fill in a given object with default properties.
+var defaults = createAssigner(allKeys, true);
+
+// Create a naked function reference for surrogate-prototype-swapping.
+function ctor() {
+ return function(){};
+}
+
+// An internal function for creating a new object that inherits from another.
+function baseCreate(prototype) {
+ if (!isObject(prototype)) return {};
+ if (nativeCreate) return nativeCreate(prototype);
+ var Ctor = ctor();
+ Ctor.prototype = prototype;
+ var result = new Ctor;
+ Ctor.prototype = null;
+ return result;
+}
+
+// Creates an object that inherits from the given prototype object.
+// If additional properties are provided then they will be added to the
+// created object.
+function create(prototype, props) {
+ var result = baseCreate(prototype);
+ if (props) extendOwn(result, props);
+ return result;
+}
+
+// Create a (shallow-cloned) duplicate of an object.
+function clone(obj) {
+ if (!isObject(obj)) return obj;
+ return isArray(obj) ? obj.slice() : extend({}, obj);
+}
+
+// Invokes `interceptor` with the `obj` and then returns `obj`.
+// The primary purpose of this method is to "tap into" a method chain, in
+// order to perform operations on intermediate results within the chain.
+function tap(obj, interceptor) {
+ interceptor(obj);
+ return obj;
+}
+
+// Normalize a (deep) property `path` to array.
+// Like `_.iteratee`, this function can be customized.
+function toPath$1(path) {
+ return isArray(path) ? path : [path];
+}
+_$1.toPath = toPath$1;
+
+// Internal wrapper for `_.toPath` to enable minification.
+// Similar to `cb` for `_.iteratee`.
+function toPath(path) {
+ return _$1.toPath(path);
+}
+
+// Internal function to obtain a nested property in `obj` along `path`.
+function deepGet(obj, path) {
+ var length = path.length;
+ for (var i = 0; i < length; i++) {
+ if (obj == null) return void 0;
+ obj = obj[path[i]];
+ }
+ return length ? obj : void 0;
+}
+
+// Get the value of the (deep) property on `path` from `object`.
+// If any property in `path` does not exist or if the value is
+// `undefined`, return `defaultValue` instead.
+// The `path` is normalized through `_.toPath`.
+function get(object, path, defaultValue) {
+ var value = deepGet(object, toPath(path));
+ return isUndefined(value) ? defaultValue : value;
+}
+
+// Shortcut function for checking if an object has a given property directly on
+// itself (in other words, not on a prototype). Unlike the internal `has`
+// function, this public version can also traverse nested properties.
+function has(obj, path) {
+ path = toPath(path);
+ var length = path.length;
+ for (var i = 0; i < length; i++) {
+ var key = path[i];
+ if (!has$1(obj, key)) return false;
+ obj = obj[key];
+ }
+ return !!length;
+}
+
+// Keep the identity function around for default iteratees.
+function identity(value) {
+ return value;
+}
+
+// Returns a predicate for checking whether an object has a given set of
+// `key:value` pairs.
+function matcher(attrs) {
+ attrs = extendOwn({}, attrs);
+ return function(obj) {
+ return isMatch(obj, attrs);
+ };
+}
+
+// Creates a function that, when passed an object, will traverse that object’s
+// properties down the given `path`, specified as an array of keys or indices.
+function property(path) {
+ path = toPath(path);
+ return function(obj) {
+ return deepGet(obj, path);
+ };
+}
+
+// Internal function that returns an efficient (for current engines) version
+// of the passed-in callback, to be repeatedly applied in other Underscore
+// functions.
+function optimizeCb(func, context, argCount) {
+ if (context === void 0) return func;
+ switch (argCount == null ? 3 : argCount) {
+ case 1: return function(value) {
+ return func.call(context, value);
+ };
+ // The 2-argument case is omitted because we’re not using it.
+ case 3: return function(value, index, collection) {
+ return func.call(context, value, index, collection);
+ };
+ case 4: return function(accumulator, value, index, collection) {
+ return func.call(context, accumulator, value, index, collection);
+ };
+ }
+ return function() {
+ return func.apply(context, arguments);
+ };
+}
+
+// An internal function to generate callbacks that can be applied to each
+// element in a collection, returning the desired result — either `_.identity`,
+// an arbitrary callback, a property matcher, or a property accessor.
+function baseIteratee(value, context, argCount) {
+ if (value == null) return identity;
+ if (isFunction$1(value)) return optimizeCb(value, context, argCount);
+ if (isObject(value) && !isArray(value)) return matcher(value);
+ return property(value);
+}
+
+// External wrapper for our callback generator. Users may customize
+// `_.iteratee` if they want additional predicate/iteratee shorthand styles.
+// This abstraction hides the internal-only `argCount` argument.
+function iteratee(value, context) {
+ return baseIteratee(value, context, Infinity);
+}
+_$1.iteratee = iteratee;
+
+// The function we call internally to generate a callback. It invokes
+// `_.iteratee` if overridden, otherwise `baseIteratee`.
+function cb(value, context, argCount) {
+ if (_$1.iteratee !== iteratee) return _$1.iteratee(value, context);
+ return baseIteratee(value, context, argCount);
+}
+
+// Returns the results of applying the `iteratee` to each element of `obj`.
+// In contrast to `_.map` it returns an object.
+function mapObject(obj, iteratee, context) {
+ iteratee = cb(iteratee, context);
+ var _keys = keys(obj),
+ length = _keys.length,
+ results = {};
+ for (var index = 0; index < length; index++) {
+ var currentKey = _keys[index];
+ results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
+ }
+ return results;
+}
+
+// Predicate-generating function. Often useful outside of Underscore.
+function noop(){}
+
+// Generates a function for a given object that returns a given property.
+function propertyOf(obj) {
+ if (obj == null) return noop;
+ return function(path) {
+ return get(obj, path);
+ };
+}
+
+// Run a function **n** times.
+function times(n, iteratee, context) {
+ var accum = Array(Math.max(0, n));
+ iteratee = optimizeCb(iteratee, context, 1);
+ for (var i = 0; i < n; i++) accum[i] = iteratee(i);
+ return accum;
+}
+
+// Return a random integer between `min` and `max` (inclusive).
+function random(min, max) {
+ if (max == null) {
+ max = min;
+ min = 0;
+ }
+ return min + Math.floor(Math.random() * (max - min + 1));
+}
+
+// A (possibly faster) way to get the current timestamp as an integer.
+var now = Date.now || function() {
+ return new Date().getTime();
+};
+
+// Internal helper to generate functions for escaping and unescaping strings
+// to/from HTML interpolation.
+function createEscaper(map) {
+ var escaper = function(match) {
+ return map[match];
+ };
+ // Regexes for identifying a key that needs to be escaped.
+ var source = '(?:' + keys(map).join('|') + ')';
+ var testRegexp = RegExp(source);
+ var replaceRegexp = RegExp(source, 'g');
+ return function(string) {
+ string = string == null ? '' : '' + string;
+ return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
+ };
+}
+
+// Internal list of HTML entities for escaping.
+var escapeMap = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": ''',
+ '`': '`'
+};
+
+// Function for escaping strings to HTML interpolation.
+var _escape = createEscaper(escapeMap);
+
+// Internal list of HTML entities for unescaping.
+var unescapeMap = invert(escapeMap);
+
+// Function for unescaping strings from HTML interpolation.
+var _unescape = createEscaper(unescapeMap);
+
+// By default, Underscore uses ERB-style template delimiters. Change the
+// following template settings to use alternative delimiters.
+var templateSettings = _$1.templateSettings = {
+ evaluate: /<%([\s\S]+?)%>/g,
+ interpolate: /<%=([\s\S]+?)%>/g,
+ escape: /<%-([\s\S]+?)%>/g
+};
+
+// When customizing `_.templateSettings`, if you don't want to define an
+// interpolation, evaluation or escaping regex, we need one that is
+// guaranteed not to match.
+var noMatch = /(.)^/;
+
+// Certain characters need to be escaped so that they can be put into a
+// string literal.
+var escapes = {
+ "'": "'",
+ '\\': '\\',
+ '\r': 'r',
+ '\n': 'n',
+ '\u2028': 'u2028',
+ '\u2029': 'u2029'
+};
+
+var escapeRegExp = /\\|'|\r|\n|\u2028|\u2029/g;
+
+function escapeChar(match) {
+ return '\\' + escapes[match];
+}
+
+// In order to prevent third-party code injection through
+// `_.templateSettings.variable`, we test it against the following regular
+// expression. It is intentionally a bit more liberal than just matching valid
+// identifiers, but still prevents possible loopholes through defaults or
+// destructuring assignment.
+var bareIdentifier = /^\s*(\w|\$)+\s*$/;
+
+// JavaScript micro-templating, similar to John Resig's implementation.
+// Underscore templating handles arbitrary delimiters, preserves whitespace,
+// and correctly escapes quotes within interpolated code.
+// NB: `oldSettings` only exists for backwards compatibility.
+function template(text, settings, oldSettings) {
+ if (!settings && oldSettings) settings = oldSettings;
+ settings = defaults({}, settings, _$1.templateSettings);
+
+ // Combine delimiters into one regular expression via alternation.
+ var matcher = RegExp([
+ (settings.escape || noMatch).source,
+ (settings.interpolate || noMatch).source,
+ (settings.evaluate || noMatch).source
+ ].join('|') + '|$', 'g');
+
+ // Compile the template source, escaping string literals appropriately.
+ var index = 0;
+ var source = "__p+='";
+ text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
+ source += text.slice(index, offset).replace(escapeRegExp, escapeChar);
+ index = offset + match.length;
+
+ if (escape) {
+ source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
+ } else if (interpolate) {
+ source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
+ } else if (evaluate) {
+ source += "';\n" + evaluate + "\n__p+='";
+ }
+
+ // Adobe VMs need the match returned to produce the correct offset.
+ return match;
+ });
+ source += "';\n";
+
+ var argument = settings.variable;
+ if (argument) {
+ // Insure against third-party code injection. (CVE-2021-23358)
+ if (!bareIdentifier.test(argument)) throw new Error(
+ 'variable is not a bare identifier: ' + argument
+ );
+ } else {
+ // If a variable is not specified, place data values in local scope.
+ source = 'with(obj||{}){\n' + source + '}\n';
+ argument = 'obj';
+ }
+
+ source = "var __t,__p='',__j=Array.prototype.join," +
+ "print=function(){__p+=__j.call(arguments,'');};\n" +
+ source + 'return __p;\n';
+
+ var render;
+ try {
+ render = new Function(argument, '_', source);
+ } catch (e) {
+ e.source = source;
+ throw e;
+ }
+
+ var template = function(data) {
+ return render.call(this, data, _$1);
+ };
+
+ // Provide the compiled source as a convenience for precompilation.
+ template.source = 'function(' + argument + '){\n' + source + '}';
+
+ return template;
+}
+
+// Traverses the children of `obj` along `path`. If a child is a function, it
+// is invoked with its parent as context. Returns the value of the final
+// child, or `fallback` if any child is undefined.
+function result(obj, path, fallback) {
+ path = toPath(path);
+ var length = path.length;
+ if (!length) {
+ return isFunction$1(fallback) ? fallback.call(obj) : fallback;
+ }
+ for (var i = 0; i < length; i++) {
+ var prop = obj == null ? void 0 : obj[path[i]];
+ if (prop === void 0) {
+ prop = fallback;
+ i = length; // Ensure we don't continue iterating.
+ }
+ obj = isFunction$1(prop) ? prop.call(obj) : prop;
+ }
+ return obj;
+}
+
+// Generate a unique integer id (unique within the entire client session).
+// Useful for temporary DOM ids.
+var idCounter = 0;
+function uniqueId(prefix) {
+ var id = ++idCounter + '';
+ return prefix ? prefix + id : id;
+}
+
+// Start chaining a wrapped Underscore object.
+function chain(obj) {
+ var instance = _$1(obj);
+ instance._chain = true;
+ return instance;
+}
+
+// Internal function to execute `sourceFunc` bound to `context` with optional
+// `args`. Determines whether to execute a function as a constructor or as a
+// normal function.
+function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
+ if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
+ var self = baseCreate(sourceFunc.prototype);
+ var result = sourceFunc.apply(self, args);
+ if (isObject(result)) return result;
+ return self;
+}
+
+// Partially apply a function by creating a version that has had some of its
+// arguments pre-filled, without changing its dynamic `this` context. `_` acts
+// as a placeholder by default, allowing any combination of arguments to be
+// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.
+var partial = restArguments(function(func, boundArgs) {
+ var placeholder = partial.placeholder;
+ var bound = function() {
+ var position = 0, length = boundArgs.length;
+ var args = Array(length);
+ for (var i = 0; i < length; i++) {
+ args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];
+ }
+ while (position < arguments.length) args.push(arguments[position++]);
+ return executeBound(func, bound, this, this, args);
+ };
+ return bound;
+});
+
+partial.placeholder = _$1;
+
+// Create a function bound to a given object (assigning `this`, and arguments,
+// optionally).
+var bind = restArguments(function(func, context, args) {
+ if (!isFunction$1(func)) throw new TypeError('Bind must be called on a function');
+ var bound = restArguments(function(callArgs) {
+ return executeBound(func, bound, context, this, args.concat(callArgs));
+ });
+ return bound;
+});
+
+// Internal helper for collection methods to determine whether a collection
+// should be iterated as an array or as an object.
+// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
+// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
+var isArrayLike = createSizePropertyCheck(getLength);
+
+// Internal implementation of a recursive `flatten` function.
+function flatten$1(input, depth, strict, output) {
+ output = output || [];
+ if (!depth && depth !== 0) {
+ depth = Infinity;
+ } else if (depth <= 0) {
+ return output.concat(input);
+ }
+ var idx = output.length;
+ for (var i = 0, length = getLength(input); i < length; i++) {
+ var value = input[i];
+ if (isArrayLike(value) && (isArray(value) || isArguments$1(value))) {
+ // Flatten current level of array or arguments object.
+ if (depth > 1) {
+ flatten$1(value, depth - 1, strict, output);
+ idx = output.length;
+ } else {
+ var j = 0, len = value.length;
+ while (j < len) output[idx++] = value[j++];
+ }
+ } else if (!strict) {
+ output[idx++] = value;
+ }
+ }
+ return output;
+}
+
+// Bind a number of an object's methods to that object. Remaining arguments
+// are the method names to be bound. Useful for ensuring that all callbacks
+// defined on an object belong to it.
+var bindAll = restArguments(function(obj, keys) {
+ keys = flatten$1(keys, false, false);
+ var index = keys.length;
+ if (index < 1) throw new Error('bindAll must be passed function names');
+ while (index--) {
+ var key = keys[index];
+ obj[key] = bind(obj[key], obj);
+ }
+ return obj;
+});
+
+// Memoize an expensive function by storing its results.
+function memoize(func, hasher) {
+ var memoize = function(key) {
+ var cache = memoize.cache;
+ var address = '' + (hasher ? hasher.apply(this, arguments) : key);
+ if (!has$1(cache, address)) cache[address] = func.apply(this, arguments);
+ return cache[address];
+ };
+ memoize.cache = {};
+ return memoize;
+}
+
+// Delays a function for the given number of milliseconds, and then calls
+// it with the arguments supplied.
+var delay = restArguments(function(func, wait, args) {
+ return setTimeout(function() {
+ return func.apply(null, args);
+ }, wait);
+});
+
+// Defers a function, scheduling it to run after the current call stack has
+// cleared.
+var defer = partial(delay, _$1, 1);
+
+// Returns a function, that, when invoked, will only be triggered at most once
+// during a given window of time. Normally, the throttled function will run
+// as much as it can, without ever going more than once per `wait` duration;
+// but if you'd like to disable the execution on the leading edge, pass
+// `{leading: false}`. To disable execution on the trailing edge, ditto.
+function throttle(func, wait, options) {
+ var timeout, context, args, result;
+ var previous = 0;
+ if (!options) options = {};
+
+ var later = function() {
+ previous = options.leading === false ? 0 : now();
+ timeout = null;
+ result = func.apply(context, args);
+ if (!timeout) context = args = null;
+ };
+
+ var throttled = function() {
+ var _now = now();
+ if (!previous && options.leading === false) previous = _now;
+ var remaining = wait - (_now - previous);
+ context = this;
+ args = arguments;
+ if (remaining <= 0 || remaining > wait) {
+ if (timeout) {
+ clearTimeout(timeout);
+ timeout = null;
+ }
+ previous = _now;
+ result = func.apply(context, args);
+ if (!timeout) context = args = null;
+ } else if (!timeout && options.trailing !== false) {
+ timeout = setTimeout(later, remaining);
+ }
+ return result;
+ };
+
+ throttled.cancel = function() {
+ clearTimeout(timeout);
+ previous = 0;
+ timeout = context = args = null;
+ };
+
+ return throttled;
+}
+
+// When a sequence of calls of the returned function ends, the argument
+// function is triggered. The end of a sequence is defined by the `wait`
+// parameter. If `immediate` is passed, the argument function will be
+// triggered at the beginning of the sequence instead of at the end.
+function debounce(func, wait, immediate) {
+ var timeout, previous, args, result, context;
+
+ var later = function() {
+ var passed = now() - previous;
+ if (wait > passed) {
+ timeout = setTimeout(later, wait - passed);
+ } else {
+ timeout = null;
+ if (!immediate) result = func.apply(context, args);
+ // This check is needed because `func` can recursively invoke `debounced`.
+ if (!timeout) args = context = null;
+ }
+ };
+
+ var debounced = restArguments(function(_args) {
+ context = this;
+ args = _args;
+ previous = now();
+ if (!timeout) {
+ timeout = setTimeout(later, wait);
+ if (immediate) result = func.apply(context, args);
+ }
+ return result;
+ });
+
+ debounced.cancel = function() {
+ clearTimeout(timeout);
+ timeout = args = context = null;
+ };
+
+ return debounced;
+}
+
+// Returns the first function passed as an argument to the second,
+// allowing you to adjust arguments, run code before and after, and
+// conditionally execute the original function.
+function wrap(func, wrapper) {
+ return partial(wrapper, func);
+}
+
+// Returns a negated version of the passed-in predicate.
+function negate(predicate) {
+ return function() {
+ return !predicate.apply(this, arguments);
+ };
+}
+
+// Returns a function that is the composition of a list of functions, each
+// consuming the return value of the function that follows.
+function compose() {
+ var args = arguments;
+ var start = args.length - 1;
+ return function() {
+ var i = start;
+ var result = args[start].apply(this, arguments);
+ while (i--) result = args[i].call(this, result);
+ return result;
+ };
+}
+
+// Returns a function that will only be executed on and after the Nth call.
+function after(times, func) {
+ return function() {
+ if (--times < 1) {
+ return func.apply(this, arguments);
+ }
+ };
+}
+
+// Returns a function that will only be executed up to (but not including) the
+// Nth call.
+function before(times, func) {
+ var memo;
+ return function() {
+ if (--times > 0) {
+ memo = func.apply(this, arguments);
+ }
+ if (times <= 1) func = null;
+ return memo;
+ };
+}
+
+// Returns a function that will be executed at most one time, no matter how
+// often you call it. Useful for lazy initialization.
+var once = partial(before, 2);
+
+// Returns the first key on an object that passes a truth test.
+function findKey(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var _keys = keys(obj), key;
+ for (var i = 0, length = _keys.length; i < length; i++) {
+ key = _keys[i];
+ if (predicate(obj[key], key, obj)) return key;
+ }
+}
+
+// Internal function to generate `_.findIndex` and `_.findLastIndex`.
+function createPredicateIndexFinder(dir) {
+ return function(array, predicate, context) {
+ predicate = cb(predicate, context);
+ var length = getLength(array);
+ var index = dir > 0 ? 0 : length - 1;
+ for (; index >= 0 && index < length; index += dir) {
+ if (predicate(array[index], index, array)) return index;
+ }
+ return -1;
+ };
+}
+
+// Returns the first index on an array-like that passes a truth test.
+var findIndex = createPredicateIndexFinder(1);
+
+// Returns the last index on an array-like that passes a truth test.
+var findLastIndex = createPredicateIndexFinder(-1);
+
+// Use a comparator function to figure out the smallest index at which
+// an object should be inserted so as to maintain order. Uses binary search.
+function sortedIndex(array, obj, iteratee, context) {
+ iteratee = cb(iteratee, context, 1);
+ var value = iteratee(obj);
+ var low = 0, high = getLength(array);
+ while (low < high) {
+ var mid = Math.floor((low + high) / 2);
+ if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
+ }
+ return low;
+}
+
+// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.
+function createIndexFinder(dir, predicateFind, sortedIndex) {
+ return function(array, item, idx) {
+ var i = 0, length = getLength(array);
+ if (typeof idx == 'number') {
+ if (dir > 0) {
+ i = idx >= 0 ? idx : Math.max(idx + length, i);
+ } else {
+ length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
+ }
+ } else if (sortedIndex && idx && length) {
+ idx = sortedIndex(array, item);
+ return array[idx] === item ? idx : -1;
+ }
+ if (item !== item) {
+ idx = predicateFind(slice.call(array, i, length), isNaN$1);
+ return idx >= 0 ? idx + i : -1;
+ }
+ for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
+ if (array[idx] === item) return idx;
+ }
+ return -1;
+ };
+}
+
+// Return the position of the first occurrence of an item in an array,
+// or -1 if the item is not included in the array.
+// If the array is large and already in sort order, pass `true`
+// for **isSorted** to use binary search.
+var indexOf = createIndexFinder(1, findIndex, sortedIndex);
+
+// Return the position of the last occurrence of an item in an array,
+// or -1 if the item is not included in the array.
+var lastIndexOf = createIndexFinder(-1, findLastIndex);
+
+// Return the first value which passes a truth test.
+function find(obj, predicate, context) {
+ var keyFinder = isArrayLike(obj) ? findIndex : findKey;
+ var key = keyFinder(obj, predicate, context);
+ if (key !== void 0 && key !== -1) return obj[key];
+}
+
+// Convenience version of a common use case of `_.find`: getting the first
+// object containing specific `key:value` pairs.
+function findWhere(obj, attrs) {
+ return find(obj, matcher(attrs));
+}
+
+// The cornerstone for collection functions, an `each`
+// implementation, aka `forEach`.
+// Handles raw objects in addition to array-likes. Treats all
+// sparse array-likes as if they were dense.
+function each(obj, iteratee, context) {
+ iteratee = optimizeCb(iteratee, context);
+ var i, length;
+ if (isArrayLike(obj)) {
+ for (i = 0, length = obj.length; i < length; i++) {
+ iteratee(obj[i], i, obj);
+ }
+ } else {
+ var _keys = keys(obj);
+ for (i = 0, length = _keys.length; i < length; i++) {
+ iteratee(obj[_keys[i]], _keys[i], obj);
+ }
+ }
+ return obj;
+}
+
+// Return the results of applying the iteratee to each element.
+function map(obj, iteratee, context) {
+ iteratee = cb(iteratee, context);
+ var _keys = !isArrayLike(obj) && keys(obj),
+ length = (_keys || obj).length,
+ results = Array(length);
+ for (var index = 0; index < length; index++) {
+ var currentKey = _keys ? _keys[index] : index;
+ results[index] = iteratee(obj[currentKey], currentKey, obj);
+ }
+ return results;
+}
+
+// Internal helper to create a reducing function, iterating left or right.
+function createReduce(dir) {
+ // Wrap code that reassigns argument variables in a separate function than
+ // the one that accesses `arguments.length` to avoid a perf hit. (#1991)
+ var reducer = function(obj, iteratee, memo, initial) {
+ var _keys = !isArrayLike(obj) && keys(obj),
+ length = (_keys || obj).length,
+ index = dir > 0 ? 0 : length - 1;
+ if (!initial) {
+ memo = obj[_keys ? _keys[index] : index];
+ index += dir;
+ }
+ for (; index >= 0 && index < length; index += dir) {
+ var currentKey = _keys ? _keys[index] : index;
+ memo = iteratee(memo, obj[currentKey], currentKey, obj);
+ }
+ return memo;
+ };
+
+ return function(obj, iteratee, memo, context) {
+ var initial = arguments.length >= 3;
+ return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);
+ };
+}
+
+// **Reduce** builds up a single result from a list of values, aka `inject`,
+// or `foldl`.
+var reduce = createReduce(1);
+
+// The right-associative version of reduce, also known as `foldr`.
+var reduceRight = createReduce(-1);
+
+// Return all the elements that pass a truth test.
+function filter(obj, predicate, context) {
+ var results = [];
+ predicate = cb(predicate, context);
+ each(obj, function(value, index, list) {
+ if (predicate(value, index, list)) results.push(value);
+ });
+ return results;
+}
+
+// Return all the elements for which a truth test fails.
+function reject(obj, predicate, context) {
+ return filter(obj, negate(cb(predicate)), context);
+}
+
+// Determine whether all of the elements pass a truth test.
+function every(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var _keys = !isArrayLike(obj) && keys(obj),
+ length = (_keys || obj).length;
+ for (var index = 0; index < length; index++) {
+ var currentKey = _keys ? _keys[index] : index;
+ if (!predicate(obj[currentKey], currentKey, obj)) return false;
+ }
+ return true;
+}
+
+// Determine if at least one element in the object passes a truth test.
+function some(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var _keys = !isArrayLike(obj) && keys(obj),
+ length = (_keys || obj).length;
+ for (var index = 0; index < length; index++) {
+ var currentKey = _keys ? _keys[index] : index;
+ if (predicate(obj[currentKey], currentKey, obj)) return true;
+ }
+ return false;
+}
+
+// Determine if the array or object contains a given item (using `===`).
+function contains(obj, item, fromIndex, guard) {
+ if (!isArrayLike(obj)) obj = values(obj);
+ if (typeof fromIndex != 'number' || guard) fromIndex = 0;
+ return indexOf(obj, item, fromIndex) >= 0;
+}
+
+// Invoke a method (with arguments) on every item in a collection.
+var invoke = restArguments(function(obj, path, args) {
+ var contextPath, func;
+ if (isFunction$1(path)) {
+ func = path;
+ } else {
+ path = toPath(path);
+ contextPath = path.slice(0, -1);
+ path = path[path.length - 1];
+ }
+ return map(obj, function(context) {
+ var method = func;
+ if (!method) {
+ if (contextPath && contextPath.length) {
+ context = deepGet(context, contextPath);
+ }
+ if (context == null) return void 0;
+ method = context[path];
+ }
+ return method == null ? method : method.apply(context, args);
+ });
+});
+
+// Convenience version of a common use case of `_.map`: fetching a property.
+function pluck(obj, key) {
+ return map(obj, property(key));
+}
+
+// Convenience version of a common use case of `_.filter`: selecting only
+// objects containing specific `key:value` pairs.
+function where(obj, attrs) {
+ return filter(obj, matcher(attrs));
+}
+
+// Return the maximum element (or element-based computation).
+function max(obj, iteratee, context) {
+ var result = -Infinity, lastComputed = -Infinity,
+ value, computed;
+ if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
+ obj = isArrayLike(obj) ? obj : values(obj);
+ for (var i = 0, length = obj.length; i < length; i++) {
+ value = obj[i];
+ if (value != null && value > result) {
+ result = value;
+ }
+ }
+ } else {
+ iteratee = cb(iteratee, context);
+ each(obj, function(v, index, list) {
+ computed = iteratee(v, index, list);
+ if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {
+ result = v;
+ lastComputed = computed;
+ }
+ });
+ }
+ return result;
+}
+
+// Return the minimum element (or element-based computation).
+function min(obj, iteratee, context) {
+ var result = Infinity, lastComputed = Infinity,
+ value, computed;
+ if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
+ obj = isArrayLike(obj) ? obj : values(obj);
+ for (var i = 0, length = obj.length; i < length; i++) {
+ value = obj[i];
+ if (value != null && value < result) {
+ result = value;
+ }
+ }
+ } else {
+ iteratee = cb(iteratee, context);
+ each(obj, function(v, index, list) {
+ computed = iteratee(v, index, list);
+ if (computed < lastComputed || (computed === Infinity && result === Infinity)) {
+ result = v;
+ lastComputed = computed;
+ }
+ });
+ }
+ return result;
+}
+
+// Safely create a real, live array from anything iterable.
+var reStrSymbol = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
+function toArray(obj) {
+ if (!obj) return [];
+ if (isArray(obj)) return slice.call(obj);
+ if (isString(obj)) {
+ // Keep surrogate pair characters together.
+ return obj.match(reStrSymbol);
+ }
+ if (isArrayLike(obj)) return map(obj, identity);
+ return values(obj);
+}
+
+// Sample **n** random values from a collection using the modern version of the
+// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
+// If **n** is not specified, returns a single random element.
+// The internal `guard` argument allows it to work with `_.map`.
+function sample(obj, n, guard) {
+ if (n == null || guard) {
+ if (!isArrayLike(obj)) obj = values(obj);
+ return obj[random(obj.length - 1)];
+ }
+ var sample = toArray(obj);
+ var length = getLength(sample);
+ n = Math.max(Math.min(n, length), 0);
+ var last = length - 1;
+ for (var index = 0; index < n; index++) {
+ var rand = random(index, last);
+ var temp = sample[index];
+ sample[index] = sample[rand];
+ sample[rand] = temp;
+ }
+ return sample.slice(0, n);
+}
+
+// Shuffle a collection.
+function shuffle(obj) {
+ return sample(obj, Infinity);
+}
+
+// Sort the object's values by a criterion produced by an iteratee.
+function sortBy(obj, iteratee, context) {
+ var index = 0;
+ iteratee = cb(iteratee, context);
+ return pluck(map(obj, function(value, key, list) {
+ return {
+ value: value,
+ index: index++,
+ criteria: iteratee(value, key, list)
+ };
+ }).sort(function(left, right) {
+ var a = left.criteria;
+ var b = right.criteria;
+ if (a !== b) {
+ if (a > b || a === void 0) return 1;
+ if (a < b || b === void 0) return -1;
+ }
+ return left.index - right.index;
+ }), 'value');
+}
+
+// An internal function used for aggregate "group by" operations.
+function group(behavior, partition) {
+ return function(obj, iteratee, context) {
+ var result = partition ? [[], []] : {};
+ iteratee = cb(iteratee, context);
+ each(obj, function(value, index) {
+ var key = iteratee(value, index, obj);
+ behavior(result, value, key);
+ });
+ return result;
+ };
+}
+
+// Groups the object's values by a criterion. Pass either a string attribute
+// to group by, or a function that returns the criterion.
+var groupBy = group(function(result, value, key) {
+ if (has$1(result, key)) result[key].push(value); else result[key] = [value];
+});
+
+// Indexes the object's values by a criterion, similar to `_.groupBy`, but for
+// when you know that your index values will be unique.
+var indexBy = group(function(result, value, key) {
+ result[key] = value;
+});
+
+// Counts instances of an object that group by a certain criterion. Pass
+// either a string attribute to count by, or a function that returns the
+// criterion.
+var countBy = group(function(result, value, key) {
+ if (has$1(result, key)) result[key]++; else result[key] = 1;
+});
+
+// Split a collection into two arrays: one whose elements all pass the given
+// truth test, and one whose elements all do not pass the truth test.
+var partition = group(function(result, value, pass) {
+ result[pass ? 0 : 1].push(value);
+}, true);
+
+// Return the number of elements in a collection.
+function size(obj) {
+ if (obj == null) return 0;
+ return isArrayLike(obj) ? obj.length : keys(obj).length;
+}
+
+// Internal `_.pick` helper function to determine whether `key` is an enumerable
+// property name of `obj`.
+function keyInObj(value, key, obj) {
+ return key in obj;
+}
+
+// Return a copy of the object only containing the allowed properties.
+var pick = restArguments(function(obj, keys) {
+ var result = {}, iteratee = keys[0];
+ if (obj == null) return result;
+ if (isFunction$1(iteratee)) {
+ if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);
+ keys = allKeys(obj);
+ } else {
+ iteratee = keyInObj;
+ keys = flatten$1(keys, false, false);
+ obj = Object(obj);
+ }
+ for (var i = 0, length = keys.length; i < length; i++) {
+ var key = keys[i];
+ var value = obj[key];
+ if (iteratee(value, key, obj)) result[key] = value;
+ }
+ return result;
+});
+
+// Return a copy of the object without the disallowed properties.
+var omit = restArguments(function(obj, keys) {
+ var iteratee = keys[0], context;
+ if (isFunction$1(iteratee)) {
+ iteratee = negate(iteratee);
+ if (keys.length > 1) context = keys[1];
+ } else {
+ keys = map(flatten$1(keys, false, false), String);
+ iteratee = function(value, key) {
+ return !contains(keys, key);
+ };
+ }
+ return pick(obj, iteratee, context);
+});
+
+// Returns everything but the last entry of the array. Especially useful on
+// the arguments object. Passing **n** will return all the values in
+// the array, excluding the last N.
+function initial(array, n, guard) {
+ return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
+}
+
+// Get the first element of an array. Passing **n** will return the first N
+// values in the array. The **guard** check allows it to work with `_.map`.
+function first(array, n, guard) {
+ if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
+ if (n == null || guard) return array[0];
+ return initial(array, array.length - n);
+}
+
+// Returns everything but the first entry of the `array`. Especially useful on
+// the `arguments` object. Passing an **n** will return the rest N values in the
+// `array`.
+function rest(array, n, guard) {
+ return slice.call(array, n == null || guard ? 1 : n);
+}
+
+// Get the last element of an array. Passing **n** will return the last N
+// values in the array.
+function last(array, n, guard) {
+ if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
+ if (n == null || guard) return array[array.length - 1];
+ return rest(array, Math.max(0, array.length - n));
+}
+
+// Trim out all falsy values from an array.
+function compact(array) {
+ return filter(array, Boolean);
+}
+
+// Flatten out an array, either recursively (by default), or up to `depth`.
+// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
+function flatten(array, depth) {
+ return flatten$1(array, depth, false);
+}
+
+// Take the difference between one array and a number of other arrays.
+// Only the elements present in just the first array will remain.
+var difference = restArguments(function(array, rest) {
+ rest = flatten$1(rest, true, true);
+ return filter(array, function(value){
+ return !contains(rest, value);
+ });
+});
+
+// Return a version of the array that does not contain the specified value(s).
+var without = restArguments(function(array, otherArrays) {
+ return difference(array, otherArrays);
+});
+
+// Produce a duplicate-free version of the array. If the array has already
+// been sorted, you have the option of using a faster algorithm.
+// The faster algorithm will not work with an iteratee if the iteratee
+// is not a one-to-one function, so providing an iteratee will disable
+// the faster algorithm.
+function uniq(array, isSorted, iteratee, context) {
+ if (!isBoolean(isSorted)) {
+ context = iteratee;
+ iteratee = isSorted;
+ isSorted = false;
+ }
+ if (iteratee != null) iteratee = cb(iteratee, context);
+ var result = [];
+ var seen = [];
+ for (var i = 0, length = getLength(array); i < length; i++) {
+ var value = array[i],
+ computed = iteratee ? iteratee(value, i, array) : value;
+ if (isSorted && !iteratee) {
+ if (!i || seen !== computed) result.push(value);
+ seen = computed;
+ } else if (iteratee) {
+ if (!contains(seen, computed)) {
+ seen.push(computed);
+ result.push(value);
+ }
+ } else if (!contains(result, value)) {
+ result.push(value);
+ }
+ }
+ return result;
+}
+
+// Produce an array that contains the union: each distinct element from all of
+// the passed-in arrays.
+var union = restArguments(function(arrays) {
+ return uniq(flatten$1(arrays, true, true));
+});
+
+// Produce an array that contains every item shared between all the
+// passed-in arrays.
+function intersection(array) {
+ var result = [];
+ var argsLength = arguments.length;
+ for (var i = 0, length = getLength(array); i < length; i++) {
+ var item = array[i];
+ if (contains(result, item)) continue;
+ var j;
+ for (j = 1; j < argsLength; j++) {
+ if (!contains(arguments[j], item)) break;
+ }
+ if (j === argsLength) result.push(item);
+ }
+ return result;
+}
+
+// Complement of zip. Unzip accepts an array of arrays and groups
+// each array's elements on shared indices.
+function unzip(array) {
+ var length = (array && max(array, getLength).length) || 0;
+ var result = Array(length);
+
+ for (var index = 0; index < length; index++) {
+ result[index] = pluck(array, index);
+ }
+ return result;
+}
+
+// Zip together multiple lists into a single array -- elements that share
+// an index go together.
+var zip = restArguments(unzip);
+
+// Converts lists into objects. Pass either a single array of `[key, value]`
+// pairs, or two parallel arrays of the same length -- one of keys, and one of
+// the corresponding values. Passing by pairs is the reverse of `_.pairs`.
+function object(list, values) {
+ var result = {};
+ for (var i = 0, length = getLength(list); i < length; i++) {
+ if (values) {
+ result[list[i]] = values[i];
+ } else {
+ result[list[i][0]] = list[i][1];
+ }
+ }
+ return result;
+}
+
+// Generate an integer Array containing an arithmetic progression. A port of
+// the native Python `range()` function. See
+// [the Python documentation](https://docs.python.org/library/functions.html#range).
+function range(start, stop, step) {
+ if (stop == null) {
+ stop = start || 0;
+ start = 0;
+ }
+ if (!step) {
+ step = stop < start ? -1 : 1;
+ }
+
+ var length = Math.max(Math.ceil((stop - start) / step), 0);
+ var range = Array(length);
+
+ for (var idx = 0; idx < length; idx++, start += step) {
+ range[idx] = start;
+ }
+
+ return range;
+}
+
+// Chunk a single array into multiple arrays, each containing `count` or fewer
+// items.
+function chunk(array, count) {
+ if (count == null || count < 1) return [];
+ var result = [];
+ var i = 0, length = array.length;
+ while (i < length) {
+ result.push(slice.call(array, i, i += count));
+ }
+ return result;
+}
+
+// Helper function to continue chaining intermediate results.
+function chainResult(instance, obj) {
+ return instance._chain ? _$1(obj).chain() : obj;
+}
+
+// Add your own custom functions to the Underscore object.
+function mixin(obj) {
+ each(functions(obj), function(name) {
+ var func = _$1[name] = obj[name];
+ _$1.prototype[name] = function() {
+ var args = [this._wrapped];
+ push.apply(args, arguments);
+ return chainResult(this, func.apply(_$1, args));
+ };
+ });
+ return _$1;
+}
+
+// Add all mutator `Array` functions to the wrapper.
+each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
+ var method = ArrayProto[name];
+ _$1.prototype[name] = function() {
+ var obj = this._wrapped;
+ if (obj != null) {
+ method.apply(obj, arguments);
+ if ((name === 'shift' || name === 'splice') && obj.length === 0) {
+ delete obj[0];
+ }
+ }
+ return chainResult(this, obj);
+ };
+});
+
+// Add all accessor `Array` functions to the wrapper.
+each(['concat', 'join', 'slice'], function(name) {
+ var method = ArrayProto[name];
+ _$1.prototype[name] = function() {
+ var obj = this._wrapped;
+ if (obj != null) obj = method.apply(obj, arguments);
+ return chainResult(this, obj);
+ };
+});
+
+// Named Exports
+
+var allExports = {
+ __proto__: null,
+ VERSION: VERSION,
+ restArguments: restArguments,
+ isObject: isObject,
+ isNull: isNull,
+ isUndefined: isUndefined,
+ isBoolean: isBoolean,
+ isElement: isElement,
+ isString: isString,
+ isNumber: isNumber,
+ isDate: isDate,
+ isRegExp: isRegExp,
+ isError: isError,
+ isSymbol: isSymbol,
+ isArrayBuffer: isArrayBuffer,
+ isDataView: isDataView$1,
+ isArray: isArray,
+ isFunction: isFunction$1,
+ isArguments: isArguments$1,
+ isFinite: isFinite$1,
+ isNaN: isNaN$1,
+ isTypedArray: isTypedArray$1,
+ isEmpty: isEmpty,
+ isMatch: isMatch,
+ isEqual: isEqual,
+ isMap: isMap,
+ isWeakMap: isWeakMap,
+ isSet: isSet,
+ isWeakSet: isWeakSet,
+ keys: keys,
+ allKeys: allKeys,
+ values: values,
+ pairs: pairs,
+ invert: invert,
+ functions: functions,
+ methods: functions,
+ extend: extend,
+ extendOwn: extendOwn,
+ assign: extendOwn,
+ defaults: defaults,
+ create: create,
+ clone: clone,
+ tap: tap,
+ get: get,
+ has: has,
+ mapObject: mapObject,
+ identity: identity,
+ constant: constant,
+ noop: noop,
+ toPath: toPath$1,
+ property: property,
+ propertyOf: propertyOf,
+ matcher: matcher,
+ matches: matcher,
+ times: times,
+ random: random,
+ now: now,
+ escape: _escape,
+ unescape: _unescape,
+ templateSettings: templateSettings,
+ template: template,
+ result: result,
+ uniqueId: uniqueId,
+ chain: chain,
+ iteratee: iteratee,
+ partial: partial,
+ bind: bind,
+ bindAll: bindAll,
+ memoize: memoize,
+ delay: delay,
+ defer: defer,
+ throttle: throttle,
+ debounce: debounce,
+ wrap: wrap,
+ negate: negate,
+ compose: compose,
+ after: after,
+ before: before,
+ once: once,
+ findKey: findKey,
+ findIndex: findIndex,
+ findLastIndex: findLastIndex,
+ sortedIndex: sortedIndex,
+ indexOf: indexOf,
+ lastIndexOf: lastIndexOf,
+ find: find,
+ detect: find,
+ findWhere: findWhere,
+ each: each,
+ forEach: each,
+ map: map,
+ collect: map,
+ reduce: reduce,
+ foldl: reduce,
+ inject: reduce,
+ reduceRight: reduceRight,
+ foldr: reduceRight,
+ filter: filter,
+ select: filter,
+ reject: reject,
+ every: every,
+ all: every,
+ some: some,
+ any: some,
+ contains: contains,
+ includes: contains,
+ include: contains,
+ invoke: invoke,
+ pluck: pluck,
+ where: where,
+ max: max,
+ min: min,
+ shuffle: shuffle,
+ sample: sample,
+ sortBy: sortBy,
+ groupBy: groupBy,
+ indexBy: indexBy,
+ countBy: countBy,
+ partition: partition,
+ toArray: toArray,
+ size: size,
+ pick: pick,
+ omit: omit,
+ first: first,
+ head: first,
+ take: first,
+ initial: initial,
+ last: last,
+ rest: rest,
+ tail: rest,
+ drop: rest,
+ compact: compact,
+ flatten: flatten,
+ without: without,
+ uniq: uniq,
+ unique: uniq,
+ union: union,
+ intersection: intersection,
+ difference: difference,
+ unzip: unzip,
+ transpose: unzip,
+ zip: zip,
+ object: object,
+ range: range,
+ chunk: chunk,
+ mixin: mixin,
+ 'default': _$1
+};
+
+// Default Export
+
+// Add all of the Underscore functions to the wrapper object.
+var _ = mixin(allExports);
+// Legacy Node.js API.
+_._ = _;
+
+exports.VERSION = VERSION;
+exports._ = _;
+exports._escape = _escape;
+exports._unescape = _unescape;
+exports.after = after;
+exports.allKeys = allKeys;
+exports.before = before;
+exports.bind = bind;
+exports.bindAll = bindAll;
+exports.chain = chain;
+exports.chunk = chunk;
+exports.clone = clone;
+exports.compact = compact;
+exports.compose = compose;
+exports.constant = constant;
+exports.contains = contains;
+exports.countBy = countBy;
+exports.create = create;
+exports.debounce = debounce;
+exports.defaults = defaults;
+exports.defer = defer;
+exports.delay = delay;
+exports.difference = difference;
+exports.each = each;
+exports.every = every;
+exports.extend = extend;
+exports.extendOwn = extendOwn;
+exports.filter = filter;
+exports.find = find;
+exports.findIndex = findIndex;
+exports.findKey = findKey;
+exports.findLastIndex = findLastIndex;
+exports.findWhere = findWhere;
+exports.first = first;
+exports.flatten = flatten;
+exports.functions = functions;
+exports.get = get;
+exports.groupBy = groupBy;
+exports.has = has;
+exports.identity = identity;
+exports.indexBy = indexBy;
+exports.indexOf = indexOf;
+exports.initial = initial;
+exports.intersection = intersection;
+exports.invert = invert;
+exports.invoke = invoke;
+exports.isArguments = isArguments$1;
+exports.isArray = isArray;
+exports.isArrayBuffer = isArrayBuffer;
+exports.isBoolean = isBoolean;
+exports.isDataView = isDataView$1;
+exports.isDate = isDate;
+exports.isElement = isElement;
+exports.isEmpty = isEmpty;
+exports.isEqual = isEqual;
+exports.isError = isError;
+exports.isFinite = isFinite$1;
+exports.isFunction = isFunction$1;
+exports.isMap = isMap;
+exports.isMatch = isMatch;
+exports.isNaN = isNaN$1;
+exports.isNull = isNull;
+exports.isNumber = isNumber;
+exports.isObject = isObject;
+exports.isRegExp = isRegExp;
+exports.isSet = isSet;
+exports.isString = isString;
+exports.isSymbol = isSymbol;
+exports.isTypedArray = isTypedArray$1;
+exports.isUndefined = isUndefined;
+exports.isWeakMap = isWeakMap;
+exports.isWeakSet = isWeakSet;
+exports.iteratee = iteratee;
+exports.keys = keys;
+exports.last = last;
+exports.lastIndexOf = lastIndexOf;
+exports.map = map;
+exports.mapObject = mapObject;
+exports.matcher = matcher;
+exports.max = max;
+exports.memoize = memoize;
+exports.min = min;
+exports.mixin = mixin;
+exports.negate = negate;
+exports.noop = noop;
+exports.now = now;
+exports.object = object;
+exports.omit = omit;
+exports.once = once;
+exports.pairs = pairs;
+exports.partial = partial;
+exports.partition = partition;
+exports.pick = pick;
+exports.pluck = pluck;
+exports.property = property;
+exports.propertyOf = propertyOf;
+exports.random = random;
+exports.range = range;
+exports.reduce = reduce;
+exports.reduceRight = reduceRight;
+exports.reject = reject;
+exports.rest = rest;
+exports.restArguments = restArguments;
+exports.result = result;
+exports.sample = sample;
+exports.shuffle = shuffle;
+exports.size = size;
+exports.some = some;
+exports.sortBy = sortBy;
+exports.sortedIndex = sortedIndex;
+exports.tap = tap;
+exports.template = template;
+exports.templateSettings = templateSettings;
+exports.throttle = throttle;
+exports.times = times;
+exports.toArray = toArray;
+exports.toPath = toPath$1;
+exports.union = union;
+exports.uniq = uniq;
+exports.uniqueId = uniqueId;
+exports.unzip = unzip;
+exports.values = values;
+exports.where = where;
+exports.without = without;
+exports.wrap = wrap;
+exports.zip = zip;
+//# sourceMappingURL=underscore-node-f.cjs.map
+
+
+/***/ }),
+
+/***/ 5067:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+// Underscore.js 1.13.6
+// https://underscorejs.org
+// (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
+// Underscore may be freely distributed under the MIT license.
+
+var underscoreNodeF = __nccwpck_require__(6717);
+
+
+
+module.exports = underscoreNodeF._;
+//# sourceMappingURL=underscore-node.cjs.map
+
+
+/***/ }),
+
+/***/ 2020:
+/***/ ((module) => {
+
+"use strict";
+module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]');
+
+/***/ })
+
+/******/ });
+/************************************************************************/
+/******/ // The module cache
+/******/ var __webpack_module_cache__ = {};
+/******/
+/******/ // The require function
+/******/ function __nccwpck_require__(moduleId) {
+/******/ // Check if module is in cache
+/******/ var cachedModule = __webpack_module_cache__[moduleId];
+/******/ if (cachedModule !== undefined) {
+/******/ return cachedModule.exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = __webpack_module_cache__[moduleId] = {
+/******/ // no module.id needed
+/******/ // no module.loaded needed
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ var threw = true;
+/******/ try {
+/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__);
+/******/ threw = false;
+/******/ } finally {
+/******/ if(threw) delete __webpack_module_cache__[moduleId];
+/******/ }
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/************************************************************************/
+/******/ /* webpack/runtime/compat */
+/******/
+/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
+/******/
+/************************************************************************/
+var __webpack_exports__ = {};
+// This entry need to be wrapped in an IIFE because it need to be in strict mode.
+(() => {
+"use strict";
+var exports = __webpack_exports__;
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.run = void 0;
+const core_1 = __nccwpck_require__(2186);
+const github_1 = __nccwpck_require__(5438);
+const plugin_retry_1 = __nccwpck_require__(6298);
+const rest_1 = __nccwpck_require__(5375);
+const AzureDevOpsBoardService_1 = __nccwpck_require__(6275);
+const BranchProtectionService_1 = __nccwpck_require__(2843);
+const CodeQualityService_1 = __nccwpck_require__(1408);
+const JsonService_1 = __nccwpck_require__(2254);
+const PentestService_1 = __nccwpck_require__(2046);
+const SastService_1 = __nccwpck_require__(124);
+const ScaService_1 = __nccwpck_require__(4351);
+const SecretScanningService_1 = __nccwpck_require__(341);
+const AccessToCodeService_1 = __nccwpck_require__(4800);
+const ThreatModelingService_1 = __nccwpck_require__(6121);
+/**
+ * The main function for the action.
+ * @returns {Promise} Resolves when the action is complete.
+ */
+async function run() {
+ try {
+ console.log('Running compliance controls \n');
+ const cydigConfig = (0, JsonService_1.getContentOfFile)((0, core_1.getInput)('cydigConfigPath'));
+ const { owner, repo } = github_1.context.repo;
+ const token = (0, core_1.getInput)('PAT-token');
+ // eslint-disable-next-line
+ const OctokitRetry = rest_1.Octokit.plugin(plugin_retry_1.retry);
+ const octokit = new OctokitRetry({
+ auth: token,
+ });
+ await CodeQualityService_1.CodeQualityService.getStateOfCodeQualityTool(cydigConfig.codeQualityTool);
+ await SastService_1.SastService.getStateOfSastTool(cydigConfig.sastTool.nameOfTool, octokit, owner, repo);
+ await ScaService_1.ScaService.getStateOfScaTool(cydigConfig.scaTool.nameOfTool, octokit, owner, repo);
+ await SecretScanningService_1.SecretScanningService.getStateOfExposedSecrets(cydigConfig.secretScanningTool?.nameOfTool, octokit, owner, repo);
+ await BranchProtectionService_1.BranchProtectionService.getStateOfBranchProtection(octokit, owner, repo);
+ await AccessToCodeService_1.AccessToCodeService.setAccessToCodeFindings(octokit, owner, repo);
+ await PentestService_1.PentestService.getStateOfPentest(cydigConfig.pentest);
+ await ThreatModelingService_1.ThreatModelingService.getStateOfThreatModeling(cydigConfig.threatModeling);
+ await AzureDevOpsBoardService_1.AzureDevOpsBoardService.getStateOfAzureDevOpsBoards(cydigConfig);
+ }
+ catch (error) {
+ // Fail the workflow run if an error occurs
+ if (error instanceof Error)
+ (0, core_1.setFailed)(error.message);
+ }
+}
+exports.run = run;
+// eslint-disable-next-line @typescript-eslint/no-floating-promises
+run();
+
+})();
+
+module.exports = __webpack_exports__;
+/******/ })()
+;
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
deleted file mode 100644
index e6f600f6..00000000
--- a/package-lock.json
+++ /dev/null
@@ -1,3070 +0,0 @@
-{
- "name": "cydig-compliance-action",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "cydig-compliance-action",
- "version": "1.0.0",
- "license": "MIT",
- "dependencies": {
- "@actions/core": "^1.10.0",
- "@actions/github": "^5.1.1",
- "@octokit/plugin-retry": "^6.0.1",
- "@octokit/rest": "^20.1.0",
- "@vercel/ncc": "^0.36.1",
- "azure-devops-node-api": "^12.4.0"
- },
- "devDependencies": {
- "@octokit/types": "^12.0.0",
- "@types/chai": "^4.3.6",
- "@types/mocha": "^10.0.1",
- "@types/node": "^20.5.7",
- "@types/sinon": "^10.0.16",
- "@types/sinon-chai": "^3.2.12",
- "@typescript-eslint/eslint-plugin": "^5.62.0",
- "@typescript-eslint/parser": "^5.62.0",
- "chai": "^4.3.8",
- "eslint": "^8.49.0",
- "husky": "^8.0.3",
- "mocha": "^10.2.0",
- "prettier": "^2.8.8",
- "sinon": "^15.2.0",
- "sinon-chai": "^3.7.0",
- "typescript": "^5.4.5"
- },
- "engines": {
- "node": ">=16"
- }
- },
- "node_modules/@aashutoshrathi/word-wrap": {
- "version": "1.2.6",
- "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
- "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/@actions/core": {
- "version": "1.10.1",
- "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz",
- "integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
- "dependencies": {
- "@actions/http-client": "^2.0.1",
- "uuid": "^8.3.2"
- }
- },
- "node_modules/@actions/github": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz",
- "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==",
- "dependencies": {
- "@actions/http-client": "^2.0.1",
- "@octokit/core": "^3.6.0",
- "@octokit/plugin-paginate-rest": "^2.17.0",
- "@octokit/plugin-rest-endpoint-methods": "^5.13.0"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/auth-token": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz",
- "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==",
- "dependencies": {
- "@octokit/types": "^6.0.3"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/core": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
- "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
- "dependencies": {
- "@octokit/auth-token": "^2.4.4",
- "@octokit/graphql": "^4.5.8",
- "@octokit/request": "^5.6.3",
- "@octokit/request-error": "^2.0.5",
- "@octokit/types": "^6.0.3",
- "before-after-hook": "^2.2.0",
- "universal-user-agent": "^6.0.0"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/endpoint": {
- "version": "6.0.12",
- "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
- "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==",
- "dependencies": {
- "@octokit/types": "^6.0.3",
- "is-plain-object": "^5.0.0",
- "universal-user-agent": "^6.0.0"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/graphql": {
- "version": "4.8.0",
- "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz",
- "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==",
- "dependencies": {
- "@octokit/request": "^5.6.0",
- "@octokit/types": "^6.0.3",
- "universal-user-agent": "^6.0.0"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/openapi-types": {
- "version": "12.11.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz",
- "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="
- },
- "node_modules/@actions/github/node_modules/@octokit/request": {
- "version": "5.6.3",
- "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz",
- "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==",
- "dependencies": {
- "@octokit/endpoint": "^6.0.1",
- "@octokit/request-error": "^2.1.0",
- "@octokit/types": "^6.16.1",
- "is-plain-object": "^5.0.0",
- "node-fetch": "^2.6.7",
- "universal-user-agent": "^6.0.0"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/request-error": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz",
- "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==",
- "dependencies": {
- "@octokit/types": "^6.0.3",
- "deprecation": "^2.0.0",
- "once": "^1.4.0"
- }
- },
- "node_modules/@actions/github/node_modules/@octokit/types": {
- "version": "6.41.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
- "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
- "dependencies": {
- "@octokit/openapi-types": "^12.11.0"
- }
- },
- "node_modules/@actions/http-client": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.1.tgz",
- "integrity": "sha512-qhrkRMB40bbbLo7gF+0vu+X+UawOvQQqNAA/5Unx774RS8poaOhThDOG6BGmxvAnxhQnDp2BG/ZUm65xZILTpw==",
- "dependencies": {
- "tunnel": "^0.0.6"
- }
- },
- "node_modules/@eslint-community/eslint-utils": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
- "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
- "dev": true,
- "dependencies": {
- "eslint-visitor-keys": "^3.3.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "peerDependencies": {
- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
- }
- },
- "node_modules/@eslint-community/regexpp": {
- "version": "4.8.2",
- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.8.2.tgz",
- "integrity": "sha512-0MGxAVt1m/ZK+LTJp/j0qF7Hz97D9O/FH9Ms3ltnyIdDD57cbb1ACIQTkbHvNXtWDv5TPq7w5Kq56+cNukbo7g==",
- "dev": true,
- "engines": {
- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
- }
- },
- "node_modules/@eslint/eslintrc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz",
- "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==",
- "dev": true,
- "dependencies": {
- "ajv": "^6.12.4",
- "debug": "^4.3.2",
- "espree": "^9.6.0",
- "globals": "^13.19.0",
- "ignore": "^5.2.0",
- "import-fresh": "^3.2.1",
- "js-yaml": "^4.1.0",
- "minimatch": "^3.1.2",
- "strip-json-comments": "^3.1.1"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/@eslint/js": {
- "version": "8.50.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz",
- "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==",
- "dev": true,
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- }
- },
- "node_modules/@humanwhocodes/config-array": {
- "version": "0.11.11",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz",
- "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==",
- "dev": true,
- "dependencies": {
- "@humanwhocodes/object-schema": "^1.2.1",
- "debug": "^4.1.1",
- "minimatch": "^3.0.5"
- },
- "engines": {
- "node": ">=10.10.0"
- }
- },
- "node_modules/@humanwhocodes/module-importer": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
- "dev": true,
- "engines": {
- "node": ">=12.22"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/nzakas"
- }
- },
- "node_modules/@humanwhocodes/object-schema": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
- "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
- "dev": true
- },
- "node_modules/@nodelib/fs.scandir": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
- "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
- "dev": true,
- "dependencies": {
- "@nodelib/fs.stat": "2.0.5",
- "run-parallel": "^1.1.9"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@nodelib/fs.stat": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
- "dev": true,
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@nodelib/fs.walk": {
- "version": "1.2.8",
- "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
- "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
- "dev": true,
- "dependencies": {
- "@nodelib/fs.scandir": "2.1.5",
- "fastq": "^1.6.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@octokit/auth-token": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
- "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==",
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/core": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz",
- "integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==",
- "dependencies": {
- "@octokit/auth-token": "^4.0.0",
- "@octokit/graphql": "^7.1.0",
- "@octokit/request": "^8.3.1",
- "@octokit/request-error": "^5.1.0",
- "@octokit/types": "^13.0.0",
- "before-after-hook": "^2.2.0",
- "universal-user-agent": "^6.0.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/core/node_modules/@octokit/openapi-types": {
- "version": "22.2.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
- "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
- },
- "node_modules/@octokit/core/node_modules/@octokit/types": {
- "version": "13.5.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
- "integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
- "dependencies": {
- "@octokit/openapi-types": "^22.2.0"
- }
- },
- "node_modules/@octokit/endpoint": {
- "version": "9.0.5",
- "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz",
- "integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==",
- "dependencies": {
- "@octokit/types": "^13.1.0",
- "universal-user-agent": "^6.0.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": {
- "version": "22.2.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
- "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
- },
- "node_modules/@octokit/endpoint/node_modules/@octokit/types": {
- "version": "13.5.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
- "integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
- "dependencies": {
- "@octokit/openapi-types": "^22.2.0"
- }
- },
- "node_modules/@octokit/graphql": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz",
- "integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==",
- "dependencies": {
- "@octokit/request": "^8.3.0",
- "@octokit/types": "^13.0.0",
- "universal-user-agent": "^6.0.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": {
- "version": "22.2.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
- "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
- },
- "node_modules/@octokit/graphql/node_modules/@octokit/types": {
- "version": "13.5.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
- "integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
- "dependencies": {
- "@octokit/openapi-types": "^22.2.0"
- }
- },
- "node_modules/@octokit/openapi-types": {
- "version": "20.0.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz",
- "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA=="
- },
- "node_modules/@octokit/plugin-paginate-rest": {
- "version": "2.21.3",
- "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz",
- "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==",
- "dependencies": {
- "@octokit/types": "^6.40.0"
- },
- "peerDependencies": {
- "@octokit/core": ">=2"
- }
- },
- "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": {
- "version": "12.11.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz",
- "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="
- },
- "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": {
- "version": "6.41.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
- "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
- "dependencies": {
- "@octokit/openapi-types": "^12.11.0"
- }
- },
- "node_modules/@octokit/plugin-request-log": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz",
- "integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==",
- "engines": {
- "node": ">= 18"
- },
- "peerDependencies": {
- "@octokit/core": "5"
- }
- },
- "node_modules/@octokit/plugin-rest-endpoint-methods": {
- "version": "5.16.2",
- "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz",
- "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==",
- "dependencies": {
- "@octokit/types": "^6.39.0",
- "deprecation": "^2.3.1"
- },
- "peerDependencies": {
- "@octokit/core": ">=3"
- }
- },
- "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": {
- "version": "12.11.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz",
- "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="
- },
- "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": {
- "version": "6.41.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
- "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
- "dependencies": {
- "@octokit/openapi-types": "^12.11.0"
- }
- },
- "node_modules/@octokit/plugin-retry": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-6.0.1.tgz",
- "integrity": "sha512-SKs+Tz9oj0g4p28qkZwl/topGcb0k0qPNX/i7vBKmDsjoeqnVfFUquqrE/O9oJY7+oLzdCtkiWSXLpLjvl6uog==",
- "dependencies": {
- "@octokit/request-error": "^5.0.0",
- "@octokit/types": "^12.0.0",
- "bottleneck": "^2.15.3"
- },
- "engines": {
- "node": ">= 18"
- },
- "peerDependencies": {
- "@octokit/core": ">=5"
- }
- },
- "node_modules/@octokit/request": {
- "version": "8.4.0",
- "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz",
- "integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==",
- "dependencies": {
- "@octokit/endpoint": "^9.0.1",
- "@octokit/request-error": "^5.1.0",
- "@octokit/types": "^13.1.0",
- "universal-user-agent": "^6.0.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/request-error": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz",
- "integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==",
- "dependencies": {
- "@octokit/types": "^13.1.0",
- "deprecation": "^2.0.0",
- "once": "^1.4.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": {
- "version": "22.2.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
- "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
- },
- "node_modules/@octokit/request-error/node_modules/@octokit/types": {
- "version": "13.5.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
- "integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
- "dependencies": {
- "@octokit/openapi-types": "^22.2.0"
- }
- },
- "node_modules/@octokit/request/node_modules/@octokit/openapi-types": {
- "version": "22.2.0",
- "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
- "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
- },
- "node_modules/@octokit/request/node_modules/@octokit/types": {
- "version": "13.5.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
- "integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
- "dependencies": {
- "@octokit/openapi-types": "^22.2.0"
- }
- },
- "node_modules/@octokit/rest": {
- "version": "20.1.0",
- "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-20.1.0.tgz",
- "integrity": "sha512-STVO3itHQLrp80lvcYB2UIKoeil5Ctsgd2s1AM+du3HqZIR35ZH7WE9HLwUOLXH0myA0y3AGNPo8gZtcgIbw0g==",
- "dependencies": {
- "@octokit/core": "^5.0.2",
- "@octokit/plugin-paginate-rest": "^9.1.5",
- "@octokit/plugin-request-log": "^4.0.0",
- "@octokit/plugin-rest-endpoint-methods": "^10.2.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest": {
- "version": "9.2.1",
- "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz",
- "integrity": "sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==",
- "dependencies": {
- "@octokit/types": "^12.6.0"
- },
- "engines": {
- "node": ">= 18"
- },
- "peerDependencies": {
- "@octokit/core": "5"
- }
- },
- "node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods": {
- "version": "10.4.1",
- "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz",
- "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==",
- "dependencies": {
- "@octokit/types": "^12.6.0"
- },
- "engines": {
- "node": ">= 18"
- },
- "peerDependencies": {
- "@octokit/core": "5"
- }
- },
- "node_modules/@octokit/types": {
- "version": "12.6.0",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz",
- "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==",
- "dependencies": {
- "@octokit/openapi-types": "^20.0.0"
- }
- },
- "node_modules/@sinonjs/commons": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz",
- "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==",
- "dev": true,
- "dependencies": {
- "type-detect": "4.0.8"
- }
- },
- "node_modules/@sinonjs/fake-timers": {
- "version": "10.3.0",
- "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz",
- "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==",
- "dev": true,
- "dependencies": {
- "@sinonjs/commons": "^3.0.0"
- }
- },
- "node_modules/@sinonjs/samsam": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-8.0.0.tgz",
- "integrity": "sha512-Bp8KUVlLp8ibJZrnvq2foVhP0IVX2CIprMJPK0vqGqgrDa0OHVKeZyBykqskkrdxV6yKBPmGasO8LVjAKR3Gew==",
- "dev": true,
- "dependencies": {
- "@sinonjs/commons": "^2.0.0",
- "lodash.get": "^4.4.2",
- "type-detect": "^4.0.8"
- }
- },
- "node_modules/@sinonjs/samsam/node_modules/@sinonjs/commons": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz",
- "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==",
- "dev": true,
- "dependencies": {
- "type-detect": "4.0.8"
- }
- },
- "node_modules/@sinonjs/text-encoding": {
- "version": "0.7.2",
- "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz",
- "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==",
- "dev": true
- },
- "node_modules/@types/chai": {
- "version": "4.3.6",
- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.6.tgz",
- "integrity": "sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw==",
- "dev": true
- },
- "node_modules/@types/json-schema": {
- "version": "7.0.13",
- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz",
- "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==",
- "dev": true
- },
- "node_modules/@types/mocha": {
- "version": "10.0.1",
- "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz",
- "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==",
- "dev": true
- },
- "node_modules/@types/node": {
- "version": "20.7.0",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.7.0.tgz",
- "integrity": "sha512-zI22/pJW2wUZOVyguFaUL1HABdmSVxpXrzIqkjsHmyUjNhPoWM1CKfvVuXfetHhIok4RY573cqS0mZ1SJEnoTg==",
- "dev": true
- },
- "node_modules/@types/semver": {
- "version": "7.5.3",
- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz",
- "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==",
- "dev": true
- },
- "node_modules/@types/sinon": {
- "version": "10.0.17",
- "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.17.tgz",
- "integrity": "sha512-+6ILpcixQ0Ma3dHMTLv4rSycbDXkDljgKL+E0nI2RUxxhYTFyPSjt6RVMxh7jUshvyVcBvicb0Ktj+lAJcjgeA==",
- "dev": true,
- "dependencies": {
- "@types/sinonjs__fake-timers": "*"
- }
- },
- "node_modules/@types/sinon-chai": {
- "version": "3.2.12",
- "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-3.2.12.tgz",
- "integrity": "sha512-9y0Gflk3b0+NhQZ/oxGtaAJDvRywCa5sIyaVnounqLvmf93yBF4EgIRspePtkMs3Tr844nCclYMlcCNmLCvjuQ==",
- "dev": true,
- "dependencies": {
- "@types/chai": "*",
- "@types/sinon": "*"
- }
- },
- "node_modules/@types/sinonjs__fake-timers": {
- "version": "8.1.3",
- "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.3.tgz",
- "integrity": "sha512-4g+2YyWe0Ve+LBh+WUm1697PD0Kdi6coG1eU0YjQbwx61AZ8XbEpL1zIT6WjuUKrCMCROpEaYQPDjBnDouBVAQ==",
- "dev": true
- },
- "node_modules/@typescript-eslint/eslint-plugin": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz",
- "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==",
- "dev": true,
- "dependencies": {
- "@eslint-community/regexpp": "^4.4.0",
- "@typescript-eslint/scope-manager": "5.62.0",
- "@typescript-eslint/type-utils": "5.62.0",
- "@typescript-eslint/utils": "5.62.0",
- "debug": "^4.3.4",
- "graphemer": "^1.4.0",
- "ignore": "^5.2.0",
- "natural-compare-lite": "^1.4.0",
- "semver": "^7.3.7",
- "tsutils": "^3.21.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- },
- "peerDependencies": {
- "@typescript-eslint/parser": "^5.0.0",
- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/@typescript-eslint/parser": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz",
- "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==",
- "dev": true,
- "dependencies": {
- "@typescript-eslint/scope-manager": "5.62.0",
- "@typescript-eslint/types": "5.62.0",
- "@typescript-eslint/typescript-estree": "5.62.0",
- "debug": "^4.3.4"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- },
- "peerDependencies": {
- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/@typescript-eslint/scope-manager": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz",
- "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==",
- "dev": true,
- "dependencies": {
- "@typescript-eslint/types": "5.62.0",
- "@typescript-eslint/visitor-keys": "5.62.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- }
- },
- "node_modules/@typescript-eslint/type-utils": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz",
- "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==",
- "dev": true,
- "dependencies": {
- "@typescript-eslint/typescript-estree": "5.62.0",
- "@typescript-eslint/utils": "5.62.0",
- "debug": "^4.3.4",
- "tsutils": "^3.21.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- },
- "peerDependencies": {
- "eslint": "*"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/@typescript-eslint/types": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz",
- "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==",
- "dev": true,
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- }
- },
- "node_modules/@typescript-eslint/typescript-estree": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz",
- "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==",
- "dev": true,
- "dependencies": {
- "@typescript-eslint/types": "5.62.0",
- "@typescript-eslint/visitor-keys": "5.62.0",
- "debug": "^4.3.4",
- "globby": "^11.1.0",
- "is-glob": "^4.0.3",
- "semver": "^7.3.7",
- "tsutils": "^3.21.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/@typescript-eslint/utils": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz",
- "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==",
- "dev": true,
- "dependencies": {
- "@eslint-community/eslint-utils": "^4.2.0",
- "@types/json-schema": "^7.0.9",
- "@types/semver": "^7.3.12",
- "@typescript-eslint/scope-manager": "5.62.0",
- "@typescript-eslint/types": "5.62.0",
- "@typescript-eslint/typescript-estree": "5.62.0",
- "eslint-scope": "^5.1.1",
- "semver": "^7.3.7"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- },
- "peerDependencies": {
- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
- }
- },
- "node_modules/@typescript-eslint/visitor-keys": {
- "version": "5.62.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz",
- "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==",
- "dev": true,
- "dependencies": {
- "@typescript-eslint/types": "5.62.0",
- "eslint-visitor-keys": "^3.3.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- }
- },
- "node_modules/@vercel/ncc": {
- "version": "0.36.1",
- "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz",
- "integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==",
- "bin": {
- "ncc": "dist/ncc/cli.js"
- }
- },
- "node_modules/acorn": {
- "version": "8.10.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
- "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
- "dev": true,
- "bin": {
- "acorn": "bin/acorn"
- },
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/acorn-jsx": {
- "version": "5.3.2",
- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
- "dev": true,
- "peerDependencies": {
- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
- }
- },
- "node_modules/ajv": {
- "version": "6.12.6",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
- "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
- "dev": true,
- "dependencies": {
- "fast-deep-equal": "^3.1.1",
- "fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.4.1",
- "uri-js": "^4.2.2"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/epoberezkin"
- }
- },
- "node_modules/ansi-colors": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
- "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
- "dev": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/anymatch": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
- "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
- "dev": true,
- "dependencies": {
- "normalize-path": "^3.0.0",
- "picomatch": "^2.0.4"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/argparse": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
- "dev": true
- },
- "node_modules/array-union": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
- "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/assertion-error": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
- "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
- "dev": true,
- "engines": {
- "node": "*"
- }
- },
- "node_modules/azure-devops-node-api": {
- "version": "12.4.0",
- "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-12.4.0.tgz",
- "integrity": "sha512-ZrJlnoAOjliBYvO1wV9oa5Saa3h5tfRbvCSpwjqryag7bIeeY5Zl/zGiZBVD+75EumhtY5mOXNBzHvLf6JmdNQ==",
- "dependencies": {
- "tunnel": "0.0.6",
- "typed-rest-client": "^1.8.4"
- }
- },
- "node_modules/balanced-match": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
- "dev": true
- },
- "node_modules/before-after-hook": {
- "version": "2.2.3",
- "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
- "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
- },
- "node_modules/binary-extensions": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
- "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/bottleneck": {
- "version": "2.19.5",
- "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz",
- "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw=="
- },
- "node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dev": true,
- "dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "node_modules/braces": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
- "dev": true,
- "dependencies": {
- "fill-range": "^7.1.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/browser-stdout": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
- "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
- "dev": true
- },
- "node_modules/call-bind": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.6.tgz",
- "integrity": "sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==",
- "dependencies": {
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.3",
- "set-function-length": "^1.2.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/callsites": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
- "dev": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/camelcase": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
- "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/chai": {
- "version": "4.3.8",
- "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.8.tgz",
- "integrity": "sha512-vX4YvVVtxlfSZ2VecZgFUTU5qPCYsobVI2O9FmwEXBhDigYGQA6jRXCycIs1yJnnWbZ6/+a2zNIF5DfVCcJBFQ==",
- "dev": true,
- "dependencies": {
- "assertion-error": "^1.1.0",
- "check-error": "^1.0.2",
- "deep-eql": "^4.1.2",
- "get-func-name": "^2.0.0",
- "loupe": "^2.3.1",
- "pathval": "^1.1.1",
- "type-detect": "^4.0.5"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/chalk": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "dev": true,
- "dependencies": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/check-error": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz",
- "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==",
- "dev": true,
- "engines": {
- "node": "*"
- }
- },
- "node_modules/chokidar": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
- "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
- "dev": true,
- "funding": [
- {
- "type": "individual",
- "url": "https://paulmillr.com/funding/"
- }
- ],
- "dependencies": {
- "anymatch": "~3.1.2",
- "braces": "~3.0.2",
- "glob-parent": "~5.1.2",
- "is-binary-path": "~2.1.0",
- "is-glob": "~4.0.1",
- "normalize-path": "~3.0.0",
- "readdirp": "~3.6.0"
- },
- "engines": {
- "node": ">= 8.10.0"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.2"
- }
- },
- "node_modules/chokidar/node_modules/glob-parent": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
- "dev": true,
- "dependencies": {
- "is-glob": "^4.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/cliui": {
- "version": "7.0.4",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
- "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
- "dev": true,
- "dependencies": {
- "string-width": "^4.2.0",
- "strip-ansi": "^6.0.0",
- "wrap-ansi": "^7.0.0"
- }
- },
- "node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "node_modules/concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
- "dev": true
- },
- "node_modules/cross-spawn": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
- "dev": true,
- "dependencies": {
- "path-key": "^3.1.0",
- "shebang-command": "^2.0.0",
- "which": "^2.0.1"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "dev": true,
- "dependencies": {
- "ms": "2.1.2"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/decamelize": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
- "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/deep-eql": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz",
- "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==",
- "dev": true,
- "dependencies": {
- "type-detect": "^4.0.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/deep-is": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
- "dev": true
- },
- "node_modules/define-data-property": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.2.tgz",
- "integrity": "sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==",
- "dependencies": {
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.2",
- "gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/deprecation": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
- "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
- },
- "node_modules/diff": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
- "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
- "dev": true,
- "engines": {
- "node": ">=0.3.1"
- }
- },
- "node_modules/dir-glob": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
- "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
- "dev": true,
- "dependencies": {
- "path-type": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/doctrine": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
- "dev": true,
- "dependencies": {
- "esutils": "^2.0.2"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
- },
- "node_modules/es-errors": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/escalade": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
- "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
- "dev": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/escape-string-regexp": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/eslint": {
- "version": "8.50.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz",
- "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==",
- "dev": true,
- "dependencies": {
- "@eslint-community/eslint-utils": "^4.2.0",
- "@eslint-community/regexpp": "^4.6.1",
- "@eslint/eslintrc": "^2.1.2",
- "@eslint/js": "8.50.0",
- "@humanwhocodes/config-array": "^0.11.11",
- "@humanwhocodes/module-importer": "^1.0.1",
- "@nodelib/fs.walk": "^1.2.8",
- "ajv": "^6.12.4",
- "chalk": "^4.0.0",
- "cross-spawn": "^7.0.2",
- "debug": "^4.3.2",
- "doctrine": "^3.0.0",
- "escape-string-regexp": "^4.0.0",
- "eslint-scope": "^7.2.2",
- "eslint-visitor-keys": "^3.4.3",
- "espree": "^9.6.1",
- "esquery": "^1.4.2",
- "esutils": "^2.0.2",
- "fast-deep-equal": "^3.1.3",
- "file-entry-cache": "^6.0.1",
- "find-up": "^5.0.0",
- "glob-parent": "^6.0.2",
- "globals": "^13.19.0",
- "graphemer": "^1.4.0",
- "ignore": "^5.2.0",
- "imurmurhash": "^0.1.4",
- "is-glob": "^4.0.0",
- "is-path-inside": "^3.0.3",
- "js-yaml": "^4.1.0",
- "json-stable-stringify-without-jsonify": "^1.0.1",
- "levn": "^0.4.1",
- "lodash.merge": "^4.6.2",
- "minimatch": "^3.1.2",
- "natural-compare": "^1.4.0",
- "optionator": "^0.9.3",
- "strip-ansi": "^6.0.1",
- "text-table": "^0.2.0"
- },
- "bin": {
- "eslint": "bin/eslint.js"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/eslint-scope": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
- "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
- "dev": true,
- "dependencies": {
- "esrecurse": "^4.3.0",
- "estraverse": "^4.1.1"
- },
- "engines": {
- "node": ">=8.0.0"
- }
- },
- "node_modules/eslint-visitor-keys": {
- "version": "3.4.3",
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
- "dev": true,
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/eslint/node_modules/eslint-scope": {
- "version": "7.2.2",
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
- "dev": true,
- "dependencies": {
- "esrecurse": "^4.3.0",
- "estraverse": "^5.2.0"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/eslint/node_modules/estraverse": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
- "dev": true,
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/espree": {
- "version": "9.6.1",
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
- "dev": true,
- "dependencies": {
- "acorn": "^8.9.0",
- "acorn-jsx": "^5.3.2",
- "eslint-visitor-keys": "^3.4.1"
- },
- "engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/esquery": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz",
- "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==",
- "dev": true,
- "dependencies": {
- "estraverse": "^5.1.0"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
- "node_modules/esquery/node_modules/estraverse": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
- "dev": true,
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/esrecurse": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
- "dev": true,
- "dependencies": {
- "estraverse": "^5.2.0"
- },
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/esrecurse/node_modules/estraverse": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
- "dev": true,
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/estraverse": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
- "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
- "dev": true,
- "engines": {
- "node": ">=4.0"
- }
- },
- "node_modules/esutils": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/fast-deep-equal": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
- "dev": true
- },
- "node_modules/fast-glob": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
- "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
- "dev": true,
- "dependencies": {
- "@nodelib/fs.stat": "^2.0.2",
- "@nodelib/fs.walk": "^1.2.3",
- "glob-parent": "^5.1.2",
- "merge2": "^1.3.0",
- "micromatch": "^4.0.4"
- },
- "engines": {
- "node": ">=8.6.0"
- }
- },
- "node_modules/fast-glob/node_modules/glob-parent": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
- "dev": true,
- "dependencies": {
- "is-glob": "^4.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/fast-json-stable-stringify": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
- "dev": true
- },
- "node_modules/fast-levenshtein": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
- "dev": true
- },
- "node_modules/fastq": {
- "version": "1.15.0",
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
- "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
- "dev": true,
- "dependencies": {
- "reusify": "^1.0.4"
- }
- },
- "node_modules/file-entry-cache": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
- "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
- "dev": true,
- "dependencies": {
- "flat-cache": "^3.0.4"
- },
- "engines": {
- "node": "^10.12.0 || >=12.0.0"
- }
- },
- "node_modules/fill-range": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
- "dev": true,
- "dependencies": {
- "to-regex-range": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/find-up": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
- "dev": true,
- "dependencies": {
- "locate-path": "^6.0.0",
- "path-exists": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/flat": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
- "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
- "dev": true,
- "bin": {
- "flat": "cli.js"
- }
- },
- "node_modules/flat-cache": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz",
- "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==",
- "dev": true,
- "dependencies": {
- "flatted": "^3.2.7",
- "keyv": "^4.5.3",
- "rimraf": "^3.0.2"
- },
- "engines": {
- "node": ">=12.0.0"
- }
- },
- "node_modules/flatted": {
- "version": "3.2.9",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz",
- "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==",
- "dev": true
- },
- "node_modules/fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
- "dev": true
- },
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
- "dev": true,
- "hasInstallScript": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/function-bind": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "dev": true,
- "engines": {
- "node": "6.* || 8.* || >= 10.*"
- }
- },
- "node_modules/get-func-name": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
- "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",
- "dev": true,
- "engines": {
- "node": "*"
- }
- },
- "node_modules/get-intrinsic": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
- "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
- "dependencies": {
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "has-proto": "^1.0.1",
- "has-symbols": "^1.0.3",
- "hasown": "^2.0.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/glob": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
- "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
- "dev": true,
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/glob-parent": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
- "dev": true,
- "dependencies": {
- "is-glob": "^4.0.3"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/globals": {
- "version": "13.22.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-13.22.0.tgz",
- "integrity": "sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw==",
- "dev": true,
- "dependencies": {
- "type-fest": "^0.20.2"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/globby": {
- "version": "11.1.0",
- "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
- "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
- "dev": true,
- "dependencies": {
- "array-union": "^2.1.0",
- "dir-glob": "^3.0.1",
- "fast-glob": "^3.2.9",
- "ignore": "^5.2.0",
- "merge2": "^1.4.1",
- "slash": "^3.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/gopd": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
- "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
- "dependencies": {
- "get-intrinsic": "^1.1.3"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/graphemer": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
- "dev": true
- },
- "node_modules/has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/has-property-descriptors": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz",
- "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==",
- "dependencies": {
- "get-intrinsic": "^1.2.2"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
- "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-symbols": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
- "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/hasown": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz",
- "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==",
- "dependencies": {
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/he": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
- "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
- "dev": true,
- "bin": {
- "he": "bin/he"
- }
- },
- "node_modules/husky": {
- "version": "8.0.3",
- "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
- "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
- "dev": true,
- "bin": {
- "husky": "lib/bin.js"
- },
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/sponsors/typicode"
- }
- },
- "node_modules/ignore": {
- "version": "5.2.4",
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
- "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
- "dev": true,
- "engines": {
- "node": ">= 4"
- }
- },
- "node_modules/import-fresh": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
- "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
- "dev": true,
- "dependencies": {
- "parent-module": "^1.0.0",
- "resolve-from": "^4.0.0"
- },
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/imurmurhash": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
- "dev": true,
- "engines": {
- "node": ">=0.8.19"
- }
- },
- "node_modules/inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
- "dev": true,
- "dependencies": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "node_modules/inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "dev": true
- },
- "node_modules/is-binary-path": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
- "dev": true,
- "dependencies": {
- "binary-extensions": "^2.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-glob": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "dev": true,
- "dependencies": {
- "is-extglob": "^2.1.1"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true,
- "engines": {
- "node": ">=0.12.0"
- }
- },
- "node_modules/is-path-inside": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-plain-obj": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
- "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-plain-object": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
- "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/isarray": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==",
- "dev": true
- },
- "node_modules/isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
- "dev": true
- },
- "node_modules/js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
- "dev": true,
- "dependencies": {
- "argparse": "^2.0.1"
- },
- "bin": {
- "js-yaml": "bin/js-yaml.js"
- }
- },
- "node_modules/json-buffer": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
- "dev": true
- },
- "node_modules/json-schema-traverse": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
- "dev": true
- },
- "node_modules/json-stable-stringify-without-jsonify": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
- "dev": true
- },
- "node_modules/just-extend": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz",
- "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==",
- "dev": true
- },
- "node_modules/keyv": {
- "version": "4.5.3",
- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz",
- "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==",
- "dev": true,
- "dependencies": {
- "json-buffer": "3.0.1"
- }
- },
- "node_modules/levn": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
- "dev": true,
- "dependencies": {
- "prelude-ls": "^1.2.1",
- "type-check": "~0.4.0"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/locate-path": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
- "dev": true,
- "dependencies": {
- "p-locate": "^5.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/lodash.get": {
- "version": "4.4.2",
- "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
- "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==",
- "dev": true
- },
- "node_modules/lodash.merge": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
- "dev": true
- },
- "node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "dev": true,
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/loupe": {
- "version": "2.3.6",
- "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz",
- "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==",
- "dev": true,
- "dependencies": {
- "get-func-name": "^2.0.0"
- }
- },
- "node_modules/lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "dev": true,
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/merge2": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
- "dev": true,
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/micromatch": {
- "version": "4.0.5",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
- "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
- "dev": true,
- "dependencies": {
- "braces": "^3.0.2",
- "picomatch": "^2.3.1"
- },
- "engines": {
- "node": ">=8.6"
- }
- },
- "node_modules/minimatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
- "dev": true,
- "dependencies": {
- "brace-expansion": "^1.1.7"
- },
- "engines": {
- "node": "*"
- }
- },
- "node_modules/mocha": {
- "version": "10.2.0",
- "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz",
- "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==",
- "dev": true,
- "dependencies": {
- "ansi-colors": "4.1.1",
- "browser-stdout": "1.3.1",
- "chokidar": "3.5.3",
- "debug": "4.3.4",
- "diff": "5.0.0",
- "escape-string-regexp": "4.0.0",
- "find-up": "5.0.0",
- "glob": "7.2.0",
- "he": "1.2.0",
- "js-yaml": "4.1.0",
- "log-symbols": "4.1.0",
- "minimatch": "5.0.1",
- "ms": "2.1.3",
- "nanoid": "3.3.3",
- "serialize-javascript": "6.0.0",
- "strip-json-comments": "3.1.1",
- "supports-color": "8.1.1",
- "workerpool": "6.2.1",
- "yargs": "16.2.0",
- "yargs-parser": "20.2.4",
- "yargs-unparser": "2.0.0"
- },
- "bin": {
- "_mocha": "bin/_mocha",
- "mocha": "bin/mocha.js"
- },
- "engines": {
- "node": ">= 14.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/mochajs"
- }
- },
- "node_modules/mocha/node_modules/brace-expansion": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
- "dev": true,
- "dependencies": {
- "balanced-match": "^1.0.0"
- }
- },
- "node_modules/mocha/node_modules/minimatch": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
- "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==",
- "dev": true,
- "dependencies": {
- "brace-expansion": "^2.0.1"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/mocha/node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "dev": true
- },
- "node_modules/mocha/node_modules/supports-color": {
- "version": "8.1.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
- "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
- "dev": true,
- "dependencies": {
- "has-flag": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/supports-color?sponsor=1"
- }
- },
- "node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
- "dev": true
- },
- "node_modules/nanoid": {
- "version": "3.3.3",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
- "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
- "dev": true,
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
- "node_modules/natural-compare": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
- "dev": true
- },
- "node_modules/natural-compare-lite": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",
- "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",
- "dev": true
- },
- "node_modules/nise": {
- "version": "5.1.4",
- "resolved": "https://registry.npmjs.org/nise/-/nise-5.1.4.tgz",
- "integrity": "sha512-8+Ib8rRJ4L0o3kfmyVCL7gzrohyDe0cMFTBa2d364yIrEGMEoetznKJx899YxjybU6bL9SQkYPSBBs1gyYs8Xg==",
- "dev": true,
- "dependencies": {
- "@sinonjs/commons": "^2.0.0",
- "@sinonjs/fake-timers": "^10.0.2",
- "@sinonjs/text-encoding": "^0.7.1",
- "just-extend": "^4.0.2",
- "path-to-regexp": "^1.7.0"
- }
- },
- "node_modules/nise/node_modules/@sinonjs/commons": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz",
- "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==",
- "dev": true,
- "dependencies": {
- "type-detect": "4.0.8"
- }
- },
- "node_modules/node-fetch": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
- "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
- "dependencies": {
- "whatwg-url": "^5.0.0"
- },
- "engines": {
- "node": "4.x || >=6.0.0"
- },
- "peerDependencies": {
- "encoding": "^0.1.0"
- },
- "peerDependenciesMeta": {
- "encoding": {
- "optional": true
- }
- }
- },
- "node_modules/normalize-path": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/object-inspect": {
- "version": "1.13.1",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
- "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/optionator": {
- "version": "0.9.3",
- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz",
- "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==",
- "dev": true,
- "dependencies": {
- "@aashutoshrathi/word-wrap": "^1.2.3",
- "deep-is": "^0.1.3",
- "fast-levenshtein": "^2.0.6",
- "levn": "^0.4.1",
- "prelude-ls": "^1.2.1",
- "type-check": "^0.4.0"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/p-limit": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
- "dev": true,
- "dependencies": {
- "yocto-queue": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/p-locate": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
- "dev": true,
- "dependencies": {
- "p-limit": "^3.0.2"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/parent-module": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
- "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
- "dev": true,
- "dependencies": {
- "callsites": "^3.0.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/path-to-regexp": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz",
- "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==",
- "dev": true,
- "dependencies": {
- "isarray": "0.0.1"
- }
- },
- "node_modules/path-type": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/pathval": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
- "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
- "dev": true,
- "engines": {
- "node": "*"
- }
- },
- "node_modules/picomatch": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
- "dev": true,
- "engines": {
- "node": ">=8.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/prelude-ls": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
- "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
- "dev": true,
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/prettier": {
- "version": "2.8.8",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
- "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
- "dev": true,
- "bin": {
- "prettier": "bin-prettier.js"
- },
- "engines": {
- "node": ">=10.13.0"
- },
- "funding": {
- "url": "https://github.com/prettier/prettier?sponsor=1"
- }
- },
- "node_modules/punycode": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
- "dev": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/qs": {
- "version": "6.11.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
- "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
- "dependencies": {
- "side-channel": "^1.0.4"
- },
- "engines": {
- "node": ">=0.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/queue-microtask": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
- "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/randombytes": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
- "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
- "dev": true,
- "dependencies": {
- "safe-buffer": "^5.1.0"
- }
- },
- "node_modules/readdirp": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
- "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
- "dev": true,
- "dependencies": {
- "picomatch": "^2.2.1"
- },
- "engines": {
- "node": ">=8.10.0"
- }
- },
- "node_modules/require-directory": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/resolve-from": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
- "dev": true,
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/reusify": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
- "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
- "dev": true,
- "engines": {
- "iojs": ">=1.0.0",
- "node": ">=0.10.0"
- }
- },
- "node_modules/rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "dev": true,
- "dependencies": {
- "glob": "^7.1.3"
- },
- "bin": {
- "rimraf": "bin.js"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/run-parallel": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
- "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "dependencies": {
- "queue-microtask": "^1.2.2"
- }
- },
- "node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/semver": {
- "version": "7.5.4",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
- "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
- "dev": true,
- "dependencies": {
- "lru-cache": "^6.0.0"
- },
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/serialize-javascript": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
- "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
- "dev": true,
- "dependencies": {
- "randombytes": "^2.1.0"
- }
- },
- "node_modules/set-function-length": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz",
- "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==",
- "dependencies": {
- "define-data-property": "^1.1.2",
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.3",
- "gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/shebang-command": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
- "dev": true,
- "dependencies": {
- "shebang-regex": "^3.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/shebang-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/side-channel": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz",
- "integrity": "sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==",
- "dependencies": {
- "call-bind": "^1.0.6",
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.4",
- "object-inspect": "^1.13.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/sinon": {
- "version": "15.2.0",
- "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.2.0.tgz",
- "integrity": "sha512-nPS85arNqwBXaIsFCkolHjGIkFo+Oxu9vbgmBJizLAhqe6P2o3Qmj3KCUoRkfhHtvgDhZdWD3risLHAUJ8npjw==",
- "dev": true,
- "dependencies": {
- "@sinonjs/commons": "^3.0.0",
- "@sinonjs/fake-timers": "^10.3.0",
- "@sinonjs/samsam": "^8.0.0",
- "diff": "^5.1.0",
- "nise": "^5.1.4",
- "supports-color": "^7.2.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/sinon"
- }
- },
- "node_modules/sinon-chai": {
- "version": "3.7.0",
- "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-3.7.0.tgz",
- "integrity": "sha512-mf5NURdUaSdnatJx3uhoBOrY9dtL19fiOtAdT1Azxg3+lNJFiuN0uzaU3xX1LeAfL17kHQhTAJgpsfhbMJMY2g==",
- "dev": true,
- "peerDependencies": {
- "chai": "^4.0.0",
- "sinon": ">=4.0.0"
- }
- },
- "node_modules/sinon/node_modules/diff": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz",
- "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==",
- "dev": true,
- "engines": {
- "node": ">=0.3.1"
- }
- },
- "node_modules/slash": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
- "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dev": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-json-comments": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
- "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
- "dev": true,
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "dependencies": {
- "has-flag": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/text-table": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
- "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
- "dev": true
- },
- "node_modules/to-regex-range": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
- "dev": true,
- "dependencies": {
- "is-number": "^7.0.0"
- },
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "node_modules/tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- },
- "node_modules/tsutils": {
- "version": "3.21.0",
- "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
- "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
- "dev": true,
- "dependencies": {
- "tslib": "^1.8.1"
- },
- "engines": {
- "node": ">= 6"
- },
- "peerDependencies": {
- "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
- }
- },
- "node_modules/tunnel": {
- "version": "0.0.6",
- "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
- "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
- "engines": {
- "node": ">=0.6.11 <=0.7.0 || >=0.7.3"
- }
- },
- "node_modules/type-check": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
- "dev": true,
- "dependencies": {
- "prelude-ls": "^1.2.1"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/type-detect": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
- "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
- "dev": true,
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/type-fest": {
- "version": "0.20.2",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/typed-rest-client": {
- "version": "1.8.11",
- "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",
- "integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==",
- "dependencies": {
- "qs": "^6.9.1",
- "tunnel": "0.0.6",
- "underscore": "^1.12.1"
- }
- },
- "node_modules/typescript": {
- "version": "5.4.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
- "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
- "dev": true,
- "bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
- },
- "engines": {
- "node": ">=14.17"
- }
- },
- "node_modules/underscore": {
- "version": "1.13.6",
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
- "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A=="
- },
- "node_modules/universal-user-agent": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
- "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
- },
- "node_modules/uri-js": {
- "version": "4.4.1",
- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
- "dev": true,
- "dependencies": {
- "punycode": "^2.1.0"
- }
- },
- "node_modules/uuid": {
- "version": "8.3.2",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
- "bin": {
- "uuid": "dist/bin/uuid"
- }
- },
- "node_modules/webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "node_modules/whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "dependencies": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
- }
- },
- "node_modules/which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "dependencies": {
- "isexe": "^2.0.0"
- },
- "bin": {
- "node-which": "bin/node-which"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/workerpool": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz",
- "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==",
- "dev": true
- },
- "node_modules/wrap-ansi": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
- "dev": true,
- "dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
- },
- "node_modules/y18n": {
- "version": "5.0.8",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
- "dev": true
- },
- "node_modules/yargs": {
- "version": "16.2.0",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
- "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
- "dev": true,
- "dependencies": {
- "cliui": "^7.0.2",
- "escalade": "^3.1.1",
- "get-caller-file": "^2.0.5",
- "require-directory": "^2.1.1",
- "string-width": "^4.2.0",
- "y18n": "^5.0.5",
- "yargs-parser": "^20.2.2"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/yargs-parser": {
- "version": "20.2.4",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
- "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/yargs-unparser": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz",
- "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==",
- "dev": true,
- "dependencies": {
- "camelcase": "^6.0.0",
- "decamelize": "^4.0.0",
- "flat": "^5.0.2",
- "is-plain-obj": "^2.1.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/yocto-queue": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- }
- }
-}
diff --git a/package.json b/package.json
deleted file mode 100644
index 1a00b1c3..00000000
--- a/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "name": "cydig-compliance-action",
- "description": "Action for cydig compliance controls",
- "version": "1.0.0",
- "author": "",
- "keywords": [],
- "exports": {
- ".": "./dist/index.js"
- },
- "engines": {
- "node": ">=16"
- },
- "main": "dist/index.js",
- "scripts": {
- "build": "ncc build src/index.ts",
- "test": "tsc && mocha dist/tests/",
- "testScript": "tsc && mocha dist/tests/ --reporter xunit --reporter-option output=ResultsFile.xml",
- "prepare": "husky install",
- "lint": "eslint . --ext .ts",
- "lint:fix": "eslint . --fix --ext .ts",
- "format:write": "npx prettier -w .",
- "format:check": "npx prettier -c ."
- },
- "license": "MIT",
- "dependencies": {
- "@actions/core": "^1.10.0",
- "@actions/github": "^5.1.1",
- "@octokit/plugin-retry": "^6.0.1",
- "@octokit/rest": "^20.1.0",
- "@vercel/ncc": "^0.36.1",
- "azure-devops-node-api": "^12.4.0"
- },
- "devDependencies": {
- "@octokit/types": "^12.0.0",
- "@types/chai": "^4.3.6",
- "@types/mocha": "^10.0.1",
- "@types/node": "^20.5.7",
- "@types/sinon": "^10.0.16",
- "@types/sinon-chai": "^3.2.12",
- "@typescript-eslint/eslint-plugin": "^5.62.0",
- "@typescript-eslint/parser": "^5.62.0",
- "chai": "^4.3.8",
- "eslint": "^8.49.0",
- "husky": "^8.0.3",
- "mocha": "^10.2.0",
- "prettier": "^2.8.8",
- "sinon": "^15.2.0",
- "sinon-chai": "^3.7.0",
- "typescript": "^5.4.5"
- }
-}
diff --git a/src/AccessToCode/AccessToCodeService.ts b/src/AccessToCode/AccessToCodeService.ts
deleted file mode 100644
index fd4c3ff5..00000000
--- a/src/AccessToCode/AccessToCodeService.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import { GetResponseDataTypeFromEndpointMethod, OctokitResponse } from '@octokit/types';
-
-export class AccessToCodeService {
- public static async setAccessToCodeFindings(octokit: Octokit, owner: string, repo: string): Promise {
- try {
- console.log('--- Access To CodeService Control ---');
-
- type listCollaboratorsForRepoResponseDataType = GetResponseDataTypeFromEndpointMethod<
- typeof octokit.repos.listCollaborators
- >;
-
- // https://www.npmjs.com/package/octokit#pagination
- const iterator: AsyncIterableIterator> =
- octokit.paginate.iterator(octokit.repos.listCollaborators, {
- owner: owner,
- repo: repo,
- per_page: 100,
- affiliation: 'all',
- });
-
- let numberOfAdmins: number = 0;
- let numberOfWriters: number = 0;
- let numberOfReaders: number = 0;
-
- for await (const { data: page } of iterator) {
- for (const user of page) {
- if (user.permissions!.admin) {
- numberOfAdmins++;
- } else if (user.permissions!.maintain!) {
- numberOfWriters++;
- } else if (user.permissions!.push!) {
- numberOfWriters++;
- } else if (user.permissions!.triage!) {
- numberOfReaders++;
- } else if (user.permissions!.pull!) {
- numberOfReaders++;
- }
- }
- }
- console.log('numberOfAdmins: ' + numberOfAdmins);
- console.log('numberOfWriters: ' + numberOfWriters);
- console.log('numberOfReaders: ' + numberOfReaders);
- core.exportVariable('numberOfCodeAdmins', numberOfAdmins);
- core.exportVariable('numberOfCodeWriters', numberOfWriters);
- core.exportVariable('numberOfCodeReaders', numberOfReaders);
- } catch (error) {
- core.info('Failed to fetch access to code for repo');
- if (error.status === 401 || error.status === 403) {
- // Removes link to REST API endpoint
- const errorMessage: string = error.message.split('-')[0].trim();
- core.warning(errorMessage, {
- title: 'Failed to fetch acces to code for repo',
- });
- } else {
- core.info(error.message);
- }
- }
- console.log();
- }
-}
diff --git a/src/azuredevopsboard/AzureDevOpsBoardService.ts b/src/azuredevopsboard/AzureDevOpsBoardService.ts
deleted file mode 100644
index 569e5b0c..00000000
--- a/src/azuredevopsboard/AzureDevOpsBoardService.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import * as core from '@actions/core';
-import { AzureDevOpsConnection } from '../helpfunctions/AzureDevOpsConnection';
-import { CyDigConfig } from '../types/CyDigConfig';
-import { DevOpsBoard } from '../types/DevOpsBoard';
-import { PentestTickets } from './PentestTickets';
-import { ThreatModelingTickets } from './ThreatModelingTickets';
-
-export class AzureDevOpsBoardService {
- public static async getStateOfAzureDevOpsBoards(cydigConfig: CyDigConfig): Promise {
- if (cydigConfig.azureDevOps.boards) {
- try {
- console.log('--- Azure DevOps Boards control ---');
- const azureDevOpsConnection: AzureDevOpsConnection = new AzureDevOpsConnection(
- cydigConfig.azureDevOps.boards.organizationName,
- core.getInput('accessTokenAzureDevOps')
- );
-
- const pentestTagInput: string | undefined = process.env.pentestTag;
- const threatModelingTagInput: string | undefined = process.env.threatModelingTag;
-
- let pentestTag: string = cydigConfig.pentest.boardsTag;
- if (pentestTagInput !== undefined && pentestTagInput !== '') {
- pentestTag = pentestTagInput;
- }
-
- let threatModelingTag: string = cydigConfig.threatModeling.boardsTag;
- if (threatModelingTagInput !== undefined && threatModelingTagInput !== '') {
- threatModelingTag = threatModelingTagInput;
- }
-
- const board: DevOpsBoard = {
- nameOfBoards: cydigConfig.azureDevOps.boards.nameOfBoard,
- pentestTag: pentestTag,
- threatModelingTag: threatModelingTag,
- projectId: cydigConfig.azureDevOps.boards.projectName,
- };
-
- if (process.env.pentestDate && process.env.pentestDate != 'not specified') {
- await PentestTickets.setPentestTickets(azureDevOpsConnection, board);
- }
-
- if (process.env.threatModelingDate && process.env.threatModelingDate != 'not specified') {
- await ThreatModelingTickets.setThreatModelingTickets(azureDevOpsConnection, board);
- }
- } catch (error) {
- core.warning('Error getting tickets for Azure DevOps Board!');
- console.log(
- 'There is probably somethine wrong with your token, check that it has not expired or been revoked. Please check that you have the correct permissions (Work items: Read)'
- );
- }
- console.log();
- }
- }
-}
diff --git a/src/azuredevopsboard/PenetrationTestTicketService.ts b/src/azuredevopsboard/PenetrationTestTicketService.ts
deleted file mode 100644
index 56cbb1de..00000000
--- a/src/azuredevopsboard/PenetrationTestTicketService.ts
+++ /dev/null
@@ -1,125 +0,0 @@
-import { WebApi } from 'azure-devops-node-api';
-import {
- WorkItem,
- WorkItemQueryResult,
- WorkItemReference,
-} from 'azure-devops-node-api/interfaces/WorkItemTrackingInterfaces';
-import { IWorkItemTrackingApi } from 'azure-devops-node-api/WorkItemTrackingApi';
-
-export class PenetrationTestTicketService {
- private connection: WebApi;
- private projectId: string;
- private tag: string;
-
- constructor(azureDevOpsConnection: WebApi, projectId: string, tag: string) {
- this.connection = azureDevOpsConnection;
- this.projectId = projectId;
- this.tag = this.setTag(tag);
- }
-
- private setTag(tag: string): string {
- if (!tag) {
- return 'PT';
- }
- return tag;
- }
-
- public async getPenetrationTestTickets(nameOfBoards: string): Promise<{
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- }> {
- const areaPaths: string[] = await this.getAreaPaths(nameOfBoards);
- const workItems: WorkItemReference[] = await this.getWorkItems(areaPaths);
- const numberOfTickets: {
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- } = await this.getNumberOfActiveAndClosedTickets(workItems);
- return numberOfTickets;
- }
-
- private async getAreaPaths(nameOfBoards: string): Promise {
- if (!nameOfBoards || nameOfBoards.toLocaleLowerCase() === null || nameOfBoards === 'not specified') {
- console.log('No board specified, looking through all boards in project');
- return [];
- }
-
- let nameOfBoardsArray: string[] = [];
- if (nameOfBoards.length > 0) {
- nameOfBoardsArray = nameOfBoards.split(', ');
- console.log(`Boards: ${nameOfBoardsArray}`);
- }
-
- const areaPaths: string[] = [];
- for (const board of nameOfBoardsArray) {
- const areaPath: string | undefined = (
- await (
- await this.connection.getWorkApi()
- ).getTeamFieldValues({
- team: board,
- project: this.projectId,
- })
- ).defaultValue;
-
- if (areaPath) {
- areaPaths.push(areaPath);
- }
- }
-
- if (areaPaths.length == 0) {
- throw new Error('Found no board with the specified name');
- }
-
- return areaPaths;
- }
-
- private async getWorkItems(areaPaths: string[]): Promise {
- const witApi: IWorkItemTrackingApi = await this.connection.getWorkItemTrackingApi();
- let queryStringAreaPath: string = '';
- if (areaPaths.length > 0) {
- queryStringAreaPath = this.getQueryStringAreaPath(areaPaths);
- }
-
- const workItemsResponse: WorkItemQueryResult = await witApi.queryByWiql({
- query: `SELECT [System.Id] FROM WorkItems WHERE ${queryStringAreaPath} [System.TeamProject] = '${this.projectId}' AND [System.Tags] CONTAINS '${this.tag}'`,
- });
-
- const workItems: WorkItemReference[] | undefined = workItemsResponse.workItems;
-
- return workItems!;
- }
-
- private getQueryStringAreaPath(areaPaths: string[]): string {
- let queryStringAreaPath: string = '(';
- areaPaths.forEach((areaPath: string) => {
- if (areaPath === areaPaths[areaPaths.length - 1]) {
- queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}') AND`);
- } else {
- queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}' OR `);
- }
- });
- return queryStringAreaPath;
- }
-
- private async getNumberOfActiveAndClosedTickets(workItems: WorkItemReference[]): Promise<{
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- }> {
- const witApi: IWorkItemTrackingApi = await this.connection.getWorkItemTrackingApi();
- let numberOfClosedTickets: number = 0;
- let numberOfActiveTickets: number = 0;
-
- for (const workItem of workItems) {
- const workItemFetched: WorkItem = await witApi.getWorkItem(workItem.id!);
- const state: string = await workItemFetched.fields!['System.State'];
- if (state === 'Closed' || state === 'Done') {
- numberOfClosedTickets++;
- } else {
- numberOfActiveTickets++;
- }
- }
- return {
- numberOfActiveTickets: numberOfActiveTickets,
- numberOfClosedTickets: numberOfClosedTickets,
- };
- }
-}
diff --git a/src/azuredevopsboard/PentestTickets.ts b/src/azuredevopsboard/PentestTickets.ts
deleted file mode 100644
index e545cdea..00000000
--- a/src/azuredevopsboard/PentestTickets.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import * as core from '@actions/core';
-import { AzureDevOpsConnection } from '../helpfunctions/AzureDevOpsConnection';
-import { PenetrationTestTicketService } from './PenetrationTestTicketService';
-import { DevOpsBoard } from '../types/DevOpsBoard';
-
-export class PentestTickets {
- static async setPentestTickets(azureDevOpsConnection: AzureDevOpsConnection, board: DevOpsBoard): Promise {
- console.log('Getting penetration test tickets');
- const penetrationTestTicketService: PenetrationTestTicketService = new PenetrationTestTicketService(
- azureDevOpsConnection.getConnection(),
- board.projectId,
- board.pentestTag
- );
- const numberOfTickets: {
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- } = await penetrationTestTicketService.getPenetrationTestTickets(board.nameOfBoards);
-
- console.log('Active penetration test tickets: ' + numberOfTickets.numberOfActiveTickets);
- console.log('Closed penetration test tickets : ' + numberOfTickets.numberOfClosedTickets);
-
- core.exportVariable('ptNumberOfActiveTickets', numberOfTickets.numberOfActiveTickets.toString());
- core.exportVariable('ptNumberOfClosedTickets', numberOfTickets.numberOfClosedTickets.toString());
- return;
- }
-}
diff --git a/src/azuredevopsboard/ThreatModelingTicketService.ts b/src/azuredevopsboard/ThreatModelingTicketService.ts
deleted file mode 100644
index c234895e..00000000
--- a/src/azuredevopsboard/ThreatModelingTicketService.ts
+++ /dev/null
@@ -1,125 +0,0 @@
-import { WebApi } from 'azure-devops-node-api';
-import {
- WorkItem,
- WorkItemQueryResult,
- WorkItemReference,
-} from 'azure-devops-node-api/interfaces/WorkItemTrackingInterfaces';
-import { IWorkItemTrackingApi } from 'azure-devops-node-api/WorkItemTrackingApi';
-
-export class ThreatModelingTicketService {
- private connection: WebApi;
- private projectId: string;
- private tag: string;
-
- constructor(azureDevOpsConnection: WebApi, projectId: string, tag: string) {
- this.connection = azureDevOpsConnection;
- this.projectId = projectId;
- this.tag = this.setTag(tag);
- }
-
- private setTag(tag: string): string {
- if (!tag || tag === 'not specified') {
- return 'TM';
- }
- return tag;
- }
-
- public async getThreatModelingTickets(nameOfBoards: string): Promise<{
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- }> {
- const areaPaths: string[] = await this.getAreaPaths(nameOfBoards);
- const workItems: WorkItemReference[] = await this.getWorkItems(areaPaths);
- const numberOfTickets: {
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- } = await this.getNumberOfActiveAndClosedTickets(workItems);
- return numberOfTickets;
- }
-
- private async getAreaPaths(nameOfBoards: string): Promise {
- if (!nameOfBoards || nameOfBoards.toLocaleLowerCase() === null || nameOfBoards === 'not specified') {
- console.log('No board specified, looking through all boards in project');
- return [];
- }
-
- let nameOfBoardsArray: string[] = [];
- if (nameOfBoards.length > 0) {
- nameOfBoardsArray = nameOfBoards.split(', ');
- console.log(`Boards: ${nameOfBoardsArray}`);
- }
-
- const areaPaths: string[] = [];
- for (const board of nameOfBoardsArray) {
- const areaPath: string | undefined = (
- await (
- await this.connection.getWorkApi()
- ).getTeamFieldValues({
- team: board,
- project: this.projectId,
- })
- ).defaultValue;
-
- if (areaPath) {
- areaPaths.push(areaPath);
- }
- }
-
- if (areaPaths.length == 0) {
- throw new Error('Found no board with the specified name');
- }
-
- return areaPaths;
- }
-
- private async getWorkItems(areaPaths: string[]): Promise {
- const witApi: IWorkItemTrackingApi = await this.connection.getWorkItemTrackingApi();
- let queryStringAreaPath: string = '';
- if (areaPaths.length > 0) {
- queryStringAreaPath = this.getQueryStringAreaPath(areaPaths);
- }
-
- const workItemsResponse: WorkItemQueryResult = await witApi.queryByWiql({
- query: `SELECT [System.Id] FROM WorkItems WHERE ${queryStringAreaPath} [System.TeamProject] = '${this.projectId}' AND [System.Tags] CONTAINS '${this.tag}'`,
- });
-
- const workItems: WorkItemReference[] | undefined = workItemsResponse.workItems;
-
- return workItems!;
- }
-
- private getQueryStringAreaPath(areaPaths: string[]): string {
- let queryStringAreaPath: string = '(';
- areaPaths.forEach((areaPath: string) => {
- if (areaPath === areaPaths[areaPaths.length - 1]) {
- queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}') AND`);
- } else {
- queryStringAreaPath = queryStringAreaPath.concat(`[System.AreaPath] = '${areaPath}' OR `);
- }
- });
- return queryStringAreaPath;
- }
-
- private async getNumberOfActiveAndClosedTickets(workItems: WorkItemReference[]): Promise<{
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- }> {
- const witApi: IWorkItemTrackingApi = await this.connection.getWorkItemTrackingApi();
- let numberOfClosedTickets: number = 0;
- let numberOfActiveTickets: number = 0;
-
- for (const workItem of workItems) {
- const workItemFetched: WorkItem = await witApi.getWorkItem(workItem.id!);
- const state: string = await workItemFetched.fields!['System.State'];
- if (state === 'Closed' || state === 'Done') {
- numberOfClosedTickets++;
- } else {
- numberOfActiveTickets++;
- }
- }
- return {
- numberOfActiveTickets: numberOfActiveTickets,
- numberOfClosedTickets: numberOfClosedTickets,
- };
- }
-}
diff --git a/src/azuredevopsboard/ThreatModelingTickets.ts b/src/azuredevopsboard/ThreatModelingTickets.ts
deleted file mode 100644
index e7d3bc87..00000000
--- a/src/azuredevopsboard/ThreatModelingTickets.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import * as core from '@actions/core';
-import { AzureDevOpsConnection } from '../helpfunctions/AzureDevOpsConnection';
-import { ThreatModelingTicketService } from './ThreatModelingTicketService';
-import { DevOpsBoard } from '../types/DevOpsBoard';
-
-export class ThreatModelingTickets {
- static async setThreatModelingTickets(
- azureDevOpsConnection: AzureDevOpsConnection,
- board: DevOpsBoard
- ): Promise {
- console.log('Getting threat modeling tickets');
- const threatModelingTicketService: ThreatModelingTicketService = new ThreatModelingTicketService(
- azureDevOpsConnection.getConnection(),
- board.projectId,
- board.threatModelingTag
- );
- const numberOfTickets: {
- numberOfActiveTickets: number;
- numberOfClosedTickets: number;
- } = await threatModelingTicketService.getThreatModelingTickets(board.nameOfBoards);
-
- console.log('Active threat modeling tickets: ' + numberOfTickets.numberOfActiveTickets);
- console.log('Closed threat modeling tickets : ' + numberOfTickets.numberOfClosedTickets);
-
- core.exportVariable('tmNumberOfActiveTickets', numberOfTickets.numberOfActiveTickets.toString());
- core.exportVariable('tmNumberOfClosedTickets', numberOfTickets.numberOfClosedTickets.toString());
- return;
- }
-}
diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts
deleted file mode 100644
index 4d143855..00000000
--- a/src/branchprotection/BranchProtectionService.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import { BranchProtectionForRepoResponseDataType } from '../types/OctokitResponses';
-
-export class BranchProtectionService {
- public static async getStateOfBranchProtection(octokit: Octokit, owner: string, repo: string): Promise {
- try {
- console.log('--- Branch protection control ---');
-
- const response: BranchProtectionForRepoResponseDataType = await octokit.rest.repos.getBranchProtection({
- owner,
- repo,
- branch: 'main',
- });
-
- if (response.data.enforce_admins?.enabled === false) {
- core.warning('Branch protection can be overridden by admins and is therefore counted as not enabled');
- }
- let numberOfReviewers: number = 0;
- if (
- response.data.enforce_admins?.enabled === true &&
- response.data.required_pull_request_reviews?.required_approving_review_count
- ) {
- numberOfReviewers = response.data.required_pull_request_reviews?.required_approving_review_count;
- console.log('Branch protection is enabled, number of reviewers:', numberOfReviewers);
- } else {
- console.log('Branch protection is not enabled for repository:', repo);
- }
-
- core.exportVariable('numberOfReviewers', numberOfReviewers);
- } catch (error) {
- const errorMessage: string = error.message.split('-')[0].trim();
- if (error.status === 401) {
- core.info('Failed to get branch protection');
- // Removes link to REST API endpoint
- core.warning(errorMessage, {
- title: 'Branch protection control failed',
- });
- } else if (error.status === 404) {
- if (errorMessage === 'Branch not protected') {
- core.notice(errorMessage, {
- title: 'Branch protection control',
- });
- core.exportVariable('numberOfReviewers', 0);
- } else {
- core.info('Failed to get branch protection');
- core.warning('Credentials probably lack necessary permissions', {
- title: 'Branch protection control failed',
- });
- }
- } else {
- switch (errorMessage) {
- case 'Upgrade to GitHub Pro or make this repository public to enable this feature.':
- console.log('Branch protection is not enabled for repository:', repo);
- core.exportVariable('numberOfReviewers', 0);
- break;
-
- default:
- core.info('Failed to get branch protection');
- core.notice(errorMessage, {
- title: 'Branch protection control failed',
- });
- break;
- }
- }
- }
- console.log();
- }
-}
diff --git a/src/codequalitytools/CodeQualityService.ts b/src/codequalitytools/CodeQualityService.ts
deleted file mode 100644
index b4f9f386..00000000
--- a/src/codequalitytools/CodeQualityService.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import * as core from '@actions/core';
-
-export class CodeQualityService {
- public static async getStateOfCodeQualityTool(codeQualityTool: { nameOfTool: string }): Promise {
- console.log('--- Code Quality control ---');
- if (process.env.codeQualityTool) {
- console.log(`Tool:`, `${process.env.codeQualityTool}`);
- core.exportVariable('codeQualityTool', process.env.codeQualityTool);
- } else {
- if (!codeQualityTool.nameOfTool || codeQualityTool.nameOfTool === 'name-of-tool') {
- core.warning('Code Quality Tool is not set!');
- return;
- }
- console.log(`Tool:`, `${codeQualityTool.nameOfTool}`);
- core.exportVariable('codeQualityTool', codeQualityTool.nameOfTool);
- }
- console.log();
- }
-}
diff --git a/src/cydigConfig.json b/src/cydigConfig.json
deleted file mode 100644
index ca48c823..00000000
--- a/src/cydigConfig.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "teamName": "CyDig",
- "usingAzure": true,
- "threatModeling": {
- "date": "2024-01-01",
- "boardsTag": "TM"
- },
- "pentest": {
- "date": "2023-01-01",
- "boardsTag": "PT"
- },
- "azureDevOps": {
- "usingBoards": true,
- "boards": {
- "organizationName": "CyDig",
- "projectName": "CyDig",
- "nameOfBoard": "not specified"
- }
- },
- "scaTool": {
- "nameOfTool": "dependabot"
- },
- "sastTool": {
- "nameOfTool": "SEMGREP"
- },
- "codeQualityTool": {
- "nameOfTool": "not specified"
- }
-}
diff --git a/src/helpfunctions/AzureDevOpsConnection.ts b/src/helpfunctions/AzureDevOpsConnection.ts
deleted file mode 100644
index 60f5fa67..00000000
--- a/src/helpfunctions/AzureDevOpsConnection.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import * as nodeApi from 'azure-devops-node-api';
-import { IRequestHandler } from 'azure-devops-node-api/interfaces/common/VsoBaseInterfaces';
-
-export class AzureDevOpsConnection {
- private accessToken: string;
- private orgUrlDevOps: string;
- private orgName: string;
-
- constructor(orgName: string, accessToken: string) {
- this.accessToken = this.isNullOrUndefined(accessToken);
- this.orgName = orgName;
- this.orgUrlDevOps = `https://dev.azure.com/${orgName}/`;
- }
-
- private isNullOrUndefined(value: string): string {
- if (!value) {
- throw new Error('Input values cannot be null or undefined');
- }
- return value;
- }
-
- public getConnection(): nodeApi.WebApi {
- const authHandler: IRequestHandler = nodeApi.getPersonalAccessTokenHandler(this.accessToken);
- const connection: nodeApi.WebApi = new nodeApi.WebApi(this.orgUrlDevOps, authHandler);
- return connection;
- }
-
- public getOrgName(): string {
- return this.orgName;
- }
-}
diff --git a/src/helpfunctions/JsonService.ts b/src/helpfunctions/JsonService.ts
deleted file mode 100644
index da69c7f2..00000000
--- a/src/helpfunctions/JsonService.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import * as fs from 'fs';
-import * as path from 'path';
-import { CyDigConfig } from '../types/CyDigConfig';
-
-export function getContentOfFile(jsonPath: string): CyDigConfig {
- const jsonFilePath: string = path.resolve(
- __dirname,
- path.relative(__dirname, path.normalize(jsonPath).replace(/^(\.\.(\/|\\|$))+/, ''))
- );
- const fileContent: string = fs.readFileSync(jsonFilePath, { encoding: 'utf-8' });
-
- const cydigConfig: CyDigConfig = JSON.parse(fileContent);
-
- return cydigConfig;
-}
diff --git a/src/index.ts b/src/index.ts
deleted file mode 100644
index eeca892a..00000000
--- a/src/index.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import { getInput, setFailed } from '@actions/core';
-import { context } from '@actions/github';
-import { retry } from '@octokit/plugin-retry';
-import { Octokit } from '@octokit/rest';
-import { AzureDevOpsBoardService } from './azuredevopsboard/AzureDevOpsBoardService';
-import { BranchProtectionService } from './branchprotection/BranchProtectionService';
-import { CodeQualityService } from './codequalitytools/CodeQualityService';
-import { getContentOfFile } from './helpfunctions/JsonService';
-import { PentestService } from './pentest/PentestService';
-import { SastService } from './sasttools/SastService';
-import { ScaService } from './scatools/ScaService';
-import { SecretScanningService } from './secretscanning/SecretScanningService';
-import { AccessToCodeService } from './AccessToCode/AccessToCodeService';
-import { ThreatModelingService } from './threatmodeling/ThreatModelingService';
-import { CyDigConfig } from './types/CyDigConfig';
-
-/**
- * The main function for the action.
- * @returns {Promise} Resolves when the action is complete.
- */
-export async function run(): Promise {
- try {
- console.log('Running compliance controls \n');
- const cydigConfig: CyDigConfig = getContentOfFile(getInput('cydigConfigPath'));
- const { owner, repo }: { owner: string; repo: string } = context.repo;
- const token: string = getInput('PAT-token');
- // eslint-disable-next-line
- const OctokitRetry = Octokit.plugin(retry);
- const octokit: Octokit = new OctokitRetry({
- auth: token,
- });
-
- await CodeQualityService.getStateOfCodeQualityTool(cydigConfig.codeQualityTool);
- await SastService.getStateOfSastTool(cydigConfig.sastTool.nameOfTool, octokit, owner, repo);
- await ScaService.getStateOfScaTool(cydigConfig.scaTool.nameOfTool, octokit, owner, repo);
- await SecretScanningService.getStateOfExposedSecrets(
- cydigConfig.secretScanningTool?.nameOfTool,
- octokit,
- owner,
- repo
- );
- await BranchProtectionService.getStateOfBranchProtection(octokit, owner, repo);
- await AccessToCodeService.setAccessToCodeFindings(octokit, owner, repo);
- await PentestService.getStateOfPentest(cydigConfig.pentest);
- await ThreatModelingService.getStateOfThreatModeling(cydigConfig.threatModeling);
- await AzureDevOpsBoardService.getStateOfAzureDevOpsBoards(cydigConfig);
- } catch (error) {
- // Fail the workflow run if an error occurs
- if (error instanceof Error) setFailed(error.message);
- }
-}
-
-// eslint-disable-next-line @typescript-eslint/no-floating-promises
-run();
diff --git a/src/pentest/PentestService.ts b/src/pentest/PentestService.ts
deleted file mode 100644
index 64c2e7db..00000000
--- a/src/pentest/PentestService.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import * as core from '@actions/core';
-
-export class PentestService {
- public static async getStateOfPentest(pentest: { date: string; boardsTag?: string }): Promise {
- console.log('--- Pentest control ---');
- if (process.env.pentestDate) {
- console.log('Pentest date was found');
- core.exportVariable('pentestDate', process.env.pentestDate);
- } else {
- if (!pentest.date || pentest.date === 'date-of-pentest') {
- core.warning('Pentest Date is not set!');
- return;
- }
- console.log('Pentest date was found');
- core.exportVariable('pentestDate', pentest.date);
- }
- console.log();
- }
-}
diff --git a/src/sasttools/CodeQLService.ts b/src/sasttools/CodeQLService.ts
deleted file mode 100644
index ec11ba70..00000000
--- a/src/sasttools/CodeQLService.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import GitHub_Tool_Severity_Level from '../types/GithubToolSeverityLevel';
-import { CodeScanningAlertsForRepoResponseDataType } from '../types/OctokitResponses';
-
-export class CodeQLService {
- public static async setCodeQLFindings(
- nameOfTool: string,
- octokit: Octokit,
- owner: string,
- repo: string
- ): Promise {
- try {
- // https://www.npmjs.com/package/octokit#pagination
- const iterator: AsyncIterableIterator = octokit.paginate.iterator(
- octokit.codeScanning.listAlertsForRepo,
- {
- owner: owner,
- repo: repo,
- per_page: 100,
- state: 'open',
- tool_name: 'CodeQL',
- }
- );
-
- let sastNumberOfSeverity1: number = 0;
- let sastNumberOfSeverity2: number = 0;
- let sastNumberOfSeverity3: number = 0;
- let sastNumberOfSeverity4: number = 0;
-
- for await (const { data: alerts } of iterator) {
- for (const alert of alerts) {
- switch (alert.rule.security_severity_level) {
- case GitHub_Tool_Severity_Level.LOW:
- sastNumberOfSeverity1++;
- break;
- case GitHub_Tool_Severity_Level.MEDIUM:
- sastNumberOfSeverity2++;
- break;
- case GitHub_Tool_Severity_Level.HIGH:
- sastNumberOfSeverity3++;
- break;
- case GitHub_Tool_Severity_Level.CRITICAL:
- sastNumberOfSeverity4++;
- break;
- default:
- break;
- }
- }
- }
-
- console.log('Low: ' + sastNumberOfSeverity1);
- console.log('Medium: ' + sastNumberOfSeverity2);
- console.log('High: ' + sastNumberOfSeverity3);
- console.log('Critical: ' + sastNumberOfSeverity4);
-
- core.exportVariable('sastTool', nameOfTool);
- core.exportVariable('SASTnumberOfSeverity1', sastNumberOfSeverity1);
- core.exportVariable('SASTnumberOfSeverity2', sastNumberOfSeverity2);
- core.exportVariable('SASTnumberOfSeverity3', sastNumberOfSeverity3);
- core.exportVariable('SASTnumberOfSeverity4', sastNumberOfSeverity4);
- } catch (error) {
- core.info('Failed to get CodeQL severities');
- if (error.status === 401 || error.status === 403 || error.status === 404) {
- // Removes link to REST API endpoint
- const errorMessage: string = error.message.split('-')[0].trim();
- core.warning(errorMessage, {
- title: 'SAST tool control failed',
- });
- } else {
- core.notice(error.message, {
- title: 'SAST tool control failed',
- });
- }
- }
- }
-}
diff --git a/src/sasttools/SastService.ts b/src/sasttools/SastService.ts
deleted file mode 100644
index b92ac464..00000000
--- a/src/sasttools/SastService.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import { CodeQLService } from './CodeQLService';
-import GitHub_Tools from '../types/GitHubTools';
-
-export class SastService {
- public static async getStateOfSastTool(
- nameOfTool: string,
- octokit: Octokit,
- owner: string,
- repo: string
- ): Promise {
- console.log('--- SAST control ---');
- let sast: string = nameOfTool;
- if (process.env.sastTool) {
- sast = process.env.sastTool;
- }
- if (!sast || sast === '' || sast === 'name-of-tool') {
- core.warning('SAST Tool is not set!');
- return;
- }
- console.log(`Tool:`, `${sast}`);
- switch (sast.toLowerCase()) {
- case GitHub_Tools.CODEQL.toLowerCase():
- await CodeQLService.setCodeQLFindings(sast, octokit, owner, repo);
- break;
- default:
- core.exportVariable('sastTool', sast);
- break;
- }
- console.log();
- }
-}
diff --git a/src/scatools/DependabotService.ts b/src/scatools/DependabotService.ts
deleted file mode 100644
index 80a4f6b4..00000000
--- a/src/scatools/DependabotService.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import GitHub_Tool_Severity_Level from '../types/GithubToolSeverityLevel';
-import { DependabotAlertsForRepoResponseDataType } from '../types/OctokitResponses';
-
-export class DependabotService {
- public static async setDependabotFindings(
- nameOfTool: string,
- octokit: Octokit,
- owner: string,
- repo: string
- ): Promise {
- try {
- // https://www.npmjs.com/package/octokit#pagination
- const iterator: AsyncIterableIterator = octokit.paginate.iterator(
- octokit.dependabot.listAlertsForRepo,
- {
- owner: owner,
- repo: repo,
- per_page: 100,
- state: 'open',
- }
- );
-
- let scaNumberOfSeverity1: number = 0;
- let scaNumberOfSeverity2: number = 0;
- let scaNumberOfSeverity3: number = 0;
- let scaNumberOfSeverity4: number = 0;
-
- for await (const { data: alerts } of iterator) {
- for (const alert of alerts) {
- switch (alert.security_vulnerability.severity) {
- case GitHub_Tool_Severity_Level.LOW:
- scaNumberOfSeverity1++;
- break;
- case GitHub_Tool_Severity_Level.MEDIUM:
- scaNumberOfSeverity2++;
- break;
- case GitHub_Tool_Severity_Level.HIGH:
- scaNumberOfSeverity3++;
- break;
- case GitHub_Tool_Severity_Level.CRITICAL:
- scaNumberOfSeverity4++;
- break;
- }
- }
- }
-
- console.log('Low: ' + scaNumberOfSeverity1);
- console.log('Medium: ' + scaNumberOfSeverity2);
- console.log('High: ' + scaNumberOfSeverity3);
- console.log('Critical: ' + scaNumberOfSeverity4);
-
- core.exportVariable('scaTool', nameOfTool);
- core.exportVariable('SCAnumberOfSeverity1', scaNumberOfSeverity1);
- core.exportVariable('SCAnumberOfSeverity2', scaNumberOfSeverity2);
- core.exportVariable('SCAnumberOfSeverity3', scaNumberOfSeverity3);
- core.exportVariable('SCAnumberOfSeverity4', scaNumberOfSeverity4);
- } catch (error) {
- core.info('Failed to get Dependabot severities');
- if (error.status === 401 || error.status === 403 || error.status === 404) {
- // Removes link to REST API endpoint
- const errorMessage: string = error.message.split('-')[0].trim();
- core.warning(errorMessage, {
- title: 'SCA tool control failed',
- });
- } else {
- core.notice(error.message, {
- title: 'SCA tool control failed',
- });
- }
- }
- }
-}
diff --git a/src/scatools/ScaService.ts b/src/scatools/ScaService.ts
deleted file mode 100644
index f83a58b5..00000000
--- a/src/scatools/ScaService.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import { DependabotService } from './DependabotService';
-import GitHub_Tools from '../types/GitHubTools';
-
-export class ScaService {
- public static async getStateOfScaTool(
- nameOfTool: string,
- octokit: Octokit,
- owner: string,
- repo: string
- ): Promise {
- console.log('--- SCA control ---');
- let sca: string = nameOfTool;
- if (process.env.scaTool) {
- sca = process.env.scaTool;
- }
- if (!sca || sca === '' || sca === 'name-of-tool') {
- core.warning('SCA Tool is not set!');
- return;
- }
- console.log(`Tool:`, `${sca}`);
- switch (sca.toLowerCase()) {
- case GitHub_Tools.DEPENDABOT.toLowerCase():
- await DependabotService.setDependabotFindings(sca, octokit, owner, repo);
- break;
- default:
- core.exportVariable('scaTool', sca);
- break;
- }
- console.log();
- }
-}
diff --git a/src/secretscanning/GithubSecretScanningService.ts b/src/secretscanning/GithubSecretScanningService.ts
deleted file mode 100644
index cb75be84..00000000
--- a/src/secretscanning/GithubSecretScanningService.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import { SecretAlertsForRepoResponseDataType } from '../types/OctokitResponses';
-import GitHub_Tools from '../types/GitHubTools';
-
-export class GithubSecretScanningService {
- public static async getStateOfExposedSecrets(octokit: Octokit, owner: string, repo: string): Promise {
- try {
- console.log('Tool: Github Secret Scanning');
-
- // https://www.npmjs.com/package/octokit#pagination
- const iterator: AsyncIterableIterator = octokit.paginate.iterator(
- octokit.secretScanning.listAlertsForRepo,
- {
- owner: owner,
- repo: repo,
- per_page: 100,
- state: 'open',
- }
- );
-
- let numberOfExposedSecrets: number = 0;
-
- for await (const { data: alerts } of iterator) {
- numberOfExposedSecrets += alerts.length;
- }
-
- console.log('Exposed secrets:', numberOfExposedSecrets);
- core.exportVariable('secretScanningTool', GitHub_Tools.GitHub_SECRET_SCANNING);
- core.exportVariable('numberOfExposedSecrets', numberOfExposedSecrets);
- } catch (error) {
- core.info('Failed to get number of exposed secrets');
- // Removes link to REST API endpoint
- const errorMessage: string = error.message.split('-')[0].trim();
- if (error.status === 401) {
- core.warning(errorMessage, {
- title: 'Number of exposed secrets control failed',
- });
- } else if (error.status === 404) {
- switch (errorMessage) {
- case 'Secret scanning is disabled on this repository.':
- core.warning(errorMessage, {
- title: 'Number of exposed secrets control failed',
- });
- break;
-
- default:
- console.log(error);
- core.warning('Credentials probably lack necessary permissions', {
- title: 'Number of exposed secrets control failed',
- });
- break;
- }
- } else {
- core.notice(error.message, {
- title: 'Number of exposed secrets control failed',
- });
- }
- }
- console.log();
- }
-}
diff --git a/src/secretscanning/SecretScanningService.ts b/src/secretscanning/SecretScanningService.ts
deleted file mode 100644
index 415025f9..00000000
--- a/src/secretscanning/SecretScanningService.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import * as core from '@actions/core';
-import { Octokit } from '@octokit/rest';
-import GitHub_Tools from '../types/GitHubTools';
-import { GithubSecretScanningService } from './GithubSecretScanningService';
-
-export class SecretScanningService {
- public static async getStateOfExposedSecrets(
- nameOfTool: string,
- octokit: Octokit,
- owner: string,
- repo: string
- ): Promise {
- console.log('--- Secret Scanning control ---');
-
- if (nameOfTool === null || nameOfTool === undefined || nameOfTool === 'name-of-tool') {
- core.warning('Secret Scanning Tool is not set! Will continue with GitHub Secret Scanning tool:');
- await GithubSecretScanningService.getStateOfExposedSecrets(octokit, owner, repo);
- return;
- }
-
- switch (nameOfTool.toLowerCase()) {
- case GitHub_Tools.GitHub_SECRET_SCANNING.toLowerCase():
- await GithubSecretScanningService.getStateOfExposedSecrets(octokit, owner, repo);
- break;
- default:
- core.notice('Given secret scanning tool is not implemented: ' + nameOfTool, {
- title: 'Number of exposed secrets control failed',
- });
- core.exportVariable('secretScanningTool', nameOfTool);
- break;
- }
-
- console.log();
- }
-}
diff --git a/src/threatmodeling/ThreatModelingService.ts b/src/threatmodeling/ThreatModelingService.ts
deleted file mode 100644
index 9f0308f2..00000000
--- a/src/threatmodeling/ThreatModelingService.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import * as core from '@actions/core';
-export class ThreatModelingService {
- public static async getStateOfThreatModeling(threatModeling: { date: string; boardsTag?: string }): Promise {
- console.log('--- Threat Modeling control ---');
- if (process.env.threatModelingDate) {
- console.log('Threat Modeling date was found');
- core.exportVariable('threatModelingDate', process.env.threatModelingDate);
- } else {
- if (!threatModeling.date || threatModeling.date === 'date-of-threat-modeling') {
- core.warning('Threat Modeling Date is not set!');
- return;
- }
- console.log('Threat Modeling date was found');
- core.exportVariable('threatModelingDate', threatModeling.date);
- }
- console.log();
- }
-}
diff --git a/src/types/CyDigConfig.ts b/src/types/CyDigConfig.ts
deleted file mode 100644
index 4c41d8ac..00000000
--- a/src/types/CyDigConfig.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-export type CyDigConfig = {
- teamName: string;
- usingAzure: boolean;
- threatModeling: {
- date: string;
- boardsTag: string;
- };
- secretScanningTool: {
- nameOfTool: string;
- };
- pentest: {
- date: string;
- boardsTag: string;
- };
- azureDevOps: {
- usingBoards: boolean;
- boards: {
- organizationName: string;
- projectName: string;
- nameOfBoard: string;
- };
- };
- scaTool: {
- nameOfTool: string;
- };
- sastTool: {
- nameOfTool: string;
- };
- codeQualityTool: {
- nameOfTool: string;
- };
-};
diff --git a/src/types/DevOpsBoard.ts b/src/types/DevOpsBoard.ts
deleted file mode 100644
index 87d7b000..00000000
--- a/src/types/DevOpsBoard.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export type DevOpsBoard = {
- nameOfBoards: string;
- pentestTag: string;
- threatModelingTag: string;
- projectId: string;
-};
diff --git a/src/types/GitHubTools.ts b/src/types/GitHubTools.ts
deleted file mode 100644
index 2d745a98..00000000
--- a/src/types/GitHubTools.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-enum GitHub_Tools {
- DEPENDABOT = 'Dependabot',
- CODEQL = 'CodeQL',
- GitHub_SECRET_SCANNING = 'GitHub',
-}
-
-export default GitHub_Tools;
diff --git a/src/types/GithubToolSeverityLevel.ts b/src/types/GithubToolSeverityLevel.ts
deleted file mode 100644
index dc0202e7..00000000
--- a/src/types/GithubToolSeverityLevel.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-enum GitHub_Tool_Severity_Level {
- LOW = 'low',
- MEDIUM = 'medium',
- HIGH = 'high',
- CRITICAL = 'critical',
-}
-
-export default GitHub_Tool_Severity_Level;
diff --git a/src/types/OctokitResponses.ts b/src/types/OctokitResponses.ts
deleted file mode 100644
index e3a66377..00000000
--- a/src/types/OctokitResponses.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Endpoints } from '@octokit/types';
-
-export type DependabotAlertsForRepoResponseDataType =
- Endpoints['GET /repos/{owner}/{repo}/dependabot/alerts']['response'];
-
-export type CodeScanningAlertsForRepoResponseDataType =
- Endpoints['GET /repos/{owner}/{repo}/code-scanning/alerts']['response'];
-
-export type SecretAlertsForRepoResponseDataType =
- Endpoints['GET /repos/{owner}/{repo}/secret-scanning/alerts']['response'];
-
-export type BranchProtectionForRepoResponseDataType =
- Endpoints['GET /repos/{owner}/{repo}/branches/{branch}/protection']['response'];
diff --git a/tests/BranchProtectionService.test.ts b/tests/BranchProtectionService.test.ts
deleted file mode 100644
index 7cafb8ab..00000000
--- a/tests/BranchProtectionService.test.ts
+++ /dev/null
@@ -1,104 +0,0 @@
-import * as core from '@actions/core';
-import sinon, { SinonStub } from 'sinon';
-import { BranchProtectionService } from '../src/branchprotection/BranchProtectionService';
-
-describe('BranchProtectionService', function () {
- let warningStub: SinonStub;
- let noticeStub: SinonStub;
- let infoStub: SinonStub;
- let exportVariableStub: SinonStub;
- let logStub: SinonStub;
- let getBranchProtectionStub: SinonStub;
- const octokitMock: any = {
- rest: {
- repos: {
- getBranchProtection() {
- return;
- },
- },
- },
- };
-
- beforeEach(function () {
- warningStub = sinon.stub(core, 'warning');
- noticeStub = sinon.stub(core, 'notice');
- infoStub = sinon.stub(core, 'info');
- exportVariableStub = sinon.stub(core, 'exportVariable');
- logStub = sinon.stub(console, 'log');
- getBranchProtectionStub = sinon.stub(octokitMock.rest.repos, 'getBranchProtection');
- });
-
- afterEach(function () {
- sinon.restore();
- });
-
- it('should handle successful branch protection retrieval', async function () {
- getBranchProtectionStub.returns({
- data: {
- enforce_admins: { enabled: true },
- required_pull_request_reviews: { required_approving_review_count: 1 },
- },
- });
-
- await BranchProtectionService.getStateOfBranchProtection(octokitMock, 'owner', 'repo');
- sinon.assert.calledOnceWithExactly(exportVariableStub, 'numberOfReviewers', 1);
- sinon.assert.notCalled(warningStub);
- });
-
- it('should warn when admins can bypass branch protection rules', async function () {
- getBranchProtectionStub.returns({
- data: {
- enforce_admins: { enabled: false },
- required_pull_request_reviews: { required_approving_review_count: 1 },
- },
- });
-
- await BranchProtectionService.getStateOfBranchProtection(octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- sinon.assert.calledOnceWithExactly(exportVariableStub, 'numberOfReviewers', 0);
- });
-
- it('should handle a 401 error', async function () {
- getBranchProtectionStub.rejects({
- status: 401,
- message: '401 error message',
- });
-
- await BranchProtectionService.getStateOfBranchProtection(octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- sinon.assert.notCalled(exportVariableStub);
- });
-
- it('should handle a 404 error (caused by branch protection not enabled)', async function () {
- getBranchProtectionStub.rejects({
- status: 404,
- message: 'Branch not protected',
- });
-
- await BranchProtectionService.getStateOfBranchProtection(octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(noticeStub);
- sinon.assert.calledOnceWithExactly(exportVariableStub, 'numberOfReviewers', 0);
- });
-
- it('should handle a normal 404 error', async function () {
- getBranchProtectionStub.rejects({
- status: 404,
- message: 'Regular 404 error message',
- });
-
- await BranchProtectionService.getStateOfBranchProtection(octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- sinon.assert.notCalled(exportVariableStub);
- });
-
- it('should call warning when branch protection is enabled but receives 404 (status = 404)', async function () {
- getBranchProtectionStub.rejects({
- status: 500,
- message: 'Default error case',
- });
-
- await BranchProtectionService.getStateOfBranchProtection(octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(noticeStub);
- sinon.assert.notCalled(exportVariableStub);
- });
-});
diff --git a/tests/CodeQLService.test.ts b/tests/CodeQLService.test.ts
deleted file mode 100644
index 318dda3b..00000000
--- a/tests/CodeQLService.test.ts
+++ /dev/null
@@ -1,115 +0,0 @@
-import * as core from '@actions/core';
-import sinon, { SinonStub } from 'sinon';
-import { CodeQLService } from '../src/sasttools/CodeQLService';
-import GitHub_Tools from '../src/types/GitHubTools';
-
-describe('CodeQLService', function () {
- let warningStub: SinonStub;
- let noticeStub: SinonStub;
- let infoStub: SinonStub;
- let exportVariableStub: SinonStub;
- let logStub: SinonStub;
- let iteratorStub: SinonStub;
- const octokitMock: any = {
- paginate: {
- iterator() {
- return;
- },
- },
- codeScanning: {
- listAlertsForRepo: '',
- },
- };
-
- beforeEach(() => {
- warningStub = sinon.stub(core, 'warning');
- noticeStub = sinon.stub(core, 'notice');
- infoStub = sinon.stub(core, 'info');
- exportVariableStub = sinon.stub(core, 'exportVariable');
- logStub = sinon.stub(console, 'log');
- iteratorStub = sinon.stub(octokitMock.paginate, 'iterator');
- });
-
- afterEach(() => {
- sinon.restore();
- });
-
- it('should handle successful code scanning retrieval', async function () {
- iteratorStub.returns([
- {
- data: [
- {
- rule: {
- security_severity_level: 'low',
- },
- },
- {
- rule: {
- security_severity_level: 'medium',
- },
- },
- {
- rule: {
- security_severity_level: 'high',
- },
- },
- {
- rule: {
- security_severity_level: 'critical',
- },
- },
- ],
- },
- ]);
-
- await CodeQLService.setCodeQLFindings(GitHub_Tools.CODEQL, octokitMock, 'owner', 'repo');
- sinon.assert.callCount(exportVariableStub, 5);
- sinon.assert.calledWithExactly(exportVariableStub, 'sastTool', GitHub_Tools.CODEQL);
- sinon.assert.calledWithExactly(exportVariableStub, 'SASTnumberOfSeverity1', 1);
- sinon.assert.calledWithExactly(exportVariableStub, 'SASTnumberOfSeverity2', 1);
- sinon.assert.calledWithExactly(exportVariableStub, 'SASTnumberOfSeverity3', 1);
- sinon.assert.calledWithExactly(exportVariableStub, 'SASTnumberOfSeverity4', 1);
- sinon.assert.notCalled(warningStub);
- });
-
- it('should handle a 401 error', async function () {
- iteratorStub.throws({
- status: 401,
- message: '401 error message',
- });
-
- await CodeQLService.setCodeQLFindings(GitHub_Tools.CODEQL, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- });
-
- it('should handle a 403 error', async function () {
- iteratorStub.throws({
- status: 403,
- message: '403 error message',
- });
-
- await CodeQLService.setCodeQLFindings(GitHub_Tools.CODEQL, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- });
-
- it('should handle a 404 error', async function () {
- iteratorStub.throws({
- status: 404,
- message: '404 error message',
- });
-
- await CodeQLService.setCodeQLFindings(GitHub_Tools.CODEQL, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- });
-
- it('should handle error other than 401, 403, 404', async function () {
- iteratorStub.throws({
- status: 500,
- message: 'Default error case',
- });
-
- await CodeQLService.setCodeQLFindings(GitHub_Tools.CODEQL, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(noticeStub);
- sinon.assert.notCalled(warningStub);
- });
-});
diff --git a/tests/DependabotService.test.ts b/tests/DependabotService.test.ts
deleted file mode 100644
index af9ab84a..00000000
--- a/tests/DependabotService.test.ts
+++ /dev/null
@@ -1,115 +0,0 @@
-import * as core from '@actions/core';
-import sinon, { SinonStub } from 'sinon';
-import { DependabotService } from '../src/scatools/DependabotService';
-import GitHub_Tools from '../src/types/GitHubTools';
-
-describe('CodeQLService', function () {
- let warningStub: SinonStub;
- let noticeStub: SinonStub;
- let infoStub: SinonStub;
- let exportVariableStub: SinonStub;
- let logStub: SinonStub;
- let iteratorStub: SinonStub;
- const octokitMock: any = {
- paginate: {
- iterator() {
- return;
- },
- },
- dependabot: {
- listAlertsForRepo: '',
- },
- };
-
- beforeEach(function () {
- warningStub = sinon.stub(core, 'warning');
- noticeStub = sinon.stub(core, 'notice');
- infoStub = sinon.stub(core, 'info');
- exportVariableStub = sinon.stub(core, 'exportVariable');
- logStub = sinon.stub(console, 'log');
- iteratorStub = sinon.stub(octokitMock.paginate, 'iterator');
- });
-
- afterEach(function () {
- sinon.restore();
- });
-
- it('should handle successful Dependabot alerts retrieval', async function () {
- iteratorStub.returns([
- {
- data: [
- {
- security_vulnerability: {
- severity: 'low',
- },
- },
- {
- security_vulnerability: {
- severity: 'medium',
- },
- },
- {
- security_vulnerability: {
- severity: 'high',
- },
- },
- {
- security_vulnerability: {
- severity: 'critical',
- },
- },
- ],
- },
- ]);
-
- await DependabotService.setDependabotFindings(GitHub_Tools.DEPENDABOT, octokitMock, 'owner', 'repo');
- sinon.assert.callCount(exportVariableStub, 5);
- sinon.assert.calledWithExactly(exportVariableStub, 'scaTool', GitHub_Tools.DEPENDABOT);
- sinon.assert.calledWithExactly(exportVariableStub, 'SCAnumberOfSeverity1', 1);
- sinon.assert.calledWithExactly(exportVariableStub, 'SCAnumberOfSeverity1', 1);
- sinon.assert.calledWithExactly(exportVariableStub, 'SCAnumberOfSeverity1', 1);
- sinon.assert.calledWithExactly(exportVariableStub, 'SCAnumberOfSeverity1', 1);
- sinon.assert.notCalled(warningStub);
- });
-
- it('should handle a 401 error', async function () {
- iteratorStub.throws({
- status: 401,
- message: '401 error message',
- });
-
- await DependabotService.setDependabotFindings(GitHub_Tools.DEPENDABOT, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- });
-
- it('should handle a 403 error', async function () {
- iteratorStub.throws({
- status: 403,
- message: '403 error message',
- });
-
- await DependabotService.setDependabotFindings(GitHub_Tools.DEPENDABOT, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- });
-
- it('should handle a 404 error', async function () {
- iteratorStub.throws({
- status: 404,
- message: '404 error message',
- });
-
- await DependabotService.setDependabotFindings(GitHub_Tools.DEPENDABOT, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(warningStub);
- });
-
- it('should handle error other than 401, 403, 404', async function () {
- iteratorStub.throws({
- status: 500,
- message: 'Default error case',
- });
-
- await DependabotService.setDependabotFindings(GitHub_Tools.DEPENDABOT, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(noticeStub);
- sinon.assert.notCalled(warningStub);
- });
-});
diff --git a/tests/SastService.test.ts b/tests/SastService.test.ts
deleted file mode 100644
index caa25d74..00000000
--- a/tests/SastService.test.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import * as core from '@actions/core';
-import sinon, { SinonStub } from 'sinon';
-import { CodeQLService } from '../src/sasttools/CodeQLService';
-import { SastService } from '../src/sasttools/SastService';
-import GitHub_Tools from '../src/types/GitHubTools';
-
-describe('SastService', function () {
- let warningStub: SinonStub;
- let noticeStub: SinonStub;
- let infoStub: SinonStub;
- let exportVariableStub: SinonStub;
- let logStub: SinonStub;
- let setCodeQLFindingsStub: SinonStub;
- const octokitMock: any = {};
-
- beforeEach(function () {
- warningStub = sinon.stub(core, 'warning');
- noticeStub = sinon.stub(core, 'notice');
- infoStub = sinon.stub(core, 'info');
- exportVariableStub = sinon.stub(core, 'exportVariable');
- logStub = sinon.stub(console, 'log');
- setCodeQLFindingsStub = sinon.stub(CodeQLService, 'setCodeQLFindings');
- });
-
- afterEach(function () {
- sinon.restore();
- });
-
- it('should run CodeQL suite if toolName is "CodeQl"', async function () {
- await SastService.getStateOfSastTool(GitHub_Tools.CODEQL, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(setCodeQLFindingsStub);
- });
-
- it('should only export variable "sastTool" if tool is not supported', async function () {
- await SastService.getStateOfSastTool('unsupported tool', octokitMock, 'owner', 'repo');
- sinon.assert.calledOnceWithExactly(exportVariableStub, 'sastTool', 'unsupported tool');
- });
-});
diff --git a/tests/ScaService.test.ts b/tests/ScaService.test.ts
deleted file mode 100644
index 41c4731c..00000000
--- a/tests/ScaService.test.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import * as core from '@actions/core';
-import sinon, { SinonStub } from 'sinon';
-import { DependabotService } from '../src/scatools/DependabotService';
-import { ScaService } from '../src/scatools/ScaService';
-import GitHub_Tools from '../src/types/GitHubTools';
-
-describe('DependabotService', function () {
- let warningStub: SinonStub;
- let noticeStub: SinonStub;
- let infoStub: SinonStub;
- let exportVariableStub: SinonStub;
- let logStub: SinonStub;
- let setDependabotFindingsStub: SinonStub;
- const octokitMock: any = {};
-
- beforeEach(function () {
- warningStub = sinon.stub(core, 'warning');
- noticeStub = sinon.stub(core, 'notice');
- infoStub = sinon.stub(core, 'info');
- exportVariableStub = sinon.stub(core, 'exportVariable');
- logStub = sinon.stub(console, 'log');
- setDependabotFindingsStub = sinon.stub(DependabotService, 'setDependabotFindings');
- });
-
- afterEach(function () {
- sinon.restore();
- });
-
- it('should run Dependabot suite if toolName is "Dependabot"', async function () {
- await ScaService.getStateOfScaTool(GitHub_Tools.DEPENDABOT, octokitMock, 'owner', 'repo');
- sinon.assert.calledOnce(setDependabotFindingsStub);
- });
-
- it('should only export variable "scaTool" if tool is not supported', async function () {
- await ScaService.getStateOfScaTool('unsupported tool', octokitMock, 'owner', 'repo');
- sinon.assert.calledOnceWithExactly(exportVariableStub, 'scaTool', 'unsupported tool');
- });
-});
diff --git a/tsconfig.json b/tsconfig.json
deleted file mode 100644
index 81bc24e4..00000000
--- a/tsconfig.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/tsconfig",
- "compilerOptions": {
- "target": "ES2022",
- "module": "nodenext",
- "rootDir": "./",
- "moduleResolution": "nodenext",
- "baseUrl": "./",
- "sourceMap": true,
- "outDir": "./dist",
- "noImplicitAny": true,
- "esModuleInterop": true,
- "forceConsistentCasingInFileNames": true,
- "skipLibCheck": true,
- "newLine": "lf"
- },
- "exclude": ["./dist", "./node_modules", "./src"]
-}