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
@@ -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 });
;