@stack-spot/portal-network 0.157.1-beta.2 → 0.157.2-beta.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/CHANGELOG.md +7 -0
- package/dist/api/discovery.d.ts +222 -33
- package/dist/api/discovery.d.ts.map +1 -1
- package/dist/api/discovery.js +78 -27
- package/dist/api/discovery.js.map +1 -1
- package/dist/client/discovery.d.ts +6 -12
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +5 -14
- package/dist/client/discovery.js.map +1 -1
- package/package.json +1 -1
- package/src/api/discovery.ts +309 -49
- package/src/client/discovery.ts +5 -9
|
@@ -19,7 +19,7 @@ declare class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
19
19
|
* Get details of an hypothesis by id
|
|
20
20
|
*/
|
|
21
21
|
getHypothesisById: import("../network/types.js").QueryObject<{
|
|
22
|
-
|
|
22
|
+
$number: string;
|
|
23
23
|
}, import("../api/discovery.js").HypothesisResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Get list of hypothesis documents
|
|
@@ -30,7 +30,7 @@ declare class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
30
30
|
size?: number | undefined;
|
|
31
31
|
sort?: string | undefined;
|
|
32
32
|
direction?: string | undefined;
|
|
33
|
-
|
|
33
|
+
hypothesisNumber: string;
|
|
34
34
|
}, import("../api/discovery.js").PageResponseDocumentSummaryResponse>;
|
|
35
35
|
/**
|
|
36
36
|
* Get list of all documents
|
|
@@ -67,33 +67,27 @@ declare class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
67
67
|
* Create an hypothesis
|
|
68
68
|
*/
|
|
69
69
|
createHypothesis: import("../network/types.js").MutationObject<Omit<{
|
|
70
|
-
|
|
70
|
+
createHypothesisRequest: import("../api/discovery.js").CreateHypothesisRequest;
|
|
71
71
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/discovery.js").HypothesisResponse>;
|
|
72
72
|
/**
|
|
73
73
|
* Create an document
|
|
74
74
|
*/
|
|
75
75
|
createDocument: import("../network/types.js").MutationObject<Omit<{
|
|
76
|
-
|
|
76
|
+
hypothesisNumber: string;
|
|
77
77
|
documentUploadRequest?: import("../api/discovery.js").DocumentUploadRequest | undefined;
|
|
78
78
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/discovery.js").DocumentUploadResponse>;
|
|
79
79
|
/**
|
|
80
80
|
* Attach a existing document in an hypothesis
|
|
81
81
|
*/
|
|
82
82
|
attachExistingDocument: import("../network/types.js").MutationObject<Omit<{
|
|
83
|
-
|
|
83
|
+
hypothesisNumber: string;
|
|
84
84
|
documentAttachRequest: import("../api/discovery.js").DocumentAttachRequest;
|
|
85
85
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
86
|
-
/**
|
|
87
|
-
* Delete an hypothesis
|
|
88
|
-
*/
|
|
89
|
-
deleteHypothesis: import("../network/types.js").MutationObject<Omit<{
|
|
90
|
-
hypothesisId: string;
|
|
91
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
92
86
|
/**
|
|
93
87
|
* Delete an document
|
|
94
88
|
*/
|
|
95
89
|
deleteDocument: import("../network/types.js").MutationObject<Omit<{
|
|
96
|
-
|
|
90
|
+
hypothesisNumber: string;
|
|
97
91
|
documentId: string;
|
|
98
92
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
99
93
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/client/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,eAAgB,SAAQ,uBAAuB;;IAMnD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,cAAc;;;;;;;kEAA6B;IAC3C;;OAEG;IACH,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/client/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,eAAgB,SAAQ,uBAAuB;;IAMnD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,cAAc;;;;;;;kEAA6B;IAC3C;;OAEG;IACH,iBAAiB;;sDAAqC;IACtD;;OAEG;IACH,yBAAyB;;;;;;;uEAAoB;IAC7C;;OAEG;IACH,gBAAgB;;;;;;8EAA6C;IAC7D;;OAEG;IACH,eAAe;;;0DAAsB;IACrC;;OAEG;IACH,iBAAiB;;;;;;mEAAoB;IACrC;;OAEG;IACH,iBAAiB,kGAAqB;IACtC;;OAEG;IACH,gBAAgB;;kHAA4D;IAC5E;;OAEG;IACH,cAAc;;;sHAAkD;IAChE;;OAEG;IACH,sBAAsB;;;0EAAkD;IACxE;;OAEG;IACH,cAAc;;;0EAAsG;IACpH;;OAEG;IACH,gBAAgB;;yEAAiD;IACjE;;OAEG;IACH,oBAAoB;;;;mIAAqD;CAC1E;AAED,eAAO,MAAM,eAAe,iBAAwB,CAAA"}
|
package/dist/client/discovery.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { attach, createHypothesis, defaults,
|
|
1
|
+
import { attach, createHypothesis, defaults, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber, download, findHypothesisByNumber, getAll, getById, list1, list2, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { baseDictionary } from '../error/dictionary/base.js';
|
|
@@ -23,7 +23,7 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
23
23
|
enumerable: true,
|
|
24
24
|
configurable: true,
|
|
25
25
|
writable: true,
|
|
26
|
-
value: this.query(
|
|
26
|
+
value: this.query(findHypothesisByNumber)
|
|
27
27
|
});
|
|
28
28
|
/**
|
|
29
29
|
* Get list of hypothesis documents
|
|
@@ -32,7 +32,7 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
32
32
|
enumerable: true,
|
|
33
33
|
configurable: true,
|
|
34
34
|
writable: true,
|
|
35
|
-
value: this.query(
|
|
35
|
+
value: this.query(list2)
|
|
36
36
|
});
|
|
37
37
|
/**
|
|
38
38
|
* Get list of all documents
|
|
@@ -59,7 +59,7 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
59
59
|
enumerable: true,
|
|
60
60
|
configurable: true,
|
|
61
61
|
writable: true,
|
|
62
|
-
value: this.query(
|
|
62
|
+
value: this.query(list1)
|
|
63
63
|
});
|
|
64
64
|
/**
|
|
65
65
|
* Get list of document types
|
|
@@ -97,15 +97,6 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
97
97
|
writable: true,
|
|
98
98
|
value: this.mutation(removeAuthorizationParam(attach))
|
|
99
99
|
});
|
|
100
|
-
/**
|
|
101
|
-
* Delete an hypothesis
|
|
102
|
-
*/
|
|
103
|
-
Object.defineProperty(this, "deleteHypothesis", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
configurable: true,
|
|
106
|
-
writable: true,
|
|
107
|
-
value: this.mutation(removeAuthorizationParam(deleteHypothesisById))
|
|
108
|
-
});
|
|
109
100
|
/**
|
|
110
101
|
* Delete an document
|
|
111
102
|
*/
|
|
@@ -113,7 +104,7 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
113
104
|
enumerable: true,
|
|
114
105
|
configurable: true,
|
|
115
106
|
writable: true,
|
|
116
|
-
value: this.mutation(removeAuthorizationParam(
|
|
107
|
+
value: this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber))
|
|
117
108
|
});
|
|
118
109
|
/**
|
|
119
110
|
* Download an document
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/client/discovery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/client/discovery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,0DAA0D,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,8BAA8B,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACxQ,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE9E,MAAM,eAAgB,SAAQ,uBAAuB;IAEnD;QACE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAMrC;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;WAAA;QAC3C;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC;WAAA;QACtD;;WAEG;QACH;;;;mBAA4B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;WAAA;QAC7C;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,KAAK,CAAC,8BAA8B,CAAC;WAAA;QAC7D;;WAEG;QACH;;;;mBAAkB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;WAAA;QACrC;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;WAAA;QACrC;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;WAAA;QACtC;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;WAAA;QAC5E;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;WAAA;QAChE;;WAEG;QACH;;;;mBAAyB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;WAAA;QACxE;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,0DAA0D,CAAC,CAAC;WAAA;QACpH;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;WAAA;QACjE;;WAEG;QACH;;;;mBAAuB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;WAAA;IAxDzE,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACrF,CAAC;CAqDF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA"}
|
package/package.json
CHANGED
package/src/api/discovery.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* v0
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -15,9 +15,9 @@ export const servers = {
|
|
|
15
15
|
generatedServerUrl: "https://discover-discover-core.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type OpportunityResponse = {
|
|
18
|
-
id
|
|
18
|
+
id?: string;
|
|
19
19
|
name?: string;
|
|
20
|
-
"number"
|
|
20
|
+
"number": string;
|
|
21
21
|
createdAt?: string;
|
|
22
22
|
createdBy?: string;
|
|
23
23
|
metadata?: {
|
|
@@ -25,7 +25,7 @@ export type OpportunityResponse = {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
export type HypothesisResponse = {
|
|
28
|
-
id
|
|
28
|
+
id?: string;
|
|
29
29
|
opportunity: OpportunityResponse;
|
|
30
30
|
name: string;
|
|
31
31
|
description?: string;
|
|
@@ -39,9 +39,73 @@ export type HypothesisResponse = {
|
|
|
39
39
|
export type HypothesisUpdateRequest = {
|
|
40
40
|
name?: string;
|
|
41
41
|
description?: string;
|
|
42
|
-
|
|
42
|
+
opportunityNumber?: string;
|
|
43
43
|
status?: string;
|
|
44
44
|
};
|
|
45
|
+
export type StateResponse = {
|
|
46
|
+
value: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
export type GetHypothesisResponseHypothesisData = {
|
|
50
|
+
id: string;
|
|
51
|
+
"number": string;
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
state: StateResponse;
|
|
55
|
+
community: string;
|
|
56
|
+
releaseTrain: string;
|
|
57
|
+
squad: string;
|
|
58
|
+
agileProduct?: string;
|
|
59
|
+
businessPortfolio: string;
|
|
60
|
+
technologicalFront: string;
|
|
61
|
+
frontChallenge: string;
|
|
62
|
+
towerClassification: string;
|
|
63
|
+
agileSprint?: string;
|
|
64
|
+
priority?: string;
|
|
65
|
+
impediment: boolean;
|
|
66
|
+
openedAt: string;
|
|
67
|
+
openedBy: string;
|
|
68
|
+
closedAt?: string;
|
|
69
|
+
assignedTo: string;
|
|
70
|
+
opportunity: string;
|
|
71
|
+
};
|
|
72
|
+
export type GetHypothesisResponse = {
|
|
73
|
+
data: GetHypothesisResponseHypothesisData;
|
|
74
|
+
};
|
|
75
|
+
export type UpdateHypothesisRequestStateRequest = {
|
|
76
|
+
value: string;
|
|
77
|
+
};
|
|
78
|
+
export type UpdateHypothesisRequest = {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
state: UpdateHypothesisRequestStateRequest;
|
|
82
|
+
};
|
|
83
|
+
export type UpdateHypothesisResponseHypothesisData = {
|
|
84
|
+
id: string;
|
|
85
|
+
"number": string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
state: StateResponse;
|
|
89
|
+
community: string;
|
|
90
|
+
releaseTrain: string;
|
|
91
|
+
squad: string;
|
|
92
|
+
agileProduct?: string;
|
|
93
|
+
businessPortfolio: string;
|
|
94
|
+
technologicalFront: string;
|
|
95
|
+
frontChallenge: string;
|
|
96
|
+
towerClassification: string;
|
|
97
|
+
agileSprint?: string;
|
|
98
|
+
priority?: string;
|
|
99
|
+
impediment: boolean;
|
|
100
|
+
openedAt: string;
|
|
101
|
+
openedBy: string;
|
|
102
|
+
closedAt?: string;
|
|
103
|
+
assignedTo: string;
|
|
104
|
+
opportunity: string;
|
|
105
|
+
};
|
|
106
|
+
export type UpdateHypothesisResponse = {
|
|
107
|
+
data: UpdateHypothesisResponseHypothesisData;
|
|
108
|
+
};
|
|
45
109
|
export type SortResponse = {
|
|
46
110
|
direction: string;
|
|
47
111
|
nullHandling: string;
|
|
@@ -70,10 +134,10 @@ export type PageResponseHypothesisResponse = {
|
|
|
70
134
|
pageable: PageableResponse;
|
|
71
135
|
empty: boolean;
|
|
72
136
|
};
|
|
73
|
-
export type
|
|
137
|
+
export type CreateHypothesisRequest = {
|
|
138
|
+
opportunity: string;
|
|
74
139
|
name: string;
|
|
75
140
|
description: string;
|
|
76
|
-
opportunityId: string;
|
|
77
141
|
};
|
|
78
142
|
export type DocumentUploadRequest = {
|
|
79
143
|
file: Blob;
|
|
@@ -116,6 +180,59 @@ export type DocumentUploadResponse = {
|
|
|
116
180
|
export type DocumentAttachRequest = {
|
|
117
181
|
documentIds: string[];
|
|
118
182
|
};
|
|
183
|
+
export type OrchestratorCredentialsResponse = {
|
|
184
|
+
id: number;
|
|
185
|
+
clientId: string;
|
|
186
|
+
hasCertificate: boolean;
|
|
187
|
+
hasPrivateKey: boolean;
|
|
188
|
+
createdAt?: string;
|
|
189
|
+
createdBy?: string;
|
|
190
|
+
updatedAt?: string;
|
|
191
|
+
updatedBy?: string;
|
|
192
|
+
};
|
|
193
|
+
export type ListHypothesisResponseOpportunityData = {
|
|
194
|
+
id: string;
|
|
195
|
+
"number": string;
|
|
196
|
+
};
|
|
197
|
+
export type ListHypothesisResponseHypothesisData = {
|
|
198
|
+
id: string;
|
|
199
|
+
"number": string;
|
|
200
|
+
name: string;
|
|
201
|
+
description: string;
|
|
202
|
+
state: StateResponse;
|
|
203
|
+
openedAt: string;
|
|
204
|
+
openedBy: string;
|
|
205
|
+
opportunity: ListHypothesisResponseOpportunityData;
|
|
206
|
+
};
|
|
207
|
+
export type ListHypothesisResponse = {
|
|
208
|
+
total: number;
|
|
209
|
+
data: ListHypothesisResponseHypothesisData[];
|
|
210
|
+
};
|
|
211
|
+
export type CreateHypothesisResponseHypothesisData = {
|
|
212
|
+
id: string;
|
|
213
|
+
"number": string;
|
|
214
|
+
name: string;
|
|
215
|
+
description: string;
|
|
216
|
+
state: StateResponse;
|
|
217
|
+
community: string;
|
|
218
|
+
releaseTrain: string;
|
|
219
|
+
squad: string;
|
|
220
|
+
agileProduct?: string;
|
|
221
|
+
businessPortfolio: string;
|
|
222
|
+
technologicalFront: string;
|
|
223
|
+
frontChallenge: string;
|
|
224
|
+
towerClassification: string;
|
|
225
|
+
agileSprint?: string;
|
|
226
|
+
priority?: string;
|
|
227
|
+
impediment: boolean;
|
|
228
|
+
openedAt: string;
|
|
229
|
+
openedBy: string;
|
|
230
|
+
closedAt?: string;
|
|
231
|
+
assignedTo: string;
|
|
232
|
+
};
|
|
233
|
+
export type CreateHypothesisResponse = {
|
|
234
|
+
data: CreateHypothesisResponseHypothesisData;
|
|
235
|
+
};
|
|
119
236
|
export type DocumentDetailContent = {
|
|
120
237
|
hasPreview: boolean;
|
|
121
238
|
content?: string;
|
|
@@ -156,10 +273,7 @@ export type PageResponseOpportunityResponse = {
|
|
|
156
273
|
empty: boolean;
|
|
157
274
|
};
|
|
158
275
|
export type HypothesisSummaryResponse = {
|
|
159
|
-
id: string;
|
|
160
|
-
name: string;
|
|
161
276
|
"number": string;
|
|
162
|
-
status: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED";
|
|
163
277
|
};
|
|
164
278
|
export type DocumentWithHypothesesResponse = {
|
|
165
279
|
id: string;
|
|
@@ -226,34 +340,94 @@ export type PageResponseDocumentSummaryResponse = {
|
|
|
226
340
|
pageable: PageableResponse;
|
|
227
341
|
empty: boolean;
|
|
228
342
|
};
|
|
229
|
-
export
|
|
230
|
-
|
|
343
|
+
export type ListOpportunityResponseOpportunityData = {
|
|
344
|
+
id: string;
|
|
345
|
+
"number": string;
|
|
346
|
+
name: string;
|
|
347
|
+
description: string;
|
|
348
|
+
state: StateResponse;
|
|
349
|
+
community: string;
|
|
350
|
+
releaseTrain: string;
|
|
351
|
+
squad: string;
|
|
352
|
+
};
|
|
353
|
+
export type ListOpportunityResponse = {
|
|
354
|
+
data: ListOpportunityResponseOpportunityData[];
|
|
355
|
+
};
|
|
356
|
+
export type GetOpportunityResponseOpportunityData = {
|
|
357
|
+
id: string;
|
|
358
|
+
"number": string;
|
|
359
|
+
name: string;
|
|
360
|
+
description: string;
|
|
361
|
+
state: StateResponse;
|
|
362
|
+
community: string;
|
|
363
|
+
releaseTrain: string;
|
|
364
|
+
squad: string;
|
|
365
|
+
agileProduct: string;
|
|
366
|
+
businessPortfolio: string;
|
|
367
|
+
technologicalFront: string;
|
|
368
|
+
frontChallenge: string;
|
|
369
|
+
towerClassification: string;
|
|
370
|
+
agileSprint: string;
|
|
371
|
+
priority: string;
|
|
372
|
+
impediment: boolean;
|
|
373
|
+
openedAt: string;
|
|
374
|
+
openedBy: string;
|
|
375
|
+
closedAt: string;
|
|
376
|
+
assignedTo: string;
|
|
377
|
+
};
|
|
378
|
+
export type GetOpportunityResponse = {
|
|
379
|
+
data: GetOpportunityResponseOpportunityData[];
|
|
380
|
+
};
|
|
381
|
+
export type ListStateResponseStateData = {
|
|
382
|
+
value: string;
|
|
383
|
+
description: string;
|
|
384
|
+
};
|
|
385
|
+
export type ListStateResponse = {
|
|
386
|
+
data: ListStateResponseStateData[];
|
|
387
|
+
};
|
|
388
|
+
export function findHypothesisByNumber({ $number }: {
|
|
389
|
+
$number: string;
|
|
231
390
|
}, opts?: Oazapfts.RequestOpts) {
|
|
232
391
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
233
392
|
status: 200;
|
|
234
393
|
data: HypothesisResponse;
|
|
235
|
-
}>(`/v1/hypotheses/${encodeURIComponent(
|
|
394
|
+
}>(`/v1/hypotheses/${encodeURIComponent($number)}`, {
|
|
236
395
|
...opts
|
|
237
396
|
}));
|
|
238
397
|
}
|
|
239
|
-
export function updateHypothesis({
|
|
240
|
-
|
|
398
|
+
export function updateHypothesis({ $number, hypothesisUpdateRequest }: {
|
|
399
|
+
$number: string;
|
|
241
400
|
hypothesisUpdateRequest: HypothesisUpdateRequest;
|
|
242
401
|
}, opts?: Oazapfts.RequestOpts) {
|
|
243
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/hypotheses/${encodeURIComponent(
|
|
402
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/hypotheses/${encodeURIComponent($number)}`, oazapfts.json({
|
|
244
403
|
...opts,
|
|
245
404
|
method: "PUT",
|
|
246
405
|
body: hypothesisUpdateRequest
|
|
247
406
|
})));
|
|
248
407
|
}
|
|
249
|
-
export function
|
|
250
|
-
|
|
408
|
+
export function getByNumber({ $number }: {
|
|
409
|
+
$number: string;
|
|
251
410
|
}, opts?: Oazapfts.RequestOpts) {
|
|
252
|
-
return oazapfts.ok(oazapfts.
|
|
253
|
-
|
|
254
|
-
|
|
411
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
412
|
+
status: 200;
|
|
413
|
+
data: GetHypothesisResponse;
|
|
414
|
+
}>(`/hypotheses/${encodeURIComponent($number)}`, {
|
|
415
|
+
...opts
|
|
255
416
|
}));
|
|
256
417
|
}
|
|
418
|
+
export function update({ $number, updateHypothesisRequest }: {
|
|
419
|
+
$number: string;
|
|
420
|
+
updateHypothesisRequest: UpdateHypothesisRequest;
|
|
421
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
422
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
423
|
+
status: 200;
|
|
424
|
+
data: UpdateHypothesisResponse;
|
|
425
|
+
}>(`/hypotheses/${encodeURIComponent($number)}`, oazapfts.json({
|
|
426
|
+
...opts,
|
|
427
|
+
method: "PUT",
|
|
428
|
+
body: updateHypothesisRequest
|
|
429
|
+
})));
|
|
430
|
+
}
|
|
257
431
|
export function listHypothesis({ filter, page, size, sort, direction, status }: {
|
|
258
432
|
filter?: string;
|
|
259
433
|
page?: number;
|
|
@@ -276,8 +450,8 @@ export function listHypothesis({ filter, page, size, sort, direction, status }:
|
|
|
276
450
|
...opts
|
|
277
451
|
}));
|
|
278
452
|
}
|
|
279
|
-
export function createHypothesis({
|
|
280
|
-
|
|
453
|
+
export function createHypothesis({ createHypothesisRequest }: {
|
|
454
|
+
createHypothesisRequest: CreateHypothesisRequest;
|
|
281
455
|
}, opts?: Oazapfts.RequestOpts) {
|
|
282
456
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
283
457
|
status: 200;
|
|
@@ -285,32 +459,86 @@ export function createHypothesis({ hypothesisCreateRequest }: {
|
|
|
285
459
|
}>("/v1/hypotheses", oazapfts.json({
|
|
286
460
|
...opts,
|
|
287
461
|
method: "POST",
|
|
288
|
-
body:
|
|
462
|
+
body: createHypothesisRequest
|
|
289
463
|
})));
|
|
290
464
|
}
|
|
291
|
-
export function upload({
|
|
292
|
-
|
|
465
|
+
export function upload({ hypothesisNumber, documentUploadRequest }: {
|
|
466
|
+
hypothesisNumber: string;
|
|
293
467
|
documentUploadRequest?: DocumentUploadRequest;
|
|
294
468
|
}, opts?: Oazapfts.RequestOpts) {
|
|
295
469
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
296
470
|
status: 200;
|
|
297
471
|
data: DocumentUploadResponse;
|
|
298
|
-
}>(`/v1/documents/hypotheses/${encodeURIComponent(
|
|
472
|
+
}>(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisNumber)}/upload`, oazapfts.multipart({
|
|
299
473
|
...opts,
|
|
300
474
|
method: "POST",
|
|
301
475
|
body: documentUploadRequest
|
|
302
476
|
})));
|
|
303
477
|
}
|
|
304
|
-
export function attach({
|
|
305
|
-
|
|
478
|
+
export function attach({ hypothesisNumber, documentAttachRequest }: {
|
|
479
|
+
hypothesisNumber: string;
|
|
306
480
|
documentAttachRequest: DocumentAttachRequest;
|
|
307
481
|
}, opts?: Oazapfts.RequestOpts) {
|
|
308
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/hypotheses/${encodeURIComponent(
|
|
482
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisNumber)}/attach`, oazapfts.json({
|
|
309
483
|
...opts,
|
|
310
484
|
method: "POST",
|
|
311
485
|
body: documentAttachRequest
|
|
312
486
|
})));
|
|
313
487
|
}
|
|
488
|
+
/**
|
|
489
|
+
* Save orchestrator credentials with file upload
|
|
490
|
+
*/
|
|
491
|
+
export function saveOrchestratorCredentials({ body }: {
|
|
492
|
+
body?: {
|
|
493
|
+
clientId: string;
|
|
494
|
+
clientSecret: string;
|
|
495
|
+
certificateFile: Blob;
|
|
496
|
+
privateKeyFile: Blob;
|
|
497
|
+
};
|
|
498
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
499
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
500
|
+
status: 201;
|
|
501
|
+
data: OrchestratorCredentialsResponse;
|
|
502
|
+
} | {
|
|
503
|
+
status: 400;
|
|
504
|
+
data: OrchestratorCredentialsResponse;
|
|
505
|
+
} | {
|
|
506
|
+
status: 403;
|
|
507
|
+
data: OrchestratorCredentialsResponse;
|
|
508
|
+
}>("/v1/admin/orchestrator-credentials", oazapfts.multipart({
|
|
509
|
+
...opts,
|
|
510
|
+
method: "POST",
|
|
511
|
+
body
|
|
512
|
+
})));
|
|
513
|
+
}
|
|
514
|
+
export function list({ page, size, squad }: {
|
|
515
|
+
page?: number;
|
|
516
|
+
size?: number;
|
|
517
|
+
squad?: string;
|
|
518
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
519
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
520
|
+
status: 200;
|
|
521
|
+
data: ListHypothesisResponse;
|
|
522
|
+
}>(`/hypotheses${QS.query(QS.explode({
|
|
523
|
+
page,
|
|
524
|
+
size,
|
|
525
|
+
squad
|
|
526
|
+
}))}`, {
|
|
527
|
+
...opts
|
|
528
|
+
}));
|
|
529
|
+
}
|
|
530
|
+
export function create({ createHypothesisRequest }: {
|
|
531
|
+
createHypothesisRequest: CreateHypothesisRequest;
|
|
532
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
533
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
534
|
+
status: 200;
|
|
535
|
+
data: CreateHypothesisResponse;
|
|
536
|
+
}>("/hypotheses", oazapfts.json({
|
|
537
|
+
...opts,
|
|
538
|
+
method: "POST",
|
|
539
|
+
body: createHypothesisRequest
|
|
540
|
+
})));
|
|
541
|
+
}
|
|
314
542
|
export function getById({ documentId, versionId }: {
|
|
315
543
|
documentId: string;
|
|
316
544
|
versionId?: string;
|
|
@@ -324,7 +552,7 @@ export function getById({ documentId, versionId }: {
|
|
|
324
552
|
...opts
|
|
325
553
|
}));
|
|
326
554
|
}
|
|
327
|
-
export function
|
|
555
|
+
export function update1({ documentId, documentPatchRequest }: {
|
|
328
556
|
documentId: string;
|
|
329
557
|
documentPatchRequest?: DocumentPatchRequest;
|
|
330
558
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -334,7 +562,7 @@ export function update({ documentId, documentPatchRequest }: {
|
|
|
334
562
|
body: documentPatchRequest
|
|
335
563
|
})));
|
|
336
564
|
}
|
|
337
|
-
export function
|
|
565
|
+
export function list1({ filter, page, size, sort, direction }: {
|
|
338
566
|
filter?: string;
|
|
339
567
|
page?: number;
|
|
340
568
|
size?: number;
|
|
@@ -354,16 +582,6 @@ export function list({ filter, page, size, sort, direction }: {
|
|
|
354
582
|
...opts
|
|
355
583
|
}));
|
|
356
584
|
}
|
|
357
|
-
export function findOpportunityById({ opportunityId }: {
|
|
358
|
-
opportunityId: string;
|
|
359
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
360
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
361
|
-
status: 200;
|
|
362
|
-
data: OpportunityResponse;
|
|
363
|
-
}>(`/v1/opportunities/${encodeURIComponent(opportunityId)}`, {
|
|
364
|
-
...opts
|
|
365
|
-
}));
|
|
366
|
-
}
|
|
367
585
|
export function listAllDocumentsWithHypotheses({ filter, page, size, sort, direction }: {
|
|
368
586
|
filter?: string;
|
|
369
587
|
page?: number;
|
|
@@ -409,18 +627,18 @@ export function download({ documentId }: {
|
|
|
409
627
|
...opts
|
|
410
628
|
}));
|
|
411
629
|
}
|
|
412
|
-
export function
|
|
630
|
+
export function list2({ filter, page, size, sort, direction, hypothesisNumber }: {
|
|
413
631
|
filter?: string;
|
|
414
632
|
page?: number;
|
|
415
633
|
size?: number;
|
|
416
634
|
sort?: string;
|
|
417
635
|
direction?: string;
|
|
418
|
-
|
|
636
|
+
hypothesisNumber: string;
|
|
419
637
|
}, opts?: Oazapfts.RequestOpts) {
|
|
420
638
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
421
639
|
status: 200;
|
|
422
640
|
data: PageResponseDocumentSummaryResponse;
|
|
423
|
-
}>(`/v1/documents/hypotheses/${encodeURIComponent(
|
|
641
|
+
}>(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisNumber)}${QS.query(QS.explode({
|
|
424
642
|
filter,
|
|
425
643
|
page,
|
|
426
644
|
size,
|
|
@@ -438,6 +656,16 @@ export function getAll(opts?: Oazapfts.RequestOpts) {
|
|
|
438
656
|
...opts
|
|
439
657
|
}));
|
|
440
658
|
}
|
|
659
|
+
export function getHypothesis({ $number }: {
|
|
660
|
+
$number: string;
|
|
661
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
662
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
663
|
+
status: 200;
|
|
664
|
+
data: object;
|
|
665
|
+
}>(`/system/hypotheses/${encodeURIComponent($number)}`, {
|
|
666
|
+
...opts
|
|
667
|
+
}));
|
|
668
|
+
}
|
|
441
669
|
export function systemHealth(opts?: Oazapfts.RequestOpts) {
|
|
442
670
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
443
671
|
status: 200;
|
|
@@ -458,11 +686,43 @@ export function health(opts?: Oazapfts.RequestOpts) {
|
|
|
458
686
|
...opts
|
|
459
687
|
}));
|
|
460
688
|
}
|
|
461
|
-
export function
|
|
462
|
-
|
|
689
|
+
export function list3({ squad }: {
|
|
690
|
+
squad?: string;
|
|
691
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
692
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
693
|
+
status: 200;
|
|
694
|
+
data: ListOpportunityResponse;
|
|
695
|
+
}>(`/opportunities${QS.query(QS.explode({
|
|
696
|
+
squad
|
|
697
|
+
}))}`, {
|
|
698
|
+
...opts
|
|
699
|
+
}));
|
|
700
|
+
}
|
|
701
|
+
export function getOpportunityByNumber({ $number }: {
|
|
702
|
+
$number: string;
|
|
703
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
704
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
705
|
+
status: 200;
|
|
706
|
+
data: GetOpportunityResponse;
|
|
707
|
+
}>(`/opportunities/${encodeURIComponent($number)}${QS.query(QS.explode({
|
|
708
|
+
"number": $number
|
|
709
|
+
}))}`, {
|
|
710
|
+
...opts
|
|
711
|
+
}));
|
|
712
|
+
}
|
|
713
|
+
export function listHypothesisStates(opts?: Oazapfts.RequestOpts) {
|
|
714
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
715
|
+
status: 200;
|
|
716
|
+
data: ListStateResponse;
|
|
717
|
+
}>("/hypothesis-states", {
|
|
718
|
+
...opts
|
|
719
|
+
}));
|
|
720
|
+
}
|
|
721
|
+
export function deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber({ hypothesisNumber, documentId }: {
|
|
722
|
+
hypothesisNumber: string;
|
|
463
723
|
documentId: string;
|
|
464
724
|
}, opts?: Oazapfts.RequestOpts) {
|
|
465
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/${encodeURIComponent(documentId)}/hypotheses/${encodeURIComponent(
|
|
725
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/${encodeURIComponent(documentId)}/hypotheses/${encodeURIComponent(hypothesisNumber)}`, {
|
|
466
726
|
...opts,
|
|
467
727
|
method: "DELETE"
|
|
468
728
|
}));
|