This commit is contained in:
2019-09-17 13:20:42 -04:00
parent d211d1dc34
commit bef10ce4c9
8352 changed files with 568242 additions and 51 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,451 @@
import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
export declare enum ConnectedServiceKind {
/**
* Custom or unknown service
*/
Custom = 0,
/**
* Azure Subscription
*/
AzureSubscription = 1,
/**
* Chef Connection
*/
Chef = 2,
/**
* Generic Connection
*/
Generic = 3,
}
export interface IdentityData {
identityIds?: string[];
}
export interface Process extends ProcessReference {
_links?: any;
description?: string;
id?: string;
isDefault?: boolean;
type?: ProcessType;
}
export interface ProcessReference {
name?: string;
url?: string;
}
export declare enum ProcessType {
System = 0,
Custom = 1,
Inherited = 2,
}
export declare enum ProjectChangeType {
Modified = 0,
Deleted = 1,
Added = 2,
}
/**
* Contains information of the project
*/
export interface ProjectInfo {
abbreviation?: string;
description?: string;
id?: string;
lastUpdateTime?: Date;
name?: string;
properties?: ProjectProperty[];
/**
* Current revision of the project
*/
revision?: number;
state?: any;
uri?: string;
version?: number;
visibility?: ProjectVisibility;
}
export interface ProjectMessage {
project?: ProjectInfo;
projectChangeType?: ProjectChangeType;
shouldInvalidateSystemStore?: boolean;
}
export interface ProjectProperty {
name?: string;
value?: any;
}
export declare enum ProjectVisibility {
Unchanged = -1,
Private = 0,
Organization = 1,
Public = 2,
SystemPrivate = 3,
}
export interface Proxy {
authorization?: ProxyAuthorization;
/**
* This is a description string
*/
description?: string;
/**
* The friendly name of the server
*/
friendlyName?: string;
globalDefault?: boolean;
/**
* This is a string representation of the site that the proxy server is located in (e.g. "NA-WA-RED")
*/
site?: string;
siteDefault?: boolean;
/**
* The URL of the proxy server
*/
url?: string;
}
export interface ProxyAuthorization {
/**
* Gets or sets the endpoint used to obtain access tokens from the configured token service.
*/
authorizationUrl?: string;
/**
* Gets or sets the client identifier for this proxy.
*/
clientId?: string;
/**
* Gets or sets the user identity to authorize for on-prem.
*/
identity?: IdentitiesInterfaces.IdentityDescriptor;
/**
* Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted.
*/
publicKey?: VSSInterfaces.PublicKey;
}
export declare enum SourceControlTypes {
Tfvc = 1,
Git = 2,
}
/**
* The Team Context for an operation.
*/
export interface TeamContext {
/**
* The team project Id or name. Ignored if ProjectId is set.
*/
project?: string;
/**
* The Team Project ID. Required if Project is not set.
*/
projectId?: string;
/**
* The Team Id or name. Ignored if TeamId is set.
*/
team?: string;
/**
* The Team Id
*/
teamId?: string;
}
/**
* Represents a Team Project object.
*/
export interface TeamProject extends TeamProjectReference {
/**
* The links to other objects related to this object.
*/
_links?: any;
/**
* Set of capabilities this project has (such as process template & version control).
*/
capabilities?: {
[key: string]: {
[key: string]: string;
};
};
/**
* The shallow ref to the default team.
*/
defaultTeam?: WebApiTeamRef;
}
/**
* Data contract for a TeamProjectCollection.
*/
export interface TeamProjectCollection extends TeamProjectCollectionReference {
/**
* The links to other objects related to this object.
*/
_links?: any;
/**
* Project collection description.
*/
description?: string;
/**
* True if collection supports inherited process customization model.
*/
enableInheritedProcessCustomization?: boolean;
/**
* Project collection state.
*/
state?: string;
}
/**
* Reference object for a TeamProjectCollection.
*/
export interface TeamProjectCollectionReference {
/**
* Collection Id.
*/
id?: string;
/**
* Collection Name.
*/
name?: string;
/**
* Collection REST Url.
*/
url?: string;
}
/**
* Represents a shallow reference to a TeamProject.
*/
export interface TeamProjectReference {
/**
* Project abbreviation.
*/
abbreviation?: string;
/**
* The project's description (if any).
*/
description?: string;
/**
* Project identifier.
*/
id?: string;
/**
* Project name.
*/
name?: string;
/**
* Project revision.
*/
revision?: number;
/**
* Project state.
*/
state?: any;
/**
* Url to the full version of the object.
*/
url?: string;
/**
* Project visibility.
*/
visibility?: ProjectVisibility;
}
/**
* A data transfer object that stores the metadata associated with the creation of temporary data.
*/
export interface TemporaryDataCreatedDTO extends TemporaryDataDTO {
expirationDate?: Date;
id?: string;
url?: string;
}
/**
* A data transfer object that stores the metadata associated with the temporary data.
*/
export interface TemporaryDataDTO {
expirationSeconds?: number;
origin?: string;
value?: any;
}
export interface WebApiConnectedService extends WebApiConnectedServiceRef {
/**
* The user who did the OAuth authentication to created this service
*/
authenticatedBy?: VSSInterfaces.IdentityRef;
/**
* Extra description on the service.
*/
description?: string;
/**
* Friendly Name of service connection
*/
friendlyName?: string;
/**
* Id/Name of the connection service. For Ex: Subscription Id for Azure Connection
*/
id?: string;
/**
* The kind of service.
*/
kind?: string;
/**
* The project associated with this service
*/
project?: TeamProjectReference;
/**
* Optional uri to connect directly to the service such as https://windows.azure.com
*/
serviceUri?: string;
}
export interface WebApiConnectedServiceDetails extends WebApiConnectedServiceRef {
/**
* Meta data for service connection
*/
connectedServiceMetaData?: WebApiConnectedService;
/**
* Credential info
*/
credentialsXml?: string;
/**
* Optional uri to connect directly to the service such as https://windows.azure.com
*/
endPoint?: string;
}
export interface WebApiConnectedServiceRef {
id?: string;
url?: string;
}
/**
* The representation of data needed to create a tag definition which is sent across the wire.
*/
export interface WebApiCreateTagRequestData {
/**
* Name of the tag definition that will be created.
*/
name: string;
}
export interface WebApiProject extends TeamProjectReference {
/**
* Set of capabilities this project has
*/
capabilities?: {
[key: string]: {
[key: string]: string;
};
};
/**
* Reference to collection which contains this project
*/
collection?: WebApiProjectCollectionRef;
/**
* Default team for this project
*/
defaultTeam?: WebApiTeamRef;
}
export interface WebApiProjectCollection extends WebApiProjectCollectionRef {
/**
* Project collection description
*/
description?: string;
/**
* Project collection state
*/
state?: string;
}
export interface WebApiProjectCollectionRef {
/**
* Collection Tfs Url (Host Url)
*/
collectionUrl?: string;
/**
* Collection Guid
*/
id?: string;
/**
* Collection Name
*/
name?: string;
/**
* Collection REST Url
*/
url?: string;
}
/**
* The representation of a tag definition which is sent across the wire.
*/
export interface WebApiTagDefinition {
/**
* Whether or not the tag definition is active.
*/
active?: boolean;
/**
* ID of the tag definition.
*/
id?: string;
/**
* The name of the tag definition.
*/
name?: string;
/**
* Resource URL for the Tag Definition.
*/
url?: string;
}
export interface WebApiTeam extends WebApiTeamRef {
/**
* Team description
*/
description?: string;
/**
* Identity REST API Url to this team
*/
identityUrl?: string;
projectId?: string;
projectName?: string;
}
export interface WebApiTeamRef {
/**
* Team (Identity) Guid. A Team Foundation ID.
*/
id?: string;
/**
* Team name
*/
name?: string;
/**
* Team REST API Url
*/
url?: string;
}
export declare var TypeInfo: {
ConnectedServiceKind: {
enumValues: {
"custom": number;
"azureSubscription": number;
"chef": number;
"generic": number;
};
};
Process: any;
ProcessType: {
enumValues: {
"system": number;
"custom": number;
"inherited": number;
};
};
ProjectChangeType: {
enumValues: {
"modified": number;
"deleted": number;
"added": number;
};
};
ProjectInfo: any;
ProjectMessage: any;
ProjectVisibility: {
enumValues: {
"private": number;
"organization": number;
"public": number;
};
};
SourceControlTypes: {
enumValues: {
"tfvc": number;
"git": number;
};
};
TeamProject: any;
TeamProjectReference: any;
TemporaryDataCreatedDTO: any;
WebApiConnectedService: any;
WebApiConnectedServiceDetails: any;
WebApiProject: any;
};
@@ -0,0 +1,152 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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 = {}));
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";
ProjectVisibility[ProjectVisibility["Private"] = 0] = "Private";
ProjectVisibility[ProjectVisibility["Organization"] = 1] = "Organization";
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: {},
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: {},
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 = {
visibility: {
enumType: exports.TypeInfo.ProjectVisibility
}
};
exports.TypeInfo.TeamProjectReference.fields = {
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 = {
visibility: {
enumType: exports.TypeInfo.ProjectVisibility
}
};
@@ -0,0 +1,334 @@
/**
* Model of a Dashboard.
*/
export interface Dashboard {
_links?: any;
/**
* Description of the dashboard.
*/
description?: string;
/**
* Server defined version tracking value, used for edit collision detection.
*/
eTag?: string;
/**
* ID of the Dashboard. Provided by service at creation time.
*/
id?: string;
/**
* Name of the Dashboard.
*/
name?: string;
/**
* ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard.
*/
ownerId?: string;
/**
* Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service.
*/
position?: number;
/**
* Interval for client to automatically refresh the dashboard. Expressed in minutes.
*/
refreshInterval?: number;
url?: string;
/**
* The set of Widgets on the dashboard.
*/
widgets?: Widget[];
}
/**
* Describes a list of dashboards associated to an owner. Currently, teams own dashboard groups.
*/
export interface DashboardGroup {
_links?: any;
/**
* A list of Dashboards held by the Dashboard Group
*/
dashboardEntries?: DashboardGroupEntry[];
/**
* Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125.
*/
permission?: GroupMemberPermission;
/**
* A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved.
*/
teamDashboardPermission?: TeamDashboardPermission;
url?: string;
}
/**
* Dashboard group entry, wraping around Dashboard (needed?)
*/
export interface DashboardGroupEntry extends Dashboard {
}
/**
* Response from RestAPI when saving and editing DashboardGroupEntry
*/
export interface DashboardGroupEntryResponse extends DashboardGroupEntry {
}
export interface DashboardResponse extends DashboardGroupEntry {
}
/**
* identifies the scope of dashboard storage and permissions.
*/
export declare enum DashboardScope {
Collection_User = 0,
Project_Team = 1,
}
export declare enum GroupMemberPermission {
None = 0,
Edit = 1,
Manage = 2,
ManagePermissions = 3,
}
/**
* Lightbox configuration
*/
export interface LightboxOptions {
/**
* Height of desired lightbox, in pixels
*/
height?: number;
/**
* True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false.
*/
resizable?: boolean;
/**
* Width of desired lightbox, in pixels
*/
width?: number;
}
/**
* versioning for an artifact as described at: http://semver.org/, of the form major.minor.patch.
*/
export interface SemanticVersion {
/**
* Major version when you make incompatible API changes
*/
major?: number;
/**
* Minor version when you add functionality in a backwards-compatible manner
*/
minor?: number;
/**
* Patch version when you make backwards-compatible bug fixes
*/
patch?: number;
}
export declare enum TeamDashboardPermission {
None = 0,
Read = 1,
Create = 2,
Edit = 4,
Delete = 8,
ManagePermissions = 16,
}
/**
* Widget data
*/
export interface Widget {
_links?: any;
/**
* Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget
*/
allowedSizes?: WidgetSize[];
/**
* Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user.
*/
areSettingsBlockedForUser?: boolean;
/**
* Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact.
*/
artifactId?: string;
configurationContributionId?: string;
configurationContributionRelativeId?: string;
contentUri?: string;
/**
* The id of the underlying contribution defining the supplied Widget Configuration.
*/
contributionId?: string;
/**
* Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs
*/
dashboard?: Dashboard;
eTag?: string;
id?: string;
isEnabled?: boolean;
isNameConfigurable?: boolean;
lightboxOptions?: LightboxOptions;
loadingImageUrl?: string;
name?: string;
position?: WidgetPosition;
settings?: string;
settingsVersion?: SemanticVersion;
size?: WidgetSize;
typeId?: string;
url?: string;
}
/**
* Contribution based information describing Dashboard Widgets.
*/
export interface WidgetMetadata {
/**
* Sizes supported by the Widget.
*/
allowedSizes?: WidgetSize[];
/**
* Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available.
*/
analyticsServiceRequired?: boolean;
/**
* Resource for an icon in the widget catalog.
*/
catalogIconUrl?: string;
/**
* Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted
*/
catalogInfoUrl?: string;
/**
* The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available.
*/
configurationContributionId?: string;
/**
* The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available.
*/
configurationContributionRelativeId?: string;
/**
* Indicates if the widget requires configuration before being added to dashboard.
*/
configurationRequired?: boolean;
/**
* Uri for the widget content to be loaded from .
*/
contentUri?: string;
/**
* The id of the underlying contribution defining the supplied Widget.
*/
contributionId?: string;
/**
* Optional default settings to be copied into widget settings.
*/
defaultSettings?: string;
/**
* Summary information describing the widget.
*/
description?: string;
/**
* Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context)
*/
isEnabled?: boolean;
/**
* Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest.
*/
isNameConfigurable?: boolean;
/**
* Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog.
*/
isVisibleFromCatalog?: boolean;
/**
* Opt-in properties for customizing widget presentation in a "lightbox" dialog.
*/
lightboxOptions?: LightboxOptions;
/**
* Resource for a loading placeholder image on dashboard
*/
loadingImageUrl?: string;
/**
* User facing name of the widget type. Each widget must use a unique value here.
*/
name?: string;
/**
* Publisher Name of this kind of widget.
*/
publisherName?: string;
/**
* Data contract required for the widget to function and to work in its container.
*/
supportedScopes?: WidgetScope[];
/**
* Contribution target IDs
*/
targets?: string[];
/**
* Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types.
*/
typeId?: string;
}
export interface WidgetMetadataResponse {
uri?: string;
widgetMetadata?: WidgetMetadata;
}
export interface WidgetPosition {
column?: number;
row?: number;
}
/**
* Response from RestAPI when saving and editing Widget
*/
export interface WidgetResponse extends Widget {
}
/**
* data contract required for the widget to function in a webaccess area or page.
*/
export declare enum WidgetScope {
Collection_User = 0,
Project_Team = 1,
}
export interface WidgetSize {
/**
* The Width of the widget, expressed in dashboard grid columns.
*/
columnSpan?: number;
/**
* The height of the widget, expressed in dashboard grid rows.
*/
rowSpan?: number;
}
/**
* Wrapper class to support HTTP header generation using CreateResponse, ClientHeaderParameter and ClientResponseType in WidgetV2Controller
*/
export interface WidgetsVersionedList {
eTag?: string[];
widgets?: Widget[];
}
export interface WidgetTypesResponse {
_links?: any;
uri?: string;
widgetTypes?: WidgetMetadata[];
}
export declare var TypeInfo: {
DashboardGroup: any;
DashboardScope: {
enumValues: {
"collection_User": number;
"project_Team": number;
};
};
GroupMemberPermission: {
enumValues: {
"none": number;
"edit": number;
"manage": number;
"managePermissions": number;
};
};
TeamDashboardPermission: {
enumValues: {
"none": number;
"read": number;
"create": number;
"edit": number;
"delete": number;
"managePermissions": number;
};
};
WidgetMetadata: any;
WidgetMetadataResponse: any;
WidgetScope: {
enumValues: {
"collection_User": number;
"project_Team": number;
};
};
WidgetTypesResponse: any;
};
@@ -0,0 +1,104 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* identifies the scope of dashboard storage and permissions.
*/
var DashboardScope;
(function (DashboardScope) {
DashboardScope[DashboardScope["Collection_User"] = 0] = "Collection_User";
DashboardScope[DashboardScope["Project_Team"] = 1] = "Project_Team";
})(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 = {
DashboardGroup: {},
DashboardScope: {
enumValues: {
"collection_User": 0,
"project_Team": 1
}
},
GroupMemberPermission: {
enumValues: {
"none": 0,
"edit": 1,
"manage": 2,
"managePermissions": 3
}
},
TeamDashboardPermission: {
enumValues: {
"none": 0,
"read": 1,
"create": 2,
"edit": 4,
"delete": 8,
"managePermissions": 16
}
},
WidgetMetadata: {},
WidgetMetadataResponse: {},
WidgetScope: {
enumValues: {
"collection_User": 0,
"project_Team": 1
}
},
WidgetTypesResponse: {},
};
exports.TypeInfo.DashboardGroup.fields = {
permission: {
enumType: exports.TypeInfo.GroupMemberPermission
},
teamDashboardPermission: {
enumType: exports.TypeInfo.TeamDashboardPermission
}
};
exports.TypeInfo.WidgetMetadata.fields = {
supportedScopes: {
isArray: true,
enumType: exports.TypeInfo.WidgetScope
}
};
exports.TypeInfo.WidgetMetadataResponse.fields = {
widgetMetadata: {
typeInfo: exports.TypeInfo.WidgetMetadata
}
};
exports.TypeInfo.WidgetTypesResponse.fields = {
widgetTypes: {
isArray: true,
typeInfo: exports.TypeInfo.WidgetMetadata
}
};
@@ -0,0 +1,39 @@
export interface DataSourceBindingBase {
dataSourceName: string;
endpointId: string;
endpointUrl: string;
parameters: {
[key: string]: string;
};
resultSelector: string;
resultTemplate: string;
target: string;
}
export interface ProcessParameters {
dataSourceBindings: DataSourceBindingBase[];
inputs: TaskInputDefinitionBase[];
sourceDefinitions: TaskSourceDefinitionBase[];
}
export interface TaskInputDefinitionBase {
defaultValue: string;
groupName: string;
helpMarkDown: string;
label: string;
name: string;
options: {
[key: string]: string;
};
properties: {
[key: string]: string;
};
required: boolean;
type: string;
visibleRule: string;
}
export interface TaskSourceDefinitionBase {
authKey: string;
endpoint: string;
keySelector: string;
selector: string;
target: string;
}
@@ -0,0 +1,11 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,586 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const GalleryInterfaces = require("../interfaces/GalleryInterfaces");
/**
* 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 targetting 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
}
};
@@ -0,0 +1,172 @@
/**
* A feature that can be enabled or disabled
*/
export interface ContributedFeature {
/**
* Named links describing the feature
*/
_links?: any;
/**
* If true, the feature is enabled unless overridden at some scope
*/
defaultState?: boolean;
/**
* Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined)
*/
defaultValueRules?: ContributedFeatureValueRule[];
/**
* The description of the feature
*/
description?: string;
/**
* Extra properties for the feature
*/
featureProperties?: {
[key: string]: any;
};
/**
* Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured
*/
featureStateChangedListeners?: ContributedFeatureListener[];
/**
* The full contribution id of the feature
*/
id?: string;
/**
* If this is set to true, then the id for this feature will be added to the list of claims for the request.
*/
includeAsClaim?: boolean;
/**
* The friendly name of the feature
*/
name?: string;
/**
* Suggested order to display feature in.
*/
order?: number;
/**
* Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined)
*/
overrideRules?: ContributedFeatureValueRule[];
/**
* The scopes/levels at which settings can set the enabled/disabled state of this feature
*/
scopes?: ContributedFeatureSettingScope[];
/**
* The service instance id of the service that owns this feature
*/
serviceInstanceType?: string;
/**
* Tags associated with the feature.
*/
tags?: string[];
}
/**
* The current state of a feature within a given scope
*/
export declare enum ContributedFeatureEnabledValue {
/**
* The state of the feature is not set for the specified scope
*/
Undefined = -1,
/**
* The feature is disabled at the specified scope
*/
Disabled = 0,
/**
* The feature is enabled at the specified scope
*/
Enabled = 1,
}
export interface ContributedFeatureHandlerSettings {
/**
* Name of the handler to run
*/
name?: string;
/**
* Properties to feed to the handler
*/
properties?: {
[key: string]: any;
};
}
/**
* An identifier and properties used to pass into a handler for a listener or plugin
*/
export interface ContributedFeatureListener extends ContributedFeatureHandlerSettings {
}
/**
* The scope to which a feature setting applies
*/
export interface ContributedFeatureSettingScope {
/**
* The name of the settings scope to use when reading/writing the setting
*/
settingScope?: string;
/**
* Whether this is a user-scope or this is a host-wide (all users) setting
*/
userScoped?: boolean;
}
/**
* A contributed feature/state pair
*/
export interface ContributedFeatureState {
/**
* The full contribution id of the feature
*/
featureId?: string;
/**
* True if the effective state was set by an override rule (indicating that the state cannot be managed by the end user)
*/
overridden?: boolean;
/**
* Reason that the state was set (by a plugin/rule).
*/
reason?: string;
/**
* The scope at which this state applies
*/
scope?: ContributedFeatureSettingScope;
/**
* The current state of this feature
*/
state?: ContributedFeatureEnabledValue;
}
/**
* A query for the effective contributed feature states for a list of feature ids
*/
export interface ContributedFeatureStateQuery {
/**
* The list of feature ids to query
*/
featureIds?: string[];
/**
* The query result containing the current feature states for each of the queried feature ids
*/
featureStates?: {
[key: string]: ContributedFeatureState;
};
/**
* A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes)
*/
scopeValues?: {
[key: string]: string;
};
}
/**
* A rule for dynamically getting the enabled/disabled state of a feature
*/
export interface ContributedFeatureValueRule extends ContributedFeatureHandlerSettings {
}
export declare var TypeInfo: {
ContributedFeatureEnabledValue: {
enumValues: {
"undefined": number;
"disabled": number;
"enabled": number;
};
};
ContributedFeatureState: any;
ContributedFeatureStateQuery: any;
};
@@ -0,0 +1,51 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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
}
};
@@ -0,0 +1,193 @@
/**
* Status of a container item.
*/
export declare enum ContainerItemStatus {
/**
* Item is created.
*/
Created = 1,
/**
* Item is a file pending for upload.
*/
PendingUpload = 2,
}
/**
* Type of a container item.
*/
export declare enum ContainerItemType {
/**
* Any item type.
*/
Any = 0,
/**
* Item is a folder which can have child items.
*/
Folder = 1,
/**
* Item is a file which is stored in the file service.
*/
File = 2,
}
/**
* Options a container can have.
*/
export declare enum ContainerOptions {
/**
* No option.
*/
None = 0,
}
/**
* Represents a container that encapsulates a hierarchical file system.
*/
export interface FileContainer {
/**
* Uri of the artifact associated with the container.
*/
artifactUri: string;
/**
* Download Url for the content of this item.
*/
contentLocation?: string;
/**
* Owner.
*/
createdBy?: string;
/**
* Creation date.
*/
dateCreated?: Date;
/**
* Description.
*/
description?: string;
/**
* Id.
*/
id: number;
/**
* Location of the item resource.
*/
itemLocation?: string;
/**
* ItemStore Locator for this container.
*/
locatorPath?: string;
/**
* Name.
*/
name?: string;
/**
* Options the container can have.
*/
options?: ContainerOptions;
/**
* Project Id.
*/
scopeIdentifier?: string;
/**
* Security token of the artifact associated with the container.
*/
securityToken?: string;
/**
* Identifier of the optional encryption key.
*/
signingKeyId?: string;
/**
* Total size of the files in bytes.
*/
size?: number;
}
/**
* Represents an item in a container.
*/
export interface FileContainerItem {
/**
* Container Id.
*/
containerId: number;
contentId?: number[];
/**
* Download Url for the content of this item.
*/
contentLocation?: string;
/**
* Creator.
*/
createdBy?: string;
/**
* Creation date.
*/
dateCreated?: Date;
/**
* Last modified date.
*/
dateLastModified?: Date;
/**
* Encoding of the file. Zero if not a file.
*/
fileEncoding?: number;
/**
* Hash value of the file. Null if not a file.
*/
fileHash?: number[];
/**
* Id of the file content.
*/
fileId?: number;
/**
* Length of the file. Zero if not of a file.
*/
fileLength?: number;
/**
* Type of the file. Zero if not a file.
*/
fileType?: number;
/**
* Location of the item resource.
*/
itemLocation?: string;
/**
* Type of the item: Folder, File or String.
*/
itemType: ContainerItemType;
/**
* Modifier.
*/
lastModifiedBy?: string;
/**
* Unique path that identifies the item.
*/
path: string;
/**
* Project Id.
*/
scopeIdentifier?: string;
/**
* Status of the item: Created or Pending Upload.
*/
status: ContainerItemStatus;
ticket?: string;
}
export declare var TypeInfo: {
ContainerItemStatus: {
enumValues: {
"created": number;
"pendingUpload": number;
};
};
ContainerItemType: {
enumValues: {
"any": number;
"folder": number;
"file": number;
};
};
ContainerOptions: {
enumValues: {
"none": number;
};
};
FileContainer: any;
FileContainerItem: any;
};
@@ -0,0 +1,97 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 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 = {
ContainerItemStatus: {
enumValues: {
"created": 1,
"pendingUpload": 2
}
},
ContainerItemType: {
enumValues: {
"any": 0,
"folder": 1,
"file": 2
}
},
ContainerOptions: {
enumValues: {
"none": 0
}
},
FileContainer: {},
FileContainerItem: {},
};
exports.TypeInfo.FileContainer.fields = {
dateCreated: {
isDate: true,
},
options: {
enumType: exports.TypeInfo.ContainerOptions
}
};
exports.TypeInfo.FileContainerItem.fields = {
dateCreated: {
isDate: true,
},
dateLastModified: {
isDate: true,
},
itemType: {
enumType: exports.TypeInfo.ContainerItemType
},
status: {
enumType: exports.TypeInfo.ContainerItemStatus
}
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,423 @@
import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
export interface GraphCachePolicies {
/**
* Size of the cache
*/
cacheSize?: number;
}
export interface GraphDescriptorResult {
/**
* This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor.
*/
_links?: any;
value?: string;
}
/**
* Represents a set of data used to communicate with a federated provider on behalf of a particular user.
*/
export interface GraphFederatedProviderData {
/**
* The access token that can be used to communicated with the federated provider on behalf on the target identity, if we were able to successfully acquire one, otherwise <code>null</code>, if we were not.
*/
accessToken?: string;
/**
* Whether or not the immediate provider (i.e. AAD) has indicated that we can call them to attempt to get an access token to communicate with the federated provider on behalf of the target identity.
*/
canQueryAccessToken?: boolean;
/**
* The name of the federated provider, e.g. "github.com".
*/
providerName?: string;
/**
* The descriptor of the graph subject to which this federated provider data corresponds.
*/
subjectDescriptor?: string;
/**
* The version number of this federated provider data, which corresponds to when it was last updated. Can be used to prevent returning stale provider data from the cache when the caller is aware of a newer version, such as to prevent local cache poisoning from a remote cache or store. This is the app layer equivalent of the data layer sequence ID.
*/
version?: number;
}
export interface GraphGlobalExtendedPropertyBatch {
propertyNameFilters?: string[];
subjectDescriptors?: string[];
}
export interface GraphGroup extends GraphMember {
/**
* A short phrase to help human readers disambiguate groups with similar names
*/
description?: string;
isCrossProject?: boolean;
isDeleted?: boolean;
isGlobalScope?: boolean;
isRestrictedVisible?: boolean;
localScopeId?: string;
scopeId?: string;
scopeName?: string;
scopeType?: string;
securingHostId?: string;
specialType?: string;
}
/**
* Do not attempt to use this type to create a new group. This type does not contain sufficient fields to create a new group.
*/
export interface GraphGroupCreationContext {
/**
* Optional: If provided, we will use this identifier for the storage key of the created group
*/
storageKey?: string;
}
/**
* Use this type to create a new group using the mail address as a reference to an existing group from an external AD or AAD backed provider. This is the subset of GraphGroup fields required for creation of a group for the AAD and AD use case.
*/
export interface GraphGroupMailAddressCreationContext extends GraphGroupCreationContext {
/**
* This should be the mail address or the group in the source AD or AAD provider. Example: jamal@contoso.com Team Services will communicate with the source provider to fill all other fields on creation.
*/
mailAddress: string;
}
/**
* Use this type to create a new group using the OriginID as a reference to an existing group from an external AD or AAD backed provider. This is the subset of GraphGroup fields required for creation of a group for the AD and AAD use case.
*/
export interface GraphGroupOriginIdCreationContext extends GraphGroupCreationContext {
/**
* This should be the object id or sid of the group from the source AD or AAD provider. Example: d47d025a-ce2f-4a79-8618-e8862ade30dd Team Services will communicate with the source provider to fill all other fields on creation.
*/
originId: string;
}
/**
* Use this type to create a new Vsts group that is not backed by an external provider.
*/
export interface GraphGroupVstsCreationContext extends GraphGroupCreationContext {
/**
* For internal use only in back compat scenarios.
*/
crossProject?: boolean;
/**
* Used by VSTS groups; if set this will be the group description, otherwise ignored
*/
description?: string;
descriptor?: string;
/**
* Used by VSTS groups; if set this will be the group DisplayName, otherwise ignored
*/
displayName: string;
/**
* For internal use only in back compat scenarios.
*/
restrictedVisibility?: boolean;
/**
* For internal use only in back compat scenarios.
*/
specialGroupType?: string;
}
export interface GraphMember extends GraphSubject {
/**
* This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc)
*/
domain?: string;
/**
* The email address of record for a given graph member. This may be different than the principal name.
*/
mailAddress?: string;
/**
* This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS.
*/
principalName?: string;
}
export declare enum GraphMemberSearchFactor {
/**
* Domain qualified account name (domain\alias)
*/
PrincipalName = 0,
/**
* Display name
*/
DisplayName = 1,
/**
* Administrators group
*/
AdministratorsGroup = 2,
/**
* Find the identity using the identifier (SID)
*/
Identifier = 3,
/**
* Email address
*/
MailAddress = 4,
/**
* A general search for an identity.
*/
General = 5,
/**
* Alternate login username (Basic Auth Alias)
*/
Alias = 6,
/**
* Find identity using DirectoryAlias
*/
DirectoryAlias = 8,
}
export interface GraphMembership {
/**
* This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership.
*/
_links?: any;
containerDescriptor?: string;
memberDescriptor?: string;
}
export interface GraphMembershipState {
/**
* This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state.
*/
_links?: any;
active?: boolean;
}
export interface GraphMembershipTraversal {
/**
* Reason why the subject could not be traversed completely
*/
incompletenessReason?: string;
/**
* When true, the subject is traversed completely
*/
isComplete?: boolean;
/**
* The traversed subject descriptor
*/
subjectDescriptor?: string;
/**
* Subject descriptor ids of the traversed members
*/
traversedSubjectIds?: string[];
/**
* Subject descriptors of the traversed members
*/
traversedSubjects?: string[];
}
/**
* Who is the provider for this user and what is the identifier and domain that is used to uniquely identify the user.
*/
export interface GraphProviderInfo {
/**
* The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
*/
descriptor?: string;
/**
* This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AAD the tenantID of the directory.)
*/
domain?: string;
/**
* The type of source provider for the origin identifier (ex: "aad", "msa")
*/
origin?: string;
/**
* The unique identifier from the system of origin. (For MSA this is the PUID in hex notation, for AAD this is the object id.)
*/
originId?: string;
}
export interface GraphScope extends GraphSubject {
/**
* The subject descriptor that references the administrators group for this scope. Only members of this group can change the contents of this scope or assign other users permissions to access this scope.
*/
administratorDescriptor?: string;
/**
* When true, this scope is also a securing host for one or more scopes.
*/
isGlobal?: boolean;
/**
* The subject descriptor for the closest account or organization in the ancestor tree of this scope.
*/
parentDescriptor?: string;
/**
* The type of this scope. Typically ServiceHost or TeamProject.
*/
scopeType?: IdentitiesInterfaces.GroupScopeType;
/**
* The subject descriptor for the containing organization in the ancestor tree of this scope.
*/
securingHostDescriptor?: string;
}
/**
* This type is the subset of fields that can be provided by the user to create a Vsts scope. Scope creation is currently limited to internal back-compat scenarios. End users that attempt to create a scope with this API will fail.
*/
export interface GraphScopeCreationContext {
/**
* Set this field to override the default description of this scope's admin group.
*/
adminGroupDescription?: string;
/**
* All scopes have an Administrator Group that controls access to the contents of the scope. Set this field to use a non-default group name for that administrators group.
*/
adminGroupName?: string;
/**
* Set this optional field if this scope is created on behalf of a user other than the user making the request. This should be the Id of the user that is not the requester.
*/
creatorId?: string;
/**
* The scope must be provided with a unique name within the parent scope. This means the created scope can have a parent or child with the same name, but no siblings with the same name.
*/
name?: string;
/**
* The type of scope being created.
*/
scopeType?: IdentitiesInterfaces.GroupScopeType;
/**
* An optional ID that uniquely represents the scope within it's parent scope. If this parameter is not provided, Vsts will generate on automatically.
*/
storageKey?: string;
}
export interface GraphStorageKeyResult {
/**
* This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key.
*/
_links?: any;
value?: string;
}
export interface GraphSubject extends GraphSubjectBase {
/**
* [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor.
*/
legacyDescriptor?: string;
/**
* The type of source provider for the origin identifier (ex:AD, AAD, MSA)
*/
origin?: string;
/**
* The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider.
*/
originId?: string;
/**
* This field identifies the type of the graph subject (ex: Group, Scope, User).
*/
subjectKind?: string;
}
export interface GraphSubjectBase {
/**
* This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
*/
_links?: any;
/**
* The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
*/
descriptor?: string;
/**
* This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
*/
displayName?: string;
/**
* This url is the full route to the source resource of this graph subject.
*/
url?: string;
}
export interface GraphSubjectLookup {
lookupKeys?: GraphSubjectLookupKey[];
}
export interface GraphSubjectLookupKey {
descriptor?: string;
}
export interface GraphSystemSubject extends GraphSubject {
}
export declare enum GraphTraversalDirection {
Unknown = 0,
Down = 1,
Up = 2,
}
export interface GraphUser extends GraphMember {
isDeletedInOrigin?: boolean;
metadataUpdateDate?: Date;
/**
* The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values.
*/
metaType?: string;
}
/**
* Do not attempt to use this type to create a new user. Use one of the subclasses instead. This type does not contain sufficient fields to create a new user.
*/
export interface GraphUserCreationContext {
/**
* Optional: If provided, we will use this identifier for the storage key of the created user
*/
storageKey?: string;
}
/**
* Use this type to create a new user using the mail address as a reference to an existing user from an external AD or AAD backed provider. This is the subset of GraphUser fields required for creation of a GraphUser for the AD and AAD use case when looking up the user by its mail address in the backing provider.
*/
export interface GraphUserMailAddressCreationContext extends GraphUserCreationContext {
mailAddress: string;
}
/**
* Use this type to create a new user using the OriginID as a reference to an existing user from an external AD or AAD backed provider. This is the subset of GraphUser fields required for creation of a GraphUser for the AD and AAD use case when looking up the user by its unique ID in the backing provider.
*/
export interface GraphUserOriginIdCreationContext extends GraphUserCreationContext {
/**
* This should be the object id or sid of the user from the source AD or AAD provider. Example: d47d025a-ce2f-4a79-8618-e8862ade30dd Team Services will communicate with the source provider to fill all other fields on creation.
*/
originId: string;
}
/**
* Use this type to create a new user using the principal name as a reference to an existing user from an external AD or AAD backed provider. This is the subset of GraphUser fields required for creation of a GraphUser for the AD and AAD use case when looking up the user by its principal name in the backing provider.
*/
export interface GraphUserPrincipalNameCreationContext extends GraphUserCreationContext {
/**
* This should be the principal name or upn of the user in the source AD or AAD provider. Example: jamal@contoso.com Team Services will communicate with the source provider to fill all other fields on creation.
*/
principalName: string;
}
export declare enum IdentityShardingState {
Undefined = 0,
Enabled = 1,
Disabled = 2,
}
export interface PagedGraphGroups {
/**
* This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request.
*/
continuationToken?: string[];
/**
* The enumerable list of groups found within a page.
*/
graphGroups?: GraphGroup[];
}
export interface PagedGraphUsers {
/**
* This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request.
*/
continuationToken?: string[];
/**
* The enumerable set of users found within a page.
*/
graphUsers?: GraphUser[];
}
export declare var TypeInfo: {
GraphMemberSearchFactor: {
enumValues: {
"principalName": number;
"displayName": number;
"administratorsGroup": number;
"identifier": number;
"mailAddress": number;
"general": number;
"alias": number;
"directoryAlias": number;
};
};
GraphScope: any;
GraphScopeCreationContext: any;
GraphTraversalDirection: {
enumValues: {
"unknown": number;
"down": number;
"up": number;
};
};
GraphUser: any;
IdentityShardingState: {
enumValues: {
"undefined": number;
"enabled": number;
"disabled": number;
};
};
PagedGraphUsers: any;
};
@@ -0,0 +1,112 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
var GraphMemberSearchFactor;
(function (GraphMemberSearchFactor) {
/**
* Domain qualified account name (domain\alias)
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["PrincipalName"] = 0] = "PrincipalName";
/**
* Display name
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["DisplayName"] = 1] = "DisplayName";
/**
* Administrators group
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["AdministratorsGroup"] = 2] = "AdministratorsGroup";
/**
* Find the identity using the identifier (SID)
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["Identifier"] = 3] = "Identifier";
/**
* Email address
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["MailAddress"] = 4] = "MailAddress";
/**
* A general search for an identity.
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["General"] = 5] = "General";
/**
* Alternate login username (Basic Auth Alias)
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["Alias"] = 6] = "Alias";
/**
* Find identity using DirectoryAlias
*/
GraphMemberSearchFactor[GraphMemberSearchFactor["DirectoryAlias"] = 8] = "DirectoryAlias";
})(GraphMemberSearchFactor = exports.GraphMemberSearchFactor || (exports.GraphMemberSearchFactor = {}));
var GraphTraversalDirection;
(function (GraphTraversalDirection) {
GraphTraversalDirection[GraphTraversalDirection["Unknown"] = 0] = "Unknown";
GraphTraversalDirection[GraphTraversalDirection["Down"] = 1] = "Down";
GraphTraversalDirection[GraphTraversalDirection["Up"] = 2] = "Up";
})(GraphTraversalDirection = exports.GraphTraversalDirection || (exports.GraphTraversalDirection = {}));
var IdentityShardingState;
(function (IdentityShardingState) {
IdentityShardingState[IdentityShardingState["Undefined"] = 0] = "Undefined";
IdentityShardingState[IdentityShardingState["Enabled"] = 1] = "Enabled";
IdentityShardingState[IdentityShardingState["Disabled"] = 2] = "Disabled";
})(IdentityShardingState = exports.IdentityShardingState || (exports.IdentityShardingState = {}));
exports.TypeInfo = {
GraphMemberSearchFactor: {
enumValues: {
"principalName": 0,
"displayName": 1,
"administratorsGroup": 2,
"identifier": 3,
"mailAddress": 4,
"general": 5,
"alias": 6,
"directoryAlias": 8
}
},
GraphScope: {},
GraphScopeCreationContext: {},
GraphTraversalDirection: {
enumValues: {
"unknown": 0,
"down": 1,
"up": 2
}
},
GraphUser: {},
IdentityShardingState: {
enumValues: {
"undefined": 0,
"enabled": 1,
"disabled": 2
}
},
PagedGraphUsers: {},
};
exports.TypeInfo.GraphScope.fields = {
scopeType: {
enumType: IdentitiesInterfaces.TypeInfo.GroupScopeType
}
};
exports.TypeInfo.GraphScopeCreationContext.fields = {
scopeType: {
enumType: IdentitiesInterfaces.TypeInfo.GroupScopeType
}
};
exports.TypeInfo.GraphUser.fields = {
metadataUpdateDate: {
isDate: true,
}
};
exports.TypeInfo.PagedGraphUsers.fields = {
graphUsers: {
isArray: true,
typeInfo: exports.TypeInfo.GraphUser
}
};
@@ -0,0 +1,247 @@
/**
* Container class for changed identities
*/
export interface ChangedIdentities {
/**
* Changed Identities
*/
identities?: Identity[];
/**
* More data available, set to true if pagesize is specified.
*/
moreData?: boolean;
/**
* Last Identity SequenceId
*/
sequenceContext?: ChangedIdentitiesContext;
}
/**
* Context class for changed identities
*/
export interface ChangedIdentitiesContext {
/**
* Last Group SequenceId
*/
groupSequenceId?: number;
/**
* Last Identity SequenceId
*/
identitySequenceId?: number;
/**
* Last Group OrganizationIdentitySequenceId
*/
organizationIdentitySequenceId?: number;
/**
* Page size
*/
pageSize?: number;
}
export interface CreateScopeInfo {
adminGroupDescription?: string;
adminGroupName?: string;
creatorId?: string;
parentScopeId?: string;
scopeName?: string;
scopeType?: GroupScopeType;
}
export interface FrameworkIdentityInfo {
displayName?: string;
identifier?: string;
identityType?: FrameworkIdentityType;
role?: string;
}
export declare enum FrameworkIdentityType {
None = 0,
ServiceIdentity = 1,
AggregateIdentity = 2,
ImportedIdentity = 3,
}
export interface GroupMembership {
active?: boolean;
descriptor?: IdentityDescriptor;
id?: string;
queriedId?: string;
}
export declare enum GroupScopeType {
Generic = 0,
ServiceHost = 1,
TeamProject = 2,
}
export interface Identity extends IdentityBase {
}
/**
* Base Identity class to allow "trimmed" identity class in the GetConnectionData API Makes sure that on-the-wire representations of the derived classes are compatible with each other (e.g. Server responds with PublicIdentity object while client deserializes it as Identity object) Derived classes should not have additional [DataMember] properties
*/
export interface IdentityBase {
/**
* The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database)
*/
customDisplayName?: string;
descriptor?: IdentityDescriptor;
id?: string;
isActive?: boolean;
isContainer?: boolean;
masterId?: string;
memberIds?: string[];
memberOf?: IdentityDescriptor[];
members?: IdentityDescriptor[];
metaTypeId?: number;
properties?: any;
/**
* The display name for the identity as specified by the source identity provider.
*/
providerDisplayName?: string;
resourceVersion?: number;
subjectDescriptor?: string;
uniqueUserId?: number;
}
export interface IdentityBatchInfo {
descriptors?: IdentityDescriptor[];
identityIds?: string[];
includeRestrictedVisibility?: boolean;
propertyNames?: string[];
queryMembership?: QueryMembership;
subjectDescriptors?: string[];
}
/**
* An Identity descriptor is a wrapper for the identity type (Windows SID, Passport) along with a unique identifier such as the SID or PUID.
*/
export interface IdentityDescriptor {
/**
* The unique identifier for this identity, not exceeding 256 chars, which will be persisted.
*/
identifier?: string;
/**
* Type of descriptor (for example, Windows, Passport, etc.).
*/
identityType?: string;
}
export interface IdentityScope {
administrators?: IdentityDescriptor;
id: string;
isActive?: boolean;
isGlobal?: boolean;
localScopeId?: string;
name?: string;
parentId?: string;
scopeType?: GroupScopeType;
securingHostId?: string;
subjectDescriptor?: string;
}
/**
* Identity information.
*/
export interface IdentitySelf {
/**
* The UserPrincipalName (UPN) of the account. This value comes from the source provider.
*/
accountName?: string;
/**
* The display name. For AAD accounts with multiple tenants this is the display name of the profile in the home tenant.
*/
displayName?: string;
/**
* This represents the name of the container of origin. For AAD accounts this is the tenantID of the home tenant. For MSA accounts this is the string "Windows Live ID".
*/
domain?: string;
/**
* This is the VSID of the home tenant profile. If the profile is signed into the home tenant or if the profile has no tenants then this Id is the same as the Id returned by the profile/profiles/me endpoint. Going forward it is recommended that you use the combined values of Origin, OriginId and Domain to uniquely identify a user rather than this Id.
*/
id?: string;
/**
* The type of source provider for the origin identifier. For MSA accounts this is "msa". For AAD accounts this is "aad".
*/
origin?: string;
/**
* The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.)
*/
originId?: string;
/**
* For AAD accounts this is all of the tenants that this account is a member of.
*/
tenants?: TenantInfo[];
}
export interface IdentitySnapshot {
groups?: Identity[];
identityIds?: string[];
memberships?: GroupMembership[];
scopeId?: string;
scopes?: IdentityScope[];
}
export interface IdentityUpdateData {
id?: string;
index?: number;
updated?: boolean;
}
export declare enum QueryMembership {
/**
* Query will not return any membership data
*/
None = 0,
/**
* Query will return only direct membership data
*/
Direct = 1,
/**
* Query will return expanded membership data
*/
Expanded = 2,
/**
* Query will return expanded up membership data (parents only)
*/
ExpandedUp = 3,
/**
* Query will return expanded down membership data (children only)
*/
ExpandedDown = 4,
}
export declare enum ReadIdentitiesOptions {
None = 0,
FilterIllegalMemberships = 1,
}
export interface SwapIdentityInfo {
id1?: string;
id2?: string;
}
export interface TenantInfo {
homeTenant?: boolean;
tenantId?: string;
tenantName?: string;
}
export declare var TypeInfo: {
CreateScopeInfo: any;
FrameworkIdentityInfo: any;
FrameworkIdentityType: {
enumValues: {
"none": number;
"serviceIdentity": number;
"aggregateIdentity": number;
"importedIdentity": number;
};
};
GroupScopeType: {
enumValues: {
"generic": number;
"serviceHost": number;
"teamProject": number;
};
};
IdentityBatchInfo: any;
IdentityScope: any;
IdentitySnapshot: any;
QueryMembership: {
enumValues: {
"none": number;
"direct": number;
"expanded": number;
"expandedUp": number;
"expandedDown": number;
};
};
ReadIdentitiesOptions: {
enumValues: {
"none": number;
"filterIllegalMemberships": number;
};
};
};
@@ -0,0 +1,115 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FrameworkIdentityType;
(function (FrameworkIdentityType) {
FrameworkIdentityType[FrameworkIdentityType["None"] = 0] = "None";
FrameworkIdentityType[FrameworkIdentityType["ServiceIdentity"] = 1] = "ServiceIdentity";
FrameworkIdentityType[FrameworkIdentityType["AggregateIdentity"] = 2] = "AggregateIdentity";
FrameworkIdentityType[FrameworkIdentityType["ImportedIdentity"] = 3] = "ImportedIdentity";
})(FrameworkIdentityType = exports.FrameworkIdentityType || (exports.FrameworkIdentityType = {}));
var GroupScopeType;
(function (GroupScopeType) {
GroupScopeType[GroupScopeType["Generic"] = 0] = "Generic";
GroupScopeType[GroupScopeType["ServiceHost"] = 1] = "ServiceHost";
GroupScopeType[GroupScopeType["TeamProject"] = 2] = "TeamProject";
})(GroupScopeType = exports.GroupScopeType || (exports.GroupScopeType = {}));
var QueryMembership;
(function (QueryMembership) {
/**
* Query will not return any membership data
*/
QueryMembership[QueryMembership["None"] = 0] = "None";
/**
* Query will return only direct membership data
*/
QueryMembership[QueryMembership["Direct"] = 1] = "Direct";
/**
* Query will return expanded membership data
*/
QueryMembership[QueryMembership["Expanded"] = 2] = "Expanded";
/**
* Query will return expanded up membership data (parents only)
*/
QueryMembership[QueryMembership["ExpandedUp"] = 3] = "ExpandedUp";
/**
* Query will return expanded down membership data (children only)
*/
QueryMembership[QueryMembership["ExpandedDown"] = 4] = "ExpandedDown";
})(QueryMembership = exports.QueryMembership || (exports.QueryMembership = {}));
var ReadIdentitiesOptions;
(function (ReadIdentitiesOptions) {
ReadIdentitiesOptions[ReadIdentitiesOptions["None"] = 0] = "None";
ReadIdentitiesOptions[ReadIdentitiesOptions["FilterIllegalMemberships"] = 1] = "FilterIllegalMemberships";
})(ReadIdentitiesOptions = exports.ReadIdentitiesOptions || (exports.ReadIdentitiesOptions = {}));
exports.TypeInfo = {
CreateScopeInfo: {},
FrameworkIdentityInfo: {},
FrameworkIdentityType: {
enumValues: {
"none": 0,
"serviceIdentity": 1,
"aggregateIdentity": 2,
"importedIdentity": 3
}
},
GroupScopeType: {
enumValues: {
"generic": 0,
"serviceHost": 1,
"teamProject": 2
}
},
IdentityBatchInfo: {},
IdentityScope: {},
IdentitySnapshot: {},
QueryMembership: {
enumValues: {
"none": 0,
"direct": 1,
"expanded": 2,
"expandedUp": 3,
"expandedDown": 4
}
},
ReadIdentitiesOptions: {
enumValues: {
"none": 0,
"filterIllegalMemberships": 1
}
},
};
exports.TypeInfo.CreateScopeInfo.fields = {
scopeType: {
enumType: exports.TypeInfo.GroupScopeType
}
};
exports.TypeInfo.FrameworkIdentityInfo.fields = {
identityType: {
enumType: exports.TypeInfo.FrameworkIdentityType
}
};
exports.TypeInfo.IdentityBatchInfo.fields = {
queryMembership: {
enumType: exports.TypeInfo.QueryMembership
}
};
exports.TypeInfo.IdentityScope.fields = {
scopeType: {
enumType: exports.TypeInfo.GroupScopeType
}
};
exports.TypeInfo.IdentitySnapshot.fields = {
scopes: {
isArray: true,
typeInfo: exports.TypeInfo.IdentityScope
}
};
@@ -0,0 +1,178 @@
import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
export interface AccessMapping {
accessPoint?: string;
displayName?: string;
moniker?: string;
/**
* The service which owns this access mapping e.g. TFS, ELS, etc.
*/
serviceOwner?: string;
/**
* Part of the access mapping which applies context after the access point of the server.
*/
virtualDirectory?: string;
}
/**
* Data transfer class that holds information needed to set up a connection with a VSS server.
*/
export interface ConnectionData {
/**
* The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service
*/
authenticatedUser?: IdentitiesInterfaces.Identity;
/**
* The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service
*/
authorizedUser?: IdentitiesInterfaces.Identity;
/**
* The id for the server.
*/
deploymentId?: string;
/**
* The type for the server Hosted/OnPremises.
*/
deploymentType?: VSSInterfaces.DeploymentFlags;
/**
* The instance id for this host.
*/
instanceId?: string;
/**
* The last user access for this instance. Null if not requested specifically.
*/
lastUserAccess?: Date;
/**
* Data that the location service holds.
*/
locationServiceData?: LocationServiceData;
/**
* The virtual directory of the host we are talking to.
*/
webApplicationRelativeDirectory?: string;
}
export declare enum InheritLevel {
None = 0,
Deployment = 1,
Account = 2,
Collection = 4,
All = 7,
}
export interface LocationMapping {
accessMappingMoniker?: string;
location?: string;
}
/**
* Data transfer class used to transfer data about the location service data over the web service.
*/
export interface LocationServiceData {
/**
* Data about the access mappings contained by this location service.
*/
accessMappings?: AccessMapping[];
/**
* Data that the location service holds.
*/
clientCacheFresh?: boolean;
/**
* The time to live on the location service cache.
*/
clientCacheTimeToLive?: number;
/**
* The default access mapping moniker for the server.
*/
defaultAccessMappingMoniker?: string;
/**
* The obsolete id for the last change that took place on the server (use LastChangeId64).
*/
lastChangeId?: number;
/**
* The non-truncated 64-bit id for the last change that took place on the server.
*/
lastChangeId64?: number;
/**
* Data about the service definitions contained by this location service.
*/
serviceDefinitions?: ServiceDefinition[];
/**
* The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.)
*/
serviceOwner?: string;
}
export declare enum RelativeToSetting {
Context = 0,
WebApplication = 2,
FullyQualified = 3,
}
export interface ResourceAreaInfo {
id?: string;
locationUrl?: string;
name?: string;
}
export interface ServiceDefinition {
description?: string;
displayName?: string;
identifier?: string;
inheritLevel?: InheritLevel;
locationMappings?: LocationMapping[];
/**
* Maximum api version that this resource supports (current server version for this resource). Copied from <c>ApiResourceLocation</c>.
*/
maxVersion?: string;
/**
* Minimum api version that this resource supports. Copied from <c>ApiResourceLocation</c>.
*/
minVersion?: string;
parentIdentifier?: string;
parentServiceType?: string;
properties?: any;
relativePath?: string;
relativeToSetting?: RelativeToSetting;
/**
* The latest version of this resource location that is in "Release" (non-preview) mode. Copied from <c>ApiResourceLocation</c>.
*/
releasedVersion?: string;
/**
* The current resource version supported by this resource location. Copied from <c>ApiResourceLocation</c>.
*/
resourceVersion?: number;
/**
* The service which owns this definition e.g. TFS, ELS, etc.
*/
serviceOwner?: string;
serviceType?: string;
status?: ServiceStatus;
toolId?: string;
}
export declare enum ServiceStatus {
Assigned = 0,
Active = 1,
Moving = 2,
}
export declare var TypeInfo: {
ConnectionData: any;
InheritLevel: {
enumValues: {
"none": number;
"deployment": number;
"account": number;
"collection": number;
"all": number;
};
};
LocationServiceData: any;
RelativeToSetting: {
enumValues: {
"context": number;
"webApplication": number;
"fullyQualified": number;
};
};
ServiceDefinition: any;
ServiceStatus: {
enumValues: {
"assigned": number;
"active": number;
"moving": number;
};
};
};
@@ -0,0 +1,88 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const VSSInterfaces = require("../interfaces/common/VSSInterfaces");
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
}
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,853 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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) {
NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["NoDelivery"] = -1] = "NoDelivery";
/**
* Deliver notifications to the subscriber's preferred email address.
*/
NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["PreferredEmailAddress"] = 1] = "PreferredEmailAddress";
NotificationSubscriberDeliveryPreference[NotificationSubscriberDeliveryPreference["EachMember"] = 2] = "EachMember";
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";
})(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";
})(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
}
},
SubscriptionPermissions: {
enumValues: {
"none": 0,
"view": 1,
"edit": 2,
"delete": 4
}
},
SubscriptionQuery: {},
SubscriptionQueryCondition: {},
SubscriptionQueryFlags: {
enumValues: {
"none": 0,
"includeInvalidSubscriptions": 2,
"includeDeletedSubscriptions": 4,
"includeFilterDetails": 8,
"alwaysReturnBasicInformation": 16
}
},
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,
}
};
@@ -0,0 +1,170 @@
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
/**
* The full policy configuration with settings.
*/
export interface PolicyConfiguration extends VersionedPolicyConfigurationRef {
/**
* The links to other objects related to this object.
*/
_links?: any;
/**
* A reference to the identity that created the policy.
*/
createdBy?: VSSInterfaces.IdentityRef;
/**
* The date and time when the policy was created.
*/
createdDate?: Date;
/**
* Indicates whether the policy is blocking.
*/
isBlocking: boolean;
/**
* Indicates whether the policy has been (soft) deleted.
*/
isDeleted?: boolean;
/**
* Indicates whether the policy is enabled.
*/
isEnabled: boolean;
/**
* The policy configuration settings.
*/
settings: any;
}
/**
* Policy configuration reference.
*/
export interface PolicyConfigurationRef {
/**
* The policy configuration ID.
*/
id?: number;
/**
* The policy configuration type.
*/
type?: PolicyTypeRef;
/**
* The URL where the policy configuration can be retrieved.
*/
url?: string;
}
/**
* This record encapsulates the current state of a policy as it applies to one specific pull request. Each pull request has a unique PolicyEvaluationRecord for each pull request which the policy applies to.
*/
export interface PolicyEvaluationRecord {
/**
* Links to other related objects
*/
_links?: any;
/**
* A string which uniquely identifies the target of a policy evaluation.
*/
artifactId?: string;
/**
* Time when this policy finished evaluating on this pull request.
*/
completedDate?: Date;
/**
* Contains all configuration data for the policy which is being evaluated.
*/
configuration?: PolicyConfiguration;
/**
* Internal context data of this policy evaluation.
*/
context?: any;
/**
* Guid which uniquely identifies this evaluation record (one policy running on one pull request).
*/
evaluationId?: string;
/**
* Time when this policy was first evaluated on this pull request.
*/
startedDate?: Date;
/**
* Status of the policy (Running, Approved, Failed, etc.)
*/
status?: PolicyEvaluationStatus;
}
/**
* Status of a policy which is running against a specific pull request.
*/
export declare enum PolicyEvaluationStatus {
/**
* The policy is either queued to run, or is waiting for some event before progressing.
*/
Queued = 0,
/**
* The policy is currently running.
*/
Running = 1,
/**
* The policy has been fulfilled for this pull request.
*/
Approved = 2,
/**
* The policy has rejected this pull request.
*/
Rejected = 3,
/**
* The policy does not apply to this pull request.
*/
NotApplicable = 4,
/**
* The policy has encountered an unexpected error.
*/
Broken = 5,
}
/**
* User-friendly policy type with description (used for querying policy types).
*/
export interface PolicyType extends PolicyTypeRef {
/**
* The links to other objects related to this object.
*/
_links?: any;
/**
* Detailed description of the policy type.
*/
description?: string;
}
/**
* Policy type reference.
*/
export interface PolicyTypeRef {
/**
* Display name of the policy type.
*/
displayName?: string;
/**
* The policy type ID.
*/
id: string;
/**
* The URL where the policy type can be retrieved.
*/
url?: string;
}
/**
* A particular revision for a policy configuration.
*/
export interface VersionedPolicyConfigurationRef extends PolicyConfigurationRef {
/**
* The policy configuration revision ID.
*/
revision?: number;
}
export declare var TypeInfo: {
PolicyConfiguration: any;
PolicyEvaluationRecord: any;
PolicyEvaluationStatus: {
enumValues: {
"queued": number;
"running": number;
"approved": number;
"rejected": number;
"notApplicable": number;
"broken": number;
};
};
};
@@ -0,0 +1,74 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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
}
};
@@ -0,0 +1,136 @@
export interface AttributeDescriptor {
attributeName: string;
containerName: string;
}
export interface AttributesContainer {
attributes: {
[key: string]: ProfileAttribute;
};
containerName: string;
revision: number;
}
export interface Avatar {
isAutoGenerated: boolean;
size: AvatarSize;
timeStamp: Date;
value: number[];
}
export declare enum AvatarSize {
Small = 0,
Medium = 1,
Large = 2,
}
export interface CoreProfileAttribute extends ProfileAttributeBase<any> {
}
export interface Country {
code: string;
englishName: string;
}
export interface CreateProfileContext {
cIData: {
[key: string]: any;
};
contactWithOffers: boolean;
countryName: string;
displayName: string;
emailAddress: string;
hasAccount: boolean;
language: string;
phoneNumber: string;
}
export interface GeoRegion {
regionCode: string;
}
export interface Profile {
applicationContainer: AttributesContainer;
coreAttributes: {
[key: string]: CoreProfileAttribute;
};
coreRevision: number;
id: string;
revision: number;
timeStamp: Date;
}
export interface ProfileAttribute extends ProfileAttributeBase<string> {
}
export interface ProfileAttributeBase<T> {
descriptor: AttributeDescriptor;
revision: number;
timeStamp: Date;
value: T;
}
/**
* Country/region information
*/
export interface ProfileRegion {
/**
* The two-letter code defined in ISO 3166 for the country/region.
*/
code: string;
/**
* Localized country/region name
*/
name: string;
}
/**
* Container of country/region information
*/
export interface ProfileRegions {
/**
* List of country/region code with contact consent requirement type of notice
*/
noticeContactConsentRequirementRegions: string[];
/**
* List of country/region code with contact consent requirement type of opt-out
*/
optOutContactConsentRequirementRegions: string[];
/**
* List of country/regions
*/
regions: ProfileRegion[];
}
export declare var TypeInfo: {
AttributeDescriptor: {
fields: any;
};
AttributesContainer: {
fields: any;
};
Avatar: {
fields: any;
};
AvatarSize: {
enumValues: {
"small": number;
"medium": number;
"large": number;
};
};
CoreProfileAttribute: {
fields: any;
};
Country: {
fields: any;
};
CreateProfileContext: {
fields: any;
};
GeoRegion: {
fields: any;
};
Profile: {
fields: any;
};
ProfileAttribute: {
fields: any;
};
ProfileAttributeBase: {
fields: any;
};
ProfileRegion: {
fields: any;
};
ProfileRegions: {
fields: any;
};
};
@@ -0,0 +1,117 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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
},
};
@@ -0,0 +1,78 @@
export declare enum AggregationType {
Hourly = 0,
Daily = 1,
}
export interface AnalyzerDescriptor {
description?: string;
id: string;
majorVersion?: number;
minorVersion?: number;
name: string;
patchVersion?: number;
}
export interface CodeChangeTrendItem {
time?: Date;
value?: number;
}
export interface LanguageMetricsSecuredObject {
namespaceId?: string;
projectId?: string;
requiredPermissions?: number;
}
export interface LanguageStatistics extends LanguageMetricsSecuredObject {
bytes?: number;
files?: number;
filesPercentage?: number;
languagePercentage?: number;
name?: string;
}
export interface ProjectActivityMetrics {
authorsCount?: number;
codeChangesCount?: number;
codeChangesTrend?: CodeChangeTrendItem[];
projectId?: string;
pullRequestsCompletedCount?: number;
pullRequestsCreatedCount?: number;
}
export interface ProjectLanguageAnalytics extends LanguageMetricsSecuredObject {
id?: string;
languageBreakdown?: LanguageStatistics[];
repositoryLanguageAnalytics?: RepositoryLanguageAnalytics[];
resultPhase?: ResultPhase;
url?: string;
}
export interface RepositoryActivityMetrics {
codeChangesCount?: number;
codeChangesTrend?: CodeChangeTrendItem[];
repositoryId?: string;
}
export interface RepositoryLanguageAnalytics extends LanguageMetricsSecuredObject {
id?: string;
languageBreakdown?: LanguageStatistics[];
name?: string;
resultPhase?: ResultPhase;
updatedTime?: Date;
}
export declare enum ResultPhase {
Preliminary = 0,
Full = 1,
}
export declare var TypeInfo: {
AggregationType: {
enumValues: {
"hourly": number;
"daily": number;
};
};
CodeChangeTrendItem: any;
ProjectActivityMetrics: any;
ProjectLanguageAnalytics: any;
RepositoryActivityMetrics: any;
RepositoryLanguageAnalytics: any;
ResultPhase: {
enumValues: {
"preliminary": number;
"full": number;
};
};
};
@@ -0,0 +1,74 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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,
}
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,82 @@
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
export declare enum RoleAccess {
/**
* Access has been explicitly set.
*/
Assigned = 1,
/**
* Access has been inherited from a higher scope.
*/
Inherited = 2,
}
export interface RoleAssignment {
/**
* Designates the role as explicitly assigned or inherited.
*/
access: RoleAccess;
/**
* User friendly description of access assignment.
*/
accessDisplayName: string;
/**
* The user to whom the role is assigned.
*/
identity: VSSInterfaces.IdentityRef;
/**
* The role assigned to the user.
*/
role: SecurityRole;
}
export interface SecurityRole {
/**
* Permissions the role is allowed.
*/
allowPermissions: number;
/**
* Permissions the role is denied.
*/
denyPermissions: number;
/**
* Description of user access defined by the role
*/
description: string;
/**
* User friendly name of the role.
*/
displayName: string;
/**
* Globally unique identifier for the role.
*/
identifier: string;
/**
* Unique name of the role in the scope.
*/
name: string;
/**
* Returns the id of the ParentScope.
*/
scope: string;
}
export interface UserRoleAssignmentRef {
/**
* The name of the role assigned.
*/
roleName: string;
/**
* Identifier of the user given the role assignment.
*/
uniqueName: string;
/**
* Unique id of the user given the role assignment.
*/
userId: string;
}
export declare var TypeInfo: {
RoleAccess: {
enumValues: {
"assigned": number;
"inherited": number;
};
};
RoleAssignment: any;
};
@@ -0,0 +1,36 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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
},
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,588 @@
import TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
export interface AssociatedWorkItem {
assignedTo?: string;
/**
* Id of associated the work item.
*/
id?: number;
state?: string;
title?: string;
/**
* REST Url of the work item.
*/
url?: string;
webUrl?: string;
workItemType?: string;
}
export interface Change<T> {
/**
* The type of change that was made to the item.
*/
changeType?: VersionControlChangeType;
/**
* Current version.
*/
item?: T;
/**
* Content of the item after the change.
*/
newContent?: ItemContent;
/**
* Path of the item on the server.
*/
sourceServerItem?: string;
/**
* URL to retrieve the item.
*/
url?: string;
}
export interface CheckinNote {
name?: string;
value?: string;
}
export interface FileContentMetadata {
contentType?: string;
encoding?: number;
extension?: string;
fileName?: string;
isBinary?: boolean;
isImage?: boolean;
vsLink?: string;
}
export interface GitRepository {
_links?: any;
defaultBranch?: string;
id?: string;
/**
* True if the repository was created as a fork
*/
isFork?: boolean;
name?: string;
parentRepository?: GitRepositoryRef;
project?: TfsCoreInterfaces.TeamProjectReference;
remoteUrl?: string;
/**
* Compressed size (bytes) of the repository.
*/
size?: number;
sshUrl?: string;
url?: string;
validRemoteUrls?: string[];
}
export interface GitRepositoryRef {
/**
* Team Project Collection where this Fork resides
*/
collection?: TfsCoreInterfaces.TeamProjectCollectionReference;
id?: string;
/**
* True if the repository was created as a fork
*/
isFork?: boolean;
name?: string;
project?: TfsCoreInterfaces.TeamProjectReference;
remoteUrl?: string;
sshUrl?: string;
url?: string;
}
export interface ItemContent {
content?: string;
contentType?: ItemContentType;
}
export declare enum ItemContentType {
RawText = 0,
Base64Encoded = 1,
}
export interface ItemModel {
_links?: any;
content?: string;
contentMetadata?: FileContentMetadata;
isFolder?: boolean;
isSymLink?: boolean;
path?: string;
url?: string;
}
export interface TfvcBranch extends TfvcBranchRef {
/**
* List of children for the branch.
*/
children?: TfvcBranch[];
/**
* List of branch mappings.
*/
mappings?: TfvcBranchMapping[];
/**
* Path of the branch's parent.
*/
parent?: TfvcShallowBranchRef;
/**
* List of paths of the related branches.
*/
relatedBranches?: TfvcShallowBranchRef[];
}
export interface TfvcBranchMapping {
/**
* Depth of the branch.
*/
depth?: string;
/**
* Server item for the branch.
*/
serverItem?: string;
/**
* Type of the branch.
*/
type?: string;
}
export interface TfvcBranchRef extends TfvcShallowBranchRef {
/**
* A collection of REST reference links.
*/
_links?: any;
/**
* Creation date of the branch.
*/
createdDate?: Date;
/**
* Description of the branch.
*/
description?: string;
/**
* Is the branch deleted?
*/
isDeleted?: boolean;
/**
* Alias or display name of user
*/
owner?: VSSInterfaces.IdentityRef;
/**
* URL to retrieve the item.
*/
url?: string;
}
export interface TfvcChange extends Change<TfvcItem> {
/**
* List of merge sources in case of rename or branch creation.
*/
mergeSources?: TfvcMergeSource[];
/**
* Version at which a (shelved) change was pended against
*/
pendingVersion?: number;
}
export interface TfvcChangeset extends TfvcChangesetRef {
/**
* Account Id of the changeset.
*/
accountId?: string;
/**
* List of associated changes.
*/
changes?: TfvcChange[];
/**
* Checkin Notes for the changeset.
*/
checkinNotes?: CheckinNote[];
/**
* Collection Id of the changeset.
*/
collectionId?: string;
/**
* Are more changes available.
*/
hasMoreChanges?: boolean;
/**
* Policy Override for the changeset.
*/
policyOverride?: TfvcPolicyOverrideInfo;
/**
* Team Project Ids for the changeset.
*/
teamProjectIds?: string[];
/**
* List of work items associated with the changeset.
*/
workItems?: AssociatedWorkItem[];
}
export interface TfvcChangesetRef {
/**
* A collection of REST reference links.
*/
_links?: any;
/**
* Alias or display name of user
*/
author?: VSSInterfaces.IdentityRef;
/**
* Id of the changeset.
*/
changesetId?: number;
/**
* Alias or display name of user
*/
checkedInBy?: VSSInterfaces.IdentityRef;
/**
* Comment for the changeset.
*/
comment?: string;
/**
* Was the Comment result truncated?
*/
commentTruncated?: boolean;
/**
* Creation date of the changeset.
*/
createdDate?: Date;
/**
* URL to retrieve the item.
*/
url?: string;
}
/**
* Criteria used in a search for change lists
*/
export interface TfvcChangesetSearchCriteria {
/**
* Alias or display name of user who made the changes
*/
author?: string;
/**
* Whether or not to follow renames for the given item being queried
*/
followRenames?: boolean;
/**
* If provided, only include changesets created after this date (string) Think of a better name for this.
*/
fromDate?: string;
/**
* If provided, only include changesets after this changesetID
*/
fromId?: number;
/**
* Whether to include the _links field on the shallow references
*/
includeLinks?: boolean;
/**
* Path of item to search under
*/
itemPath?: string;
mappings?: TfvcMappingFilter[];
/**
* If provided, only include changesets created before this date (string) Think of a better name for this.
*/
toDate?: string;
/**
* If provided, a version descriptor for the latest change list to include
*/
toId?: number;
}
export interface TfvcChangesetsRequestData {
/**
* List of changeset Ids.
*/
changesetIds?: number[];
/**
* Length of the comment.
*/
commentLength?: number;
/**
* Whether to include the _links field on the shallow references
*/
includeLinks?: boolean;
}
export interface TfvcItem extends ItemModel {
changeDate?: Date;
deletionId?: number;
/**
* File encoding from database, -1 represents binary.
*/
encoding?: number;
/**
* MD5 hash as a base 64 string, applies to files only.
*/
hashValue?: string;
isBranch?: boolean;
isPendingChange?: boolean;
/**
* The size of the file, if applicable.
*/
size?: number;
version?: number;
}
/**
* Item path and Version descriptor properties
*/
export interface TfvcItemDescriptor {
path?: string;
recursionLevel?: VersionControlRecursionType;
version?: string;
versionOption?: TfvcVersionOption;
versionType?: TfvcVersionType;
}
export interface TfvcItemRequestData {
/**
* If true, include metadata about the file type
*/
includeContentMetadata?: boolean;
/**
* Whether to include the _links field on the shallow references
*/
includeLinks?: boolean;
itemDescriptors?: TfvcItemDescriptor[];
}
export interface TfvcLabel extends TfvcLabelRef {
items?: TfvcItem[];
}
export interface TfvcLabelRef {
_links?: any;
description?: string;
id?: number;
labelScope?: string;
modifiedDate?: Date;
name?: string;
owner?: VSSInterfaces.IdentityRef;
url?: string;
}
export interface TfvcLabelRequestData {
/**
* Whether to include the _links field on the shallow references
*/
includeLinks?: boolean;
itemLabelFilter?: string;
labelScope?: string;
maxItemCount?: number;
name?: string;
owner?: string;
}
export interface TfvcMappingFilter {
exclude?: boolean;
serverPath?: string;
}
export interface TfvcMergeSource {
/**
* Indicates if this a rename source. If false, it is a merge source.
*/
isRename?: boolean;
/**
* The server item of the merge source
*/
serverItem?: string;
/**
* Start of the version range
*/
versionFrom?: number;
/**
* End of the version range
*/
versionTo?: number;
}
export interface TfvcPolicyFailureInfo {
message?: string;
policyName?: string;
}
export interface TfvcPolicyOverrideInfo {
comment?: string;
policyFailures?: TfvcPolicyFailureInfo[];
}
export interface TfvcShallowBranchRef {
/**
* Path for the branch.
*/
path?: string;
}
/**
* This is the deep shelveset class
*/
export interface TfvcShelveset extends TfvcShelvesetRef {
changes?: TfvcChange[];
notes?: CheckinNote[];
policyOverride?: TfvcPolicyOverrideInfo;
workItems?: AssociatedWorkItem[];
}
/**
* This is the shallow shelveset class
*/
export interface TfvcShelvesetRef {
_links?: any;
comment?: string;
commentTruncated?: boolean;
createdDate?: Date;
id?: string;
name?: string;
owner?: VSSInterfaces.IdentityRef;
url?: string;
}
export interface TfvcShelvesetRequestData {
/**
* Whether to include policyOverride and notes Only applies when requesting a single deep shelveset
*/
includeDetails?: boolean;
/**
* Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset.
*/
includeLinks?: boolean;
/**
* Whether to include workItems
*/
includeWorkItems?: boolean;
/**
* Max number of changes to include
*/
maxChangeCount?: number;
/**
* Max length of comment
*/
maxCommentLength?: number;
/**
* Shelveset's name
*/
name?: string;
/**
* Owner's ID. Could be a name or a guid.
*/
owner?: string;
}
export interface TfvcStatistics {
/**
* Id of the last changeset the stats are based on.
*/
changesetId?: number;
/**
* Count of files at the requested scope.
*/
fileCountTotal?: number;
}
export interface TfvcVersionDescriptor {
version?: string;
versionOption?: TfvcVersionOption;
versionType?: TfvcVersionType;
}
export declare enum TfvcVersionOption {
None = 0,
Previous = 1,
UseRename = 2,
}
export declare enum TfvcVersionType {
None = 0,
Changeset = 1,
Shelveset = 2,
Change = 3,
Date = 4,
Latest = 5,
Tip = 6,
MergeSource = 7,
}
export declare enum VersionControlChangeType {
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,
}
export interface VersionControlProjectInfo {
defaultSourceControlType?: TfsCoreInterfaces.SourceControlTypes;
project?: TfsCoreInterfaces.TeamProjectReference;
supportsGit?: boolean;
supportsTFVC?: boolean;
}
export declare enum VersionControlRecursionType {
/**
* Only return the specified item.
*/
None = 0,
/**
* Return the specified item and its direct children.
*/
OneLevel = 1,
/**
* Return the specified item and its direct children, as well as recursive chains of nested child folders that only contain a single folder.
*/
OneLevelPlusNestedEmptyFolders = 4,
/**
* Return specified item and all descendants
*/
Full = 120,
}
export declare var TypeInfo: {
Change: any;
GitRepository: any;
GitRepositoryRef: any;
ItemContent: any;
ItemContentType: {
enumValues: {
"rawText": number;
"base64Encoded": number;
};
};
TfvcBranch: any;
TfvcBranchRef: any;
TfvcChange: any;
TfvcChangeset: any;
TfvcChangesetRef: any;
TfvcItem: any;
TfvcItemDescriptor: any;
TfvcItemRequestData: any;
TfvcLabel: any;
TfvcLabelRef: any;
TfvcShelveset: any;
TfvcShelvesetRef: any;
TfvcVersionDescriptor: any;
TfvcVersionOption: {
enumValues: {
"none": number;
"previous": number;
"useRename": number;
};
};
TfvcVersionType: {
enumValues: {
"none": number;
"changeset": number;
"shelveset": number;
"change": number;
"date": number;
"latest": number;
"tip": number;
"mergeSource": number;
};
};
VersionControlChangeType: {
enumValues: {
"none": number;
"add": number;
"edit": number;
"encoding": number;
"rename": number;
"delete": number;
"undelete": number;
"branch": number;
"merge": number;
"lock": number;
"rollback": number;
"sourceRename": number;
"targetRename": number;
"property": number;
"all": number;
};
};
VersionControlProjectInfo: any;
VersionControlRecursionType: {
enumValues: {
"none": number;
"oneLevel": number;
"oneLevelPlusNestedEmptyFolders": number;
"full": number;
};
};
};
@@ -0,0 +1,271 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
var ItemContentType;
(function (ItemContentType) {
ItemContentType[ItemContentType["RawText"] = 0] = "RawText";
ItemContentType[ItemContentType["Base64Encoded"] = 1] = "Base64Encoded";
})(ItemContentType = exports.ItemContentType || (exports.ItemContentType = {}));
var TfvcVersionOption;
(function (TfvcVersionOption) {
TfvcVersionOption[TfvcVersionOption["None"] = 0] = "None";
TfvcVersionOption[TfvcVersionOption["Previous"] = 1] = "Previous";
TfvcVersionOption[TfvcVersionOption["UseRename"] = 2] = "UseRename";
})(TfvcVersionOption = exports.TfvcVersionOption || (exports.TfvcVersionOption = {}));
var TfvcVersionType;
(function (TfvcVersionType) {
TfvcVersionType[TfvcVersionType["None"] = 0] = "None";
TfvcVersionType[TfvcVersionType["Changeset"] = 1] = "Changeset";
TfvcVersionType[TfvcVersionType["Shelveset"] = 2] = "Shelveset";
TfvcVersionType[TfvcVersionType["Change"] = 3] = "Change";
TfvcVersionType[TfvcVersionType["Date"] = 4] = "Date";
TfvcVersionType[TfvcVersionType["Latest"] = 5] = "Latest";
TfvcVersionType[TfvcVersionType["Tip"] = 6] = "Tip";
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
}
};
@@ -0,0 +1,281 @@
import GitInterfaces = require("../interfaces/GitInterfaces");
/**
* Defines a wiki repository which encapsulates the git repository backing the wiki.
*/
export interface Wiki extends WikiCreateParameters {
/**
* The head commit associated with the git repository backing up the wiki.
*/
headCommit?: string;
/**
* The ID of the wiki which is same as the ID of the Git repository that it is backed by.
*/
id?: string;
/**
* The git repository that backs up the wiki.
*/
repository?: GitInterfaces.GitRepository;
}
/**
* Defines properties for wiki attachment file.
*/
export interface WikiAttachment {
/**
* Name of the wiki attachment file.
*/
name?: string;
/**
* Path of the wiki attachment file.
*/
path?: string;
}
/**
* Response contract for the Wiki Attachments API
*/
export interface WikiAttachmentResponse {
/**
* Defines properties for wiki attachment file.
*/
attachment?: WikiAttachment;
/**
* Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment.
*/
eTag?: string[];
}
/**
* Base wiki creation parameters.
*/
export interface WikiCreateBaseParameters {
/**
* Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type.
*/
mappedPath?: string;
/**
* Wiki name.
*/
name?: string;
/**
* ID of the project in which the wiki is to be created.
*/
projectId?: string;
/**
* ID of the git repository that backs up the wiki. Not required for ProjectWiki type.
*/
repositoryId?: string;
/**
* Type of the wiki.
*/
type?: WikiType;
}
/**
* Wiki creations parameters.
*/
export interface WikiCreateParameters {
/**
* Wiki name.
*/
name?: string;
/**
* ID of the project in which the wiki is to be created.
*/
projectId?: string;
}
/**
* Wiki creation parameters.
*/
export interface WikiCreateParametersV2 extends WikiCreateBaseParameters {
/**
* Version of the wiki. Not required for ProjectWiki type.
*/
version?: GitInterfaces.GitVersionDescriptor;
}
/**
* Defines a page in a wiki.
*/
export interface WikiPage extends WikiPageCreateOrUpdateParameters {
/**
* Path of the git item corresponding to the wiki page stored in the backing Git repository.
*/
gitItemPath?: string;
/**
* True if a page is non-conforming, i.e. 1) if the name doesn't match page naming standards. 2) if the page does not have a valid entry in the appropriate order file.
*/
isNonConformant?: boolean;
/**
* True if this page has subpages under its path.
*/
isParentPage?: boolean;
/**
* Order of the wiki page, relative to other pages in the same hierarchy level.
*/
order?: number;
/**
* Path of the wiki page.
*/
path?: string;
/**
* Remote web url to the wiki page.
*/
remoteUrl?: string;
/**
* List of subpages of the current page.
*/
subPages?: WikiPage[];
/**
* REST url for this wiki page.
*/
url?: string;
}
/**
* Contract encapsulating parameters for the page create or update operations.
*/
export interface WikiPageCreateOrUpdateParameters {
/**
* Content of the wiki page.
*/
content?: string;
}
/**
* Request contract for Wiki Page Move.
*/
export interface WikiPageMove extends WikiPageMoveParameters {
/**
* Resultant page of this page move operation.
*/
page?: WikiPage;
}
/**
* Contract encapsulating parameters for the page move operation.
*/
export interface WikiPageMoveParameters {
/**
* New order of the wiki page.
*/
newOrder?: number;
/**
* New path of the wiki page.
*/
newPath?: string;
/**
* Current path of the wiki page.
*/
path?: string;
}
/**
* Response contract for the Wiki Page Move API.
*/
export interface WikiPageMoveResponse {
/**
* Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move.
*/
eTag?: string[];
/**
* Defines properties for wiki page move.
*/
pageMove?: WikiPageMove;
}
/**
* Response contract for the Wiki Pages PUT, PATCH and DELETE APIs.
*/
export interface WikiPageResponse {
/**
* Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page.
*/
eTag?: string[];
/**
* Defines properties for wiki page.
*/
page?: WikiPage;
}
/**
* Defines properties for wiki page view stats.
*/
export interface WikiPageViewStats {
/**
* Wiki page view count.
*/
count?: number;
/**
* Wiki page last viewed time.
*/
lastViewedTime?: Date;
/**
* Wiki page path.
*/
path?: string;
}
/**
* Wiki types.
*/
export declare enum WikiType {
ProjectWiki = 0,
CodeWiki = 1,
}
export interface WikiUpdatedNotificationMessage {
/**
* Collection host Id for which the wikis are updated.
*/
collectionId?: string;
/**
* Project Id for which the wikis are updated.
*/
projectId?: string;
/**
* Repository Id associated with the particular wiki which is added, updated or deleted.
*/
repositoryId?: string;
}
/**
* Wiki update parameters.
*/
export interface WikiUpdateParameters {
/**
* Name for wiki.
*/
name?: string;
/**
* Versions of the wiki.
*/
versions?: GitInterfaces.GitVersionDescriptor[];
}
/**
* Defines a wiki resource.
*/
export interface WikiV2 extends WikiCreateBaseParameters {
/**
* ID of the wiki.
*/
id?: string;
/**
* Properties of the wiki.
*/
properties?: {
[key: string]: string;
};
/**
* Remote web url to the wiki.
*/
remoteUrl?: string;
/**
* REST url for this wiki.
*/
url?: string;
/**
* Versions of the wiki.
*/
versions?: GitInterfaces.GitVersionDescriptor[];
}
export declare var TypeInfo: {
Wiki: any;
WikiCreateBaseParameters: any;
WikiCreateParametersV2: any;
WikiPageViewStats: any;
WikiType: {
enumValues: {
"projectWiki": number;
"codeWiki": number;
};
};
WikiUpdateParameters: any;
WikiV2: any;
};
@@ -0,0 +1,72 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const GitInterfaces = require("../interfaces/GitInterfaces");
/**
* Wiki types.
*/
var WikiType;
(function (WikiType) {
WikiType[WikiType["ProjectWiki"] = 0] = "ProjectWiki";
WikiType[WikiType["CodeWiki"] = 1] = "CodeWiki";
})(WikiType = exports.WikiType || (exports.WikiType = {}));
exports.TypeInfo = {
Wiki: {},
WikiCreateBaseParameters: {},
WikiCreateParametersV2: {},
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.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
}
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,510 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SystemInterfaces = require("../interfaces/common/System");
/**
* 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 = {}));
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: {},
BoardColumn: {},
BoardColumnType: {
enumValues: {
"incoming": 0,
"inProgress": 1,
"outgoing": 2
}
},
BugsBehavior: {
enumValues: {
"off": 0,
"asRequirements": 1,
"asTasks": 2
}
},
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
}
},
TeamIterationAttributes: {},
TeamMemberCapacity: {},
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.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,
},
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.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.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
}
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,652 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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 = {}));
var CommentSortOrder;
(function (CommentSortOrder) {
CommentSortOrder[CommentSortOrder["Asc"] = 1] = "Asc";
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.
*/
FieldType[FieldType["PicklistString"] = 11] = "PicklistString";
/**
* Integer picklist field type.
*/
FieldType[FieldType["PicklistInteger"] = 12] = "PicklistInteger";
/**
* Double picklist field type.
*/
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";
})(GetFieldsExpand = exports.GetFieldsExpand || (exports.GetFieldsExpand = {}));
/**
* The link query mode which determines the behavior of the query.
*/
var LinkQueryMode;
(function (LinkQueryMode) {
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 = {}));
/**
* 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 = {}));
var ReportingRevisionsExpand;
(function (ReportingRevisionsExpand) {
ReportingRevisionsExpand[ReportingRevisionsExpand["None"] = 0] = "None";
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) {
WorkItemErrorPolicy[WorkItemErrorPolicy["Fail"] = 1] = "Fail";
WorkItemErrorPolicy[WorkItemErrorPolicy["Omit"] = 2] = "Omit";
})(WorkItemErrorPolicy = exports.WorkItemErrorPolicy || (exports.WorkItemErrorPolicy = {}));
/**
* Flag to control payload properties from get work item command.
*/
var WorkItemExpand;
(function (WorkItemExpand) {
WorkItemExpand[WorkItemExpand["None"] = 0] = "None";
WorkItemExpand[WorkItemExpand["Relations"] = 1] = "Relations";
WorkItemExpand[WorkItemExpand["Fields"] = 2] = "Fields";
WorkItemExpand[WorkItemExpand["Links"] = 3] = "Links";
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: {},
AccountRecentMentionWorkItemModel: {},
AccountWorkWorkItemModel: {},
ClassificationNodesErrorPolicy: {
enumValues: {
"fail": 1,
"omit": 2
}
},
CommentSortOrder: {
enumValues: {
"asc": 1,
"desc": 2
}
},
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
}
},
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
}
},
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: {},
WorkItemHistory: {},
WorkItemQueryClause: {},
WorkItemQueryResult: {},
WorkItemRecentActivityType: {
enumValues: {
"visited": 0,
"edited": 1,
"deleted": 2,
"restored": 3
}
},
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.AccountRecentMentionWorkItemModel.fields = {
mentionedDateField: {
isDate: true,
}
};
exports.TypeInfo.AccountWorkWorkItemModel.fields = {
changedDate: {
isDate: true,
}
};
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.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.WorkItemTypeTemplateUpdateModel.fields = {
actionType: {
enumType: exports.TypeInfo.ProvisioningActionType
},
templateType: {
enumType: exports.TypeInfo.TemplateType
}
};
exports.TypeInfo.WorkItemUpdate.fields = {
revisedDate: {
isDate: true,
}
};
@@ -0,0 +1,574 @@
export interface BehaviorCreateModel {
/**
* Color
*/
color?: string;
/**
* Optional - Id
*/
id?: string;
/**
* Parent behavior id
*/
inherits?: string;
/**
* Name of the behavior
*/
name?: string;
}
export interface BehaviorModel {
/**
* Is the behavior abstract (i.e. can not be associated with any work item type)
*/
abstract?: boolean;
/**
* Color
*/
color?: string;
/**
* Description
*/
description?: string;
/**
* Behavior Id
*/
id?: string;
/**
* Parent behavior reference
*/
inherits?: WorkItemBehaviorReference;
/**
* Behavior Name
*/
name?: string;
/**
* Is the behavior overrides a behavior from system process
*/
overridden?: boolean;
/**
* Rank
*/
rank?: number;
/**
* Url of the behavior
*/
url?: string;
}
export interface BehaviorReplaceModel {
/**
* Color
*/
color?: string;
/**
* Behavior Name
*/
name?: string;
}
/**
* Represent a control in the form.
*/
export interface Control {
/**
* Contribution for the control.
*/
contribution?: WitContribution;
/**
* Type of the control.
*/
controlType?: string;
/**
* Height of the control, for html controls.
*/
height?: number;
/**
* The id for the layout node.
*/
id?: string;
/**
* A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner.
*/
inherited?: boolean;
/**
* A value indicating if the layout node is contribution or not.
*/
isContribution?: boolean;
/**
* Label for the field
*/
label?: string;
/**
* Inner text of the control.
*/
metadata?: string;
order?: number;
/**
* A value indicating whether this layout node has been overridden by a child layout.
*/
overridden?: boolean;
/**
* A value indicating if the control is readonly.
*/
readOnly?: boolean;
/**
* A value indicating if the control should be hidden or not.
*/
visible?: boolean;
/**
* Watermark text for the textbox.
*/
watermark?: string;
}
/**
* Represents the extensions part of the layout
*/
export interface Extension {
id?: string;
}
export interface FieldModel {
/**
* Description about field
*/
description?: string;
/**
* ID of the field
*/
id?: string;
/**
* Name of the field
*/
name?: string;
/**
* Reference to picklist in this field
*/
pickList?: PickListMetadataModel;
/**
* Type of field
*/
type?: FieldType;
/**
* Url to the field
*/
url?: string;
}
export declare enum FieldType {
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,
}
export interface FieldUpdate {
description?: string;
id?: string;
}
export interface FormLayout {
/**
* Gets and sets extensions list
*/
extensions?: Extension[];
/**
* Top level tabs of the layout.
*/
pages?: Page[];
/**
* Headers controls of the layout.
*/
systemControls?: Control[];
}
export declare enum GetWorkItemTypeExpand {
None = 0,
States = 1,
Behaviors = 2,
Layout = 4,
}
/**
* Represent a group in the form that holds controls in it.
*/
export interface Group {
/**
* Contribution for the group.
*/
contribution?: WitContribution;
/**
* Controls to be put in the group.
*/
controls?: Control[];
/**
* The height for the contribution.
*/
height?: number;
/**
* The id for the layout node.
*/
id?: string;
/**
* A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner.
*/
inherited?: boolean;
/**
* A value indicating if the layout node is contribution are not.
*/
isContribution?: boolean;
/**
* Label for the group.
*/
label?: string;
/**
* Order in which the group should appear in the section.
*/
order?: number;
/**
* A value indicating whether this layout node has been overridden by a child layout.
*/
overridden?: boolean;
/**
* A value indicating if the group should be hidden or not.
*/
visible?: boolean;
}
export interface HideStateModel {
hidden?: boolean;
}
export interface Page {
/**
* Contribution for the page.
*/
contribution?: WitContribution;
/**
* The id for the layout node.
*/
id?: string;
/**
* A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner.
*/
inherited?: boolean;
/**
* A value indicating if the layout node is contribution are not.
*/
isContribution?: boolean;
/**
* The label for the page.
*/
label?: string;
/**
* A value indicating whether any user operations are permitted on this page and the contents of this page
*/
locked?: boolean;
/**
* Order in which the page should appear in the layout.
*/
order?: number;
/**
* A value indicating whether this layout node has been overridden by a child layout.
*/
overridden?: boolean;
/**
* The icon for the page.
*/
pageType?: PageType;
/**
* The sections of the page.
*/
sections?: Section[];
/**
* A value indicating if the page should be hidden or not.
*/
visible?: boolean;
}
/**
* Type of page
*/
export declare enum PageType {
Custom = 1,
History = 2,
Links = 3,
Attachments = 4,
}
export interface PickListItemModel {
id?: string;
value?: string;
}
export interface PickListMetadataModel {
/**
* ID of the picklist
*/
id?: string;
/**
* Is input values by user only limited to suggested values
*/
isSuggested?: boolean;
/**
* Name of the picklist
*/
name?: string;
/**
* Type of picklist
*/
type?: string;
/**
* Url of the picklist
*/
url?: string;
}
export interface PickListModel extends PickListMetadataModel {
/**
* A list of PicklistItemModel
*/
items?: PickListItemModel[];
}
/**
* A layout node holding groups together in a page
*/
export interface Section {
groups?: Group[];
/**
* The id for the layout node.
*/
id?: string;
/**
* A value indicating whether this layout node has been overridden by a child layout.
*/
overridden?: boolean;
}
export interface WitContribution {
/**
* The id for the contribution.
*/
contributionId?: string;
/**
* The height for the contribution.
*/
height?: number;
/**
* A dictionary holding key value pairs for contribution inputs.
*/
inputs?: {
[key: string]: any;
};
/**
* A value indicating if the contribution should be show on deleted workItem.
*/
showOnDeletedWorkItem?: boolean;
}
export interface WorkItemBehaviorReference {
/**
* The ID of the reference behavior
*/
id?: string;
/**
* The url of the reference behavior
*/
url?: string;
}
export interface WorkItemStateInputModel {
/**
* Color of the state
*/
color?: string;
/**
* Name of the state
*/
name?: string;
/**
* Order in which state should appear
*/
order?: number;
/**
* Category of the state
*/
stateCategory?: string;
}
export interface WorkItemStateResultModel {
/**
* Color of the state
*/
color?: string;
/**
* Is the state hidden
*/
hidden?: boolean;
/**
* The ID of the State
*/
id?: string;
/**
* Name of the state
*/
name?: string;
/**
* Order in which state should appear
*/
order?: number;
/**
* Category of the state
*/
stateCategory?: string;
/**
* Url of the state
*/
url?: string;
}
export interface WorkItemTypeBehavior {
behavior?: WorkItemBehaviorReference;
isDefault?: boolean;
url?: string;
}
/**
* Work item type classes'
*/
export declare enum WorkItemTypeClass {
System = 0,
Derived = 1,
Custom = 2,
}
export interface WorkItemTypeFieldModel {
allowGroups: boolean;
defaultValue?: string;
name?: string;
pickList?: PickListMetadataModel;
readOnly?: boolean;
referenceName?: string;
required?: boolean;
type?: FieldType;
url?: string;
}
/**
* New version of WorkItemTypeFieldModel supporting defaultValue as object (such as IdentityRef)
*/
export interface WorkItemTypeFieldModel2 {
allowGroups: boolean;
defaultValue?: any;
name?: string;
pickList?: PickListMetadataModel;
readOnly?: boolean;
referenceName?: string;
required?: boolean;
type?: FieldType;
url?: string;
}
export interface WorkItemTypeModel {
/**
* Behaviors of the work item type
*/
behaviors?: WorkItemTypeBehavior[];
/**
* Class of the work item type
*/
class?: WorkItemTypeClass;
/**
* Color of the work item type
*/
color?: string;
/**
* Description of the work item type
*/
description?: string;
/**
* Icon of the work item type
*/
icon?: string;
/**
* The ID of the work item type
*/
id?: string;
/**
* Parent WIT Id/Internal ReferenceName that it inherits from
*/
inherits?: string;
/**
* Is work item type disabled
*/
isDisabled?: boolean;
/**
* Layout of the work item type
*/
layout?: FormLayout;
/**
* Name of the work item type
*/
name?: string;
/**
* States of the work item type
*/
states?: WorkItemStateResultModel[];
/**
* Url of the work item type
*/
url?: string;
}
export interface WorkItemTypeUpdateModel {
/**
* Color of the work item type
*/
color?: string;
/**
* Description of the work item type
*/
description?: string;
/**
* Icon of the work item type
*/
icon?: string;
/**
* Is the workitem type to be disabled
*/
isDisabled?: boolean;
}
export declare var TypeInfo: {
FieldModel: any;
FieldType: {
enumValues: {
"string": number;
"integer": number;
"dateTime": number;
"plainText": number;
"html": number;
"treePath": number;
"history": number;
"double": number;
"guid": number;
"boolean": number;
"identity": number;
"picklistInteger": number;
"picklistString": number;
"picklistDouble": number;
};
};
FormLayout: any;
GetWorkItemTypeExpand: {
enumValues: {
"none": number;
"states": number;
"behaviors": number;
"layout": number;
};
};
Page: any;
PageType: {
enumValues: {
"custom": number;
"history": number;
"links": number;
"attachments": number;
};
};
WorkItemTypeClass: {
enumValues: {
"system": number;
"derived": number;
"custom": number;
};
};
WorkItemTypeFieldModel: any;
WorkItemTypeFieldModel2: any;
WorkItemTypeModel: any;
};
@@ -0,0 +1,137 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FieldType;
(function (FieldType) {
FieldType[FieldType["String"] = 1] = "String";
FieldType[FieldType["Integer"] = 2] = "Integer";
FieldType[FieldType["DateTime"] = 3] = "DateTime";
FieldType[FieldType["PlainText"] = 5] = "PlainText";
FieldType[FieldType["Html"] = 7] = "Html";
FieldType[FieldType["TreePath"] = 8] = "TreePath";
FieldType[FieldType["History"] = 9] = "History";
FieldType[FieldType["Double"] = 10] = "Double";
FieldType[FieldType["Guid"] = 11] = "Guid";
FieldType[FieldType["Boolean"] = 12] = "Boolean";
FieldType[FieldType["Identity"] = 13] = "Identity";
FieldType[FieldType["PicklistInteger"] = 14] = "PicklistInteger";
FieldType[FieldType["PicklistString"] = 15] = "PicklistString";
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
}
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,423 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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) {
FieldType[FieldType["String"] = 1] = "String";
FieldType[FieldType["Integer"] = 2] = "Integer";
FieldType[FieldType["DateTime"] = 3] = "DateTime";
FieldType[FieldType["PlainText"] = 5] = "PlainText";
FieldType[FieldType["Html"] = 7] = "Html";
FieldType[FieldType["TreePath"] = 8] = "TreePath";
FieldType[FieldType["History"] = 9] = "History";
FieldType[FieldType["Double"] = 10] = "Double";
FieldType[FieldType["Guid"] = 11] = "Guid";
FieldType[FieldType["Boolean"] = 12] = "Boolean";
FieldType[FieldType["Identity"] = 13] = "Identity";
FieldType[FieldType["PicklistInteger"] = 14] = "PicklistInteger";
FieldType[FieldType["PicklistString"] = 15] = "PicklistString";
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 = {}));
var GetProcessExpandLevel;
(function (GetProcessExpandLevel) {
GetProcessExpandLevel[GetProcessExpandLevel["None"] = 0] = "None";
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) {
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 = {}));
/**
* Enum for the types of pages in the work item form layout
*/
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 = {}));
var ProcessClass;
(function (ProcessClass) {
ProcessClass[ProcessClass["System"] = 0] = "System";
ProcessClass[ProcessClass["Derived"] = 1] = "Derived";
ProcessClass[ProcessClass["Custom"] = 2] = "Custom";
})(ProcessClass = exports.ProcessClass || (exports.ProcessClass = {}));
/**
* 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";
})(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 = 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: {},
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
}
},
RuleCondition: {},
RuleConditionType: {
enumValues: {
"when": 1,
"whenNot": 2,
"whenChanged": 3,
"whenNotChanged": 4,
"whenWas": 5,
"whenStateChangedTo": 6,
"whenStateChangedFromAndTo": 7,
"whenWorkItemIsCreated": 8,
"whenValueIsDefined": 9,
"whenValueIsNotDefined": 10
}
},
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
}
};
@@ -0,0 +1,283 @@
export declare enum InputDataType {
/**
* No data type is specified.
*/
None = 0,
/**
* Represents a textual value.
*/
String = 10,
/**
* Represents a numberic value.
*/
Number = 20,
/**
* Represents a value of true or false.
*/
Boolean = 30,
/**
* Represents a Guid.
*/
Guid = 40,
/**
* Represents a URI.
*/
Uri = 50,
}
/**
* Describes an input for subscriptions.
*/
export interface InputDescriptor {
/**
* The ids of all inputs that the value of this input is dependent on.
*/
dependencyInputIds: string[];
/**
* Description of what this input is used for
*/
description: string;
/**
* The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group.
*/
groupName: string;
/**
* If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change.
*/
hasDynamicValueInformation: boolean;
/**
* Identifier for the subscription input
*/
id: string;
/**
* Mode in which the value of this input should be entered
*/
inputMode: InputMode;
/**
* Gets whether this input is confidential, such as for a password or application key
*/
isConfidential: boolean;
/**
* Localized name which can be shown as a label for the subscription input
*/
name: string;
/**
* Gets whether this input is included in the default generated action description.
*/
useInDefaultDescription: boolean;
/**
* Information to use to validate this input's value
*/
validation: InputValidation;
/**
* A hint for input value. It can be used in the UI as the input placeholder.
*/
valueHint: string;
/**
* Information about possible values for this input
*/
values: InputValues;
}
/**
* Defines a filter for subscription inputs. The filter matches a set of inputs if any (one or more) of the groups evaluates to true.
*/
export interface InputFilter {
/**
* Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true.
*/
conditions: InputFilterCondition[];
}
/**
* An expression which can be applied to filter a list of subscription inputs
*/
export interface InputFilterCondition {
/**
* Whether or not to do a case sensitive match
*/
caseSensitive: boolean;
/**
* The Id of the input to filter on
*/
inputId: string;
/**
* The "expected" input value to compare with the actual input value
*/
inputValue: string;
/**
* The operator applied between the expected and actual input value
*/
operator: InputFilterOperator;
}
export declare enum InputFilterOperator {
Equals = 0,
NotEquals = 1,
}
export declare enum InputMode {
/**
* This input should not be shown in the UI
*/
None = 0,
/**
* An input text box should be shown
*/
TextBox = 10,
/**
* An password input box should be shown
*/
PasswordBox = 20,
/**
* A select/combo control should be shown
*/
Combo = 30,
/**
* Radio buttons should be shown
*/
RadioButtons = 40,
/**
* Checkbox should be shown(for true/false values)
*/
CheckBox = 50,
/**
* A multi-line text area should be shown
*/
TextArea = 60,
}
/**
* Describes what values are valid for a subscription input
*/
export interface InputValidation {
dataType: InputDataType;
isRequired: boolean;
maxLength: number;
maxValue: number;
minLength: number;
minValue: number;
pattern: string;
patternMismatchErrorMessage: string;
}
/**
* Information about a single value for an input
*/
export interface InputValue {
/**
* Any other data about this input
*/
data: {
[key: string]: any;
};
/**
* The text to show for the display of this value
*/
displayValue: string;
/**
* The value to store for this input
*/
value: string;
}
/**
* Information about the possible/allowed values for a given subscription input
*/
export interface InputValues {
/**
* The default value to use for this input
*/
defaultValue: string;
/**
* Errors encountered while computing dynamic values.
*/
error: InputValuesError;
/**
* The id of the input
*/
inputId: string;
/**
* Should this input be disabled
*/
isDisabled: boolean;
/**
* Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False)
*/
isLimitedToPossibleValues: boolean;
/**
* Should this input be made read-only
*/
isReadOnly: boolean;
/**
* Possible values that this input can take
*/
possibleValues: InputValue[];
}
/**
* Error information related to a subscription input value.
*/
export interface InputValuesError {
/**
* The error message.
*/
message: string;
}
export interface InputValuesQuery {
currentValues: {
[key: string]: string;
};
/**
* The input values to return on input, and the result from the consumer on output.
*/
inputValues?: InputValues[];
/**
* Subscription containing information about the publisher/consumer and the current input values
*/
resource: any;
}
export declare var TypeInfo: {
InputDataType: {
enumValues: {
"none": number;
"string": number;
"number": number;
"boolean": number;
"guid": number;
"uri": number;
};
};
InputDescriptor: {
fields: any;
};
InputFilter: {
fields: any;
};
InputFilterCondition: {
fields: any;
};
InputFilterOperator: {
enumValues: {
"equals": number;
"notEquals": number;
};
};
InputMode: {
enumValues: {
"none": number;
"textBox": number;
"passwordBox": number;
"combo": number;
"radioButtons": number;
"checkBox": number;
"textArea": number;
};
};
InputValidation: {
fields: any;
};
InputValue: {
fields: any;
};
InputValues: {
fields: any;
};
InputValuesError: {
fields: any;
};
InputValuesQuery: {
fields: any;
};
};
@@ -0,0 +1,174 @@
/*
* ---------------------------------------------------------
* 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
*/
"use strict";
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
},
};
@@ -0,0 +1,58 @@
/**
* Reference for an async operation.
*/
export interface OperationReference {
/**
* The identifier for this operation.
*/
id: string;
/**
* The current status of the operation.
*/
status: OperationStatus;
/**
* Url to get the full object.
*/
url: string;
}
export declare enum OperationStatus {
/**
* The operation object does not have the status set.
*/
NotSet = 0,
/**
* The operation has been queued.
*/
Queued = 1,
/**
* The operation is in progress.
*/
InProgress = 2,
/**
* The operation was cancelled by the user.
*/
Cancelled = 3,
/**
* The operation completed successfully.
*/
Succeeded = 4,
/**
* The operation completed with a failure.
*/
Failed = 5,
}
export declare var TypeInfo: {
OperationReference: {
fields: any;
};
OperationStatus: {
enumValues: {
"notSet": number;
"queued": number;
"inProgress": number;
"cancelled": number;
"succeeded": number;
"failed": number;
};
};
};
@@ -0,0 +1,58 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
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
},
};
@@ -0,0 +1,43 @@
export declare enum DayOfWeek {
/**
* Indicates Sunday.
*/
Sunday = 0,
/**
* Indicates Monday.
*/
Monday = 1,
/**
* Indicates Tuesday.
*/
Tuesday = 2,
/**
* Indicates Wednesday.
*/
Wednesday = 3,
/**
* Indicates Thursday.
*/
Thursday = 4,
/**
* Indicates Friday.
*/
Friday = 5,
/**
* Indicates Saturday.
*/
Saturday = 6,
}
export declare var TypeInfo: {
DayOfWeek: {
enumValues: {
"sunday": number;
"monday": number;
"tuesday": number;
"wednesday": number;
"thursday": number;
"friday": number;
"saturday": number;
};
};
};
@@ -0,0 +1,46 @@
"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
}
}
};
@@ -0,0 +1,166 @@
/**
* Specifies SQL Server-specific data type of a field, property, for use in a System.Data.SqlClient.SqlParameter.
*/
export declare enum SqlDbType {
/**
* A 64-bit signed integer.
*/
BigInt = 0,
/**
* Array of type Byte. A fixed-length stream of binary data ranging between 1 and 8,000 bytes.
*/
Binary = 1,
/**
* Boolean. An unsigned numeric value that can be 0, 1, or null.
*/
Bit = 2,
/**
* String. A fixed-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
*/
Char = 3,
/**
* DateTime. Date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds.
*/
DateTime = 4,
/**
* Decimal. A fixed precision and scale numeric value between -10 38 -1 and 10 38 -1.
*/
Decimal = 5,
/**
* Double. A floating point number within the range of -1.79E +308 through 1.79E +308.
*/
Float = 6,
/**
* Array of type Byte. A variable-length stream of binary data ranging from 0 to 2 31 -1 (or 2,147,483,647) bytes.
*/
Image = 7,
/**
* Int32. A 32-bit signed integer.
*/
Int = 8,
/**
* 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.
*/
Money = 9,
/**
* String. A fixed-length stream of Unicode characters ranging between 1 and 4,000 characters.
*/
NChar = 10,
/**
* String. A variable-length stream of Unicode data with a maximum length of 2 30 - 1 (or 1,073,741,823) characters.
*/
NText = 11,
/**
* 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).
*/
NVarChar = 12,
/**
* Single. A floating point number within the range of -3.40E +38 through 3.40E +38.
*/
Real = 13,
/**
* Guid. A globally unique identifier (or GUID).
*/
UniqueIdentifier = 14,
/**
* DateTime. Date and time data ranging in value from January 1, 1900 to June 6, 2079 to an accuracy of one minute.
*/
SmallDateTime = 15,
/**
* Int16. A 16-bit signed integer.
*/
SmallInt = 16,
/**
* Decimal. A currency value ranging from -214,748.3648 to +214,748.3647 with an accuracy to a ten-thousandth of a currency unit.
*/
SmallMoney = 17,
/**
* String. A variable-length stream of non-Unicode data with a maximum length of 2 31 -1 (or 2,147,483,647) characters.
*/
Text = 18,
/**
* 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.
*/
Timestamp = 19,
/**
* Byte. An 8-bit unsigned integer.
*/
TinyInt = 20,
/**
* 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.
*/
VarBinary = 21,
/**
* 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).
*/
VarChar = 22,
/**
* 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.
*/
Variant = 23,
/**
* 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.
*/
Xml = 25,
/**
* A SQL Server user-defined type (UDT).
*/
Udt = 29,
/**
* A special data type for specifying structured data contained in table-valued parameters.
*/
Structured = 30,
/**
* Date data ranging in value from January 1,1 AD through December 31, 9999 AD.
*/
Date = 31,
/**
* 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.
*/
Time = 32,
/**
* 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.
*/
DateTime2 = 33,
/**
* 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.
*/
DateTimeOffset = 34,
}
export declare var TypeInfo: {
SqlDbType: {
enumValues: {
"BigInt": number;
"Binary": number;
"Bit": number;
"Char": number;
"DateTime": number;
"Decimal": number;
"Float": number;
"Image": number;
"Int": number;
"Money": number;
"NChar": number;
"NText": number;
"NVarChar": number;
"Real": number;
"UniqueIdentifier": number;
"SmallDateTime": number;
"SmallInt": number;
"SmallMoney": number;
"Text": number;
"Timestamp": number;
"TinyInt": number;
"VarBinary": number;
"VarChar": number;
"Variant": number;
"Xml": number;
"Udt": number;
"Structured": number;
"Date": number;
"Time": number;
"DateTime2": number;
"DateTimeOffset": number;
};
};
};
@@ -0,0 +1,172 @@
"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
}
}
};
@@ -0,0 +1,488 @@
import GraphInterfaces = require("../GraphInterfaces");
/**
* Information about the location of a REST API resource
*/
export interface ApiResourceLocation {
/**
* Area name for this resource
*/
area?: string;
/**
* Unique Identifier for this location
*/
id?: string;
/**
* Maximum api version that this resource supports (current server version for this resource)
*/
maxVersion?: string;
/**
* Minimum api version that this resource supports
*/
minVersion?: string;
/**
* The latest version of this resource location that is in "Release" (non-preview) mode
*/
releasedVersion?: string;
/**
* Resource name
*/
resourceName?: string;
/**
* The current resource version supported by this resource location
*/
resourceVersion?: number;
/**
* This location's route template (templated relative path)
*/
routeTemplate?: string;
}
/**
* Represents version information for a REST Api resource
*/
export interface ApiResourceVersion {
/**
* String representation of the Public API version. This is the version that the public sees and is used for a large group of services (e.g. the TFS 1.0 API)
*/
apiVersion?: string;
/**
* Is the public API version in preview
*/
isPreview?: boolean;
/**
* Internal resource version. This is defined per-resource and is used to support build-to-build compatibility of API changes within a given (in-preview) public api version. For example, within the TFS 1.0 API release cycle, while it is still in preview, a resource's data structure may be changed. This resource can be versioned such that older clients will still work (requests will be sent to the older version) and new/upgraded clients will talk to the new version of the resource.
*/
resourceVersion?: number;
}
export interface AuditLogEntry {
/**
* The action if for the event, i.e Git.CreateRepo, Project.RenameProject
*/
actionId?: string;
/**
* ActivityId
*/
activityId?: string;
/**
* The Actor's CUID
*/
actorCUID?: string;
/**
* The Actor's User Id
*/
actorUserId?: string;
/**
* Type of authentication used by the author
*/
authenticationMechanism?: string;
/**
* This allows us to group things together, like one user action that caused a cascade of event entries (project creation).
*/
correlationId?: string;
/**
* External data such as CUIDs, item names, etc.
*/
data?: {
[key: string]: any;
};
/**
* EventId, should be unique
*/
id?: string;
/**
* IP Address where the event was originated
*/
iPAddress?: string;
/**
* The org, collection or project Id
*/
scopeId?: string;
/**
* The type of the scope, collection, org, project, etc.
*/
scopeType?: AuditScopeType;
/**
* The time when the event occurred in UTC
*/
timestamp?: Date;
/**
* The user agent from the request
*/
userAgent?: string;
}
/**
* The type of scope from where the event is originated
*/
export declare enum AuditScopeType {
/**
* The scope is not known or has not been set
*/
Unknown = 0,
/**
* Deployment
*/
Deployment = 1,
/**
* Organization
*/
Organization = 2,
/**
* Collection
*/
Collection = 4,
/**
* Project
*/
Project = 8,
}
/**
* Enumeration of the options that can be passed in on Connect.
*/
export declare enum ConnectOptions {
/**
* Retrieve no optional data.
*/
None = 0,
/**
* Includes information about AccessMappings and ServiceDefinitions.
*/
IncludeServices = 1,
/**
* Includes the last user access for this host.
*/
IncludeLastUserAccess = 2,
/**
* This is only valid on the deployment host and when true. Will only return inherited definitions.
*/
IncludeInheritedDefinitionsOnly = 4,
/**
* When true will only return non inherited definitions. Only valid at non-deployment host.
*/
IncludeNonInheritedDefinitionsOnly = 8,
}
export declare enum DeploymentFlags {
None = 0,
Hosted = 1,
OnPremises = 2,
}
/**
* Defines an "actor" for an event.
*/
export interface EventActor {
/**
* Required: This is the identity of the user for the specified role.
*/
id?: string;
/**
* Required: The event specific name of a role.
*/
role?: string;
}
/**
* Defines a scope for an event.
*/
export interface EventScope {
/**
* Required: This is the identity of the scope for the type.
*/
id?: string;
/**
* Optional: The display name of the scope
*/
name?: string;
/**
* Required: The event specific type of a scope.
*/
type?: string;
}
export interface IdentityRef extends GraphInterfaces.GraphSubjectBase {
directoryAlias?: string;
id?: string;
imageUrl?: string;
inactive?: boolean;
isAadIdentity?: boolean;
isContainer?: boolean;
isDeletedInOrigin?: boolean;
profileUrl?: string;
uniqueName?: string;
}
export interface IdentityRefWithEmail extends IdentityRef {
preferredEmailAddress?: string;
}
/**
* The JSON model for JSON Patch Operations
*/
export interface JsonPatchDocument {
}
/**
* The JSON model for a JSON Patch operation
*/
export interface JsonPatchOperation {
/**
* The path to copy from for the Move/Copy operation.
*/
from?: string;
/**
* The patch operation
*/
op: Operation;
/**
* The path for the operation
*/
path: string;
/**
* The value for the operation. This is either a primitive or a JToken.
*/
value?: any;
}
export interface JsonWebToken {
}
export declare enum JWTAlgorithm {
None = 0,
HS256 = 1,
RS256 = 2,
}
export declare enum Operation {
Add = 0,
Remove = 1,
Replace = 2,
Move = 3,
Copy = 4,
Test = 5,
}
/**
* Represents the public key portion of an RSA asymmetric key.
*/
export interface PublicKey {
/**
* Gets or sets the exponent for the public key.
*/
exponent?: number[];
/**
* Gets or sets the modulus for the public key.
*/
modulus?: number[];
}
export interface Publisher {
/**
* Name of the publishing service.
*/
name?: string;
/**
* Service Owner Guid Eg. Tfs : 00025394-6065-48CA-87D9-7F5672854EF7
*/
serviceOwnerId?: string;
}
/**
* The class to represent a REST reference link. RFC: http://tools.ietf.org/html/draft-kelly-json-hal-06 The RFC is not fully implemented, additional properties are allowed on the reference link but as of yet we don't have a need for them.
*/
export interface ReferenceLink {
href?: string;
}
export interface ResourceRef {
id?: string;
url?: string;
}
export interface ServiceEvent {
/**
* This is the id of the type. Constants that will be used by subscribers to identify/filter events being published on a topic.
*/
eventType?: string;
/**
* This is the service that published this event.
*/
publisher?: Publisher;
/**
* The resource object that carries specific information about the event. The object must have the ServiceEventObject applied for serialization/deserialization to work.
*/
resource?: any;
/**
* This dictionary carries the context descriptors along with their ids.
*/
resourceContainers?: {
[key: string]: any;
};
/**
* This is the version of the resource.
*/
resourceVersion?: string;
}
export interface TeamMember {
identity?: IdentityRef;
isTeamAdmin?: boolean;
}
/**
* A single secured timing consisting of a duration and start time
*/
export interface TimingEntry {
/**
* Duration of the entry in ticks
*/
elapsedTicks?: number;
/**
* Properties to distinguish timings within the same group or to provide data to send with telemetry
*/
properties?: {
[key: string]: any;
};
/**
* Offset from Server Request Context start time in microseconds
*/
startOffset?: number;
}
/**
* A set of secured performance timings all keyed off of the same string
*/
export interface TimingGroup {
/**
* The total number of timing entries associated with this group
*/
count?: number;
/**
* Overall duration of all entries in this group in ticks
*/
elapsedTicks?: number;
/**
* A list of timing entries in this group. Only the first few entries in each group are collected.
*/
timings?: TimingEntry[];
}
/**
* This class describes a trace filter, i.e. a set of criteria on whether or not a trace event should be emitted
*/
export interface TraceFilter {
area?: string;
exceptionType?: string;
isEnabled?: boolean;
layer?: string;
level?: number;
method?: string;
/**
* Used to serialize additional identity information (display name, etc) to clients. Not set by default. Server-side callers should use OwnerId.
*/
owner?: IdentityRef;
ownerId?: string;
path?: string;
processName?: string;
service?: string;
serviceHost?: string;
timeCreated?: Date;
traceId?: string;
tracepoint?: number;
uri?: string;
userAgent?: string;
userLogin?: string;
}
export interface VssJsonCollectionWrapper extends VssJsonCollectionWrapperBase {
value?: any[];
}
/**
* This class is used to serialized collections as a single JSON object on the wire, to avoid serializing JSON arrays directly to the client, which can be a security hole
*/
export interface VssJsonCollectionWrapperV<T> extends VssJsonCollectionWrapperBase {
value?: T;
}
export interface VssJsonCollectionWrapperBase {
count?: number;
}
/**
* This is the type used for firing notifications intended for the subsystem in the Notifications SDK. For components that can't take a dependency on the Notifications SDK directly, they can use ITeamFoundationEventService.PublishNotification and the Notifications SDK ISubscriber implementation will get it.
*/
export interface VssNotificationEvent {
/**
* Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event.
*/
actors?: EventActor[];
/**
* Optional: A list of artifacts referenced or impacted by this event.
*/
artifactUris?: string[];
/**
* Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute.
*/
data?: any;
/**
* Required: The name of the event. This event must be registered in the context it is being fired.
*/
eventType?: string;
/**
* How long before the event expires and will be cleaned up. The default is to use the system default.
*/
expiresIn?: any;
/**
* The id of the item, artifact, extension, project, etc.
*/
itemId?: string;
/**
* How long to wait before processing this event. The default is to process immediately.
*/
processDelay?: any;
/**
* Optional: A list of scopes which are are relevant to the event.
*/
scopes?: EventScope[];
/**
* This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised.
*/
sourceEventCreatedTime?: Date;
}
export interface WrappedException {
customProperties?: {
[key: string]: any;
};
errorCode?: number;
eventId?: number;
helpLink?: string;
innerException?: WrappedException;
message?: string;
stackTrace?: string;
typeKey?: string;
typeName?: string;
}
export declare var TypeInfo: {
AuditLogEntry: any;
AuditScopeType: {
enumValues: {
"unknown": number;
"deployment": number;
"organization": number;
"collection": number;
"project": number;
};
};
ConnectOptions: {
enumValues: {
"none": number;
"includeServices": number;
"includeLastUserAccess": number;
"includeInheritedDefinitionsOnly": number;
"includeNonInheritedDefinitionsOnly": number;
};
};
DeploymentFlags: {
enumValues: {
"none": number;
"hosted": number;
"onPremises": number;
};
};
JsonPatchOperation: any;
JWTAlgorithm: {
enumValues: {
"none": number;
"hS256": number;
"rS256": number;
};
};
Operation: {
enumValues: {
"add": number;
"remove": number;
"replace": number;
"move": number;
"copy": number;
"test": number;
};
};
TraceFilter: any;
VssNotificationEvent: any;
};
@@ -0,0 +1,155 @@
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* The type of scope from where the event is originated
*/
var AuditScopeType;
(function (AuditScopeType) {
/**
* The scope is not known or has not been set
*/
AuditScopeType[AuditScopeType["Unknown"] = 0] = "Unknown";
/**
* Deployment
*/
AuditScopeType[AuditScopeType["Deployment"] = 1] = "Deployment";
/**
* Organization
*/
AuditScopeType[AuditScopeType["Organization"] = 2] = "Organization";
/**
* Collection
*/
AuditScopeType[AuditScopeType["Collection"] = 4] = "Collection";
/**
* Project
*/
AuditScopeType[AuditScopeType["Project"] = 8] = "Project";
})(AuditScopeType = exports.AuditScopeType || (exports.AuditScopeType = {}));
/**
* 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 = {
AuditLogEntry: {},
AuditScopeType: {
enumValues: {
"unknown": 0,
"deployment": 1,
"organization": 2,
"collection": 4,
"project": 8
}
},
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
}
},
TraceFilter: {},
VssNotificationEvent: {},
};
exports.TypeInfo.AuditLogEntry.fields = {
scopeType: {
enumType: exports.TypeInfo.AuditScopeType
},
timestamp: {
isDate: true,
}
};
exports.TypeInfo.JsonPatchOperation.fields = {
op: {
enumType: exports.TypeInfo.Operation
}
};
exports.TypeInfo.TraceFilter.fields = {
timeCreated: {
isDate: true,
}
};
exports.TypeInfo.VssNotificationEvent.fields = {
sourceEventCreatedTime: {
isDate: true,
}
};
@@ -0,0 +1,93 @@
/// <reference types="node" />
import http = require("http");
import url = require("url");
/**
* Information about the location of a REST API resource
*/
export interface ApiResourceLocation {
/**
* Area name for this resource
*/
area: string;
/**
* Unique Identifier for this location
*/
id: string;
/**
* Maximum api version that this resource supports (current server version for this resource)
*/
maxVersion: string;
/**
* Minimum api version that this resource supports
*/
minVersion: string;
/**
* The latest version of this resource location that is in "Release" (non-preview) mode
*/
releasedVersion: string;
/**
* Resource name
*/
resourceName: string;
/**
* The current resource version supported by this resource location
*/
resourceVersion: number;
/**
* This location's route template (templated relative path)
*/
routeTemplate: string;
}
export interface IHeaders {
[key: string]: any;
}
export interface IBasicCredentials {
username: string;
password: string;
}
export interface IHttpClient {
options(requestUrl: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
get(requestUrl: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
del(requestUrl: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
post(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
patch(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
put(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>;
request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: IHeaders): Promise<IHttpClientResponse>;
requestRaw(info: IRequestInfo, data: string | NodeJS.ReadableStream): Promise<IHttpClientResponse>;
requestRawWithCallback(info: IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: IHttpClientResponse) => void): void;
}
export interface IRequestInfo {
options: http.RequestOptions;
parsedUrl: url.Url;
httpModule: any;
}
export interface IRequestHandler {
prepareRequest(options: http.RequestOptions): void;
canHandleAuthentication(response: IHttpClientResponse): boolean;
handleAuthentication(httpClient: IHttpClient, requestInfo: IRequestInfo, objs: any): Promise<IHttpClientResponse>;
}
export interface IHttpClientResponse {
message: http.IncomingMessage;
readBody(): Promise<string>;
}
export interface IRequestOptions {
socketTimeout?: number;
ignoreSslError?: boolean;
proxy?: IProxyConfiguration;
cert?: ICertConfiguration;
allowRetries?: boolean;
maxRetries?: number;
}
export interface IProxyConfiguration {
proxyUrl: string;
proxyUsername?: string;
proxyPassword?: string;
proxyBypassHosts?: string[];
}
export interface ICertConfiguration {
caFile?: string;
certFile?: string;
keyFile?: string;
passphrase?: string;
}
@@ -0,0 +1,5 @@
"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 });
;