@forge/teamwork-graph 2.2.0-next.1 → 2.2.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.
@@ -418,6 +418,16 @@ describe('TeamWorkGraphClient - deleteObjectsByProperties', () => {
418
418
  it('should throw error when properties object is empty', async () => {
419
419
  await expect(graphClient.deleteObjectsByProperties({})).rejects.toThrow('properties object cannot be empty');
420
420
  });
421
+ });
422
+ describe('TeamWorkGraphClient - bulk entities', () => {
423
+ let graphClient;
424
+ let mockFetch;
425
+ beforeEach(() => {
426
+ graphClient = new graph_1.TeamWorkGraphClient();
427
+ mockFetch = jest.fn();
428
+ api_1.__fetchProduct.mockReturnValue(mockFetch);
429
+ jest.clearAllMocks();
430
+ });
421
431
  it('posts branch entities to /api/v1/entities/bulk and returns response', async () => {
422
432
  const branchObject = {
423
433
  schemaVersion: '2.0',
@@ -1677,4 +1687,214 @@ describe('TeamWorkGraphClient - deleteObjectsByProperties', () => {
1677
1687
  expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.ENTITIES.BULK), expect.objectContaining({ method: 'POST' }));
1678
1688
  expect(result).toEqual(expected);
1679
1689
  });
1690
+ it('posts dashboard entities to /api/v1/entities/bulk and returns response', async () => {
1691
+ const dashboardObject = {
1692
+ schemaVersion: '2.0',
1693
+ id: 'dashboard-1',
1694
+ updateSequenceNumber: 1,
1695
+ displayName: 'Analytics Dashboard',
1696
+ description: 'Main analytics dashboard for sales data',
1697
+ url: 'https://analytics.example.com/dashboard/sales',
1698
+ createdAt: '2024-07-09T14:27:37.000Z',
1699
+ lastUpdatedAt: '2024-07-09T14:27:37.000Z',
1700
+ permissions: [
1701
+ {
1702
+ accessControls: [
1703
+ {
1704
+ principals: [
1705
+ {
1706
+ type: 'EVERYONE'
1707
+ }
1708
+ ]
1709
+ }
1710
+ ]
1711
+ }
1712
+ ],
1713
+ 'atlassian:dashboard': {
1714
+ description: 'Real-time sales analytics and performance metrics',
1715
+ workspaceName: 'Sales Analytics Workspace',
1716
+ pages: [{ name: 'Overview' }, { name: 'Sales Metrics' }],
1717
+ elements: [
1718
+ {
1719
+ name: 'Revenue Chart',
1720
+ innerComponents: ['chart-widget', 'filter-panel']
1721
+ }
1722
+ ]
1723
+ }
1724
+ };
1725
+ const req = { objects: [dashboardObject] };
1726
+ const expected = { success: true, results: [{ objectId: 'dashboard-1', success: true }] };
1727
+ mockFetch.mockResolvedValueOnce({
1728
+ ok: true,
1729
+ json: () => Promise.resolve(expected)
1730
+ });
1731
+ const result = await graphClient.setObjects(req);
1732
+ expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.ENTITIES.BULK), expect.objectContaining({ method: 'POST' }));
1733
+ expect(result).toEqual(expected);
1734
+ });
1735
+ it('posts test entities to /api/v1/entities/bulk and returns response', async () => {
1736
+ const testObject = {
1737
+ schemaVersion: '2.0',
1738
+ id: 'test-1',
1739
+ updateSequenceNumber: 1,
1740
+ displayName: 'Login API Test',
1741
+ description: 'Test case for user login API endpoint',
1742
+ url: 'https://testmanagement.example.com/tests/login-api',
1743
+ createdAt: '2024-07-09T14:27:37.000Z',
1744
+ lastUpdatedAt: '2024-07-09T14:27:37.000Z',
1745
+ permissions: [
1746
+ {
1747
+ accessControls: [
1748
+ {
1749
+ principals: [
1750
+ {
1751
+ type: 'EVERYONE'
1752
+ }
1753
+ ]
1754
+ }
1755
+ ]
1756
+ }
1757
+ ],
1758
+ 'atlassian:test': {
1759
+ status: 'active',
1760
+ testType: 'integration',
1761
+ statusPrecedence: 'high',
1762
+ version: '1.2.0',
1763
+ environment: 'staging'
1764
+ }
1765
+ };
1766
+ const req = { objects: [testObject] };
1767
+ const expected = { success: true, results: [{ objectId: 'test-1', success: true }] };
1768
+ mockFetch.mockResolvedValueOnce({
1769
+ ok: true,
1770
+ json: () => Promise.resolve(expected)
1771
+ });
1772
+ const result = await graphClient.setObjects(req);
1773
+ expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.ENTITIES.BULK), expect.objectContaining({ method: 'POST' }));
1774
+ expect(result).toEqual(expected);
1775
+ });
1776
+ it('posts test execution entities to /api/v1/entities/bulk and returns response', async () => {
1777
+ const testExecutionObject = {
1778
+ schemaVersion: '2.0',
1779
+ id: 'test-execution-1',
1780
+ updateSequenceNumber: 1,
1781
+ displayName: 'Login API Test Execution - Run #42',
1782
+ description: 'Execution of login API test in staging environment',
1783
+ url: 'https://testmanagement.example.com/executions/login-api-42',
1784
+ createdAt: '2024-07-09T14:27:37.000Z',
1785
+ lastUpdatedAt: '2024-07-09T14:27:37.000Z',
1786
+ permissions: [
1787
+ {
1788
+ accessControls: [
1789
+ {
1790
+ principals: [
1791
+ {
1792
+ type: 'EVERYONE'
1793
+ }
1794
+ ]
1795
+ }
1796
+ ]
1797
+ }
1798
+ ],
1799
+ 'atlassian:test-execution': {
1800
+ status: 'passed',
1801
+ version: '1.2.0',
1802
+ environment: 'staging'
1803
+ }
1804
+ };
1805
+ const req = { objects: [testExecutionObject] };
1806
+ const expected = { success: true, results: [{ objectId: 'test-execution-1', success: true }] };
1807
+ mockFetch.mockResolvedValueOnce({
1808
+ ok: true,
1809
+ json: () => Promise.resolve(expected)
1810
+ });
1811
+ const result = await graphClient.setObjects(req);
1812
+ expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.ENTITIES.BULK), expect.objectContaining({ method: 'POST' }));
1813
+ expect(result).toEqual(expected);
1814
+ });
1815
+ it('posts test plan entities to /api/v1/entities/bulk and returns response', async () => {
1816
+ const testPlanObject = {
1817
+ schemaVersion: '2.0',
1818
+ id: 'test-plan-1',
1819
+ updateSequenceNumber: 1,
1820
+ displayName: 'Q4 Release Test Plan',
1821
+ description: 'Comprehensive test plan for Q4 release cycle',
1822
+ url: 'https://testmanagement.example.com/plans/q4-release',
1823
+ createdAt: '2024-07-09T14:27:37.000Z',
1824
+ lastUpdatedAt: '2024-07-09T14:27:37.000Z',
1825
+ permissions: [
1826
+ {
1827
+ accessControls: [
1828
+ {
1829
+ principals: [
1830
+ {
1831
+ type: 'EVERYONE'
1832
+ }
1833
+ ]
1834
+ }
1835
+ ]
1836
+ }
1837
+ ],
1838
+ 'atlassian:test-plan': {}
1839
+ };
1840
+ const req = { objects: [testPlanObject] };
1841
+ const expected = { success: true, results: [{ objectId: 'test-plan-1', success: true }] };
1842
+ mockFetch.mockResolvedValueOnce({
1843
+ ok: true,
1844
+ json: () => Promise.resolve(expected)
1845
+ });
1846
+ const result = await graphClient.setObjects(req);
1847
+ expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.ENTITIES.BULK), expect.objectContaining({ method: 'POST' }));
1848
+ expect(result).toEqual(expected);
1849
+ });
1850
+ it('posts test run entities to /api/v1/entities/bulk and returns response', async () => {
1851
+ const testRunObject = {
1852
+ schemaVersion: '2.0',
1853
+ id: 'test-run-1',
1854
+ updateSequenceNumber: 1,
1855
+ displayName: 'Sprint 23 Regression Test Run',
1856
+ description: 'Regression test run for sprint 23 release candidate',
1857
+ url: 'https://testmanagement.example.com/runs/sprint-23-regression',
1858
+ createdAt: '2024-07-09T14:27:37.000Z',
1859
+ lastUpdatedAt: '2024-07-09T14:27:37.000Z',
1860
+ permissions: [
1861
+ {
1862
+ accessControls: [
1863
+ {
1864
+ principals: [
1865
+ {
1866
+ type: 'EVERYONE'
1867
+ }
1868
+ ]
1869
+ }
1870
+ ]
1871
+ }
1872
+ ],
1873
+ 'atlassian:test-run': {
1874
+ status: 'in-progress',
1875
+ assignee: {
1876
+ accountId: 'tester-alice-123',
1877
+ externalId: 'alice-tester-456',
1878
+ name: 'Alice Tester',
1879
+ userName: 'atester',
1880
+ email: 'alice.tester@example.com',
1881
+ avatar: 'https://avatar.example.com/alice.jpg',
1882
+ url: 'https://company.com/people/alice.tester',
1883
+ ari: 'ari:cloud:identity::user/tester-alice-123'
1884
+ },
1885
+ startedAt: '2024-07-09T09:00:00.000Z',
1886
+ version: '1.2.0',
1887
+ environment: 'staging'
1888
+ }
1889
+ };
1890
+ const req = { objects: [testRunObject] };
1891
+ const expected = { success: true, results: [{ objectId: 'test-run-1', success: true }] };
1892
+ mockFetch.mockResolvedValueOnce({
1893
+ ok: true,
1894
+ json: () => Promise.resolve(expected)
1895
+ });
1896
+ const result = await graphClient.setObjects(req);
1897
+ expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.ENTITIES.BULK), expect.objectContaining({ method: 'POST' }));
1898
+ expect(result).toEqual(expected);
1899
+ });
1680
1900
  });
