@orchesty/connector-productboard 1.0.0 → 1.0.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.
Files changed (44) hide show
  1. package/dist/package.json +4 -1
  2. package/package.json +4 -1
  3. package/CHANGELOG.md +0 -7
  4. package/coverage/clover.xml +0 -119
  5. package/coverage/coverage-final.json +0 -6
  6. package/coverage/lcov-report/base.css +0 -224
  7. package/coverage/lcov-report/block-navigation.js +0 -87
  8. package/coverage/lcov-report/favicon.png +0 -0
  9. package/coverage/lcov-report/index.html +0 -161
  10. package/coverage/lcov-report/prettify.css +0 -1
  11. package/coverage/lcov-report/prettify.js +0 -2
  12. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  13. package/coverage/lcov-report/sorter.js +0 -210
  14. package/coverage/lcov-report/src/Batch/ProductboardListAllFeaturesBatch.ts.html +0 -301
  15. package/coverage/lcov-report/src/Batch/ProductboardListAllProductsBatch.ts.html +0 -259
  16. package/coverage/lcov-report/src/Batch/index.html +0 -131
  17. package/coverage/lcov-report/src/Connector/ProductboardCreateNewFeatureConnector.ts.html +0 -391
  18. package/coverage/lcov-report/src/Connector/index.html +0 -116
  19. package/coverage/lcov-report/src/ProductboardApplication.ts.html +0 -274
  20. package/coverage/lcov-report/src/index.html +0 -116
  21. package/coverage/lcov-report/test/dataProvider.ts.html +0 -202
  22. package/coverage/lcov-report/test/index.html +0 -116
  23. package/coverage/lcov.info +0 -169
  24. package/jest.config.js +0 -13
  25. package/src/Batch/ProductboardListAllFeaturesBatch.ts +0 -72
  26. package/src/Batch/ProductboardListAllProductsBatch.ts +0 -58
  27. package/src/Batch/__tests__/Data/ProductboardListAllFeaturesBatch/input.json +0 -6
  28. package/src/Batch/__tests__/Data/ProductboardListAllFeaturesBatch/mock.json +0 -42
  29. package/src/Batch/__tests__/Data/ProductboardListAllFeaturesBatch/output.json +0 -11
  30. package/src/Batch/__tests__/Data/ProductboardListAllProductsBatch/input.json +0 -6
  31. package/src/Batch/__tests__/Data/ProductboardListAllProductsBatch/mock.json +0 -23
  32. package/src/Batch/__tests__/Data/ProductboardListAllProductsBatch/output.json +0 -11
  33. package/src/Batch/__tests__/ProductboardListAllFeaturesBatch.ts +0 -17
  34. package/src/Batch/__tests__/ProductboardListAllProductsBatch.ts +0 -17
  35. package/src/Connector/ProductboardCreateNewFeatureConnector.ts +0 -102
  36. package/src/Connector/__tests__/Data/ProductboardCreateNewFeatureConnector/input.json +0 -28
  37. package/src/Connector/__tests__/Data/ProductboardCreateNewFeatureConnector/mock.json +0 -35
  38. package/src/Connector/__tests__/Data/ProductboardCreateNewFeatureConnector/output.json +0 -37
  39. package/src/Connector/__tests__/ProductboardCreateNewFeatureConnector.ts +0 -17
  40. package/src/ProductboardApplication.ts +0 -63
  41. package/test/dataProvider.ts +0 -39
  42. package/tsconfig.json +0 -8
  43. package/tsconfig.prod.json +0 -13
  44. package/tsconfig.prod.tsbuildinfo +0 -1
