@paklo/core 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/azure/index.d.mts +997 -495
- package/dist/azure/index.mjs +877 -587
- package/dist/azure/index.mjs.map +1 -1
- package/dist/dependabot/index.d.mts +2 -2
- package/dist/dependabot/index.mjs +3 -3
- package/dist/{dependabot-rtPO9HdD.mjs → dependabot-DVf7lAEG.mjs} +80 -11
- package/dist/dependabot-DVf7lAEG.mjs.map +1 -0
- package/dist/github/index.mjs +1 -1
- package/dist/{index-Byxjhvfz.d.mts → index-CFWMNvXg.d.mts} +97 -37
- package/dist/{job-BxOZ-hqF.mjs → job-COuliaYg.mjs} +13 -16
- package/dist/{job-BxOZ-hqF.mjs.map → job-COuliaYg.mjs.map} +1 -1
- package/dist/{logger-5PEqZVLr.mjs → logger-3Qfh9NUj.mjs} +2 -2
- package/dist/logger-3Qfh9NUj.mjs.map +1 -0
- package/dist/logger.mjs +1 -1
- package/dist/usage.d.mts +1 -1
- package/dist/usage.mjs +1 -1
- package/package.json +4 -4
- package/dist/dependabot-rtPO9HdD.mjs.map +0 -1
- package/dist/logger-5PEqZVLr.mjs.map +0 -1
package/dist/azure/index.d.mts
CHANGED
|
@@ -1,26 +1,85 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as DependabotPersistedPr, Un as VariableFinderFn, W as DependabotUpdatePullRequest, f as DependabotCreatePullRequest, vn as DependabotConfig } from "../index-CFWMNvXg.mjs";
|
|
2
2
|
import "../index-BfwWezjJ.mjs";
|
|
3
|
-
import * as zod0 from "zod";
|
|
4
3
|
import { z } from "zod";
|
|
5
|
-
import
|
|
4
|
+
import { KyInstance } from "ky";
|
|
6
5
|
|
|
7
|
-
//#region src/azure/
|
|
6
|
+
//#region src/azure/url-parts.d.ts
|
|
7
|
+
type AzureDevOpsOrganizationUrl = {
|
|
8
|
+
/** URL of the organisation. This may lack the project name */
|
|
9
|
+
value: URL;
|
|
10
|
+
/** Organisation URL hostname */
|
|
11
|
+
hostname: string;
|
|
12
|
+
/** Organisation API endpoint URL */
|
|
13
|
+
'api-endpoint': string;
|
|
14
|
+
/** Organisation name/slug */
|
|
15
|
+
organisation: string;
|
|
16
|
+
/** Virtual directory if present (on-premises only) */
|
|
17
|
+
'virtual-directory'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Organization Identity API URL (different from the API endpoint).
|
|
20
|
+
* Used for querying user identities.
|
|
21
|
+
*/
|
|
22
|
+
'identity-api-url': URL;
|
|
23
|
+
};
|
|
24
|
+
type AzureDevOpsProjectUrl = AzureDevOpsOrganizationUrl & {
|
|
25
|
+
/** Project ID or Name */
|
|
26
|
+
project: string;
|
|
27
|
+
};
|
|
28
|
+
type AzureDevOpsRepositoryUrl = AzureDevOpsProjectUrl & {
|
|
29
|
+
/** Repository ID or Name */
|
|
30
|
+
repository: string;
|
|
31
|
+
/** Slug of the repository e.g. `contoso/prj1/_git/repo1`, `tfs/contoso/prj1/_git/repo1` */
|
|
32
|
+
'repository-slug': string;
|
|
33
|
+
};
|
|
34
|
+
declare function extractOrganizationUrl({
|
|
35
|
+
organisationUrl
|
|
36
|
+
}: {
|
|
37
|
+
organisationUrl: string;
|
|
38
|
+
}): AzureDevOpsOrganizationUrl;
|
|
39
|
+
declare function extractProjectUrl({
|
|
40
|
+
organisationUrl,
|
|
41
|
+
project
|
|
42
|
+
}: {
|
|
43
|
+
organisationUrl: string;
|
|
44
|
+
project: string;
|
|
45
|
+
}): AzureDevOpsProjectUrl;
|
|
46
|
+
declare function extractRepositoryUrl({
|
|
47
|
+
organisationUrl,
|
|
48
|
+
project,
|
|
49
|
+
repository
|
|
50
|
+
}: {
|
|
51
|
+
organisationUrl: string;
|
|
52
|
+
project: string;
|
|
53
|
+
repository: string;
|
|
54
|
+
}): AzureDevOpsRepositoryUrl;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/azure/client/client-base.d.ts
|
|
57
|
+
declare class BaseAzureDevOpsClient {
|
|
58
|
+
protected readonly client: KyInstance;
|
|
59
|
+
constructor(client: KyInstance);
|
|
60
|
+
protected makeUrl(path: string): string;
|
|
61
|
+
protected makeUrl(path: string, apiVersion: string): string;
|
|
62
|
+
protected makeUrl(path: string, params: Record<string, unknown>): string;
|
|
63
|
+
protected makeUrl(path: string, params: Record<string, unknown>, apiVersion: string): string;
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/azure/client/types.d.ts
|
|
8
67
|
declare const AzdoVersionControlChangeTypeSchema: z.ZodEnum<{
|
|
9
|
-
all: "all";
|
|
10
|
-
delete: "delete";
|
|
11
|
-
branch: "branch";
|
|
12
68
|
none: "none";
|
|
13
69
|
add: "add";
|
|
14
70
|
edit: "edit";
|
|
15
71
|
encoding: "encoding";
|
|
16
72
|
rename: "rename";
|
|
73
|
+
delete: "delete";
|
|
17
74
|
undelete: "undelete";
|
|
75
|
+
branch: "branch";
|
|
18
76
|
merge: "merge";
|
|
19
77
|
lock: "lock";
|
|
20
78
|
rollback: "rollback";
|
|
21
79
|
sourceRename: "sourceRename";
|
|
22
80
|
targetRename: "targetRename";
|
|
23
81
|
property: "property";
|
|
82
|
+
all: "all";
|
|
24
83
|
}>;
|
|
25
84
|
type AzdoVersionControlChangeType = z.infer<typeof AzdoVersionControlChangeTypeSchema>;
|
|
26
85
|
declare const AZDO_PULL_REQUEST_MERGE_STRATEGIES: readonly ["noFastForward", "squash", "rebase", "rebaseMerge"];
|
|
@@ -59,8 +118,8 @@ declare const AzdoPullRequestAsyncStatusSchema: z.ZodEnum<{
|
|
|
59
118
|
type AzdoPullRequestAsyncStatus = z.infer<typeof AzdoPullRequestAsyncStatusSchema>;
|
|
60
119
|
declare const AzdoPullRequestStatusSchema: z.ZodEnum<{
|
|
61
120
|
all: "all";
|
|
62
|
-
active: "active";
|
|
63
121
|
notSet: "notSet";
|
|
122
|
+
active: "active";
|
|
64
123
|
abandoned: "abandoned";
|
|
65
124
|
completed: "completed";
|
|
66
125
|
}>;
|
|
@@ -129,7 +188,7 @@ declare const AzdoRepositorySchema: z.ZodObject<{
|
|
|
129
188
|
webUrl: z.ZodString;
|
|
130
189
|
}, z.core.$strip>;
|
|
131
190
|
type AzdoRepository = z.infer<typeof AzdoRepositorySchema>;
|
|
132
|
-
type
|
|
191
|
+
type AzdoResponse<T> = {
|
|
133
192
|
value?: T;
|
|
134
193
|
count: number;
|
|
135
194
|
};
|
|
@@ -142,6 +201,7 @@ type AzdoIdentity = z.infer<typeof AzdoIdentitySchema>;
|
|
|
142
201
|
declare const AzdoIdentityRefSchema: z.ZodObject<{
|
|
143
202
|
id: z.ZodOptional<z.ZodString>;
|
|
144
203
|
displayName: z.ZodOptional<z.ZodString>;
|
|
204
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
145
205
|
url: z.ZodOptional<z.ZodString>;
|
|
146
206
|
}, z.core.$strip>;
|
|
147
207
|
type AzdoIdentityRef = z.infer<typeof AzdoIdentityRefSchema>;
|
|
@@ -182,22 +242,25 @@ declare const AzdoGitRefUpdateResultSchema: z.ZodObject<{
|
|
|
182
242
|
type AzdoGitRefUpdateResult = z.infer<typeof AzdoGitRefUpdateResultSchema>;
|
|
183
243
|
declare const AzdoGitChangeSchema: z.ZodObject<{
|
|
184
244
|
changeType: z.ZodEnum<{
|
|
185
|
-
all: "all";
|
|
186
|
-
delete: "delete";
|
|
187
|
-
branch: "branch";
|
|
188
245
|
none: "none";
|
|
189
246
|
add: "add";
|
|
190
247
|
edit: "edit";
|
|
191
248
|
encoding: "encoding";
|
|
192
249
|
rename: "rename";
|
|
250
|
+
delete: "delete";
|
|
193
251
|
undelete: "undelete";
|
|
252
|
+
branch: "branch";
|
|
194
253
|
merge: "merge";
|
|
195
254
|
lock: "lock";
|
|
196
255
|
rollback: "rollback";
|
|
197
256
|
sourceRename: "sourceRename";
|
|
198
257
|
targetRename: "targetRename";
|
|
199
258
|
property: "property";
|
|
259
|
+
all: "all";
|
|
200
260
|
}>;
|
|
261
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
path: z.ZodString;
|
|
263
|
+
}, z.core.$strip>>;
|
|
201
264
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
202
265
|
content: z.ZodString;
|
|
203
266
|
contentType: z.ZodEnum<{
|
|
@@ -205,10 +268,11 @@ declare const AzdoGitChangeSchema: z.ZodObject<{
|
|
|
205
268
|
base64encoded: "base64encoded";
|
|
206
269
|
}>;
|
|
207
270
|
}, z.core.$strip>>;
|
|
271
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
208
272
|
}, z.core.$strip>;
|
|
209
273
|
type AzdoGitChange = z.infer<typeof AzdoGitChangeSchema>;
|
|
210
274
|
declare const AzdoGitCommitRefSchema: z.ZodObject<{
|
|
211
|
-
commitId: z.
|
|
275
|
+
commitId: z.ZodString;
|
|
212
276
|
author: z.ZodOptional<z.ZodObject<{
|
|
213
277
|
name: z.ZodString;
|
|
214
278
|
email: z.ZodString;
|
|
@@ -219,24 +283,27 @@ declare const AzdoGitCommitRefSchema: z.ZodObject<{
|
|
|
219
283
|
email: z.ZodString;
|
|
220
284
|
date: z.ZodOptional<z.ZodString>;
|
|
221
285
|
}, z.core.$strip>>;
|
|
222
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
286
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
223
287
|
changeType: z.ZodEnum<{
|
|
224
|
-
all: "all";
|
|
225
|
-
delete: "delete";
|
|
226
|
-
branch: "branch";
|
|
227
288
|
none: "none";
|
|
228
289
|
add: "add";
|
|
229
290
|
edit: "edit";
|
|
230
291
|
encoding: "encoding";
|
|
231
292
|
rename: "rename";
|
|
293
|
+
delete: "delete";
|
|
232
294
|
undelete: "undelete";
|
|
295
|
+
branch: "branch";
|
|
233
296
|
merge: "merge";
|
|
234
297
|
lock: "lock";
|
|
235
298
|
rollback: "rollback";
|
|
236
299
|
sourceRename: "sourceRename";
|
|
237
300
|
targetRename: "targetRename";
|
|
238
301
|
property: "property";
|
|
302
|
+
all: "all";
|
|
239
303
|
}>;
|
|
304
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
path: z.ZodString;
|
|
306
|
+
}, z.core.$strip>>;
|
|
240
307
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
241
308
|
content: z.ZodString;
|
|
242
309
|
contentType: z.ZodEnum<{
|
|
@@ -244,12 +311,13 @@ declare const AzdoGitCommitRefSchema: z.ZodObject<{
|
|
|
244
311
|
base64encoded: "base64encoded";
|
|
245
312
|
}>;
|
|
246
313
|
}, z.core.$strip>>;
|
|
247
|
-
|
|
314
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$strip>>>;
|
|
248
316
|
}, z.core.$strip>;
|
|
249
317
|
type AzdoGitCommitRef = z.infer<typeof AzdoGitCommitRefSchema>;
|
|
250
318
|
declare const AzdoGitPushSchema: z.ZodObject<{
|
|
251
319
|
commits: z.ZodArray<z.ZodObject<{
|
|
252
|
-
commitId: z.
|
|
320
|
+
commitId: z.ZodString;
|
|
253
321
|
author: z.ZodOptional<z.ZodObject<{
|
|
254
322
|
name: z.ZodString;
|
|
255
323
|
email: z.ZodString;
|
|
@@ -260,24 +328,27 @@ declare const AzdoGitPushSchema: z.ZodObject<{
|
|
|
260
328
|
email: z.ZodString;
|
|
261
329
|
date: z.ZodOptional<z.ZodString>;
|
|
262
330
|
}, z.core.$strip>>;
|
|
263
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
331
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
264
332
|
changeType: z.ZodEnum<{
|
|
265
|
-
all: "all";
|
|
266
|
-
delete: "delete";
|
|
267
|
-
branch: "branch";
|
|
268
333
|
none: "none";
|
|
269
334
|
add: "add";
|
|
270
335
|
edit: "edit";
|
|
271
336
|
encoding: "encoding";
|
|
272
337
|
rename: "rename";
|
|
338
|
+
delete: "delete";
|
|
273
339
|
undelete: "undelete";
|
|
340
|
+
branch: "branch";
|
|
274
341
|
merge: "merge";
|
|
275
342
|
lock: "lock";
|
|
276
343
|
rollback: "rollback";
|
|
277
344
|
sourceRename: "sourceRename";
|
|
278
345
|
targetRename: "targetRename";
|
|
279
346
|
property: "property";
|
|
347
|
+
all: "all";
|
|
280
348
|
}>;
|
|
349
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
path: z.ZodString;
|
|
351
|
+
}, z.core.$strip>>;
|
|
281
352
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
282
353
|
content: z.ZodString;
|
|
283
354
|
contentType: z.ZodEnum<{
|
|
@@ -285,7 +356,8 @@ declare const AzdoGitPushSchema: z.ZodObject<{
|
|
|
285
356
|
base64encoded: "base64encoded";
|
|
286
357
|
}>;
|
|
287
358
|
}, z.core.$strip>>;
|
|
288
|
-
|
|
359
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
360
|
+
}, z.core.$strip>>>;
|
|
289
361
|
}, z.core.$strip>>;
|
|
290
362
|
refUpdates: z.ZodArray<z.ZodObject<{
|
|
291
363
|
name: z.ZodString;
|
|
@@ -294,11 +366,19 @@ declare const AzdoGitPushSchema: z.ZodObject<{
|
|
|
294
366
|
}, z.core.$strip>>;
|
|
295
367
|
}, z.core.$strip>;
|
|
296
368
|
type AzdoGitPush = z.infer<typeof AzdoGitPushSchema>;
|
|
369
|
+
declare const AzdoGitRefUpdateSchema: z.ZodObject<{
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
oldObjectId: z.ZodString;
|
|
372
|
+
newObjectId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
type AzdoGitRefUpdate = z.infer<typeof AzdoGitRefUpdateSchema>;
|
|
297
376
|
declare const AzdoGitPushCreateSchema: z.ZodObject<{
|
|
298
377
|
refUpdates: z.ZodArray<z.ZodObject<{
|
|
299
378
|
name: z.ZodString;
|
|
300
379
|
oldObjectId: z.ZodString;
|
|
301
380
|
newObjectId: z.ZodOptional<z.ZodString>;
|
|
381
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
302
382
|
}, z.core.$strip>>;
|
|
303
383
|
commits: z.ZodArray<z.ZodObject<{
|
|
304
384
|
comment: z.ZodString;
|
|
@@ -309,22 +389,25 @@ declare const AzdoGitPushCreateSchema: z.ZodObject<{
|
|
|
309
389
|
}, z.core.$strip>>;
|
|
310
390
|
changes: z.ZodArray<z.ZodObject<{
|
|
311
391
|
changeType: z.ZodEnum<{
|
|
312
|
-
all: "all";
|
|
313
|
-
delete: "delete";
|
|
314
|
-
branch: "branch";
|
|
315
392
|
none: "none";
|
|
316
393
|
add: "add";
|
|
317
394
|
edit: "edit";
|
|
318
395
|
encoding: "encoding";
|
|
319
396
|
rename: "rename";
|
|
397
|
+
delete: "delete";
|
|
320
398
|
undelete: "undelete";
|
|
399
|
+
branch: "branch";
|
|
321
400
|
merge: "merge";
|
|
322
401
|
lock: "lock";
|
|
323
402
|
rollback: "rollback";
|
|
324
403
|
sourceRename: "sourceRename";
|
|
325
404
|
targetRename: "targetRename";
|
|
326
405
|
property: "property";
|
|
406
|
+
all: "all";
|
|
327
407
|
}>;
|
|
408
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
path: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>;
|
|
328
411
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
329
412
|
content: z.ZodString;
|
|
330
413
|
contentType: z.ZodEnum<{
|
|
@@ -332,9 +415,7 @@ declare const AzdoGitPushCreateSchema: z.ZodObject<{
|
|
|
332
415
|
base64encoded: "base64encoded";
|
|
333
416
|
}>;
|
|
334
417
|
}, z.core.$strip>>;
|
|
335
|
-
|
|
336
|
-
path: z.ZodString;
|
|
337
|
-
}, z.core.$strip>;
|
|
418
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
338
419
|
}, z.core.$strip>>;
|
|
339
420
|
}, z.core.$strip>>;
|
|
340
421
|
}, z.core.$strip>;
|
|
@@ -344,9 +425,45 @@ declare const AzdoGitBranchStatsSchema: z.ZodObject<{
|
|
|
344
425
|
behindCount: z.ZodNumber;
|
|
345
426
|
}, z.core.$strip>;
|
|
346
427
|
type AzdoGitBranchStats = z.infer<typeof AzdoGitBranchStatsSchema>;
|
|
428
|
+
declare const AzdoGitCommitDiffsSchema: z.ZodObject<{
|
|
429
|
+
allChangesIncluded: z.ZodBoolean;
|
|
430
|
+
baseCommit: z.ZodString;
|
|
431
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
432
|
+
changeType: z.ZodEnum<{
|
|
433
|
+
none: "none";
|
|
434
|
+
add: "add";
|
|
435
|
+
edit: "edit";
|
|
436
|
+
encoding: "encoding";
|
|
437
|
+
rename: "rename";
|
|
438
|
+
delete: "delete";
|
|
439
|
+
undelete: "undelete";
|
|
440
|
+
branch: "branch";
|
|
441
|
+
merge: "merge";
|
|
442
|
+
lock: "lock";
|
|
443
|
+
rollback: "rollback";
|
|
444
|
+
sourceRename: "sourceRename";
|
|
445
|
+
targetRename: "targetRename";
|
|
446
|
+
property: "property";
|
|
447
|
+
all: "all";
|
|
448
|
+
}>;
|
|
449
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
path: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
content: z.ZodString;
|
|
454
|
+
contentType: z.ZodEnum<{
|
|
455
|
+
rawtext: "rawtext";
|
|
456
|
+
base64encoded: "base64encoded";
|
|
457
|
+
}>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, z.core.$strip>>;
|
|
461
|
+
targetCommit: z.ZodString;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
type AzdoGitCommitDiffs = z.infer<typeof AzdoGitCommitDiffsSchema>;
|
|
347
464
|
declare const AzdoRepositoryItemSchema: z.ZodObject<{
|
|
348
465
|
latestProcessedChange: z.ZodOptional<z.ZodObject<{
|
|
349
|
-
commitId: z.
|
|
466
|
+
commitId: z.ZodString;
|
|
350
467
|
author: z.ZodOptional<z.ZodObject<{
|
|
351
468
|
name: z.ZodString;
|
|
352
469
|
email: z.ZodString;
|
|
@@ -357,24 +474,27 @@ declare const AzdoRepositoryItemSchema: z.ZodObject<{
|
|
|
357
474
|
email: z.ZodString;
|
|
358
475
|
date: z.ZodOptional<z.ZodString>;
|
|
359
476
|
}, z.core.$strip>>;
|
|
360
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
477
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
361
478
|
changeType: z.ZodEnum<{
|
|
362
|
-
all: "all";
|
|
363
|
-
delete: "delete";
|
|
364
|
-
branch: "branch";
|
|
365
479
|
none: "none";
|
|
366
480
|
add: "add";
|
|
367
481
|
edit: "edit";
|
|
368
482
|
encoding: "encoding";
|
|
369
483
|
rename: "rename";
|
|
484
|
+
delete: "delete";
|
|
370
485
|
undelete: "undelete";
|
|
486
|
+
branch: "branch";
|
|
371
487
|
merge: "merge";
|
|
372
488
|
lock: "lock";
|
|
373
489
|
rollback: "rollback";
|
|
374
490
|
sourceRename: "sourceRename";
|
|
375
491
|
targetRename: "targetRename";
|
|
376
492
|
property: "property";
|
|
493
|
+
all: "all";
|
|
377
494
|
}>;
|
|
495
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
path: z.ZodString;
|
|
497
|
+
}, z.core.$strip>>;
|
|
378
498
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
379
499
|
content: z.ZodString;
|
|
380
500
|
contentType: z.ZodEnum<{
|
|
@@ -382,25 +502,37 @@ declare const AzdoRepositoryItemSchema: z.ZodObject<{
|
|
|
382
502
|
base64encoded: "base64encoded";
|
|
383
503
|
}>;
|
|
384
504
|
}, z.core.$strip>>;
|
|
385
|
-
|
|
505
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>>>;
|
|
386
507
|
}, z.core.$strip>>;
|
|
387
508
|
content: z.ZodOptional<z.ZodString>;
|
|
388
509
|
}, z.core.$strip>;
|
|
389
510
|
type AzdoRepositoryItem = z.infer<typeof AzdoRepositoryItemSchema>;
|
|
511
|
+
declare const AzdoIdentityRefWithVoteSchema: z.ZodObject<{
|
|
512
|
+
id: z.ZodOptional<z.ZodString>;
|
|
513
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
514
|
+
vote: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
hasDeclined: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
isFlagged: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
type AzdoIdentityRefWithVote = z.infer<typeof AzdoIdentityRefWithVoteSchema>;
|
|
390
520
|
declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
391
521
|
pullRequestId: z.ZodNumber;
|
|
392
522
|
status: z.ZodEnum<{
|
|
393
523
|
all: "all";
|
|
394
|
-
active: "active";
|
|
395
524
|
notSet: "notSet";
|
|
525
|
+
active: "active";
|
|
396
526
|
abandoned: "abandoned";
|
|
397
527
|
completed: "completed";
|
|
398
528
|
}>;
|
|
399
529
|
isDraft: z.ZodBoolean;
|
|
400
530
|
sourceRefName: z.ZodString;
|
|
401
531
|
targetRefName: z.ZodString;
|
|
532
|
+
title: z.ZodString;
|
|
533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
402
534
|
lastMergeCommit: z.ZodObject<{
|
|
403
|
-
commitId: z.
|
|
535
|
+
commitId: z.ZodString;
|
|
404
536
|
author: z.ZodOptional<z.ZodObject<{
|
|
405
537
|
name: z.ZodString;
|
|
406
538
|
email: z.ZodString;
|
|
@@ -411,24 +543,27 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
|
411
543
|
email: z.ZodString;
|
|
412
544
|
date: z.ZodOptional<z.ZodString>;
|
|
413
545
|
}, z.core.$strip>>;
|
|
414
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
546
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
415
547
|
changeType: z.ZodEnum<{
|
|
416
|
-
all: "all";
|
|
417
|
-
delete: "delete";
|
|
418
|
-
branch: "branch";
|
|
419
548
|
none: "none";
|
|
420
549
|
add: "add";
|
|
421
550
|
edit: "edit";
|
|
422
551
|
encoding: "encoding";
|
|
423
552
|
rename: "rename";
|
|
553
|
+
delete: "delete";
|
|
424
554
|
undelete: "undelete";
|
|
555
|
+
branch: "branch";
|
|
425
556
|
merge: "merge";
|
|
426
557
|
lock: "lock";
|
|
427
558
|
rollback: "rollback";
|
|
428
559
|
sourceRename: "sourceRename";
|
|
429
560
|
targetRename: "targetRename";
|
|
430
561
|
property: "property";
|
|
562
|
+
all: "all";
|
|
431
563
|
}>;
|
|
564
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
path: z.ZodString;
|
|
566
|
+
}, z.core.$strip>>;
|
|
432
567
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
433
568
|
content: z.ZodString;
|
|
434
569
|
contentType: z.ZodEnum<{
|
|
@@ -436,10 +571,11 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
|
436
571
|
base64encoded: "base64encoded";
|
|
437
572
|
}>;
|
|
438
573
|
}, z.core.$strip>>;
|
|
439
|
-
|
|
574
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
575
|
+
}, z.core.$strip>>>;
|
|
440
576
|
}, z.core.$strip>;
|
|
441
577
|
lastMergeSourceCommit: z.ZodObject<{
|
|
442
|
-
commitId: z.
|
|
578
|
+
commitId: z.ZodString;
|
|
443
579
|
author: z.ZodOptional<z.ZodObject<{
|
|
444
580
|
name: z.ZodString;
|
|
445
581
|
email: z.ZodString;
|
|
@@ -450,24 +586,27 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
|
450
586
|
email: z.ZodString;
|
|
451
587
|
date: z.ZodOptional<z.ZodString>;
|
|
452
588
|
}, z.core.$strip>>;
|
|
453
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
589
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
590
|
changeType: z.ZodEnum<{
|
|
455
|
-
all: "all";
|
|
456
|
-
delete: "delete";
|
|
457
|
-
branch: "branch";
|
|
458
591
|
none: "none";
|
|
459
592
|
add: "add";
|
|
460
593
|
edit: "edit";
|
|
461
594
|
encoding: "encoding";
|
|
462
595
|
rename: "rename";
|
|
596
|
+
delete: "delete";
|
|
463
597
|
undelete: "undelete";
|
|
598
|
+
branch: "branch";
|
|
464
599
|
merge: "merge";
|
|
465
600
|
lock: "lock";
|
|
466
601
|
rollback: "rollback";
|
|
467
602
|
sourceRename: "sourceRename";
|
|
468
603
|
targetRename: "targetRename";
|
|
469
604
|
property: "property";
|
|
605
|
+
all: "all";
|
|
470
606
|
}>;
|
|
607
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
path: z.ZodString;
|
|
609
|
+
}, z.core.$strip>>;
|
|
471
610
|
newContent: z.ZodOptional<z.ZodObject<{
|
|
472
611
|
content: z.ZodString;
|
|
473
612
|
contentType: z.ZodEnum<{
|
|
@@ -475,7 +614,8 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
|
475
614
|
base64encoded: "base64encoded";
|
|
476
615
|
}>;
|
|
477
616
|
}, z.core.$strip>>;
|
|
478
|
-
|
|
617
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
618
|
+
}, z.core.$strip>>>;
|
|
479
619
|
}, z.core.$strip>;
|
|
480
620
|
mergeStatus: z.ZodEnum<{
|
|
481
621
|
notSet: "notSet";
|
|
@@ -485,35 +625,54 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
|
485
625
|
rejectedByPolicy: "rejectedByPolicy";
|
|
486
626
|
failure: "failure";
|
|
487
627
|
}>;
|
|
628
|
+
reviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
629
|
+
id: z.ZodOptional<z.ZodString>;
|
|
630
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
631
|
+
vote: z.ZodOptional<z.ZodNumber>;
|
|
632
|
+
hasDeclined: z.ZodOptional<z.ZodBoolean>;
|
|
633
|
+
isFlagged: z.ZodOptional<z.ZodBoolean>;
|
|
634
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
+
}, z.core.$strip>>>;
|
|
636
|
+
workItemRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
|
+
id: z.ZodString;
|
|
638
|
+
}, z.core.$strip>>>;
|
|
639
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
640
|
+
name: z.ZodString;
|
|
641
|
+
}, z.core.$strip>>>;
|
|
488
642
|
autoCompleteSetBy: z.ZodOptional<z.ZodObject<{
|
|
489
643
|
id: z.ZodOptional<z.ZodString>;
|
|
490
644
|
displayName: z.ZodOptional<z.ZodString>;
|
|
645
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
491
646
|
url: z.ZodOptional<z.ZodString>;
|
|
492
647
|
}, z.core.$strip>>;
|
|
648
|
+
completionOptions: z.ZodOptional<z.ZodObject<{
|
|
649
|
+
autoCompleteIgnoreConfigIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
650
|
+
deleteSourceBranch: z.ZodOptional<z.ZodBoolean>;
|
|
651
|
+
mergeCommitMessage: z.ZodOptional<z.ZodString>;
|
|
652
|
+
mergeStrategy: z.ZodOptional<z.ZodEnum<{
|
|
653
|
+
noFastForward: "noFastForward";
|
|
654
|
+
squash: "squash";
|
|
655
|
+
rebase: "rebase";
|
|
656
|
+
rebaseMerge: "rebaseMerge";
|
|
657
|
+
}>>;
|
|
658
|
+
transitionWorkItems: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
}, z.core.$strip>>;
|
|
493
660
|
closedBy: z.ZodOptional<z.ZodObject<{
|
|
494
661
|
id: z.ZodOptional<z.ZodString>;
|
|
495
662
|
displayName: z.ZodOptional<z.ZodString>;
|
|
663
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
496
664
|
url: z.ZodOptional<z.ZodString>;
|
|
497
665
|
}, z.core.$strip>>;
|
|
498
666
|
}, z.core.$strip>;
|
|
499
667
|
type AzdoPullRequest = z.infer<typeof AzdoPullRequestSchema>;
|
|
500
|
-
declare const
|
|
668
|
+
declare const AzdoPropertiesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
501
669
|
$type: z.ZodString;
|
|
502
670
|
$value: z.ZodString;
|
|
503
671
|
}, z.core.$strip>>;
|
|
504
|
-
type
|
|
505
|
-
declare const AzdoIdentityRefWithVoteSchema: z.ZodObject<{
|
|
506
|
-
id: z.ZodOptional<z.ZodString>;
|
|
507
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
508
|
-
vote: z.ZodOptional<z.ZodNumber>;
|
|
509
|
-
hasDeclined: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
-
isFlagged: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
-
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
-
}, z.core.$strip>;
|
|
513
|
-
type AzdoIdentityRefWithVote = z.infer<typeof AzdoIdentityRefWithVoteSchema>;
|
|
672
|
+
type AzdoProperties = z.infer<typeof AzdoPropertiesSchema>;
|
|
514
673
|
declare const AzdoPullRequestCommentSchema: z.ZodObject<{
|
|
515
|
-
id: z.ZodNumber
|
|
516
|
-
parentCommentId: z.
|
|
674
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
675
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
517
676
|
content: z.ZodString;
|
|
518
677
|
commentType: z.ZodEnum<{
|
|
519
678
|
unknown: "unknown";
|
|
@@ -521,19 +680,20 @@ declare const AzdoPullRequestCommentSchema: z.ZodObject<{
|
|
|
521
680
|
codeChange: "codeChange";
|
|
522
681
|
system: "system";
|
|
523
682
|
}>;
|
|
524
|
-
publishedDate: z.ZodString
|
|
525
|
-
author: z.
|
|
683
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
684
|
+
author: z.ZodObject<{
|
|
526
685
|
id: z.ZodOptional<z.ZodString>;
|
|
527
686
|
displayName: z.ZodOptional<z.ZodString>;
|
|
687
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
528
688
|
url: z.ZodOptional<z.ZodString>;
|
|
529
|
-
}, z.core.$strip
|
|
689
|
+
}, z.core.$strip>;
|
|
530
690
|
}, z.core.$strip>;
|
|
531
691
|
type AzdoPullRequestComment = z.infer<typeof AzdoPullRequestCommentSchema>;
|
|
532
692
|
declare const AzdoPullRequestCommentThreadSchema: z.ZodObject<{
|
|
533
693
|
id: z.ZodNumber;
|
|
534
694
|
comments: z.ZodArray<z.ZodObject<{
|
|
535
|
-
id: z.ZodNumber
|
|
536
|
-
parentCommentId: z.
|
|
695
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
537
697
|
content: z.ZodString;
|
|
538
698
|
commentType: z.ZodEnum<{
|
|
539
699
|
unknown: "unknown";
|
|
@@ -541,12 +701,13 @@ declare const AzdoPullRequestCommentThreadSchema: z.ZodObject<{
|
|
|
541
701
|
codeChange: "codeChange";
|
|
542
702
|
system: "system";
|
|
543
703
|
}>;
|
|
544
|
-
publishedDate: z.ZodString
|
|
545
|
-
author: z.
|
|
704
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
705
|
+
author: z.ZodObject<{
|
|
546
706
|
id: z.ZodOptional<z.ZodString>;
|
|
547
707
|
displayName: z.ZodOptional<z.ZodString>;
|
|
708
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
548
709
|
url: z.ZodOptional<z.ZodString>;
|
|
549
|
-
}, z.core.$strip
|
|
710
|
+
}, z.core.$strip>;
|
|
550
711
|
}, z.core.$strip>>;
|
|
551
712
|
status: z.ZodEnum<{
|
|
552
713
|
unknown: "unknown";
|
|
@@ -560,7 +721,7 @@ declare const AzdoPullRequestCommentThreadSchema: z.ZodObject<{
|
|
|
560
721
|
}, z.core.$strip>;
|
|
561
722
|
type AzdoPullRequestCommentThread = z.infer<typeof AzdoPullRequestCommentThreadSchema>;
|
|
562
723
|
declare const AzdoSubscriptionSchema: z.ZodObject<{
|
|
563
|
-
id: z.
|
|
724
|
+
id: z.ZodString;
|
|
564
725
|
status: z.ZodEnum<{
|
|
565
726
|
enabled: "enabled";
|
|
566
727
|
onProbation: "onProbation";
|
|
@@ -581,7 +742,7 @@ declare const AzdoSubscriptionSchema: z.ZodObject<{
|
|
|
581
742
|
type AzdoSubscription = z.infer<typeof AzdoSubscriptionSchema>;
|
|
582
743
|
declare const AzdoSubscriptionsQueryResponseSchema: z.ZodObject<{
|
|
583
744
|
results: z.ZodArray<z.ZodObject<{
|
|
584
|
-
id: z.
|
|
745
|
+
id: z.ZodString;
|
|
585
746
|
status: z.ZodEnum<{
|
|
586
747
|
enabled: "enabled";
|
|
587
748
|
onProbation: "onProbation";
|
|
@@ -643,59 +804,573 @@ declare const AzdoSubscriptionsQuerySchema: z.ZodObject<{
|
|
|
643
804
|
subscriberId: z.ZodOptional<z.ZodString>;
|
|
644
805
|
}, z.core.$strip>;
|
|
645
806
|
type AzdoSubscriptionsQuery = z.infer<typeof AzdoSubscriptionsQuerySchema>;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
807
|
+
type AzdoPrExtractedWithProperties = {
|
|
808
|
+
pullRequestId: number;
|
|
809
|
+
properties?: {
|
|
810
|
+
name: string;
|
|
811
|
+
value: string;
|
|
812
|
+
}[];
|
|
813
|
+
};
|
|
814
|
+
type AzdoFileChange = {
|
|
815
|
+
changeType: AzdoVersionControlChangeType;
|
|
816
|
+
path: string;
|
|
817
|
+
content?: string;
|
|
818
|
+
encoding?: 'utf-8' | 'base64';
|
|
819
|
+
};
|
|
820
|
+
//#endregion
|
|
821
|
+
//#region src/azure/client/client-connection.d.ts
|
|
822
|
+
declare class ConnectionClient extends BaseAzureDevOpsClient {
|
|
823
|
+
/**
|
|
824
|
+
* Get the connection data for the current user.
|
|
825
|
+
*/
|
|
826
|
+
get(): Promise<AzdoConnectionData>;
|
|
827
|
+
}
|
|
828
|
+
//#endregion
|
|
829
|
+
//#region src/azure/client/client-git.d.ts
|
|
830
|
+
declare class GitClient extends BaseAzureDevOpsClient {
|
|
831
|
+
getItem(projectIdOrName: string, repositoryIdOrName: string, path: string, includeContent?: boolean, latestProcessedChange?: boolean): Promise<AzdoRepositoryItem | undefined>;
|
|
832
|
+
getPush(projectIdOrName: string, repositoryIdOrName: string, pushId: number, includeCommits?: number, includeRefUpdates?: boolean): Promise<AzdoGitPush>;
|
|
833
|
+
createPush(projectIdOrName: string, repositoryIdOrName: string, push: AzdoGitPushCreate): Promise<AzdoGitPush>;
|
|
834
|
+
getDiffCommits(projectIdOrName: string, repositoryIdOrName: string, baseVersion: string, targetVersion: string): Promise<AzdoGitCommitDiffs>;
|
|
835
|
+
updateRef(projectIdOrName: string, repositoryIdOrName: string, ref: AzdoGitRefUpdate[]): Promise<AzdoGitRefUpdateResult[] | undefined>;
|
|
836
|
+
}
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region src/azure/client/client-identity.d.ts
|
|
839
|
+
declare class IdentityClient extends BaseAzureDevOpsClient {
|
|
840
|
+
/**
|
|
841
|
+
* Get the identities that match the given user name, email, or group name.
|
|
842
|
+
* Requires scope "Identity (Read)" (vso.identity).
|
|
843
|
+
* @param filterValue username, email, or group name
|
|
844
|
+
* @returns
|
|
845
|
+
*/
|
|
846
|
+
get(filterValue: string): Promise<AzdoIdentity[] | undefined>;
|
|
847
|
+
}
|
|
848
|
+
//#endregion
|
|
849
|
+
//#region src/azure/client/client-projects.d.ts
|
|
850
|
+
declare class ProjectsClient extends BaseAzureDevOpsClient {
|
|
851
|
+
list(): Promise<AzdoProject[] | undefined>;
|
|
852
|
+
get(idOrName: string): Promise<AzdoProject | undefined>;
|
|
853
|
+
}
|
|
854
|
+
//#endregion
|
|
855
|
+
//#region src/azure/client/client-pull-requests.d.ts
|
|
856
|
+
declare class PullRequestsClient extends BaseAzureDevOpsClient {
|
|
857
|
+
/**
|
|
858
|
+
* List pull requests
|
|
859
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
860
|
+
* @param projectIdOrName
|
|
861
|
+
* @param repositoryIdOrName
|
|
862
|
+
* @param creatorId ID of the user who created the pull requests
|
|
863
|
+
* @param status The status of the pull requests to filter by
|
|
864
|
+
*/
|
|
865
|
+
list(projectIdOrName: string, repositoryIdOrName: string, creatorId: string, status: AzdoPullRequestStatus): Promise<AzdoPullRequest[] | undefined>;
|
|
866
|
+
get(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number): Promise<AzdoPullRequest | undefined>;
|
|
867
|
+
create(projectIdOrName: string, repositoryIdOrName: string, pr: Partial<AzdoPullRequest>): Promise<AzdoPullRequest>;
|
|
868
|
+
update(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, pr: Partial<AzdoPullRequest>): Promise<AzdoPullRequest>;
|
|
869
|
+
getProperties(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number): Promise<{
|
|
870
|
+
name: string;
|
|
871
|
+
value: string;
|
|
872
|
+
}[]>;
|
|
873
|
+
setProperties(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, properties: {
|
|
874
|
+
name: string;
|
|
875
|
+
value: string;
|
|
876
|
+
}[]): Promise<AzdoResponse<AzdoProperties>>;
|
|
877
|
+
/**
|
|
878
|
+
* Approve a pull request.
|
|
879
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
880
|
+
*/
|
|
881
|
+
approve(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, userId: string): Promise<AzdoIdentityRefWithVote>;
|
|
882
|
+
/**
|
|
883
|
+
* Abandon a pull request.
|
|
884
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
885
|
+
*/
|
|
886
|
+
abandon(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, userId: string): Promise<AzdoPullRequest>;
|
|
887
|
+
/**
|
|
888
|
+
* Get commits of a pull request.
|
|
889
|
+
* Requires scope "Code (Read)" (vso.code_read).
|
|
890
|
+
*/
|
|
891
|
+
getCommits(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number): Promise<AzdoGitCommitRef[] | undefined>;
|
|
892
|
+
/**
|
|
893
|
+
* Create a comment thread on a pull request.
|
|
894
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
895
|
+
*/
|
|
896
|
+
createCommentThread(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, thread: Partial<AzdoPullRequestCommentThread>): Promise<AzdoPullRequestCommentThread>;
|
|
897
|
+
}
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/azure/client/client-repositories.d.ts
|
|
900
|
+
declare class RepositoriesClient extends BaseAzureDevOpsClient {
|
|
901
|
+
list(projectIdOrName: string): Promise<AzdoRepository[] | undefined>;
|
|
902
|
+
get(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoRepository | undefined>;
|
|
903
|
+
/**
|
|
904
|
+
* Get the list of refs (a.k.a branch names) for a repository.
|
|
905
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
906
|
+
* @param projectIdOrName
|
|
907
|
+
* @param repositoryIdOrName
|
|
908
|
+
* @returns
|
|
909
|
+
*/
|
|
910
|
+
getRefs(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoGitRef[] | undefined>;
|
|
911
|
+
getBranchStats(projectIdOrName: string, repositoryIdOrName: string, branchName: string): Promise<AzdoGitBranchStats | undefined>;
|
|
912
|
+
}
|
|
913
|
+
//#endregion
|
|
914
|
+
//#region src/azure/client/client-subscriptions.d.ts
|
|
915
|
+
declare class HookSubscriptionsClient extends BaseAzureDevOpsClient {
|
|
916
|
+
query(query: AzdoSubscriptionsQuery): Promise<AzdoSubscription[]>;
|
|
917
|
+
create(subscription: Partial<AzdoSubscription>): Promise<AzdoSubscription>;
|
|
918
|
+
replace(subscriptionId: string, subscription: AzdoSubscription): Promise<AzdoSubscription>;
|
|
919
|
+
delete(subscriptionId: string): Promise<void>;
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region src/azure/client/client.d.ts
|
|
923
|
+
declare class AzureDevOpsClient {
|
|
924
|
+
readonly organizationSlug: string;
|
|
925
|
+
readonly organizationUrl: string;
|
|
926
|
+
readonly connection: ConnectionClient;
|
|
927
|
+
readonly identity: IdentityClient;
|
|
928
|
+
readonly projects: ProjectsClient;
|
|
929
|
+
readonly repositories: RepositoriesClient;
|
|
930
|
+
readonly git: GitClient;
|
|
931
|
+
readonly pullRequests: PullRequestsClient;
|
|
932
|
+
readonly subscriptions: HookSubscriptionsClient;
|
|
933
|
+
constructor(url: AzureDevOpsOrganizationUrl, accessToken: string, debug?: boolean);
|
|
934
|
+
private static createClientOptions;
|
|
935
|
+
}
|
|
936
|
+
//#endregion
|
|
937
|
+
//#region src/azure/client/constants.d.ts
|
|
938
|
+
declare const API_VERSION = "5.0";
|
|
939
|
+
declare const API_VERSION_PREVIEW = "5.0-preview";
|
|
940
|
+
/** Returned when no user is authenticated */
|
|
941
|
+
declare const ANONYMOUS_USER_ID = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa";
|
|
942
|
+
/**
|
|
943
|
+
* Pull request property names used to store metadata about the pull request.
|
|
944
|
+
* https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-properties
|
|
945
|
+
*/
|
|
946
|
+
declare const PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME = "Microsoft.Git.PullRequest.SourceRefName";
|
|
947
|
+
declare const PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER = "Dependabot.PackageManager";
|
|
948
|
+
declare const PR_PROPERTY_DEPENDABOT_DEPENDENCIES = "Dependabot.Dependencies";
|
|
949
|
+
declare const PR_DESCRIPTION_MAX_LENGTH = 4000;
|
|
950
|
+
//#endregion
|
|
951
|
+
//#region src/azure/client/utils.d.ts
|
|
952
|
+
declare function buildPullRequestProperties(packageManager: string, dependencies: DependabotPersistedPr): {
|
|
953
|
+
name: string;
|
|
954
|
+
value: string;
|
|
955
|
+
}[];
|
|
956
|
+
declare function parsePullRequestProperties(pullRequests: AzdoPrExtractedWithProperties[], packageManager: string | null): Record<string, DependabotPersistedPr>;
|
|
957
|
+
declare function getPullRequestForDependencyNames(existingPullRequests: AzdoPrExtractedWithProperties[], packageManager: string, dependencyNames: string[]): AzdoPrExtractedWithProperties | undefined;
|
|
958
|
+
declare function getPullRequestChangedFiles(data: DependabotCreatePullRequest | DependabotUpdatePullRequest): {
|
|
959
|
+
changeType: "add" | "edit" | "delete";
|
|
960
|
+
path: string;
|
|
961
|
+
content: string | undefined;
|
|
962
|
+
encoding: "utf-8" | "base64";
|
|
963
|
+
}[];
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region src/azure/client/wrapper.d.ts
|
|
966
|
+
type AzdoRepositoryOptions = {
|
|
967
|
+
project: string;
|
|
968
|
+
repository: string;
|
|
969
|
+
};
|
|
970
|
+
type AzdoPullRequestCreateOptions = AzdoRepositoryOptions & {
|
|
971
|
+
source: {
|
|
972
|
+
branch: string;
|
|
973
|
+
commit: string;
|
|
974
|
+
};
|
|
975
|
+
target: {
|
|
976
|
+
branch: string;
|
|
977
|
+
};
|
|
978
|
+
author: AzdoGitUserDate;
|
|
979
|
+
title: string;
|
|
980
|
+
description: string;
|
|
981
|
+
commitMessage: string;
|
|
982
|
+
autoComplete?: {
|
|
983
|
+
ignorePolicyConfigIds?: number[];
|
|
984
|
+
mergeStrategy?: AzdoPullRequestMergeStrategy;
|
|
985
|
+
};
|
|
986
|
+
assignees?: string[];
|
|
987
|
+
labels?: string[];
|
|
988
|
+
workItems?: string[];
|
|
989
|
+
changes: AzdoFileChange[];
|
|
990
|
+
properties?: {
|
|
991
|
+
name: string;
|
|
992
|
+
value: string;
|
|
993
|
+
}[];
|
|
994
|
+
};
|
|
995
|
+
type AzdoPullRequestOptions = AzdoRepositoryOptions & {
|
|
996
|
+
pullRequestId: number;
|
|
997
|
+
};
|
|
998
|
+
type AzdoPullRequestUpdateOptions = AzdoPullRequestOptions & {
|
|
999
|
+
commit: string;
|
|
1000
|
+
author: AzdoGitUserDate;
|
|
1001
|
+
changes: AzdoFileChange[];
|
|
1002
|
+
};
|
|
1003
|
+
type AzdoPullRequestAbandonOptions = AzdoPullRequestOptions & {
|
|
1004
|
+
comment?: string;
|
|
1005
|
+
deleteSourceBranch?: boolean;
|
|
1006
|
+
};
|
|
1007
|
+
type AzdoPullRequestCommentCreateOptions = AzdoPullRequestOptions & {
|
|
1008
|
+
content: string;
|
|
1009
|
+
userId?: string;
|
|
1010
|
+
};
|
|
1011
|
+
declare class AzureDevOpsClientWrapper {
|
|
1012
|
+
readonly inner: AzureDevOpsClient;
|
|
1013
|
+
private authenticatedUserId?;
|
|
1014
|
+
private resolvedUserIds;
|
|
1015
|
+
/**
|
|
1016
|
+
* Create a new Azure DevOps client wrapper.
|
|
1017
|
+
* @param url The Azure DevOps organization URL
|
|
1018
|
+
* @param accessToken The personal access token for authentication
|
|
1019
|
+
* @param debug Enable debug logging for API requests (default: false)
|
|
1020
|
+
*/
|
|
1021
|
+
constructor(url: AzureDevOpsOrganizationUrl, accessToken: string, debug?: boolean);
|
|
1022
|
+
/**
|
|
1023
|
+
* Get the identity of the authenticated user.
|
|
1024
|
+
* The result is cached after the first call to avoid repeated API requests.
|
|
1025
|
+
*/
|
|
1026
|
+
getUserId(): Promise<string>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Get the identity id from a user name, email, or group name.
|
|
1029
|
+
* Results are cached to avoid repeated API requests for the same identifier.
|
|
1030
|
+
*
|
|
1031
|
+
* Requires scope "Identity (Read)" (vso.identity).
|
|
1032
|
+
* @param identifier Username, email, or group name to resolve
|
|
1033
|
+
* @returns The resolved identity ID, or undefined if not found or on error
|
|
1034
|
+
*/
|
|
1035
|
+
resolveIdentityId(identifier: string): Promise<string | undefined>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Get the default branch for a repository.
|
|
1038
|
+
*
|
|
1039
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
1040
|
+
* @param options Repository identification options (project and repository)
|
|
1041
|
+
* @returns The normalized default branch name (e.g., "main"), or undefined if not found
|
|
1042
|
+
*/
|
|
1043
|
+
getDefaultBranch(options: AzdoRepositoryOptions): Promise<string | undefined>;
|
|
1044
|
+
/**
|
|
1045
|
+
* Get the list of branch names for a repository.
|
|
1046
|
+
*
|
|
1047
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
1048
|
+
* @param options Repository identification options (project and repository)
|
|
1049
|
+
* @returns Array of normalized branch names, or undefined if not found
|
|
1050
|
+
*/
|
|
1051
|
+
getBranchNames(options: AzdoRepositoryOptions): Promise<string[] | undefined>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Get the properties for all active pull requests created by the specified user.
|
|
1054
|
+
* This retrieves both the pull request IDs and their associated properties.
|
|
1055
|
+
*
|
|
1056
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
1057
|
+
* @param options Repository identification options including the creator user ID
|
|
1058
|
+
* @returns Array of pull request IDs with their properties, empty array on error
|
|
1059
|
+
*/
|
|
1060
|
+
getActivePullRequestProperties({
|
|
1061
|
+
project,
|
|
1062
|
+
repository,
|
|
1063
|
+
creatorId
|
|
1064
|
+
}: AzdoRepositoryOptions & {
|
|
1065
|
+
creatorId: string;
|
|
1066
|
+
}): Promise<AzdoPrExtractedWithProperties[]>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Create a new pull request with the specified changes.
|
|
1069
|
+
* This method performs the following operations:
|
|
1070
|
+
* 1. Resolves assignee identities for assignees (if specified)
|
|
1071
|
+
* 2. Creates a new branch and pushes changes
|
|
1072
|
+
* 3. Creates the pull request with assignees (optional reviewers), labels, and work items
|
|
1073
|
+
* 4. Sets pull request properties for dependency metadata
|
|
1074
|
+
* 5. Configures auto-complete options (if specified)
|
|
1075
|
+
*
|
|
1076
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
1077
|
+
* Requires scope "Identity (Read)" (vso.identity), if assignees are specified.
|
|
1078
|
+
* @param options Pull request creation options including changes, assignees, and auto-complete settings
|
|
1079
|
+
* @returns The created pull request ID, or null on error
|
|
1080
|
+
*/
|
|
1081
|
+
createPullRequest(options: AzdoPullRequestCreateOptions): Promise<number | null>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Update an existing pull request with new changes.
|
|
1084
|
+
* This method performs the following operations:
|
|
1085
|
+
* 1. Validates the pull request hasn't been modified by another author
|
|
1086
|
+
* 2. Checks if the source branch is behind the target branch
|
|
1087
|
+
* 3. Rebases the target branch into the source branch if needed
|
|
1088
|
+
* 4. Pushes the new changes to the source branch
|
|
1089
|
+
*
|
|
1090
|
+
* Requires scope "Code (Read & Write)" (vso.code, vso.code_write).
|
|
1091
|
+
* @param options Pull request update options including the commit and changes
|
|
1092
|
+
* @returns True if successful, false on error
|
|
1093
|
+
*/
|
|
1094
|
+
updatePullRequest(options: AzdoPullRequestUpdateOptions): Promise<boolean>;
|
|
1095
|
+
/**
|
|
1096
|
+
* Approve a pull request as the authenticated user.
|
|
1097
|
+
* Sets the reviewer vote to 10 (approved).
|
|
1098
|
+
*
|
|
1099
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
1100
|
+
* @param options Pull request identification options
|
|
1101
|
+
* @returns True if successful, false on error
|
|
1102
|
+
*/
|
|
1103
|
+
approvePullRequest(options: AzdoPullRequestOptions): Promise<boolean>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Abandon a pull request and optionally delete its source branch.
|
|
1106
|
+
* This method performs the following operations:
|
|
1107
|
+
* 1. Adds an optional comment explaining the abandonment reason
|
|
1108
|
+
* 2. Sets the pull request status to abandoned
|
|
1109
|
+
* 3. Deletes the source branch if requested
|
|
1110
|
+
*
|
|
1111
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
1112
|
+
* @param options Pull request abandonment options including optional comment and branch deletion flag
|
|
1113
|
+
* @returns True if successful, false on error
|
|
1114
|
+
*/
|
|
1115
|
+
abandonPullRequest(options: AzdoPullRequestAbandonOptions): Promise<boolean>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Add a comment thread on a pull request.
|
|
1118
|
+
* The comment thread is created with a closed status and system comment type.
|
|
1119
|
+
*
|
|
1120
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
1121
|
+
* @param options Comment creation options including content and optional user ID
|
|
1122
|
+
* @returns The created thread ID, or undefined on error
|
|
1123
|
+
*/
|
|
1124
|
+
addCommentThread(options: AzdoPullRequestCommentCreateOptions): Promise<number | undefined>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Create or update webhook subscriptions for Azure DevOps events.
|
|
1127
|
+
* This sets up subscriptions for various git events (push, pull request updates, repository changes, etc.)
|
|
1128
|
+
* and ensures they are configured to send webhooks to the specified URL.
|
|
1129
|
+
* Existing subscriptions matching the URL will be updated, otherwise new subscriptions are created.
|
|
1130
|
+
*
|
|
1131
|
+
* Requires scope "Service Hooks (Read & Write)" (vso.hooks_write).
|
|
1132
|
+
* @returns Array of subscription IDs that were created or updated
|
|
1133
|
+
*/
|
|
1134
|
+
createOrUpdateHookSubscriptions({
|
|
1135
|
+
url,
|
|
1136
|
+
headers,
|
|
1137
|
+
project
|
|
1138
|
+
}: {
|
|
1139
|
+
url: string;
|
|
1140
|
+
headers: Record<string, string>;
|
|
1141
|
+
project: string;
|
|
1142
|
+
}): Promise<void>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Remove all webhook subscriptions for a specific URL.
|
|
1145
|
+
* This finds all subscriptions matching the provided URL and deletes them.
|
|
1146
|
+
*
|
|
1147
|
+
* Requires scope "Service Hooks (Read & Write)" (vso.hooks_write).
|
|
1148
|
+
*/
|
|
1149
|
+
deleteHookSubscriptions({
|
|
1150
|
+
url,
|
|
1151
|
+
project
|
|
1152
|
+
}: {
|
|
1153
|
+
url: string;
|
|
1154
|
+
project: string;
|
|
1155
|
+
}): Promise<void>;
|
|
1156
|
+
private mergeCommitMessage;
|
|
1157
|
+
private isGuid;
|
|
1158
|
+
private buildSubscriptionsQuery;
|
|
1159
|
+
private makeTfsPublisherInputs;
|
|
1160
|
+
private makeWebhookConsumerInputs;
|
|
1161
|
+
}
|
|
1162
|
+
//#endregion
|
|
1163
|
+
//#region src/azure/config.d.ts
|
|
1164
|
+
/**
|
|
1165
|
+
* Parse the dependabot config YAML file to specify update configuration.
|
|
1166
|
+
* The file should be located at any of `CONFIG_FILE_PATHS_AZURE`.
|
|
1167
|
+
*
|
|
1168
|
+
* To view YAML file format, visit
|
|
1169
|
+
* https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#allow
|
|
1170
|
+
*
|
|
1171
|
+
* @returns {DependabotConfig} config - the dependabot configuration
|
|
1172
|
+
*/
|
|
1173
|
+
declare function getDependabotConfig({
|
|
1174
|
+
url,
|
|
1175
|
+
token,
|
|
1176
|
+
remote,
|
|
1177
|
+
rootDir,
|
|
1178
|
+
variableFinder
|
|
1179
|
+
}: {
|
|
1180
|
+
url: AzureDevOpsRepositoryUrl;
|
|
1181
|
+
token: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* Whether to fetch the configuration file via the REST API (true) or look for it locally (false).
|
|
1184
|
+
*/
|
|
1185
|
+
remote: boolean;
|
|
1186
|
+
rootDir?: string;
|
|
1187
|
+
variableFinder: VariableFinderFn;
|
|
1188
|
+
}): Promise<DependabotConfig>;
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region src/azure/events.d.ts
|
|
1191
|
+
declare const AzdoEventTypeSchema: z.ZodEnum<{
|
|
1192
|
+
"git.push": "git.push";
|
|
1193
|
+
"git.pullrequest.updated": "git.pullrequest.updated";
|
|
1194
|
+
"git.pullrequest.merged": "git.pullrequest.merged";
|
|
1195
|
+
"git.repo.created": "git.repo.created";
|
|
1196
|
+
"git.repo.deleted": "git.repo.deleted";
|
|
1197
|
+
"git.repo.renamed": "git.repo.renamed";
|
|
1198
|
+
"git.repo.statuschanged": "git.repo.statuschanged";
|
|
1199
|
+
"ms.vss-code.git-pullrequest-comment-event": "ms.vss-code.git-pullrequest-comment-event";
|
|
1200
|
+
}>;
|
|
1201
|
+
type AzdoEventType = z.infer<typeof AzdoEventTypeSchema>;
|
|
1202
|
+
declare const AzdoEventRepositorySchema: z.ZodObject<{
|
|
1203
|
+
id: z.ZodString;
|
|
1204
|
+
name: z.ZodString;
|
|
1205
|
+
project: z.ZodObject<{
|
|
1206
|
+
id: z.ZodString;
|
|
1207
|
+
name: z.ZodString;
|
|
1208
|
+
url: z.ZodString;
|
|
1209
|
+
}, z.core.$strip>;
|
|
1210
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
remoteUrl: z.ZodString;
|
|
1212
|
+
}, z.core.$strip>;
|
|
1213
|
+
declare const AzdoEventCodePushResourceSchema: z.ZodObject<{
|
|
1214
|
+
repository: z.ZodObject<{
|
|
1215
|
+
id: z.ZodString;
|
|
1216
|
+
name: z.ZodString;
|
|
1217
|
+
project: z.ZodObject<{
|
|
1218
|
+
id: z.ZodString;
|
|
1219
|
+
name: z.ZodString;
|
|
1220
|
+
url: z.ZodString;
|
|
1221
|
+
}, z.core.$strip>;
|
|
1222
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
remoteUrl: z.ZodString;
|
|
1224
|
+
}, z.core.$strip>;
|
|
1225
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
1226
|
+
commitId: z.ZodString;
|
|
1227
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
1228
|
+
name: z.ZodString;
|
|
1229
|
+
email: z.ZodString;
|
|
1230
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
}, z.core.$strip>>;
|
|
1232
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
1233
|
+
name: z.ZodString;
|
|
1234
|
+
email: z.ZodString;
|
|
1235
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
}, z.core.$strip>>;
|
|
1237
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1238
|
+
changeType: z.ZodEnum<{
|
|
1239
|
+
none: "none";
|
|
1240
|
+
add: "add";
|
|
1241
|
+
edit: "edit";
|
|
1242
|
+
encoding: "encoding";
|
|
1243
|
+
rename: "rename";
|
|
1244
|
+
delete: "delete";
|
|
1245
|
+
undelete: "undelete";
|
|
1246
|
+
branch: "branch";
|
|
1247
|
+
merge: "merge";
|
|
1248
|
+
lock: "lock";
|
|
1249
|
+
rollback: "rollback";
|
|
1250
|
+
sourceRename: "sourceRename";
|
|
1251
|
+
targetRename: "targetRename";
|
|
1252
|
+
property: "property";
|
|
1253
|
+
all: "all";
|
|
1254
|
+
}>;
|
|
1255
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
1256
|
+
path: z.ZodString;
|
|
1257
|
+
}, z.core.$strip>>;
|
|
1258
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
content: z.ZodString;
|
|
1260
|
+
contentType: z.ZodEnum<{
|
|
1261
|
+
rawtext: "rawtext";
|
|
1262
|
+
base64encoded: "base64encoded";
|
|
1263
|
+
}>;
|
|
1264
|
+
}, z.core.$strip>>;
|
|
1265
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
}, z.core.$strip>>>;
|
|
1267
|
+
}, z.core.$strip>>;
|
|
1268
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
1269
|
+
name: z.ZodString;
|
|
1270
|
+
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1271
|
+
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1272
|
+
}, z.core.$strip>>;
|
|
1273
|
+
pushId: z.ZodNumber;
|
|
1274
|
+
url: z.ZodString;
|
|
1275
|
+
}, z.core.$strip>;
|
|
1276
|
+
type AzdoEventCodePushResource = z.infer<typeof AzdoEventCodePushResourceSchema>;
|
|
1277
|
+
declare const AzdoEventPullRequestResourceSchema: z.ZodObject<{
|
|
1278
|
+
repository: z.ZodObject<{
|
|
1279
|
+
id: z.ZodString;
|
|
1280
|
+
name: z.ZodString;
|
|
1281
|
+
project: z.ZodObject<{
|
|
1282
|
+
id: z.ZodString;
|
|
1283
|
+
name: z.ZodString;
|
|
1284
|
+
url: z.ZodString;
|
|
1285
|
+
}, z.core.$strip>;
|
|
1286
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1287
|
+
remoteUrl: z.ZodString;
|
|
1288
|
+
}, z.core.$strip>;
|
|
1289
|
+
pullRequestId: z.ZodNumber;
|
|
1290
|
+
status: z.ZodEnum<{
|
|
1291
|
+
all: "all";
|
|
1292
|
+
notSet: "notSet";
|
|
1293
|
+
active: "active";
|
|
1294
|
+
abandoned: "abandoned";
|
|
1295
|
+
completed: "completed";
|
|
1296
|
+
}>;
|
|
1297
|
+
createdBy: z.ZodObject<{
|
|
1298
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
}, z.core.$strip>;
|
|
1303
|
+
title: z.ZodString;
|
|
1304
|
+
sourceRefName: z.ZodString;
|
|
1305
|
+
targetRefName: z.ZodString;
|
|
1306
|
+
mergeStatus: z.ZodEnum<{
|
|
1307
|
+
notSet: "notSet";
|
|
1308
|
+
queued: "queued";
|
|
1309
|
+
conflicts: "conflicts";
|
|
1310
|
+
succeeded: "succeeded";
|
|
1311
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1312
|
+
failure: "failure";
|
|
1313
|
+
}>;
|
|
1314
|
+
mergeId: z.ZodString;
|
|
1315
|
+
url: z.ZodString;
|
|
697
1316
|
}, z.core.$strip>;
|
|
698
1317
|
type AzdoEventPullRequestResource = z.infer<typeof AzdoEventPullRequestResourceSchema>;
|
|
1318
|
+
declare const AzdoEventRepositoryCreatedResourceSchema: z.ZodObject<{
|
|
1319
|
+
repository: z.ZodObject<{
|
|
1320
|
+
id: z.ZodString;
|
|
1321
|
+
name: z.ZodString;
|
|
1322
|
+
project: z.ZodObject<{
|
|
1323
|
+
id: z.ZodString;
|
|
1324
|
+
name: z.ZodString;
|
|
1325
|
+
url: z.ZodString;
|
|
1326
|
+
}, z.core.$strip>;
|
|
1327
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
remoteUrl: z.ZodString;
|
|
1329
|
+
}, z.core.$strip>;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1331
|
+
type AzdoEventRepositoryCreatedResource = z.infer<typeof AzdoEventRepositoryCreatedResourceSchema>;
|
|
1332
|
+
declare const AzdoEventRepositoryDeletedResourceSchema: z.ZodObject<{
|
|
1333
|
+
project: z.ZodObject<{
|
|
1334
|
+
id: z.ZodString;
|
|
1335
|
+
name: z.ZodString;
|
|
1336
|
+
url: z.ZodString;
|
|
1337
|
+
}, z.core.$strip>;
|
|
1338
|
+
repositoryId: z.ZodString;
|
|
1339
|
+
repositoryName: z.ZodString;
|
|
1340
|
+
isHardDelete: z.ZodBoolean;
|
|
1341
|
+
}, z.core.$strip>;
|
|
1342
|
+
type AzdoEventRepositoryDeletedResource = z.infer<typeof AzdoEventRepositoryDeletedResourceSchema>;
|
|
1343
|
+
declare const AzdoEventRepositoryRenamedResourceSchema: z.ZodObject<{
|
|
1344
|
+
oldName: z.ZodString;
|
|
1345
|
+
newName: z.ZodString;
|
|
1346
|
+
repository: z.ZodObject<{
|
|
1347
|
+
id: z.ZodString;
|
|
1348
|
+
name: z.ZodString;
|
|
1349
|
+
project: z.ZodObject<{
|
|
1350
|
+
id: z.ZodString;
|
|
1351
|
+
name: z.ZodString;
|
|
1352
|
+
url: z.ZodString;
|
|
1353
|
+
}, z.core.$strip>;
|
|
1354
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
remoteUrl: z.ZodString;
|
|
1356
|
+
}, z.core.$strip>;
|
|
1357
|
+
}, z.core.$strip>;
|
|
1358
|
+
type AzdoEventRepositoryRenamedResource = z.infer<typeof AzdoEventRepositoryRenamedResourceSchema>;
|
|
1359
|
+
declare const AzdoEventRepositoryStatusChangedResourceSchema: z.ZodObject<{
|
|
1360
|
+
disabled: z.ZodBoolean;
|
|
1361
|
+
repository: z.ZodObject<{
|
|
1362
|
+
id: z.ZodString;
|
|
1363
|
+
name: z.ZodString;
|
|
1364
|
+
project: z.ZodObject<{
|
|
1365
|
+
id: z.ZodString;
|
|
1366
|
+
name: z.ZodString;
|
|
1367
|
+
url: z.ZodString;
|
|
1368
|
+
}, z.core.$strip>;
|
|
1369
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
remoteUrl: z.ZodString;
|
|
1371
|
+
}, z.core.$strip>;
|
|
1372
|
+
}, z.core.$strip>;
|
|
1373
|
+
type AzdoEventRepositoryStatusChangedResource = z.infer<typeof AzdoEventRepositoryStatusChangedResourceSchema>;
|
|
699
1374
|
declare const AzdoEventPullRequestCommentEventResourceSchema: z.ZodObject<{
|
|
700
1375
|
pullRequest: z.ZodObject<{
|
|
701
1376
|
repository: z.ZodObject<{
|
|
@@ -712,11 +1387,17 @@ declare const AzdoEventPullRequestCommentEventResourceSchema: z.ZodObject<{
|
|
|
712
1387
|
pullRequestId: z.ZodNumber;
|
|
713
1388
|
status: z.ZodEnum<{
|
|
714
1389
|
all: "all";
|
|
715
|
-
active: "active";
|
|
716
1390
|
notSet: "notSet";
|
|
1391
|
+
active: "active";
|
|
717
1392
|
abandoned: "abandoned";
|
|
718
1393
|
completed: "completed";
|
|
719
1394
|
}>;
|
|
1395
|
+
createdBy: z.ZodObject<{
|
|
1396
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
}, z.core.$strip>;
|
|
720
1401
|
title: z.ZodString;
|
|
721
1402
|
sourceRefName: z.ZodString;
|
|
722
1403
|
targetRefName: z.ZodString;
|
|
@@ -732,8 +1413,8 @@ declare const AzdoEventPullRequestCommentEventResourceSchema: z.ZodObject<{
|
|
|
732
1413
|
url: z.ZodString;
|
|
733
1414
|
}, z.core.$strip>;
|
|
734
1415
|
comment: z.ZodObject<{
|
|
735
|
-
id: z.ZodNumber
|
|
736
|
-
parentCommentId: z.
|
|
1416
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1417
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
737
1418
|
content: z.ZodString;
|
|
738
1419
|
commentType: z.ZodEnum<{
|
|
739
1420
|
unknown: "unknown";
|
|
@@ -741,37 +1422,27 @@ declare const AzdoEventPullRequestCommentEventResourceSchema: z.ZodObject<{
|
|
|
741
1422
|
codeChange: "codeChange";
|
|
742
1423
|
system: "system";
|
|
743
1424
|
}>;
|
|
744
|
-
publishedDate: z.ZodString
|
|
745
|
-
author: z.
|
|
1425
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
author: z.ZodObject<{
|
|
746
1427
|
id: z.ZodOptional<z.ZodString>;
|
|
747
1428
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
748
1430
|
url: z.ZodOptional<z.ZodString>;
|
|
749
|
-
}, z.core.$strip>>;
|
|
750
|
-
}, z.core.$strip>;
|
|
751
|
-
}, z.core.$strip>;
|
|
752
|
-
type AzdoEventPullRequestCommentEventResource = z.infer<typeof AzdoEventPullRequestCommentEventResourceSchema>;
|
|
753
|
-
declare const AzdoEventCodePushResourceSchema: z.ZodObject<{
|
|
754
|
-
repository: z.ZodObject<{
|
|
755
|
-
id: z.ZodString;
|
|
756
|
-
name: z.ZodString;
|
|
757
|
-
project: z.ZodObject<{
|
|
758
|
-
id: z.ZodString;
|
|
759
|
-
name: z.ZodString;
|
|
760
|
-
url: z.ZodString;
|
|
761
1431
|
}, z.core.$strip>;
|
|
762
|
-
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
763
|
-
remoteUrl: z.ZodString;
|
|
764
1432
|
}, z.core.$strip>;
|
|
765
|
-
refUpdates: z.ZodArray<z.ZodObject<{
|
|
766
|
-
name: z.ZodString;
|
|
767
|
-
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
768
|
-
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
-
}, z.core.$strip>>;
|
|
770
1433
|
}, z.core.$strip>;
|
|
771
|
-
type
|
|
1434
|
+
type AzdoEventPullRequestCommentEventResource = z.infer<typeof AzdoEventPullRequestCommentEventResourceSchema>;
|
|
772
1435
|
declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
773
1436
|
subscriptionId: z.ZodString;
|
|
774
1437
|
notificationId: z.ZodNumber;
|
|
1438
|
+
id: z.ZodString;
|
|
1439
|
+
publisherId: z.ZodString;
|
|
1440
|
+
resourceVersion: z.ZodEnum<{
|
|
1441
|
+
"1.0": "1.0";
|
|
1442
|
+
"1.0-preview.1": "1.0-preview.1";
|
|
1443
|
+
"2.0": "2.0";
|
|
1444
|
+
}>;
|
|
1445
|
+
createdDate: z.ZodCoercedDate<unknown>;
|
|
775
1446
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
776
1447
|
eventType: z.ZodLiteral<"git.push">;
|
|
777
1448
|
resource: z.ZodObject<{
|
|
@@ -786,15 +1457,173 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
786
1457
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
787
1458
|
remoteUrl: z.ZodString;
|
|
788
1459
|
}, z.core.$strip>;
|
|
1460
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
1461
|
+
commitId: z.ZodString;
|
|
1462
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
1463
|
+
name: z.ZodString;
|
|
1464
|
+
email: z.ZodString;
|
|
1465
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
}, z.core.$strip>>;
|
|
1467
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
1468
|
+
name: z.ZodString;
|
|
1469
|
+
email: z.ZodString;
|
|
1470
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
}, z.core.$strip>>;
|
|
1472
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1473
|
+
changeType: z.ZodEnum<{
|
|
1474
|
+
none: "none";
|
|
1475
|
+
add: "add";
|
|
1476
|
+
edit: "edit";
|
|
1477
|
+
encoding: "encoding";
|
|
1478
|
+
rename: "rename";
|
|
1479
|
+
delete: "delete";
|
|
1480
|
+
undelete: "undelete";
|
|
1481
|
+
branch: "branch";
|
|
1482
|
+
merge: "merge";
|
|
1483
|
+
lock: "lock";
|
|
1484
|
+
rollback: "rollback";
|
|
1485
|
+
sourceRename: "sourceRename";
|
|
1486
|
+
targetRename: "targetRename";
|
|
1487
|
+
property: "property";
|
|
1488
|
+
all: "all";
|
|
1489
|
+
}>;
|
|
1490
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
1491
|
+
path: z.ZodString;
|
|
1492
|
+
}, z.core.$strip>>;
|
|
1493
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
1494
|
+
content: z.ZodString;
|
|
1495
|
+
contentType: z.ZodEnum<{
|
|
1496
|
+
rawtext: "rawtext";
|
|
1497
|
+
base64encoded: "base64encoded";
|
|
1498
|
+
}>;
|
|
1499
|
+
}, z.core.$strip>>;
|
|
1500
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
1501
|
+
}, z.core.$strip>>>;
|
|
1502
|
+
}, z.core.$strip>>;
|
|
789
1503
|
refUpdates: z.ZodArray<z.ZodObject<{
|
|
790
1504
|
name: z.ZodString;
|
|
791
|
-
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
792
|
-
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
|
-
}, z.core.$strip>>;
|
|
1505
|
+
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1506
|
+
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1507
|
+
}, z.core.$strip>>;
|
|
1508
|
+
pushId: z.ZodNumber;
|
|
1509
|
+
url: z.ZodString;
|
|
1510
|
+
}, z.core.$strip>;
|
|
1511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1512
|
+
eventType: z.ZodLiteral<"git.pullrequest.updated">;
|
|
1513
|
+
resource: z.ZodObject<{
|
|
1514
|
+
repository: z.ZodObject<{
|
|
1515
|
+
id: z.ZodString;
|
|
1516
|
+
name: z.ZodString;
|
|
1517
|
+
project: z.ZodObject<{
|
|
1518
|
+
id: z.ZodString;
|
|
1519
|
+
name: z.ZodString;
|
|
1520
|
+
url: z.ZodString;
|
|
1521
|
+
}, z.core.$strip>;
|
|
1522
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
remoteUrl: z.ZodString;
|
|
1524
|
+
}, z.core.$strip>;
|
|
1525
|
+
pullRequestId: z.ZodNumber;
|
|
1526
|
+
status: z.ZodEnum<{
|
|
1527
|
+
all: "all";
|
|
1528
|
+
notSet: "notSet";
|
|
1529
|
+
active: "active";
|
|
1530
|
+
abandoned: "abandoned";
|
|
1531
|
+
completed: "completed";
|
|
1532
|
+
}>;
|
|
1533
|
+
createdBy: z.ZodObject<{
|
|
1534
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1538
|
+
}, z.core.$strip>;
|
|
1539
|
+
title: z.ZodString;
|
|
1540
|
+
sourceRefName: z.ZodString;
|
|
1541
|
+
targetRefName: z.ZodString;
|
|
1542
|
+
mergeStatus: z.ZodEnum<{
|
|
1543
|
+
notSet: "notSet";
|
|
1544
|
+
queued: "queued";
|
|
1545
|
+
conflicts: "conflicts";
|
|
1546
|
+
succeeded: "succeeded";
|
|
1547
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1548
|
+
failure: "failure";
|
|
1549
|
+
}>;
|
|
1550
|
+
mergeId: z.ZodString;
|
|
1551
|
+
url: z.ZodString;
|
|
1552
|
+
}, z.core.$strip>;
|
|
1553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1554
|
+
eventType: z.ZodLiteral<"git.pullrequest.merged">;
|
|
1555
|
+
resource: z.ZodObject<{
|
|
1556
|
+
repository: z.ZodObject<{
|
|
1557
|
+
id: z.ZodString;
|
|
1558
|
+
name: z.ZodString;
|
|
1559
|
+
project: z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
name: z.ZodString;
|
|
1562
|
+
url: z.ZodString;
|
|
1563
|
+
}, z.core.$strip>;
|
|
1564
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
remoteUrl: z.ZodString;
|
|
1566
|
+
}, z.core.$strip>;
|
|
1567
|
+
pullRequestId: z.ZodNumber;
|
|
1568
|
+
status: z.ZodEnum<{
|
|
1569
|
+
all: "all";
|
|
1570
|
+
notSet: "notSet";
|
|
1571
|
+
active: "active";
|
|
1572
|
+
abandoned: "abandoned";
|
|
1573
|
+
completed: "completed";
|
|
1574
|
+
}>;
|
|
1575
|
+
createdBy: z.ZodObject<{
|
|
1576
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
}, z.core.$strip>;
|
|
1581
|
+
title: z.ZodString;
|
|
1582
|
+
sourceRefName: z.ZodString;
|
|
1583
|
+
targetRefName: z.ZodString;
|
|
1584
|
+
mergeStatus: z.ZodEnum<{
|
|
1585
|
+
notSet: "notSet";
|
|
1586
|
+
queued: "queued";
|
|
1587
|
+
conflicts: "conflicts";
|
|
1588
|
+
succeeded: "succeeded";
|
|
1589
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1590
|
+
failure: "failure";
|
|
1591
|
+
}>;
|
|
1592
|
+
mergeId: z.ZodString;
|
|
1593
|
+
url: z.ZodString;
|
|
1594
|
+
}, z.core.$strip>;
|
|
1595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1596
|
+
eventType: z.ZodLiteral<"git.repo.created">;
|
|
1597
|
+
resource: z.ZodObject<{
|
|
1598
|
+
repository: z.ZodObject<{
|
|
1599
|
+
id: z.ZodString;
|
|
1600
|
+
name: z.ZodString;
|
|
1601
|
+
project: z.ZodObject<{
|
|
1602
|
+
id: z.ZodString;
|
|
1603
|
+
name: z.ZodString;
|
|
1604
|
+
url: z.ZodString;
|
|
1605
|
+
}, z.core.$strip>;
|
|
1606
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
remoteUrl: z.ZodString;
|
|
1608
|
+
}, z.core.$strip>;
|
|
1609
|
+
}, z.core.$strip>;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
eventType: z.ZodLiteral<"git.repo.deleted">;
|
|
1612
|
+
resource: z.ZodObject<{
|
|
1613
|
+
project: z.ZodObject<{
|
|
1614
|
+
id: z.ZodString;
|
|
1615
|
+
name: z.ZodString;
|
|
1616
|
+
url: z.ZodString;
|
|
1617
|
+
}, z.core.$strip>;
|
|
1618
|
+
repositoryId: z.ZodString;
|
|
1619
|
+
repositoryName: z.ZodString;
|
|
1620
|
+
isHardDelete: z.ZodBoolean;
|
|
794
1621
|
}, z.core.$strip>;
|
|
795
1622
|
}, z.core.$strip>, z.ZodObject<{
|
|
796
|
-
eventType: z.ZodLiteral<"git.
|
|
1623
|
+
eventType: z.ZodLiteral<"git.repo.renamed">;
|
|
797
1624
|
resource: z.ZodObject<{
|
|
1625
|
+
oldName: z.ZodString;
|
|
1626
|
+
newName: z.ZodString;
|
|
798
1627
|
repository: z.ZodObject<{
|
|
799
1628
|
id: z.ZodString;
|
|
800
1629
|
name: z.ZodString;
|
|
@@ -806,31 +1635,11 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
806
1635
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
807
1636
|
remoteUrl: z.ZodString;
|
|
808
1637
|
}, z.core.$strip>;
|
|
809
|
-
pullRequestId: z.ZodNumber;
|
|
810
|
-
status: z.ZodEnum<{
|
|
811
|
-
all: "all";
|
|
812
|
-
active: "active";
|
|
813
|
-
notSet: "notSet";
|
|
814
|
-
abandoned: "abandoned";
|
|
815
|
-
completed: "completed";
|
|
816
|
-
}>;
|
|
817
|
-
title: z.ZodString;
|
|
818
|
-
sourceRefName: z.ZodString;
|
|
819
|
-
targetRefName: z.ZodString;
|
|
820
|
-
mergeStatus: z.ZodEnum<{
|
|
821
|
-
notSet: "notSet";
|
|
822
|
-
queued: "queued";
|
|
823
|
-
conflicts: "conflicts";
|
|
824
|
-
succeeded: "succeeded";
|
|
825
|
-
rejectedByPolicy: "rejectedByPolicy";
|
|
826
|
-
failure: "failure";
|
|
827
|
-
}>;
|
|
828
|
-
mergeId: z.ZodString;
|
|
829
|
-
url: z.ZodString;
|
|
830
1638
|
}, z.core.$strip>;
|
|
831
1639
|
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
-
eventType: z.ZodLiteral<"git.
|
|
1640
|
+
eventType: z.ZodLiteral<"git.repo.statuschanged">;
|
|
833
1641
|
resource: z.ZodObject<{
|
|
1642
|
+
disabled: z.ZodBoolean;
|
|
834
1643
|
repository: z.ZodObject<{
|
|
835
1644
|
id: z.ZodString;
|
|
836
1645
|
name: z.ZodString;
|
|
@@ -842,27 +1651,6 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
842
1651
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
843
1652
|
remoteUrl: z.ZodString;
|
|
844
1653
|
}, z.core.$strip>;
|
|
845
|
-
pullRequestId: z.ZodNumber;
|
|
846
|
-
status: z.ZodEnum<{
|
|
847
|
-
all: "all";
|
|
848
|
-
active: "active";
|
|
849
|
-
notSet: "notSet";
|
|
850
|
-
abandoned: "abandoned";
|
|
851
|
-
completed: "completed";
|
|
852
|
-
}>;
|
|
853
|
-
title: z.ZodString;
|
|
854
|
-
sourceRefName: z.ZodString;
|
|
855
|
-
targetRefName: z.ZodString;
|
|
856
|
-
mergeStatus: z.ZodEnum<{
|
|
857
|
-
notSet: "notSet";
|
|
858
|
-
queued: "queued";
|
|
859
|
-
conflicts: "conflicts";
|
|
860
|
-
succeeded: "succeeded";
|
|
861
|
-
rejectedByPolicy: "rejectedByPolicy";
|
|
862
|
-
failure: "failure";
|
|
863
|
-
}>;
|
|
864
|
-
mergeId: z.ZodString;
|
|
865
|
-
url: z.ZodString;
|
|
866
1654
|
}, z.core.$strip>;
|
|
867
1655
|
}, z.core.$strip>, z.ZodObject<{
|
|
868
1656
|
eventType: z.ZodLiteral<"ms.vss-code.git-pullrequest-comment-event">;
|
|
@@ -882,11 +1670,17 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
882
1670
|
pullRequestId: z.ZodNumber;
|
|
883
1671
|
status: z.ZodEnum<{
|
|
884
1672
|
all: "all";
|
|
885
|
-
active: "active";
|
|
886
1673
|
notSet: "notSet";
|
|
1674
|
+
active: "active";
|
|
887
1675
|
abandoned: "abandoned";
|
|
888
1676
|
completed: "completed";
|
|
889
1677
|
}>;
|
|
1678
|
+
createdBy: z.ZodObject<{
|
|
1679
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
}, z.core.$strip>;
|
|
890
1684
|
title: z.ZodString;
|
|
891
1685
|
sourceRefName: z.ZodString;
|
|
892
1686
|
targetRefName: z.ZodString;
|
|
@@ -902,8 +1696,8 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
902
1696
|
url: z.ZodString;
|
|
903
1697
|
}, z.core.$strip>;
|
|
904
1698
|
comment: z.ZodObject<{
|
|
905
|
-
id: z.ZodNumber
|
|
906
|
-
parentCommentId: z.
|
|
1699
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1700
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
907
1701
|
content: z.ZodString;
|
|
908
1702
|
commentType: z.ZodEnum<{
|
|
909
1703
|
unknown: "unknown";
|
|
@@ -911,309 +1705,17 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
911
1705
|
codeChange: "codeChange";
|
|
912
1706
|
system: "system";
|
|
913
1707
|
}>;
|
|
914
|
-
publishedDate: z.ZodString
|
|
915
|
-
author: z.
|
|
1708
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
author: z.ZodObject<{
|
|
916
1710
|
id: z.ZodOptional<z.ZodString>;
|
|
917
1711
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
918
1713
|
url: z.ZodOptional<z.ZodString>;
|
|
919
|
-
}, z.core.$strip
|
|
1714
|
+
}, z.core.$strip>;
|
|
920
1715
|
}, z.core.$strip>;
|
|
921
1716
|
}, z.core.$strip>;
|
|
922
1717
|
}, z.core.$strip>], "eventType">>;
|
|
923
1718
|
type AzdoEvent = z.infer<typeof AzdoEventSchema>;
|
|
924
1719
|
//#endregion
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* Pull request property names used to store metadata about the pull request.
|
|
928
|
-
* https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-properties
|
|
929
|
-
*/
|
|
930
|
-
declare const DEVOPS_PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME = "Microsoft.Git.PullRequest.SourceRefName";
|
|
931
|
-
declare const DEVOPS_PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER = "Dependabot.PackageManager";
|
|
932
|
-
declare const DEVOPS_PR_PROPERTY_DEPENDABOT_DEPENDENCIES = "Dependabot.Dependencies";
|
|
933
|
-
/** File change */
|
|
934
|
-
interface IFileChange {
|
|
935
|
-
changeType: AzdoVersionControlChangeType;
|
|
936
|
-
path: string;
|
|
937
|
-
content?: string;
|
|
938
|
-
encoding?: string;
|
|
939
|
-
}
|
|
940
|
-
/** Pull request properties */
|
|
941
|
-
interface IPullRequestProperties {
|
|
942
|
-
id: number;
|
|
943
|
-
properties?: {
|
|
944
|
-
name: string;
|
|
945
|
-
value: string;
|
|
946
|
-
}[];
|
|
947
|
-
}
|
|
948
|
-
/** Pull request creation request */
|
|
949
|
-
interface ICreatePullRequest {
|
|
950
|
-
project: string;
|
|
951
|
-
repository: string;
|
|
952
|
-
source: {
|
|
953
|
-
commit: string;
|
|
954
|
-
branch: string;
|
|
955
|
-
};
|
|
956
|
-
target: {
|
|
957
|
-
branch: string;
|
|
958
|
-
};
|
|
959
|
-
author?: {
|
|
960
|
-
email: string;
|
|
961
|
-
name: string;
|
|
962
|
-
};
|
|
963
|
-
title: string;
|
|
964
|
-
description: string;
|
|
965
|
-
commitMessage: string;
|
|
966
|
-
autoComplete?: {
|
|
967
|
-
ignorePolicyConfigIds?: number[];
|
|
968
|
-
mergeStrategy?: AzdoPullRequestMergeStrategy;
|
|
969
|
-
};
|
|
970
|
-
assignees?: string[];
|
|
971
|
-
labels?: string[];
|
|
972
|
-
workItems?: string[];
|
|
973
|
-
changes: IFileChange[];
|
|
974
|
-
properties?: {
|
|
975
|
-
name: string;
|
|
976
|
-
value: string;
|
|
977
|
-
}[];
|
|
978
|
-
}
|
|
979
|
-
/** Pull request update request */
|
|
980
|
-
interface IUpdatePullRequest {
|
|
981
|
-
project: string;
|
|
982
|
-
repository: string;
|
|
983
|
-
pullRequestId: number;
|
|
984
|
-
commit: string;
|
|
985
|
-
author?: {
|
|
986
|
-
email: string;
|
|
987
|
-
name: string;
|
|
988
|
-
};
|
|
989
|
-
changes: IFileChange[];
|
|
990
|
-
skipIfDraft?: boolean;
|
|
991
|
-
skipIfCommitsFromAuthorsOtherThan?: string;
|
|
992
|
-
skipIfNotBehindTargetBranch?: boolean;
|
|
993
|
-
}
|
|
994
|
-
/** Pull request approval request */
|
|
995
|
-
interface IApprovePullRequest {
|
|
996
|
-
project: string;
|
|
997
|
-
repository: string;
|
|
998
|
-
pullRequestId: number;
|
|
999
|
-
}
|
|
1000
|
-
/** Pull request abandon request */
|
|
1001
|
-
interface IAbandonPullRequest {
|
|
1002
|
-
project: string;
|
|
1003
|
-
repository: string;
|
|
1004
|
-
pullRequestId: number;
|
|
1005
|
-
comment?: string;
|
|
1006
|
-
deleteSourceBranch?: boolean;
|
|
1007
|
-
}
|
|
1008
|
-
/** Pull request comment */
|
|
1009
|
-
interface IPullRequestComment {
|
|
1010
|
-
project: string;
|
|
1011
|
-
repository: string;
|
|
1012
|
-
pullRequestId: number;
|
|
1013
|
-
content: string;
|
|
1014
|
-
userId?: string;
|
|
1015
|
-
}
|
|
1016
|
-
//#endregion
|
|
1017
|
-
//#region src/azure/url-parts.d.ts
|
|
1018
|
-
type AzureDevOpsOrganizationUrl = {
|
|
1019
|
-
/** URL of the organisation. This may lack the project name */
|
|
1020
|
-
value: URL;
|
|
1021
|
-
/** Organisation URL hostname */
|
|
1022
|
-
hostname: string;
|
|
1023
|
-
/** Organisation API endpoint URL */
|
|
1024
|
-
'api-endpoint': string;
|
|
1025
|
-
/** Organisation name/slug */
|
|
1026
|
-
organisation: string;
|
|
1027
|
-
/** Virtual directory if present (on-premises only) */
|
|
1028
|
-
'virtual-directory'?: string;
|
|
1029
|
-
/**
|
|
1030
|
-
* Organization Identity API URL (different from the API endpoint).
|
|
1031
|
-
* Used for querying user identities.
|
|
1032
|
-
*/
|
|
1033
|
-
'identity-api-url': URL;
|
|
1034
|
-
};
|
|
1035
|
-
type AzureDevOpsProjectUrl = AzureDevOpsOrganizationUrl & {
|
|
1036
|
-
/** Project ID or Name */
|
|
1037
|
-
project: string;
|
|
1038
|
-
};
|
|
1039
|
-
type AzureDevOpsRepositoryUrl = AzureDevOpsProjectUrl & {
|
|
1040
|
-
/** Repository ID or Name */
|
|
1041
|
-
repository: string;
|
|
1042
|
-
/** Slug of the repository e.g. `contoso/prj1/_git/repo1`, `tfs/contoso/prj1/_git/repo1` */
|
|
1043
|
-
'repository-slug': string;
|
|
1044
|
-
};
|
|
1045
|
-
declare function extractOrganizationUrl({
|
|
1046
|
-
organisationUrl
|
|
1047
|
-
}: {
|
|
1048
|
-
organisationUrl: string;
|
|
1049
|
-
}): AzureDevOpsOrganizationUrl;
|
|
1050
|
-
declare function extractProjectUrl({
|
|
1051
|
-
organisationUrl,
|
|
1052
|
-
project
|
|
1053
|
-
}: {
|
|
1054
|
-
organisationUrl: string;
|
|
1055
|
-
project: string;
|
|
1056
|
-
}): AzureDevOpsProjectUrl;
|
|
1057
|
-
declare function extractRepositoryUrl({
|
|
1058
|
-
organisationUrl,
|
|
1059
|
-
project,
|
|
1060
|
-
repository
|
|
1061
|
-
}: {
|
|
1062
|
-
organisationUrl: string;
|
|
1063
|
-
project: string;
|
|
1064
|
-
repository: string;
|
|
1065
|
-
}): AzureDevOpsRepositoryUrl;
|
|
1066
|
-
//#endregion
|
|
1067
|
-
//#region src/azure/client.d.ts
|
|
1068
|
-
/** Returned from AzureDevOpsWebApiClient.getUserId() when no user is authenticated */
|
|
1069
|
-
declare const ANONYMOUS_USER_ID = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa";
|
|
1070
|
-
/** Azure DevOps REST API client. */
|
|
1071
|
-
declare class AzureDevOpsWebApiClient {
|
|
1072
|
-
private readonly organisationApiUrl;
|
|
1073
|
-
private readonly identityApiUrl;
|
|
1074
|
-
private readonly accessToken;
|
|
1075
|
-
private readonly debug;
|
|
1076
|
-
private readonly client;
|
|
1077
|
-
private authenticatedUserId?;
|
|
1078
|
-
private resolvedUserIds;
|
|
1079
|
-
static API_VERSION: string;
|
|
1080
|
-
static API_VERSION_PREVIEW: string;
|
|
1081
|
-
constructor(url: AzureDevOpsOrganizationUrl, accessToken: string, debug?: boolean);
|
|
1082
|
-
/**
|
|
1083
|
-
* Get the identity of the authenticated user.
|
|
1084
|
-
* @returns
|
|
1085
|
-
*/
|
|
1086
|
-
getUserId(): Promise<string>;
|
|
1087
|
-
/**
|
|
1088
|
-
* Get the identity id from a user name, email, or group name.
|
|
1089
|
-
* Requires scope "Identity (Read)" (vso.identity).
|
|
1090
|
-
* @param userNameEmailOrGroupName
|
|
1091
|
-
* @returns
|
|
1092
|
-
*/
|
|
1093
|
-
resolveIdentityId(userNameEmailOrGroupName: string): Promise<string | undefined>;
|
|
1094
|
-
getProjects(): Promise<AzdoListResponse<AzdoProject[]> | undefined>;
|
|
1095
|
-
getProject(idOrName: string): Promise<AzdoProject | undefined>;
|
|
1096
|
-
getRepositories(projectIdOrName: string): Promise<AzdoListResponse<AzdoRepository[]> | undefined>;
|
|
1097
|
-
getRepository(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoRepository | undefined>;
|
|
1098
|
-
getRepositoryItem(projectIdOrName: string, repositoryIdOrName: string, path: string, includeContent?: boolean, latestProcessedChange?: boolean): Promise<AzdoRepositoryItem | undefined>;
|
|
1099
|
-
/**
|
|
1100
|
-
* Get the default branch for a repository.
|
|
1101
|
-
* Requires scope "Code (Read)" (vso.code).
|
|
1102
|
-
* @param project
|
|
1103
|
-
* @param repository
|
|
1104
|
-
* @returns
|
|
1105
|
-
*/
|
|
1106
|
-
getDefaultBranch(project: string, repository: string): Promise<string | undefined>;
|
|
1107
|
-
/**
|
|
1108
|
-
* Get the list of branch names for a repository.
|
|
1109
|
-
* Requires scope "Code (Read)" (vso.code).
|
|
1110
|
-
* @param project
|
|
1111
|
-
* @param repository
|
|
1112
|
-
* @returns
|
|
1113
|
-
*/
|
|
1114
|
-
getBranchNames(project: string, repository: string): Promise<string[] | undefined>;
|
|
1115
|
-
/**
|
|
1116
|
-
* Get the properties for all active pull request created by the supplied user.
|
|
1117
|
-
* Requires scope "Code (Read)" (vso.code).
|
|
1118
|
-
* @param project
|
|
1119
|
-
* @param repository
|
|
1120
|
-
* @param creator
|
|
1121
|
-
* @returns
|
|
1122
|
-
*/
|
|
1123
|
-
getActivePullRequestProperties(project: string, repository: string, creator: string): Promise<IPullRequestProperties[]>;
|
|
1124
|
-
/**
|
|
1125
|
-
* Create a new pull request.
|
|
1126
|
-
* Requires scope "Code (Write)" (vso.code_write).
|
|
1127
|
-
* Requires scope "Identity (Read)" (vso.identity), if assignees are specified.
|
|
1128
|
-
* @param pr
|
|
1129
|
-
* @returns
|
|
1130
|
-
*/
|
|
1131
|
-
createPullRequest(pr: ICreatePullRequest): Promise<number | null>;
|
|
1132
|
-
/**
|
|
1133
|
-
* Update a pull request.
|
|
1134
|
-
* Requires scope "Code (Read & Write)" (vso.code, vso.code_write).
|
|
1135
|
-
* @param pr
|
|
1136
|
-
* @returns
|
|
1137
|
-
*/
|
|
1138
|
-
updatePullRequest(pr: IUpdatePullRequest): Promise<boolean>;
|
|
1139
|
-
/**
|
|
1140
|
-
* Approve a pull request.
|
|
1141
|
-
* Requires scope "Code (Write)" (vso.code_write).
|
|
1142
|
-
* @param pr
|
|
1143
|
-
* @returns
|
|
1144
|
-
*/
|
|
1145
|
-
approvePullRequest(pr: IApprovePullRequest): Promise<boolean>;
|
|
1146
|
-
/**
|
|
1147
|
-
* Abandon a pull request.
|
|
1148
|
-
* Requires scope "Code (Write)" (vso.code_write).
|
|
1149
|
-
* @param pr
|
|
1150
|
-
* @returns
|
|
1151
|
-
*/
|
|
1152
|
-
abandonPullRequest(pr: IAbandonPullRequest): Promise<boolean>;
|
|
1153
|
-
/**
|
|
1154
|
-
* Add a comment thread on a pull request.
|
|
1155
|
-
* Requires scope "Code (Write)" (vso.code_write).
|
|
1156
|
-
*/
|
|
1157
|
-
addCommentThread(comment: IPullRequestComment): Promise<number | undefined>;
|
|
1158
|
-
private makeUrl;
|
|
1159
|
-
private createClient;
|
|
1160
|
-
}
|
|
1161
|
-
//#endregion
|
|
1162
|
-
//#region src/azure/config.d.ts
|
|
1163
|
-
/**
|
|
1164
|
-
* Parse the dependabot config YAML file to specify update configuration.
|
|
1165
|
-
* The file should be located at any of `POSSIBLE_CONFIG_FILE_PATHS`.
|
|
1166
|
-
*
|
|
1167
|
-
* To view YAML file format, visit
|
|
1168
|
-
* https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#allow
|
|
1169
|
-
*
|
|
1170
|
-
* @returns {DependabotConfig} config - the dependabot configuration
|
|
1171
|
-
*/
|
|
1172
|
-
declare function getDependabotConfig({
|
|
1173
|
-
url,
|
|
1174
|
-
token,
|
|
1175
|
-
remote,
|
|
1176
|
-
rootDir,
|
|
1177
|
-
variableFinder
|
|
1178
|
-
}: {
|
|
1179
|
-
url: AzureDevOpsRepositoryUrl;
|
|
1180
|
-
token: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* Whether to fetch the configuration file via the REST API (true) or look for it locally (false).
|
|
1183
|
-
*/
|
|
1184
|
-
remote: boolean;
|
|
1185
|
-
rootDir?: string;
|
|
1186
|
-
variableFinder: VariableFinderFn;
|
|
1187
|
-
}): Promise<DependabotConfig>;
|
|
1188
|
-
//#endregion
|
|
1189
|
-
//#region src/azure/utils.d.ts
|
|
1190
|
-
declare function normalizeFilePath(path: string): string;
|
|
1191
|
-
declare function normalizeBranchName(branch: string): string;
|
|
1192
|
-
declare function normalizeBranchName(branch?: string): string | undefined;
|
|
1193
|
-
declare const DependenciesPrPropertySchema: zod0.ZodUnion<[zod0.ZodArray<zod0.ZodObject<{
|
|
1194
|
-
'dependency-name': zod0.ZodString;
|
|
1195
|
-
'dependency-version': zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1196
|
-
directory: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1197
|
-
removed: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodBoolean>>;
|
|
1198
|
-
}, zod_v4_core0.$strip>>, zod0.ZodObject<{
|
|
1199
|
-
'dependency-group-name': zod0.ZodString;
|
|
1200
|
-
dependencies: zod0.ZodArray<zod0.ZodObject<{
|
|
1201
|
-
'dependency-name': zod0.ZodString;
|
|
1202
|
-
'dependency-version': zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1203
|
-
directory: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1204
|
-
removed: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodBoolean>>;
|
|
1205
|
-
}, zod_v4_core0.$strip>>;
|
|
1206
|
-
}, zod_v4_core0.$strip>]>;
|
|
1207
|
-
declare function buildPullRequestProperties(packageManager: string, dependencies: DependabotExistingPR[] | DependabotExistingGroupPR): {
|
|
1208
|
-
name: string;
|
|
1209
|
-
value: string;
|
|
1210
|
-
}[];
|
|
1211
|
-
declare function parsePullRequestProperties(pullRequests: IPullRequestProperties[], packageManager: string | null): Record<string, DependabotExistingPR[] | DependabotExistingGroupPR>;
|
|
1212
|
-
declare function getPullRequestForDependencyNames(existingPullRequests: IPullRequestProperties[], packageManager: string, dependencyNames: string[]): IPullRequestProperties | undefined;
|
|
1213
|
-
declare function getPullRequestChangedFilesForOutputData(data: DependabotCreatePullRequest | DependabotUpdatePullRequest): IFileChange[];
|
|
1214
|
-
declare function getPullRequestCloseReasonForOutputData(data: DependabotClosePullRequest): string | undefined;
|
|
1215
|
-
declare function getPullRequestDependenciesPropertyValueForOutputData(data: DependabotCreatePullRequest): DependabotExistingPR[] | DependabotExistingGroupPR;
|
|
1216
|
-
declare function getPullRequestDescription(packageManager: string, body: string | null | undefined, dependencies: DependabotDependency[]): string;
|
|
1217
|
-
//#endregion
|
|
1218
|
-
export { ANONYMOUS_USER_ID, AZDO_PULL_REQUEST_MERGE_STRATEGIES, AdoProperties, AdoPropertiesSchema, AzdoCommentThreadStatus, AzdoCommentThreadStatusSchema, AzdoCommentType, AzdoCommentTypeSchema, AzdoConnectionData, AzdoConnectionDataSchema, AzdoEvent, AzdoEventCodePushResource, AzdoEventCodePushResourceSchema, AzdoEventPullRequestCommentEventResource, AzdoEventPullRequestCommentEventResourceSchema, AzdoEventPullRequestResource, AzdoEventPullRequestResourceSchema, AzdoEventRepositorySchema, AzdoEventSchema, AzdoEventType, AzdoEventTypeSchema, AzdoGitBranchStats, AzdoGitBranchStatsSchema, AzdoGitChange, AzdoGitChangeSchema, AzdoGitCommitRef, AzdoGitCommitRefSchema, AzdoGitPush, AzdoGitPushCreate, AzdoGitPushCreateSchema, AzdoGitPushSchema, AzdoGitRef, AzdoGitRefSchema, AzdoGitRefUpdateResult, AzdoGitRefUpdateResultSchema, AzdoGitUserDate, AzdoGitUserDateSchema, AzdoIdentity, AzdoIdentityRef, AzdoIdentityRefSchema, AzdoIdentityRefWithVote, AzdoIdentityRefWithVoteSchema, AzdoIdentitySchema, AzdoListResponse, AzdoProject, AzdoProjectSchema, AzdoPullRequest, AzdoPullRequestAsyncStatus, AzdoPullRequestAsyncStatusSchema, AzdoPullRequestComment, AzdoPullRequestCommentSchema, AzdoPullRequestCommentThread, AzdoPullRequestCommentThreadSchema, AzdoPullRequestMergeStrategy, AzdoPullRequestMergeStrategySchema, AzdoPullRequestSchema, AzdoPullRequestStatus, AzdoPullRequestStatusSchema, AzdoRepository, AzdoRepositoryItem, AzdoRepositoryItemSchema, AzdoRepositorySchema, AzdoSubscription, AzdoSubscriptionSchema, AzdoSubscriptionsQuery, AzdoSubscriptionsQueryInputFilter, AzdoSubscriptionsQueryInputFilterSchema, AzdoSubscriptionsQueryResponse, AzdoSubscriptionsQueryResponseSchema, AzdoSubscriptionsQuerySchema, AzdoVersionControlChangeType, AzdoVersionControlChangeTypeSchema, type AzureDevOpsOrganizationUrl, type AzureDevOpsProjectUrl, type AzureDevOpsRepositoryUrl, AzureDevOpsWebApiClient, DEVOPS_PR_PROPERTY_DEPENDABOT_DEPENDENCIES, DEVOPS_PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER, DEVOPS_PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME, DependenciesPrPropertySchema, IAbandonPullRequest, IApprovePullRequest, ICreatePullRequest, IFileChange, IPullRequestComment, IPullRequestProperties, IUpdatePullRequest, buildPullRequestProperties, extractOrganizationUrl, extractProjectUrl, extractRepositoryUrl, getDependabotConfig, getPullRequestChangedFilesForOutputData, getPullRequestCloseReasonForOutputData, getPullRequestDependenciesPropertyValueForOutputData, getPullRequestDescription, getPullRequestForDependencyNames, normalizeBranchName, normalizeFilePath, parsePullRequestProperties };
|
|
1720
|
+
export { ANONYMOUS_USER_ID, API_VERSION, API_VERSION_PREVIEW, AZDO_PULL_REQUEST_MERGE_STRATEGIES, AzdoCommentThreadStatus, AzdoCommentThreadStatusSchema, AzdoCommentType, AzdoCommentTypeSchema, AzdoConnectionData, AzdoConnectionDataSchema, AzdoEvent, AzdoEventCodePushResource, AzdoEventCodePushResourceSchema, AzdoEventPullRequestCommentEventResource, AzdoEventPullRequestCommentEventResourceSchema, AzdoEventPullRequestResource, AzdoEventPullRequestResourceSchema, AzdoEventRepositoryCreatedResource, AzdoEventRepositoryCreatedResourceSchema, AzdoEventRepositoryDeletedResource, AzdoEventRepositoryDeletedResourceSchema, AzdoEventRepositoryRenamedResource, AzdoEventRepositoryRenamedResourceSchema, AzdoEventRepositorySchema, AzdoEventRepositoryStatusChangedResource, AzdoEventRepositoryStatusChangedResourceSchema, AzdoEventSchema, AzdoEventType, AzdoEventTypeSchema, AzdoFileChange, AzdoGitBranchStats, AzdoGitBranchStatsSchema, AzdoGitChange, AzdoGitChangeSchema, AzdoGitCommitDiffs, AzdoGitCommitDiffsSchema, AzdoGitCommitRef, AzdoGitCommitRefSchema, AzdoGitPush, AzdoGitPushCreate, AzdoGitPushCreateSchema, AzdoGitPushSchema, AzdoGitRef, AzdoGitRefSchema, AzdoGitRefUpdate, AzdoGitRefUpdateResult, AzdoGitRefUpdateResultSchema, AzdoGitRefUpdateSchema, AzdoGitUserDate, AzdoGitUserDateSchema, AzdoIdentity, AzdoIdentityRef, AzdoIdentityRefSchema, AzdoIdentityRefWithVote, AzdoIdentityRefWithVoteSchema, AzdoIdentitySchema, AzdoPrExtractedWithProperties, AzdoProject, AzdoProjectSchema, AzdoProperties, AzdoPropertiesSchema, AzdoPullRequest, AzdoPullRequestAsyncStatus, AzdoPullRequestAsyncStatusSchema, AzdoPullRequestComment, AzdoPullRequestCommentSchema, AzdoPullRequestCommentThread, AzdoPullRequestCommentThreadSchema, AzdoPullRequestMergeStrategy, AzdoPullRequestMergeStrategySchema, AzdoPullRequestSchema, AzdoPullRequestStatus, AzdoPullRequestStatusSchema, AzdoRepository, AzdoRepositoryItem, AzdoRepositoryItemSchema, AzdoRepositorySchema, AzdoResponse, AzdoSubscription, AzdoSubscriptionSchema, AzdoSubscriptionsQuery, AzdoSubscriptionsQueryInputFilter, AzdoSubscriptionsQueryInputFilterSchema, AzdoSubscriptionsQueryResponse, AzdoSubscriptionsQueryResponseSchema, AzdoSubscriptionsQuerySchema, AzdoVersionControlChangeType, AzdoVersionControlChangeTypeSchema, AzureDevOpsClient, AzureDevOpsClientWrapper, type AzureDevOpsOrganizationUrl, type AzureDevOpsProjectUrl, type AzureDevOpsRepositoryUrl, PR_DESCRIPTION_MAX_LENGTH, PR_PROPERTY_DEPENDABOT_DEPENDENCIES, PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER, PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME, buildPullRequestProperties, extractOrganizationUrl, extractProjectUrl, extractRepositoryUrl, getDependabotConfig, getPullRequestChangedFiles, getPullRequestForDependencyNames, parsePullRequestProperties };
|
|
1219
1721
|
//# sourceMappingURL=index.d.mts.map
|