UNPKG

5.2 kBTypeScriptView Raw
1import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
2import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
3export interface AccessMapping {
4 accessPoint?: string;
5 displayName?: string;
6 moniker?: string;
7 /**
8 * The service which owns this access mapping e.g. TFS, ELS, etc.
9 */
10 serviceOwner?: string;
11 /**
12 * Part of the access mapping which applies context after the access point of the server.
13 */
14 virtualDirectory?: string;
15}
16/**
17 * Data transfer class that holds information needed to set up a connection with a VSS server.
18 */
19export interface ConnectionData {
20 /**
21 * 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
22 */
23 authenticatedUser?: IdentitiesInterfaces.Identity;
24 /**
25 * 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
26 */
27 authorizedUser?: IdentitiesInterfaces.Identity;
28 /**
29 * The id for the server.
30 */
31 deploymentId?: string;
32 /**
33 * The type for the server Hosted/OnPremises.
34 */
35 deploymentType?: VSSInterfaces.DeploymentFlags;
36 /**
37 * The instance id for this host.
38 */
39 instanceId?: string;
40 /**
41 * The last user access for this instance. Null if not requested specifically.
42 */
43 lastUserAccess?: Date;
44 /**
45 * Data that the location service holds.
46 */
47 locationServiceData?: LocationServiceData;
48 /**
49 * The virtual directory of the host we are talking to.
50 */
51 webApplicationRelativeDirectory?: string;
52}
53export declare enum InheritLevel {
54 None = 0,
55 Deployment = 1,
56 Account = 2,
57 Collection = 4,
58 All = 7
59}
60export interface LocationMapping {
61 accessMappingMoniker?: string;
62 location?: string;
63}
64/**
65 * Data transfer class used to transfer data about the location service data over the web service.
66 */
67export interface LocationServiceData {
68 /**
69 * Data about the access mappings contained by this location service.
70 */
71 accessMappings?: AccessMapping[];
72 /**
73 * Data that the location service holds.
74 */
75 clientCacheFresh?: boolean;
76 /**
77 * The time to live on the location service cache.
78 */
79 clientCacheTimeToLive?: number;
80 /**
81 * The default access mapping moniker for the server.
82 */
83 defaultAccessMappingMoniker?: string;
84 /**
85 * The obsolete id for the last change that took place on the server (use LastChangeId64).
86 */
87 lastChangeId?: number;
88 /**
89 * The non-truncated 64-bit id for the last change that took place on the server.
90 */
91 lastChangeId64?: number;
92 /**
93 * Data about the service definitions contained by this location service.
94 */
95 serviceDefinitions?: ServiceDefinition[];
96 /**
97 * The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.)
98 */
99 serviceOwner?: string;
100}
101export declare enum RelativeToSetting {
102 Context = 0,
103 WebApplication = 2,
104 FullyQualified = 3
105}
106export interface ResourceAreaInfo {
107 id?: string;
108 locationUrl?: string;
109 name?: string;
110}
111export interface ServiceDefinition {
112 description?: string;
113 displayName?: string;
114 identifier?: string;
115 inheritLevel?: InheritLevel;
116 locationMappings?: LocationMapping[];
117 /**
118 * Maximum api version that this resource supports (current server version for this resource). Copied from <c>ApiResourceLocation</c>.
119 */
120 maxVersion?: string;
121 /**
122 * Minimum api version that this resource supports. Copied from <c>ApiResourceLocation</c>.
123 */
124 minVersion?: string;
125 parentIdentifier?: string;
126 parentServiceType?: string;
127 properties?: any;
128 relativePath?: string;
129 relativeToSetting?: RelativeToSetting;
130 /**
131 * The latest version of this resource location that is in "Release" (non-preview) mode. Copied from <c>ApiResourceLocation</c>.
132 */
133 releasedVersion?: string;
134 /**
135 * The current resource version supported by this resource location. Copied from <c>ApiResourceLocation</c>.
136 */
137 resourceVersion?: number;
138 /**
139 * The service which owns this definition e.g. TFS, ELS, etc.
140 */
141 serviceOwner?: string;
142 serviceType?: string;
143 status?: ServiceStatus;
144 toolId?: string;
145}
146export declare enum ServiceStatus {
147 Assigned = 0,
148 Active = 1,
149 Moving = 2
150}
151export declare var TypeInfo: {
152 ConnectionData: any;
153 InheritLevel: {
154 enumValues: {
155 none: number;
156 deployment: number;
157 account: number;
158 collection: number;
159 all: number;
160 };
161 };
162 LocationServiceData: any;
163 RelativeToSetting: {
164 enumValues: {
165 context: number;
166 webApplication: number;
167 fullyQualified: number;
168 };
169 };
170 ServiceDefinition: any;
171 ServiceStatus: {
172 enumValues: {
173 assigned: number;
174 active: number;
175 moving: number;
176 };
177 };
178};