@forge/teamwork-graph 4.0.1-next.0-experimental-1dcd593 → 4.1.0-next.1
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.
|
@@ -560,7 +560,51 @@ describe('TeamWorkGraphClient - bulk entities', () => {
|
|
|
560
560
|
]
|
|
561
561
|
}
|
|
562
562
|
],
|
|
563
|
-
'atlassian:branch': {
|
|
563
|
+
'atlassian:branch': {
|
|
564
|
+
createPullRequestUrl: 'https://github.com/org/repo/compare/feature-branch?expand=1',
|
|
565
|
+
lastCommit: {
|
|
566
|
+
schemaVersion: '2.0',
|
|
567
|
+
id: 'commit-abc123',
|
|
568
|
+
updateSequenceNumber: 1,
|
|
569
|
+
displayName: 'Latest commit on feature-branch',
|
|
570
|
+
description: 'Add new feature implementation',
|
|
571
|
+
url: 'https://github.com/org/repo/commit/abc123',
|
|
572
|
+
createdAt: '2024-07-09T14:27:37.000Z',
|
|
573
|
+
lastUpdatedAt: '2024-07-09T14:27:37.000Z',
|
|
574
|
+
containerKey: {
|
|
575
|
+
type: 'atlassian:repository',
|
|
576
|
+
value: {
|
|
577
|
+
repositoryId: 'repo-1'
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
permissions: [
|
|
581
|
+
{
|
|
582
|
+
accessControls: [
|
|
583
|
+
{
|
|
584
|
+
principals: [
|
|
585
|
+
{
|
|
586
|
+
type: 'EVERYONE'
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
'atlassian:commit': {
|
|
594
|
+
flags: [],
|
|
595
|
+
fileCount: 2,
|
|
596
|
+
files: [
|
|
597
|
+
{
|
|
598
|
+
path: 'src/index.ts',
|
|
599
|
+
url: 'https://github.com/org/repo/blob/abc123/src/index.ts',
|
|
600
|
+
changeType: 'MODIFIED',
|
|
601
|
+
linesAdded: 10,
|
|
602
|
+
linesRemoved: 5
|
|
603
|
+
}
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
564
608
|
};
|
|
565
609
|
const req = { objects: [branchObject], connectionId: TEST_CONNECTION_ID };
|
|
566
610
|
const backendResponse = {
|
|
@@ -2,8 +2,8 @@ import { BaseObjectProperties, ContainerKeyObject } from './common';
|
|
|
2
2
|
import { CommitObject } from './commit';
|
|
3
3
|
export declare type BranchAttributes = {
|
|
4
4
|
name?: string;
|
|
5
|
-
lastCommit
|
|
6
|
-
createPullRequestUrl
|
|
5
|
+
lastCommit: CommitObject;
|
|
6
|
+
createPullRequestUrl: string;
|
|
7
7
|
};
|
|
8
8
|
export declare type BranchObject = BaseObjectProperties & {
|
|
9
9
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../../src/types/objects/branch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,
|
|
1
|
+
{"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../../src/types/objects/branch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,YAAY,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,oBAAY,YAAY,GAAG,oBAAoB,GAAG;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,kBAAkB,GAAG;QAAE,IAAI,EAAE,sBAAsB,CAAA;KAAE,CAAC;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,CAAC;IAC9D,kBAAkB,EAAE,gBAAgB,CAAC;CACtC,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare type PullRequestAttributes = {
|
|
|
18
18
|
commentCount?: number;
|
|
19
19
|
sourceBranch: string;
|
|
20
20
|
sourceBranchUrl?: string;
|
|
21
|
-
destinationBranch
|
|
21
|
+
destinationBranch: string;
|
|
22
22
|
destinationBranchUrl?: string;
|
|
23
23
|
reviewers: Reviewer[];
|
|
24
24
|
taskCount?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull-request.d.ts","sourceRoot":"","sources":["../../../src/types/objects/pull-request.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEnF,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,WAAW,CAAC;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,oBAAY,iBAAiB,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAErF,oBAAY,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM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CAAA;KAAE,CAAC;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,CAAC;IAC9D,wBAAwB,EAAE,qBAAqB,CAAC;CACjD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/teamwork-graph",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0-next.1",
|
|
4
4
|
"description": "Forge TeamworkGraph SDK",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"jest-when": "^3.6.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@forge/api": "^7.0.2-next.0
|
|
26
|
+
"@forge/api": "^7.0.2-next.0",
|
|
27
27
|
"uuid": "^9.0.1"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|