@stack-spot/portal-network 1.0.0-betaadp.1 → 1.0.0-betaadp.3
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/dist/api/discover.d.ts +294 -0
- package/dist/api/discover.d.ts.map +1 -0
- package/dist/api/discover.js +180 -0
- package/dist/api/discover.js.map +1 -0
- package/dist/apis.json +1 -1
- package/dist/client/discover.d.ts +63 -0
- package/dist/client/discover.d.ts.map +1 -0
- package/dist/client/discover.js +123 -0
- package/dist/client/discover.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/discover.ts +435 -0
- package/src/apis.json +1 -1
- package/src/client/discover.ts +86 -0
- package/src/index.ts +2 -2
- package/dist/api/discovery.d.ts +0 -494
- package/dist/api/discovery.d.ts.map +0 -1
- package/dist/api/discovery.js +0 -205
- package/dist/api/discovery.js.map +0 -1
- package/dist/client/adp-mock.d.ts +0 -87
- package/dist/client/adp-mock.d.ts.map +0 -1
- package/dist/client/adp-mock.js +0 -246
- package/dist/client/adp-mock.js.map +0 -1
- package/dist/client/discovery.d.ts +0 -110
- package/dist/client/discovery.d.ts.map +0 -1
- package/dist/client/discovery.js +0 -133
- package/dist/client/discovery.js.map +0 -1
- package/src/api/discovery.ts +0 -729
- package/src/client/adp-mock.ts +0 -240
- package/src/client/discovery.ts +0 -73
package/src/api/discovery.ts
DELETED
|
@@ -1,729 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* v0
|
|
4
|
-
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
-
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
-
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
-
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
-
headers: {},
|
|
11
|
-
baseUrl: "https://discover-discover-core.dev.stackspot.com",
|
|
12
|
-
};
|
|
13
|
-
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
-
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://discover-discover-core.dev.stackspot.com"
|
|
16
|
-
};
|
|
17
|
-
export type OpportunityResponse = {
|
|
18
|
-
id?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
"number": string;
|
|
21
|
-
createdAt?: string;
|
|
22
|
-
createdBy?: string;
|
|
23
|
-
metadata?: {
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export type HypothesisResponse = {
|
|
28
|
-
id?: string;
|
|
29
|
-
opportunity: OpportunityResponse;
|
|
30
|
-
name: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
"number": string;
|
|
33
|
-
status: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED";
|
|
34
|
-
createdAt?: string;
|
|
35
|
-
createdBy: string;
|
|
36
|
-
updatedAt?: string;
|
|
37
|
-
updatedBy?: string;
|
|
38
|
-
};
|
|
39
|
-
export type HypothesisUpdateRequest = {
|
|
40
|
-
name?: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
opportunityNumber?: string;
|
|
43
|
-
status?: string;
|
|
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
|
-
};
|
|
109
|
-
export type SortResponse = {
|
|
110
|
-
direction: string;
|
|
111
|
-
nullHandling: string;
|
|
112
|
-
ascending: boolean;
|
|
113
|
-
property: string;
|
|
114
|
-
ignoreCase: boolean;
|
|
115
|
-
};
|
|
116
|
-
export type PageableResponse = {
|
|
117
|
-
offset: number;
|
|
118
|
-
sort: SortResponse[];
|
|
119
|
-
paged: boolean;
|
|
120
|
-
pageSize: number;
|
|
121
|
-
pageNumber: number;
|
|
122
|
-
unpaged: boolean;
|
|
123
|
-
};
|
|
124
|
-
export type PageResponseHypothesisResponse = {
|
|
125
|
-
totalElements: number;
|
|
126
|
-
totalPages: number;
|
|
127
|
-
first: boolean;
|
|
128
|
-
last: boolean;
|
|
129
|
-
size: number;
|
|
130
|
-
content: HypothesisResponse[];
|
|
131
|
-
"number": number;
|
|
132
|
-
sort: SortResponse[];
|
|
133
|
-
numberOfElements: number;
|
|
134
|
-
pageable: PageableResponse;
|
|
135
|
-
empty: boolean;
|
|
136
|
-
};
|
|
137
|
-
export type CreateHypothesisRequest = {
|
|
138
|
-
opportunity: string;
|
|
139
|
-
name: string;
|
|
140
|
-
description: string;
|
|
141
|
-
};
|
|
142
|
-
export type DocumentUploadRequest = {
|
|
143
|
-
file: Blob;
|
|
144
|
-
description: string;
|
|
145
|
-
name: string;
|
|
146
|
-
typeId: string;
|
|
147
|
-
origin: "AI" | "UPLOAD";
|
|
148
|
-
};
|
|
149
|
-
export type AgentResponse = {
|
|
150
|
-
id: string;
|
|
151
|
-
label: string;
|
|
152
|
-
image?: string;
|
|
153
|
-
builtIn: boolean;
|
|
154
|
-
slug: string;
|
|
155
|
-
createdAt?: string;
|
|
156
|
-
};
|
|
157
|
-
export type DocumentTypeResponse = {
|
|
158
|
-
id: string;
|
|
159
|
-
typeName: "PRESS_RELEASE" | "PRODUCT_VISION" | "PRODUCT_REQUIREMENTS" | "MARKET_COMPARISON";
|
|
160
|
-
agent?: AgentResponse;
|
|
161
|
-
description: string;
|
|
162
|
-
createdAt?: string;
|
|
163
|
-
};
|
|
164
|
-
export type DocumentVersionSummaryResponse = {
|
|
165
|
-
id: string;
|
|
166
|
-
name: string;
|
|
167
|
-
createdAt?: string;
|
|
168
|
-
createdBy?: string;
|
|
169
|
-
};
|
|
170
|
-
export type DocumentUploadResponse = {
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
description: string;
|
|
174
|
-
"type": DocumentTypeResponse;
|
|
175
|
-
origin: "AI" | "UPLOAD";
|
|
176
|
-
createdAt?: string;
|
|
177
|
-
createdBy: string;
|
|
178
|
-
version: DocumentVersionSummaryResponse;
|
|
179
|
-
};
|
|
180
|
-
export type DocumentAttachRequest = {
|
|
181
|
-
documentIds: string[];
|
|
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
|
-
};
|
|
236
|
-
export type DocumentDetailContent = {
|
|
237
|
-
hasPreview: boolean;
|
|
238
|
-
content?: string;
|
|
239
|
-
};
|
|
240
|
-
export type DocumentVersion = {
|
|
241
|
-
id: string;
|
|
242
|
-
name: string;
|
|
243
|
-
createdAt?: string;
|
|
244
|
-
createdBy?: string;
|
|
245
|
-
};
|
|
246
|
-
export type DocumentDetailResponse = {
|
|
247
|
-
id: string;
|
|
248
|
-
name: string;
|
|
249
|
-
description: string;
|
|
250
|
-
"type": DocumentTypeResponse;
|
|
251
|
-
origin: "AI" | "UPLOAD";
|
|
252
|
-
createdAt?: string;
|
|
253
|
-
createdBy: string;
|
|
254
|
-
details: DocumentDetailContent;
|
|
255
|
-
version: DocumentVersion;
|
|
256
|
-
};
|
|
257
|
-
export type DocumentPatchRequest = {
|
|
258
|
-
file: Blob;
|
|
259
|
-
description?: string;
|
|
260
|
-
name?: string;
|
|
261
|
-
};
|
|
262
|
-
export type PageResponseOpportunityResponse = {
|
|
263
|
-
totalElements: number;
|
|
264
|
-
totalPages: number;
|
|
265
|
-
first: boolean;
|
|
266
|
-
last: boolean;
|
|
267
|
-
size: number;
|
|
268
|
-
content: OpportunityResponse[];
|
|
269
|
-
"number": number;
|
|
270
|
-
sort: SortResponse[];
|
|
271
|
-
numberOfElements: number;
|
|
272
|
-
pageable: PageableResponse;
|
|
273
|
-
empty: boolean;
|
|
274
|
-
};
|
|
275
|
-
export type HypothesisSummaryResponse = {
|
|
276
|
-
"number": string;
|
|
277
|
-
};
|
|
278
|
-
export type DocumentWithHypothesesResponse = {
|
|
279
|
-
id: string;
|
|
280
|
-
name: string;
|
|
281
|
-
description?: string;
|
|
282
|
-
origin: "AI" | "UPLOAD";
|
|
283
|
-
hypotheses: HypothesisSummaryResponse[];
|
|
284
|
-
createdAt?: string;
|
|
285
|
-
createdBy: string;
|
|
286
|
-
};
|
|
287
|
-
export type PageResponseDocumentWithHypothesesResponse = {
|
|
288
|
-
totalElements: number;
|
|
289
|
-
totalPages: number;
|
|
290
|
-
first: boolean;
|
|
291
|
-
last: boolean;
|
|
292
|
-
size: number;
|
|
293
|
-
content: DocumentWithHypothesesResponse[];
|
|
294
|
-
"number": number;
|
|
295
|
-
sort: SortResponse[];
|
|
296
|
-
numberOfElements: number;
|
|
297
|
-
pageable: PageableResponse;
|
|
298
|
-
empty: boolean;
|
|
299
|
-
};
|
|
300
|
-
export type DocumentVersionResponse = {
|
|
301
|
-
id: string;
|
|
302
|
-
documentId: string;
|
|
303
|
-
versionName: string;
|
|
304
|
-
s3VersionId: string;
|
|
305
|
-
createdAt?: string;
|
|
306
|
-
createdBy?: string;
|
|
307
|
-
};
|
|
308
|
-
export type PageResponseDocumentVersionResponse = {
|
|
309
|
-
totalElements: number;
|
|
310
|
-
totalPages: number;
|
|
311
|
-
first: boolean;
|
|
312
|
-
last: boolean;
|
|
313
|
-
size: number;
|
|
314
|
-
content: DocumentVersionResponse[];
|
|
315
|
-
"number": number;
|
|
316
|
-
sort: SortResponse[];
|
|
317
|
-
numberOfElements: number;
|
|
318
|
-
pageable: PageableResponse;
|
|
319
|
-
empty: boolean;
|
|
320
|
-
};
|
|
321
|
-
export type DocumentSummaryResponse = {
|
|
322
|
-
id: string;
|
|
323
|
-
name: string;
|
|
324
|
-
description: string;
|
|
325
|
-
origin: "AI" | "UPLOAD";
|
|
326
|
-
hasMultipleHypotheses: boolean;
|
|
327
|
-
createdAt?: string;
|
|
328
|
-
createdBy: string;
|
|
329
|
-
};
|
|
330
|
-
export type PageResponseDocumentSummaryResponse = {
|
|
331
|
-
totalElements: number;
|
|
332
|
-
totalPages: number;
|
|
333
|
-
first: boolean;
|
|
334
|
-
last: boolean;
|
|
335
|
-
size: number;
|
|
336
|
-
content: DocumentSummaryResponse[];
|
|
337
|
-
"number": number;
|
|
338
|
-
sort: SortResponse[];
|
|
339
|
-
numberOfElements: number;
|
|
340
|
-
pageable: PageableResponse;
|
|
341
|
-
empty: boolean;
|
|
342
|
-
};
|
|
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;
|
|
390
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
391
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
392
|
-
status: 200;
|
|
393
|
-
data: HypothesisResponse;
|
|
394
|
-
}>(`/v1/hypotheses/${encodeURIComponent($number)}`, {
|
|
395
|
-
...opts
|
|
396
|
-
}));
|
|
397
|
-
}
|
|
398
|
-
export function updateHypothesis({ $number, hypothesisUpdateRequest }: {
|
|
399
|
-
$number: string;
|
|
400
|
-
hypothesisUpdateRequest: HypothesisUpdateRequest;
|
|
401
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
402
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/hypotheses/${encodeURIComponent($number)}`, oazapfts.json({
|
|
403
|
-
...opts,
|
|
404
|
-
method: "PUT",
|
|
405
|
-
body: hypothesisUpdateRequest
|
|
406
|
-
})));
|
|
407
|
-
}
|
|
408
|
-
export function getByNumber({ $number }: {
|
|
409
|
-
$number: string;
|
|
410
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
411
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
412
|
-
status: 200;
|
|
413
|
-
data: GetHypothesisResponse;
|
|
414
|
-
}>(`/hypotheses/${encodeURIComponent($number)}`, {
|
|
415
|
-
...opts
|
|
416
|
-
}));
|
|
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
|
-
}
|
|
431
|
-
export function listHypothesis({ filter, page, size, sort, direction, status }: {
|
|
432
|
-
filter?: string;
|
|
433
|
-
page?: number;
|
|
434
|
-
size?: number;
|
|
435
|
-
sort?: string;
|
|
436
|
-
direction?: string;
|
|
437
|
-
status?: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED";
|
|
438
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
439
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
440
|
-
status: 200;
|
|
441
|
-
data: PageResponseHypothesisResponse;
|
|
442
|
-
}>(`/v1/hypotheses${QS.query(QS.explode({
|
|
443
|
-
filter,
|
|
444
|
-
page,
|
|
445
|
-
size,
|
|
446
|
-
sort,
|
|
447
|
-
direction,
|
|
448
|
-
status
|
|
449
|
-
}))}`, {
|
|
450
|
-
...opts
|
|
451
|
-
}));
|
|
452
|
-
}
|
|
453
|
-
export function createHypothesis({ createHypothesisRequest }: {
|
|
454
|
-
createHypothesisRequest: CreateHypothesisRequest;
|
|
455
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
456
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
457
|
-
status: 200;
|
|
458
|
-
data: HypothesisResponse;
|
|
459
|
-
}>("/v1/hypotheses", oazapfts.json({
|
|
460
|
-
...opts,
|
|
461
|
-
method: "POST",
|
|
462
|
-
body: createHypothesisRequest
|
|
463
|
-
})));
|
|
464
|
-
}
|
|
465
|
-
export function upload({ hypothesisNumber, documentUploadRequest }: {
|
|
466
|
-
hypothesisNumber: string;
|
|
467
|
-
documentUploadRequest?: DocumentUploadRequest;
|
|
468
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
469
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
470
|
-
status: 200;
|
|
471
|
-
data: DocumentUploadResponse;
|
|
472
|
-
}>(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisNumber)}/upload`, oazapfts.multipart({
|
|
473
|
-
...opts,
|
|
474
|
-
method: "POST",
|
|
475
|
-
body: documentUploadRequest
|
|
476
|
-
})));
|
|
477
|
-
}
|
|
478
|
-
export function attach({ hypothesisNumber, documentAttachRequest }: {
|
|
479
|
-
hypothesisNumber: string;
|
|
480
|
-
documentAttachRequest: DocumentAttachRequest;
|
|
481
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
482
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisNumber)}/attach`, oazapfts.json({
|
|
483
|
-
...opts,
|
|
484
|
-
method: "POST",
|
|
485
|
-
body: documentAttachRequest
|
|
486
|
-
})));
|
|
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
|
-
}
|
|
542
|
-
export function getById({ documentId, versionId }: {
|
|
543
|
-
documentId: string;
|
|
544
|
-
versionId?: string;
|
|
545
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
546
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
547
|
-
status: 200;
|
|
548
|
-
data: DocumentDetailResponse;
|
|
549
|
-
}>(`/v1/documents/${encodeURIComponent(documentId)}${QS.query(QS.explode({
|
|
550
|
-
versionId
|
|
551
|
-
}))}`, {
|
|
552
|
-
...opts
|
|
553
|
-
}));
|
|
554
|
-
}
|
|
555
|
-
export function update1({ documentId, documentPatchRequest }: {
|
|
556
|
-
documentId: string;
|
|
557
|
-
documentPatchRequest?: DocumentPatchRequest;
|
|
558
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
559
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/${encodeURIComponent(documentId)}`, oazapfts.multipart({
|
|
560
|
-
...opts,
|
|
561
|
-
method: "PATCH",
|
|
562
|
-
body: documentPatchRequest
|
|
563
|
-
})));
|
|
564
|
-
}
|
|
565
|
-
export function list1({ filter, page, size, sort, direction }: {
|
|
566
|
-
filter?: string;
|
|
567
|
-
page?: number;
|
|
568
|
-
size?: number;
|
|
569
|
-
sort?: string;
|
|
570
|
-
direction?: string;
|
|
571
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
572
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
573
|
-
status: 200;
|
|
574
|
-
data: PageResponseOpportunityResponse;
|
|
575
|
-
}>(`/v1/opportunities${QS.query(QS.explode({
|
|
576
|
-
filter,
|
|
577
|
-
page,
|
|
578
|
-
size,
|
|
579
|
-
sort,
|
|
580
|
-
direction
|
|
581
|
-
}))}`, {
|
|
582
|
-
...opts
|
|
583
|
-
}));
|
|
584
|
-
}
|
|
585
|
-
export function listAllDocumentsWithHypotheses({ filter, page, size, sort, direction }: {
|
|
586
|
-
filter?: string;
|
|
587
|
-
page?: number;
|
|
588
|
-
size?: number;
|
|
589
|
-
sort?: string;
|
|
590
|
-
direction?: string;
|
|
591
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
592
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
593
|
-
status: 200;
|
|
594
|
-
data: PageResponseDocumentWithHypothesesResponse;
|
|
595
|
-
}>(`/v1/documents${QS.query(QS.explode({
|
|
596
|
-
filter,
|
|
597
|
-
page,
|
|
598
|
-
size,
|
|
599
|
-
sort,
|
|
600
|
-
direction
|
|
601
|
-
}))}`, {
|
|
602
|
-
...opts
|
|
603
|
-
}));
|
|
604
|
-
}
|
|
605
|
-
export function listVersions({ documentId, page, size }: {
|
|
606
|
-
documentId: string;
|
|
607
|
-
page?: number;
|
|
608
|
-
size?: number;
|
|
609
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
610
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
611
|
-
status: 200;
|
|
612
|
-
data: PageResponseDocumentVersionResponse;
|
|
613
|
-
}>(`/v1/documents/${encodeURIComponent(documentId)}/versions${QS.query(QS.explode({
|
|
614
|
-
page,
|
|
615
|
-
size
|
|
616
|
-
}))}`, {
|
|
617
|
-
...opts
|
|
618
|
-
}));
|
|
619
|
-
}
|
|
620
|
-
export function download({ documentId }: {
|
|
621
|
-
documentId: string;
|
|
622
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
623
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
624
|
-
status: 200;
|
|
625
|
-
data: Blob;
|
|
626
|
-
}>(`/v1/documents/${encodeURIComponent(documentId)}/download`, {
|
|
627
|
-
...opts
|
|
628
|
-
}));
|
|
629
|
-
}
|
|
630
|
-
export function list2({ filter, page, size, sort, direction, hypothesisNumber }: {
|
|
631
|
-
filter?: string;
|
|
632
|
-
page?: number;
|
|
633
|
-
size?: number;
|
|
634
|
-
sort?: string;
|
|
635
|
-
direction?: string;
|
|
636
|
-
hypothesisNumber: string;
|
|
637
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
638
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
639
|
-
status: 200;
|
|
640
|
-
data: PageResponseDocumentSummaryResponse;
|
|
641
|
-
}>(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisNumber)}${QS.query(QS.explode({
|
|
642
|
-
filter,
|
|
643
|
-
page,
|
|
644
|
-
size,
|
|
645
|
-
sort,
|
|
646
|
-
direction
|
|
647
|
-
}))}`, {
|
|
648
|
-
...opts
|
|
649
|
-
}));
|
|
650
|
-
}
|
|
651
|
-
export function getAll(opts?: Oazapfts.RequestOpts) {
|
|
652
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
653
|
-
status: 200;
|
|
654
|
-
data: DocumentTypeResponse[];
|
|
655
|
-
}>("/v1/document-types", {
|
|
656
|
-
...opts
|
|
657
|
-
}));
|
|
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
|
-
}
|
|
669
|
-
export function systemHealth(opts?: Oazapfts.RequestOpts) {
|
|
670
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
671
|
-
status: 200;
|
|
672
|
-
data: {
|
|
673
|
-
[key: string]: object;
|
|
674
|
-
};
|
|
675
|
-
}>("/system/health", {
|
|
676
|
-
...opts
|
|
677
|
-
}));
|
|
678
|
-
}
|
|
679
|
-
export function health(opts?: Oazapfts.RequestOpts) {
|
|
680
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
681
|
-
status: 200;
|
|
682
|
-
data: {
|
|
683
|
-
[key: string]: string;
|
|
684
|
-
};
|
|
685
|
-
}>("/orchestrator/health", {
|
|
686
|
-
...opts
|
|
687
|
-
}));
|
|
688
|
-
}
|
|
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;
|
|
723
|
-
documentId: string;
|
|
724
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
725
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/${encodeURIComponent(documentId)}/hypotheses/${encodeURIComponent(hypothesisNumber)}`, {
|
|
726
|
-
...opts,
|
|
727
|
-
method: "DELETE"
|
|
728
|
-
}));
|
|
729
|
-
}
|