@@ -1,116 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for test</title>
7
- <meta charset="utf-8" />
8
- <link rel="stylesheet" href="../prettify.css" />
9
- <link rel="stylesheet" href="../base.css" />
10
- <link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(../sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="../index.html">All files</a> test</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">100% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>21/21</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">100% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>0/0</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">100% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>1/1</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">100% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>21/21</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line high'></div>
65
- <div class="pad1">
66
- <table class="coverage-summary">
67
- <thead>
68
- <tr>
69
- <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
70
- <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
71
- <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
72
- <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
73
- <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
74
- <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
75
- <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
76
- <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
77
- <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
78
- <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
79
- </tr>
80
- </thead>
81
- <tbody><tr>
82
- <td class="file high" data-value="dataProvider.ts"><a href="dataProvider.ts.html">dataProvider.ts</a></td>
83
- <td data-value="100" class="pic high">
84
- <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
85
- </td>
86
- <td data-value="100" class="pct high">100%</td>
87
- <td data-value="21" class="abs high">21/21</td>
88
- <td data-value="100" class="pct high">100%</td>
89
- <td data-value="0" class="abs high">0/0</td>
90
- <td data-value="100" class="pct high">100%</td>
91
- <td data-value="1" class="abs high">1/1</td>
92
- <td data-value="100" class="pct high">100%</td>
93
- <td data-value="21" class="abs high">21/21</td>
94
- </tr>
95
-
96
- </tbody>
97
- </table>
98
- </div>
99
- <div class='push'></div><!-- for sticky footer -->
100
- </div><!-- /wrapper -->
101
- <div class='footer quiet pad2 space-top1 center small'>
102
- Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2026-01-15T09:49:52.723Z
105
- </div>
106
- <script src="../prettify.js"></script>
107
- <script>
108
- window.onload = function () {
109
- prettyPrint();
110
- };
111
- </script>
112
- <script src="../sorter.js"></script>
113
- <script src="../block-navigation.js"></script>
114
- </body>
115
- </html>
116
-
@@ -1,169 +0,0 @@
1
- TN:
2
- SF:src/ProductboardApplication.ts
3
- FN:18,(anonymous_10)
4
- FN:22,(anonymous_11)
5
- FN:26,(anonymous_12)
6
- FN:30,(anonymous_13)
7
- FN:34,(anonymous_14)
8
- FN:56,(anonymous_15)
9
- FNF:6
10
- FNH:2
11
- FNDA:6,(anonymous_10)
12
- FNDA:0,(anonymous_11)
13
- FNDA:0,(anonymous_12)
14
- FNDA:0,(anonymous_13)
15
- FNDA:3,(anonymous_14)
16
- FNDA:0,(anonymous_15)
17
- DA:1,3
18
- DA:3,3
19
- DA:4,3
20
- DA:5,3
21
- DA:6,3
22
- DA:7,3
23
- DA:8,3
24
- DA:11,3
25
- DA:13,3
26
- DA:14,3
27
- DA:15,3
28
- DA:16,3
29
- DA:19,6
30
- DA:23,0
31
- DA:27,0
32
- DA:31,0
33
- DA:41,3
34
- DA:42,3
35
- DA:43,3
36
- DA:49,3
37
- DA:50,1
38
- DA:53,3
39
- DA:57,0
40
- DA:60,0
41
- LF:24
42
- LH:19
43
- BRDA:42,0,0,3
44
- BRDA:42,0,1,0
45
- BRDA:49,1,0,1
46
- BRDA:49,1,1,2
47
- BRF:4
48
- BRH:3
49
- end_of_record
50
- TN:
51
- SF:src/Batch/ProductboardListAllFeaturesBatch.ts
52
- FN:9,(anonymous_1)
53
- FN:13,(anonymous_2)
54
- FNF:2
55
- FNH:2
56
- FNDA:3,(anonymous_1)
57
- FNDA:1,(anonymous_2)
58
- DA:1,3
59
- DA:2,3
60
- DA:4,3
61
- DA:6,3
62
- DA:7,3
63
- DA:10,3
64
- DA:14,1
65
- DA:15,1
66
- DA:16,1
67
- DA:22,1
68
- DA:23,1
69
- DA:25,1
70
- DA:26,1
71
- DA:27,0
72
- DA:30,1
73
- LF:15
74
- LH:14
75
- BRDA:25,0,0,1
76
- BRDA:25,0,1,0
77
- BRDA:26,1,0,0
78
- BRDA:26,1,1,1
79
- BRF:4
80
- BRH:2
81
- end_of_record
82
- TN:
83
- SF:src/Batch/ProductboardListAllProductsBatch.ts
84
- FN:9,(anonymous_1)
85
- FN:13,(anonymous_2)
86
- FNF:2
87
- FNH:2
88
- FNDA:3,(anonymous_1)
89
- FNDA:1,(anonymous_2)
90
- DA:1,3
91
- DA:2,3
92
- DA:4,3
93
- DA:6,3
94
- DA:7,3
95
- DA:10,3
96
- DA:14,1
97
- DA:15,1
98
- DA:16,1
99
- DA:22,1
100
- DA:23,1
101
- DA:25,1
102
- DA:26,1
103
- DA:27,0
104
- DA:30,1
105
- LF:15
106
- LH:14
107
- BRDA:25,0,0,1
108
- BRDA:25,0,1,0
109
- BRDA:26,1,0,0
110
- BRDA:26,1,1,1
111
- BRF:4
112
- BRH:2
113
- end_of_record
114
- TN:
115
- SF:src/Connector/ProductboardCreateNewFeatureConnector.ts
116
- FN:9,(anonymous_1)
117
- FN:13,(anonymous_2)
118
- FNF:2
119
- FNH:2
120
- FNDA:3,(anonymous_1)
121
- FNDA:1,(anonymous_2)
122
- DA:1,3
123
- DA:2,3
124
- DA:5,3
125
- DA:7,3
126
- DA:10,3
127
- DA:14,1
128
- DA:16,1
129
- DA:17,1
130
- DA:18,1
131
- DA:19,1
132
- DA:21,1
133
- LF:11
134
- LH:11
135
- BRF:0
136
- BRH:0
137
- end_of_record
138
- TN:
139
- SF:test/dataProvider.ts
140
- FN:11,init
141
- FNF:1
142
- FNH:1
143
- FNDA:3,init
144
- DA:1,3
145
- DA:2,3
146
- DA:3,3
147
- DA:4,3
148
- DA:5,3
149
- DA:6,3
150
- DA:7,3
151
- DA:9,3
152
- DA:11,3
153
- DA:12,3
154
- DA:17,3
155
- DA:18,3
156
- DA:20,3
157
- DA:21,3
158
- DA:22,3
159
- DA:24,3
160
- DA:28,3
161
- DA:29,3
162
- DA:33,3
163
- DA:34,3
164
- DA:38,3
165
- LF:21
166
- LH:21
167
- BRF:0
168
- BRH:0
169
- end_of_record
package/jest.config.js DELETED
@@ -1,13 +0,0 @@
1
- const baseConfig = require('../../jest.config.js');
2
-
3
- module.exports = {
4
- ...baseConfig,
5
- roots: ["<rootDir>/src"],
6
- setupFiles: ["<rootDir>/../../.jest/testEnvs.ts"],
7
- setupFilesAfterEnv: ["<rootDir>/../../.jest/testLifecycle.ts"],
8
- globalSetup: "<rootDir>/../../.jest/globalSetup.ts",
9
- moduleNameMapper: {
10
- "^@orchesty/nodejs-connectors/test/(.*)$": "<rootDir>/../../test/$1",
11
- "^@orchesty/nodejs-connectors/lib/(.*)$": "<rootDir>/../../lib/$1",
12
- },
13
- }
@@ -1,72 +0,0 @@
1
- import ABatchNode from '@orchesty/nodejs-sdk/dist/lib/Batch/ABatchNode';
2
- import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
- import BatchProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/BatchProcessDto';
4
- import { BASE_URL } from '../ProductboardApplication';
5
-
6
- export const NAME = 'productboard-list-all-features-batch';
7
- export default class ProductboardListAllFeaturesBatch extends ABatchNode {
8
-
9
- public getName(): string {
10
- return NAME;
11
- }
12
-
13
- public async processAction(dto: BatchProcessDto): Promise<BatchProcessDto> {
14
- const appInstall = await this.getApplicationInstallFromProcess(dto);
15
- const url = dto.getBatchCursor('features?pageLimit=100&pageOffset=0');
16
- const req = await this.getApplication().getRequestDto(
17
- dto,
18
- appInstall,
19
- HttpMethods.GET,
20
- url,
21
- );
22
- const resp = await this.getSender().send<IResponse>(req, [200]);
23
- const response = resp.getJsonBody();
24
-
25
- dto.setItemList(response.data ?? []);
26
- if (response.links.next) {
27
- dto.setBatchCursor(response.links.next.replace(`${BASE_URL}/`, ''));
28
- }
29
-
30
- return dto;
31
- }
32
-
33
- }
34
-
35
- interface IResponse {
36
- data: IOutput[];
37
- links: {
38
- next: string;
39
- };
40
- }
41
-
42
- export interface IOutput {
43
- id: string;
44
- name: string;
45
- description: string;
46
- type: string;
47
- archived: boolean;
48
- status: {
49
- id: string;
50
- name: string;
51
- };
52
- parent: {
53
- feature: {
54
- id: string;
55
- links: {
56
- self: string;
57
- };
58
- };
59
- };
60
- links: {
61
- self: string;
62
- html: string;
63
- };
64
- timeframe: {
65
- startDate: string;
66
- endDate: string;
67
- granularity: string;
68
- };
69
- owner: {
70
- email: string;
71
- };
72
- }
@@ -1,58 +0,0 @@
1
- import ABatchNode from '@orchesty/nodejs-sdk/dist/lib/Batch/ABatchNode';
2
- import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
- import BatchProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/BatchProcessDto';
4
- import { BASE_URL } from '../ProductboardApplication';
5
-
6
- export const NAME = 'productboard-list-all-products-batch';
7
- export default class ProductboardListAllProductsBatch extends ABatchNode {
8
-
9
- public getName(): string {
10
- return NAME;
11
- }
12
-
13
- public async processAction(dto: BatchProcessDto): Promise<BatchProcessDto> {
14
- const appInstall = await this.getApplicationInstallFromProcess(dto);
15
- const url = dto.getBatchCursor('products?pageLimit=100&pageOffset=0');
16
- const req = await this.getApplication().getRequestDto(
17
- dto,
18
- appInstall,
19
- HttpMethods.GET,
20
- url,
21
- );
22
- const resp = await this.getSender().send<IResponse>(req, [200]);
23
- const response = resp.getJsonBody();
24
-
25
- dto.setItemList(response.data ?? []);
26
- if (response.links.next) {
27
- dto.setBatchCursor(response.links.next.replace(`${BASE_URL}/`, ''));
28
- }
29
-
30
- return dto;
31
- }
32
-
33
- }
34
-
35
- interface IResponse {
36
- data: IOutput[];
37
- links: {
38
- next: string;
39
- };
40
- }
41
-
42
- export interface IOutput {
43
- data: {
44
- id: string;
45
- name: string;
46
- description: string;
47
- owner: {
48
- email: string;
49
- };
50
- links: {
51
- self: string;
52
- html: string;
53
- };
54
- }[];
55
- links: {
56
- next: string;
57
- };
58
- }
@@ -1,6 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {}
6
- }
@@ -1,42 +0,0 @@
1
- {
2
- "http": "GET https://api.productboard.com/features?pageLimit=100&pageOffset=0",
3
- "code": 200,
4
- "body": {
5
- "data": [
6
- {
7
- "id": "00000000-0000-0000-0000-000000000000",
8
- "name": "Zlack Messaging App",
9
- "description": "<p>Custom <s>branding</s> for the agent and user portals.</p>",
10
- "type": "feature",
11
- "archived": false,
12
- "status": {
13
- "id": "00000000-0000-0000-0000-000000000000",
14
- "name": "In Progress"
15
- },
16
- "parent": {
17
- "feature": {
18
- "id": "00000000-0000-0000-0000-000000000000",
19
- "links": {
20
- "self": "https://api.productboard.com/features/00000000-0000-0000-0000-000000000000"
21
- }
22
- }
23
- },
24
- "links": {
25
- "self": "https://api.productboard.com/features/00000000-0000-0000-0000-000000000000",
26
- "html": "https://space.productboard.com/feature-board/planning/features/00000000-0000-0000-0000-000000000000"
27
- },
28
- "timeframe": {
29
- "startDate": "2021-01-01",
30
- "endDate": "2021-03-31",
31
- "granularity": "quarter"
32
- },
33
- "owner": {
34
- "email": "email@example.com"
35
- }
36
- }
37
- ],
38
- "links": {
39
- "next": null
40
- }
41
- }
42
- }
@@ -1,11 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": [
6
- {
7
- "body": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"Zlack Messaging App\",\"description\":\"<p>Custom <s>branding</s> for the agent and user portals.</p>\",\"type\":\"feature\",\"archived\":false,\"status\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"In Progress\"},\"parent\":{\"feature\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"links\":{\"self\":\"https://api.productboard.com/features/00000000-0000-0000-0000-000000000000\"}}},\"links\":{\"self\":\"https://api.productboard.com/features/00000000-0000-0000-0000-000000000000\",\"html\":\"https://space.productboard.com/feature-board/planning/features/00000000-0000-0000-0000-000000000000\"},\"timeframe\":{\"startDate\":\"2021-01-01\",\"endDate\":\"2021-03-31\",\"granularity\":\"quarter\"},\"owner\":{\"email\":\"email@example.com\"}}",
8
- "headers": {}
9
- }
10
- ]
11
- }
@@ -1,6 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {}
6
- }
@@ -1,23 +0,0 @@
1
- {
2
- "http": "GET https://api.productboard.com/products?pageLimit=100&pageOffset=0",
3
- "code": 200,
4
- "body": {
5
- "data": [
6
- {
7
- "id": "00000000-0000-0000-0000-000000000000",
8
- "name": "Zlack Messaging App",
9
- "description": "<p>Custom <s>branding</s> for the agent and user portals.</p>",
10
- "owner": {
11
- "email": "email@example.com"
12
- },
13
- "links": {
14
- "self": "https://api.productboard.com/products/00000000-0000-0000-0000-000000000000",
15
- "html": "https://space.productboard.com/feature-board/planning/features/00000000-0000-0000-0000-000000000000"
16
- }
17
- }
18
- ],
19
- "links": {
20
- "next": null
21
- }
22
- }
23
- }
@@ -1,11 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": [
6
- {
7
- "body": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"Zlack Messaging App\",\"description\":\"<p>Custom <s>branding</s> for the agent and user portals.</p>\",\"owner\":{\"email\":\"email@example.com\"},\"links\":{\"self\":\"https://api.productboard.com/products/00000000-0000-0000-0000-000000000000\",\"html\":\"https://space.productboard.com/feature-board/planning/features/00000000-0000-0000-0000-000000000000\"}}",
8
- "headers": {}
9
- }
10
- ]
11
- }
@@ -1,17 +0,0 @@
1
- import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
2
- import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
3
- import init from '../../../test/dataProvider';
4
- import { NAME as PRODUCTBOARD_LIST_ALL_FEATURES_BATCH } from '../ProductboardListAllFeaturesBatch';
5
-
6
- let tester: NodeTester;
7
-
8
- describe('Tests for ProductboardListAllFeaturesBatch', () => {
9
- beforeEach(() => {
10
- tester = new NodeTester(container, __filename);
11
- init();
12
- });
13
-
14
- it('process - ok', async () => {
15
- await tester.testBatch(PRODUCTBOARD_LIST_ALL_FEATURES_BATCH);
16
- });
17
- });
@@ -1,17 +0,0 @@
1
- import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
2
- import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
3
- import init from '../../../test/dataProvider';
4
- import { NAME as PRODUCTBOARD_LIST_ALL_PRODUCTS_BATCH } from '../ProductboardListAllProductsBatch';
5
-
6
- let tester: NodeTester;
7
-
8
- describe('Tests for ProductboardListAllProductsBatch', () => {
9
- beforeEach(() => {
10
- tester = new NodeTester(container, __filename);
11
- init();
12
- });
13
-
14
- it('process - ok', async () => {
15
- await tester.testBatch(PRODUCTBOARD_LIST_ALL_PRODUCTS_BATCH);
16
- });
17
- });
@@ -1,102 +0,0 @@
1
- import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
- import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
- import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
-
5
- export const NAME = 'productboard-create-new-feature-connector';
6
-
7
- export default class ProductboardCreateNewFeatureConnector extends AConnector {
8
-
9
- public getName(): string {
10
- return NAME;
11
- }
12
-
13
- public async processAction(dto: ProcessDto<IInput>): Promise<ProcessDto<IOutput>> {
14
- const body = dto.getJsonData();
15
-
16
- const appInstall = await this.getApplicationInstallFromProcess(dto);
17
- const url = 'features';
18
- const req = await this.getApplication().getRequestDto(dto, appInstall, HttpMethods.POST, url, body);
19
- const resp = await this.getSender().send<IOutput>(req, [200]);
20
-
21
- return dto.setNewJsonData(resp.getJsonBody());
22
- }
23
-
24
- }
25
-
26
- export interface IInput {
27
- data: {
28
- name: string;
29
- description: string;
30
- type: 'feature' | 'subfeature';
31
- status: {
32
- id: string;
33
- name: string;
34
- };
35
- parent: {
36
- feature?: {
37
- id: string;
38
- };
39
- product?: {
40
- id: string;
41
- };
42
- component?: {
43
- id: string;
44
- };
45
- };
46
- archived: boolean;
47
- timeframe: {
48
- startDate: string;
49
- endDate: string;
50
- granularity: string;
51
- };
52
- owner?: {
53
- email: string;
54
- };
55
- };
56
- }
57
-
58
- export interface IOutput {
59
- data: {
60
- id: string;
61
- name: string;
62
- description: string;
63
- type: string;
64
- archived: boolean;
65
- status: {
66
- id: string;
67
- name: string;
68
- };
69
- parent: {
70
- feature?: {
71
- id: string;
72
- links: {
73
- self: string;
74
- };
75
- };
76
- product?: {
77
- id: string;
78
- links: {
79
- self: string;
80
- };
81
- };
82
- component?: {
83
- id: string;
84
- links: {
85
- self: string;
86
- };
87
- };
88
- };
89
- links: {
90
- self: string;
91
- html: string;
92
- };
93
- timeframe: {
94
- startDate: string;
95
- endDate: string;
96
- granularity: string;
97
- };
98
- owner?: {
99
- email: string;
100
- };
101
- };
102
- }