@forge/teamwork-graph 3.0.0-next.1 → 3.0.0-next.2
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/out/__test__/entity-operations.test.js +14 -1
- package/out/types/objects/branch.d.ts +4 -1
- package/out/types/objects/branch.d.ts.map +1 -1
- package/out/types/objects/commit.d.ts +4 -1
- package/out/types/objects/commit.d.ts.map +1 -1
- package/out/types/objects/common.d.ts +3 -6
- package/out/types/objects/common.d.ts.map +1 -1
- package/out/types/objects/test-execution.d.ts +2 -1
- package/out/types/objects/test-execution.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -653,6 +653,12 @@ describe('TeamWorkGraphClient - bulk entities', () => {
|
|
|
653
653
|
url: 'https://github.com/org/repo/tree/feature-branch',
|
|
654
654
|
createdAt: '2024-07-09T14:27:37.000Z',
|
|
655
655
|
lastUpdatedAt: '2024-07-09T14:27:37.000Z',
|
|
656
|
+
containerKey: {
|
|
657
|
+
type: 'atlassian:repository',
|
|
658
|
+
value: {
|
|
659
|
+
repositoryId: 'repo-1'
|
|
660
|
+
}
|
|
661
|
+
},
|
|
656
662
|
permissions: [
|
|
657
663
|
{
|
|
658
664
|
accessControls: [
|
|
@@ -699,6 +705,12 @@ describe('TeamWorkGraphClient - bulk entities', () => {
|
|
|
699
705
|
url: 'https://github.com/org/repo/commit/abc123',
|
|
700
706
|
createdAt: '2024-07-09T14:27:37.000Z',
|
|
701
707
|
lastUpdatedAt: '2024-07-09T14:27:37.000Z',
|
|
708
|
+
containerKey: {
|
|
709
|
+
type: 'atlassian:repository',
|
|
710
|
+
value: {
|
|
711
|
+
repositoryId: 'repo-1'
|
|
712
|
+
}
|
|
713
|
+
},
|
|
702
714
|
permissions: [
|
|
703
715
|
{
|
|
704
716
|
accessControls: [
|
|
@@ -2206,7 +2218,8 @@ describe('TeamWorkGraphClient - bulk entities', () => {
|
|
|
2206
2218
|
'atlassian:test-execution': {
|
|
2207
2219
|
status: 'passed',
|
|
2208
2220
|
version: '1.2.0',
|
|
2209
|
-
environment: 'staging'
|
|
2221
|
+
environment: 'staging',
|
|
2222
|
+
testType: 'unit'
|
|
2210
2223
|
}
|
|
2211
2224
|
};
|
|
2212
2225
|
const req = { objects: [testExecutionObject] };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObjectProperties } from './common';
|
|
1
|
+
import { BaseObjectProperties, ContainerKeyObject } from './common';
|
|
2
2
|
import { CommitObject } from './commit';
|
|
3
3
|
export declare type BranchAttributes = {
|
|
4
4
|
name?: string;
|
|
@@ -7,6 +7,9 @@ export declare type BranchAttributes = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare type BranchObject = BaseObjectProperties & {
|
|
9
9
|
displayName: string;
|
|
10
|
+
containerKey: ContainerKeyObject & {
|
|
11
|
+
type: 'atlassian:repository';
|
|
12
|
+
};
|
|
10
13
|
lastUpdatedAt: string;
|
|
11
14
|
permissions: NonNullable<BaseObjectProperties['permissions']>;
|
|
12
15
|
'atlassian:branch': BranchAttributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../../src/types/objects/branch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
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,CAAC,EAAE,YAAY,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObjectProperties, UserReference } from './common';
|
|
1
|
+
import { BaseObjectProperties, ContainerKeyObject, UserReference } from './common';
|
|
2
2
|
export declare type FileInfo = {
|
|
3
3
|
path: string;
|
|
4
4
|
url: string;
|
|
@@ -18,6 +18,9 @@ export declare type CommitAttributes = {
|
|
|
18
18
|
};
|
|
19
19
|
export declare type CommitObject = BaseObjectProperties & {
|
|
20
20
|
displayName: string;
|
|
21
|
+
containerKey: ContainerKeyObject & {
|
|
22
|
+
type: 'atlassian:repository';
|
|
23
|
+
};
|
|
21
24
|
lastUpdatedAt: string;
|
|
22
25
|
permissions: NonNullable<BaseObjectProperties['permissions']>;
|
|
23
26
|
'atlassian:commit': CommitAttributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit.d.ts","sourceRoot":"","sources":["../../../src/types/objects/commit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"commit.d.ts","sourceRoot":"","sources":["../../../src/types/objects/commit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEnF,oBAAY,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,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"}
|
|
@@ -14,15 +14,11 @@ export declare type Permissions = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare type ContainerKeyObject = {
|
|
16
16
|
type: string;
|
|
17
|
-
value:
|
|
18
|
-
entityId: string;
|
|
19
|
-
};
|
|
17
|
+
value: Record<string, string>;
|
|
20
18
|
};
|
|
21
19
|
export declare type ParentKeyObject = {
|
|
22
20
|
type: string;
|
|
23
|
-
value:
|
|
24
|
-
entityId: string;
|
|
25
|
-
};
|
|
21
|
+
value: Record<string, string>;
|
|
26
22
|
};
|
|
27
23
|
export declare type BaseObjectProperties = {
|
|
28
24
|
schemaVersion: string;
|
|
@@ -48,6 +44,7 @@ export declare type AssociationObject = {
|
|
|
48
44
|
values: string[];
|
|
49
45
|
};
|
|
50
46
|
export declare type Associations = {
|
|
47
|
+
updateSequenceNumber?: number;
|
|
51
48
|
lastUpdatedAt: string;
|
|
52
49
|
set: AssociationObject[];
|
|
53
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/objects/common.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvC,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,qBAAqB,GAAG,WAAW,CAAC;IAC1E,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC,CAAC;AAGF,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/objects/common.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvC,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,qBAAqB,GAAG,WAAW,CAAC;IAC1E,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC,CAAC;AAGF,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,oBAAY,eAAe,GA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,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BaseObjectProperties } from './common';
|
|
2
2
|
export declare type TestExecutionAttributes = {
|
|
3
|
-
status
|
|
3
|
+
status: string;
|
|
4
4
|
version?: string;
|
|
5
5
|
environment?: string;
|
|
6
|
+
testType: string;
|
|
6
7
|
};
|
|
7
8
|
export declare type TestExecutionObject = BaseObjectProperties & {
|
|
8
9
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-execution.d.ts","sourceRoot":"","sources":["../../../src/types/objects/test-execution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,oBAAY,uBAAuB,GAAG;IACpC,MAAM,
|
|
1
|
+
{"version":3,"file":"test-execution.d.ts","sourceRoot":"","sources":["../../../src/types/objects/test-execution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,oBAAY,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,mBAAmB,GAAG,oBAAoB,GAAG;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,CAAC;IAC9D,0BAA0B,EAAE,uBAAuB,CAAC;CACrD,CAAC"}
|