@@ -0,0 +1,22 @@
1
+ import { BaseObjectProperties } from './common';
2
+ export interface DashboardElement {
3
+ name: string;
4
+ innerComponents?: string[];
5
+ }
6
+ export interface DashboardPage {
7
+ name: string;
8
+ }
9
+ export declare type DashboardAttributes = {
10
+ description?: string;
11
+ elements?: DashboardElement[];
12
+ pages?: DashboardPage[];
13
+ workspaceName?: string;
14
+ };
15
+ export declare type DashboardObject = BaseObjectProperties & {
16
+ displayName: string;
17
+ description: string;
18
+ lastUpdatedAt: string;
19
+ permissions: NonNullable<BaseObjectProperties['permissions']>;
20
+ 'atlassian:dashboard': DashboardAttributes;
21
+ };
22
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../src/types/objects/dashboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oBAAY,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,eAAe,GAAG,oBAAoB,GAAG;IACnD,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,qBAAqB,EAAE,mBAAmB,CAAC;CAC5C,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ import { CommentObject } from './comment';
5
5
  import { CommitObject } from './commit';
6
6
  import { ConversationObject } from './conversation';
7
7
  import { CustomerOrgObject } from './customer-org';
8
+ import { DashboardObject } from './dashboard';
8
9
  import { DealObject } from './deal';
