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