/
index.yml
282 lines (281 loc) · 9.46 KB
/
index.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
### YamlMime:TSPackage
uid: azure-devops-extension-sdk
name: azure-devops-extension-sdk
summary: ''
type: package
enums:
- azure-devops-extension-sdk.HostType
interfaces:
- azure-devops-extension-sdk.ContextIdentifier
- azure-devops-extension-sdk.GlobalizationContext
- azure-devops-extension-sdk.IExtensionContext
- azure-devops-extension-sdk.IExtensionInitOptions
- azure-devops-extension-sdk.IHostContext
- azure-devops-extension-sdk.IPageContext
- azure-devops-extension-sdk.ITeamContext
- azure-devops-extension-sdk.IUserContext
- azure-devops-extension-sdk.IJsonRpcMessage
- azure-devops-extension-sdk.ISerializationSettings
- azure-devops-extension-sdk.IXDMChannel
- azure-devops-extension-sdk.IXDMChannelManager
- azure-devops-extension-sdk.IXDMObjectRegistry
functions:
- name: 'applyTheme({[varName: string]: string})'
uid: azure-devops-extension-sdk.applyTheme
package: azure-devops-extension-sdk
summary: Applies theme variables to the current document
remarks: ''
isDeprecated: false
syntax:
content: 'function applyTheme(themeData: {[varName: string]: string})'
parameters:
- id: themeData
type: '{[varName: string]: string}'
description: ''
- name: getAccessToken()
uid: azure-devops-extension-sdk.getAccessToken
package: azure-devops-extension-sdk
summary: >-
Fetch an access token which will allow calls to be made to other DevOps
services
remarks: ''
isDeprecated: false
syntax:
content: 'function getAccessToken(): Promise<string>'
return:
description: ''
type: Promise<string>
- name: getAppToken()
uid: azure-devops-extension-sdk.getAppToken
package: azure-devops-extension-sdk
summary: Fetch an token which can be used to identify the current user
remarks: ''
isDeprecated: false
syntax:
content: 'function getAppToken(): Promise<string>'
return:
description: ''
type: Promise<string>
- name: getConfiguration()
uid: azure-devops-extension-sdk.getConfiguration
package: azure-devops-extension-sdk
summary: >-
Get the configuration data passed in the initial handshake from the parent
frame
remarks: ''
isDeprecated: false
syntax:
content: 'function getConfiguration(): {[key: string]: any}'
return:
description: ''
type: '{[key: string]: any}'
- name: getContributionId()
uid: azure-devops-extension-sdk.getContributionId
package: azure-devops-extension-sdk
summary: >-
Gets the information about the contribution that first caused this
extension to load.
remarks: ''
isDeprecated: false
syntax:
content: 'function getContributionId(): string'
return:
description: ''
type: string
- name: getExtensionContext()
uid: azure-devops-extension-sdk.getExtensionContext
package: azure-devops-extension-sdk
summary: >-
Get the context about the extension that owns the content that is being
hosted
remarks: ''
isDeprecated: false
syntax:
content: 'function getExtensionContext(): IExtensionContext'
return:
description: ''
type: <xref uid="azure-devops-extension-sdk.IExtensionContext" />
- name: getHost()
uid: azure-devops-extension-sdk.getHost
package: azure-devops-extension-sdk
summary: >-
Gets information about the host (i.e. an Azure DevOps organization) that
the page is targeting
remarks: ''
isDeprecated: false
syntax:
content: 'function getHost(): IHostContext'
return:
description: ''
type: <xref uid="azure-devops-extension-sdk.IHostContext" />
- name: getPageContext()
uid: azure-devops-extension-sdk.getPageContext
package: azure-devops-extension-sdk
summary: Get the context about the host page
remarks: ''
isDeprecated: false
syntax:
content: 'function getPageContext(): IPageContext'
return:
description: ''
type: <xref uid="azure-devops-extension-sdk.IPageContext" />
- name: getService<T>(string)
uid: azure-devops-extension-sdk.getService
package: azure-devops-extension-sdk
summary: >-
Get the contribution with the given contribution id. The returned
contribution has a method to get a registered object within that
contribution.
remarks: ''
isDeprecated: false
syntax:
content: 'function getService<T>(contributionId: string): Promise<T>'
parameters:
- id: contributionId
type: string
description: Id of the contribution to get
return:
description: ''
type: Promise<T>
- name: getTeamContext()
uid: azure-devops-extension-sdk.getTeamContext
package: azure-devops-extension-sdk
summary: Gets information about the team that the page is targeting
remarks: ''
isDeprecated: false
syntax:
content: 'function getTeamContext(): ITeamContext'
return:
description: ''
type: <xref uid="azure-devops-extension-sdk.ITeamContext" />
- name: getUser()
uid: azure-devops-extension-sdk.getUser
package: azure-devops-extension-sdk
summary: Gets information about the current user
remarks: ''
isDeprecated: false
syntax:
content: 'function getUser(): IUserContext'
return:
description: ''
type: <xref uid="azure-devops-extension-sdk.IUserContext" />
- name: getWebContext()
uid: azure-devops-extension-sdk.getWebContext
package: azure-devops-extension-sdk
summary: Get the context about the web
remarks: ''
isDeprecated: false
syntax:
content: 'function getWebContext(): IWebContext'
return:
description: ''
type: IWebContext
- name: init(IExtensionInitOptions)
uid: azure-devops-extension-sdk.init
package: azure-devops-extension-sdk
summary: Initiates the handshake with the host window.
remarks: ''
isDeprecated: false
syntax:
content: 'function init(options?: IExtensionInitOptions): Promise<void>'
parameters:
- id: options
type: <xref uid="azure-devops-extension-sdk.IExtensionInitOptions" />
description: Initialization options for the extension.
return:
description: ''
type: Promise<void>
- name: notifyLoadFailed(string | Error)
uid: azure-devops-extension-sdk.notifyLoadFailed
package: azure-devops-extension-sdk
summary: Notifies the host that the extension failed to load
remarks: ''
isDeprecated: false
syntax:
content: 'function notifyLoadFailed(e: string | Error): Promise<void>'
parameters:
- id: e
type: string | Error
description: ''
return:
description: ''
type: Promise<void>
- name: notifyLoadSucceeded()
uid: azure-devops-extension-sdk.notifyLoadSucceeded
package: azure-devops-extension-sdk
summary: >-
Notifies the host that the extension successfully loaded (stop showing the
loading indicator)
remarks: ''
isDeprecated: false
syntax:
content: 'function notifyLoadSucceeded(): Promise<void>'
return:
description: ''
type: Promise<void>
- name: ready()
uid: azure-devops-extension-sdk.ready
package: azure-devops-extension-sdk
summary: >-
Register a callback that gets called once the initial setup/handshake has
completed.
If the initial setup is already completed, the callback is invoked at the
end of the current call stack.
remarks: ''
isDeprecated: false
syntax:
content: 'function ready(): Promise<void>'
return:
description: ''
type: Promise<void>
- name: register<T>(string, T)
uid: azure-devops-extension-sdk.register
package: azure-devops-extension-sdk
summary: >-
Register an object (instance or factory method) that this extension
exposes to the host frame.
remarks: ''
isDeprecated: false
syntax:
content: 'function register<T>(instanceId: string, instance: T)'
parameters:
- id: instanceId
type: string
description: unique id of the registered object
- id: instance
type: T
description: >-
Either: (1) an object instance, or (2) a function that takes
optional context data and returns an object instance.
- name: resize(number, number)
uid: azure-devops-extension-sdk.resize
package: azure-devops-extension-sdk
summary: >-
Requests the parent window to resize the container for this extension
based on the current extension size.
remarks: ''
isDeprecated: false
syntax:
content: 'function resize(width?: number, height?: number)'
parameters:
- id: width
type: number
description: Optional width, defaults to scrollWidth
- id: height
type: number
description: Optional height, defaults to scrollHeight
- name: unregister(string)
uid: azure-devops-extension-sdk.unregister
package: azure-devops-extension-sdk
summary: Removes an object that this extension exposed to the host frame.
remarks: ''
isDeprecated: false
syntax:
content: 'function unregister(instanceId: string)'
parameters:
- id: instanceId
type: string
description: unique id of the registered object
classes:
- azure-devops-extension-sdk.XDMChannel
- azure-devops-extension-sdk.XDMObjectRegistry