9
10
  import { DeploymentObject } from './deployment';
10
11
  import { DesignObject } from './design';
@@ -18,9 +19,13 @@ import { RemoteLinkObject } from './remote-link';
18
19
  import { RepositoryObject } from './repository';
19
20
  import { SoftwareServiceObject } from './software-service';
20
21
  import { SpaceObject } from './space';
22
+ import { TestObject } from './test';
23
+ import { TestExecutionObject } from './test-execution';
24
+ import { TestPlanObject } from './test-plan';
25
+ import { TestRunObject } from './test-run';
21
26
  import { VideoObject } from './video';
22
27
  import { WorkItemObject } from './work-item';
23
28
  import { WorkerObject } from './worker';
24
- export { BranchObject, BuildObject, CalendarEventObject, CommentObject, CommitObject, ConversationObject, CustomerOrgObject, DealObject, DeploymentObject, DesignObject, DocumentObject, MessageObject, OrganisationObject, PositionObject, ProjectObject, PullRequestObject, RemoteLinkObject, RepositoryObject, SoftwareServiceObject, SpaceObject, VideoObject, WorkItemObject, WorkerObject };
25
- export declare type Object = BranchObject | BuildObject | CalendarEventObject | CommentObject | CommitObject | ConversationObject | CustomerOrgObject | DealObject | DeploymentObject | DesignObject | DocumentObject | MessageObject | OrganisationObject | PositionObject | ProjectObject | PullRequestObject | RemoteLinkObject | RepositoryObject | SoftwareServiceObject | SpaceObject | VideoObject | WorkItemObject | WorkerObject;
29
+ export { BranchObject, BuildObject, CalendarEventObject, CommentObject, CommitObject, ConversationObject, CustomerOrgObject, DashboardObject, DealObject, DeploymentObject, DesignObject, DocumentObject, MessageObject, OrganisationObject, PositionObject, ProjectObject, PullRequestObject, RemoteLinkObject, RepositoryObject, SoftwareServiceObject, SpaceObject, TestObject, TestExecutionObject, TestPlanObject, TestRunObject, VideoObject, WorkItemObject, WorkerObject };
30
+ export declare type Object = BranchObject | BuildObject | CalendarEventObject | CommentObject | CommitObject | ConversationObject | CustomerOrgObject | DashboardObject | DealObject | DeploymentObject | DesignObject | DocumentObject | MessageObject | OrganisationObject | PositionObject | ProjectObject | PullRequestObject | RemoteLinkObject | RepositoryObject | SoftwareServiceObject | SpaceObject | TestObject | TestExecutionObject | TestPlanObject | TestRunObject | VideoObject | WorkItemObject | WorkerObject;
26
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/objects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC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,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,YAAY,EACb,CAAC;AAGF,oBAAY,MAAM,GACd,YAAY,GACZ,WAAW,GACX,mBAAmB,GACnB,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,UAAU,GACV,gBAAgB,GAChB,YAAY,GACZ,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,qBAAqB,GACrB,WAAW,GACX,UAAU,GACV,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { BaseObjectProperties } from './common';
2
+ export declare type TestExecutionAttributes = {
3
+ status?: string;
4
+ version?: string;
5
+ environment?: string;
6
+ };
7
+ export declare type TestExecutionObject = BaseObjectProperties & {
8
+ displayName: string;
9
+ description: string;
10
+ lastUpdatedAt: string;
11
+ permissions: NonNullable<BaseObjectProperties['permissions']>;
12
+ 'atlassian:test-execution': TestExecutionAttributes;
13
+ };
14
+ //# sourceMappingURL=test-execution.d.ts.map
@@ -0,0 +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,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,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"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { BaseObjectProperties } from './common';
2
+ export declare type TestPlanAttributes = {};
3
+ export declare type TestPlanObject = BaseObjectProperties & {
4
+ displayName: string;
5
+ description: string;
6
+ lastUpdatedAt: string;
7
+ permissions: NonNullable<BaseObjectProperties['permissions']>;
8
+ 'atlassian:test-plan': TestPlanAttributes;
9
+ };
10
+ //# sourceMappingURL=test-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-plan.d.ts","sourceRoot":"","sources":["../../../src/types/objects/test-plan.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,oBAAY,kBAAkB,GAAG,EAEhC,CAAC;AAEF,oBAAY,cAAc,GAAG,oBAAoB,GAAG;IAClD,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,qBAAqB,EAAE,kBAAkB,CAAC;CAC3C,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import { BaseObjectProperties } from './common';
2
+ export interface UserReference {
3
+ accountId?: string;
4
+ email?: string;
5
+ externalId?: string;
6
+ ari?: string;
7
+ name?: string;
8
+ userName?: string;
9
+ avatar?: string;
10
+ url?: string;
11
+ }
12
+ export declare type TestRunAttributes = {
13
+ status: string;
14
+ assignee?: UserReference;
15
+ startedAt?: string;
16
+ finishedAt?: string;
17
+ version?: string;
18
+ environment?: string;
19
+ };
20
+ export declare type TestRunObject = BaseObjectProperties & {
21
+ displayName: string;
22
+ description: string;
23
+ lastUpdatedAt: string;
24
+ permissions: NonNullable<BaseObjectProperties['permissions']>;
25
+ 'atlassian:test-run': TestRunAttributes;
26
+ };
27
+ //# sourceMappingURL=test-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../../src/types/objects/test-run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,aAAa,GAAG,oBAAoB,GAAG;IACjD,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,oBAAoB,EAAE,iBAAiB,CAAC;CACzC,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { BaseObjectProperties } from './common';
2
+ export declare type TestAttributes = {
3
+ status: string;
4
+ testType: string;
5
+ statusPrecedence?: string;
6
+ version?: string;
7
+ environment?: string;
8
+ };
9
+ export declare type TestObject = BaseObjectProperties & {
10
+ displayName: string;
11
+ description: string;
12
+ lastUpdatedAt: string;
13
+ permissions: NonNullable<BaseObjectProperties['permissions']>;
14
+ 'atlassian:test': TestAttributes;
15
+ };
16
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/types/objects/test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,oBAAY,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,UAAU,GAAG,oBAAoB,GAAG;IAC9C,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,gBAAgB,EAAE,cAAc,CAAC;CAClC,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/teamwork-graph",
3
- "version": "2.2.0-next.1",
3
+ "version": "2.2.0-next.2",
4
4
  "description": "Forge TeamworkGraph SDK",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",