@stack-spot/portal-network 1.0.0-betaadp.2 → 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 -89
- 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 -244
- package/src/client/discovery.ts +0 -73
|
@@ -0,0 +1,294 @@
|
|
|
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
|
+
export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
|
|
9
|
+
export declare const servers: {
|
|
10
|
+
generatedServerUrl: string;
|
|
11
|
+
};
|
|
12
|
+
export type GetOpportunityResponseHypothesisResponse = {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
export type GetOpportunityResponse = {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
createdBy: string;
|
|
22
|
+
createdAt?: string;
|
|
23
|
+
hypotheses: GetOpportunityResponseHypothesisResponse[];
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
updatedAt?: string;
|
|
26
|
+
chatId?: string;
|
|
27
|
+
};
|
|
28
|
+
export type UpdateOpportunityRequest = {
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateOpportunityResponse = {
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
createdBy: string;
|
|
37
|
+
createdAt?: string;
|
|
38
|
+
updatedBy?: string;
|
|
39
|
+
updatedAt?: string;
|
|
40
|
+
chatId?: string;
|
|
41
|
+
};
|
|
42
|
+
export type GetHypothesisResponseDocumentResponse = {
|
|
43
|
+
id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
export type GetHypothesisResponse = {
|
|
48
|
+
id: string;
|
|
49
|
+
opportunityId: string;
|
|
50
|
+
title: string;
|
|
51
|
+
description: string;
|
|
52
|
+
documents: GetHypothesisResponseDocumentResponse[];
|
|
53
|
+
createdBy: string;
|
|
54
|
+
createdAt?: string;
|
|
55
|
+
updatedBy?: string;
|
|
56
|
+
updatedAt?: string;
|
|
57
|
+
chatId?: string;
|
|
58
|
+
};
|
|
59
|
+
export type UpdateHypothesisRequest = {
|
|
60
|
+
title?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
};
|
|
63
|
+
export type UpdateHypothesisResponse = {
|
|
64
|
+
id: string;
|
|
65
|
+
opportunityId: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
createdBy: string;
|
|
69
|
+
createdAt?: string;
|
|
70
|
+
updatedBy?: string;
|
|
71
|
+
updatedAt?: string;
|
|
72
|
+
chatId?: string;
|
|
73
|
+
};
|
|
74
|
+
export type GetDocumentResponse = {
|
|
75
|
+
id: string;
|
|
76
|
+
hypothesisId: string;
|
|
77
|
+
title: string;
|
|
78
|
+
description: string;
|
|
79
|
+
createdBy: string;
|
|
80
|
+
createdAt?: string;
|
|
81
|
+
updatedBy?: string;
|
|
82
|
+
updatedAt?: string;
|
|
83
|
+
chatId?: string;
|
|
84
|
+
};
|
|
85
|
+
export type UpdateDocumentRequest = {
|
|
86
|
+
title?: string;
|
|
87
|
+
description?: string;
|
|
88
|
+
content?: string;
|
|
89
|
+
};
|
|
90
|
+
export type UpdateDocumentResponse = {
|
|
91
|
+
id: string;
|
|
92
|
+
hypothesisId: string;
|
|
93
|
+
title: string;
|
|
94
|
+
description: string;
|
|
95
|
+
createdBy: string;
|
|
96
|
+
createdAt?: string;
|
|
97
|
+
updatedBy?: string;
|
|
98
|
+
updatedAt?: string;
|
|
99
|
+
chatId?: string;
|
|
100
|
+
};
|
|
101
|
+
export type SortResponse = {
|
|
102
|
+
direction: string;
|
|
103
|
+
nullHandling: string;
|
|
104
|
+
ascending: boolean;
|
|
105
|
+
property: string;
|
|
106
|
+
ignoreCase: boolean;
|
|
107
|
+
};
|
|
108
|
+
export type PageableResponse = {
|
|
109
|
+
offset: number;
|
|
110
|
+
sort: SortResponse[];
|
|
111
|
+
paged: boolean;
|
|
112
|
+
pageSize: number;
|
|
113
|
+
pageNumber: number;
|
|
114
|
+
unpaged: boolean;
|
|
115
|
+
};
|
|
116
|
+
export type PageResponseGetOpportunityResponse = {
|
|
117
|
+
totalElements: number;
|
|
118
|
+
totalPages: number;
|
|
119
|
+
first: boolean;
|
|
120
|
+
last: boolean;
|
|
121
|
+
size: number;
|
|
122
|
+
content: GetOpportunityResponse[];
|
|
123
|
+
"number": number;
|
|
124
|
+
sort: SortResponse[];
|
|
125
|
+
numberOfElements: number;
|
|
126
|
+
pageable: PageableResponse;
|
|
127
|
+
empty: boolean;
|
|
128
|
+
};
|
|
129
|
+
export type CreateOpportunityRequest = {
|
|
130
|
+
title?: string;
|
|
131
|
+
description?: string;
|
|
132
|
+
chatId?: string;
|
|
133
|
+
};
|
|
134
|
+
export type CreateOpportunityResponse = {
|
|
135
|
+
id: string;
|
|
136
|
+
title: string;
|
|
137
|
+
description: string;
|
|
138
|
+
createdBy: string;
|
|
139
|
+
createdAt?: string;
|
|
140
|
+
updatedBy?: string;
|
|
141
|
+
updatedAt?: string;
|
|
142
|
+
chatId?: string;
|
|
143
|
+
};
|
|
144
|
+
export type CreateHypothesisRequest = {
|
|
145
|
+
opportunityId?: string;
|
|
146
|
+
title?: string;
|
|
147
|
+
description?: string;
|
|
148
|
+
chatId?: string;
|
|
149
|
+
};
|
|
150
|
+
export type CreateHypothesisResponse = {
|
|
151
|
+
id: string;
|
|
152
|
+
opportunityId: string;
|
|
153
|
+
title: string;
|
|
154
|
+
description: string;
|
|
155
|
+
createdBy: string;
|
|
156
|
+
createdAt?: string;
|
|
157
|
+
updatedBy?: string;
|
|
158
|
+
updatedAt?: string;
|
|
159
|
+
chatId?: string;
|
|
160
|
+
};
|
|
161
|
+
export type CreateDocumentRequest = {
|
|
162
|
+
hypothesisId?: string;
|
|
163
|
+
title?: string;
|
|
164
|
+
description?: string;
|
|
165
|
+
content?: string;
|
|
166
|
+
chatId?: string;
|
|
167
|
+
};
|
|
168
|
+
export type CreateDocumentResponse = {
|
|
169
|
+
id: string;
|
|
170
|
+
hypothesisId: string;
|
|
171
|
+
title: string;
|
|
172
|
+
description: string;
|
|
173
|
+
createdBy: string;
|
|
174
|
+
createdAt?: string;
|
|
175
|
+
updatedBy?: string;
|
|
176
|
+
updatedAt?: string;
|
|
177
|
+
chatId?: string;
|
|
178
|
+
};
|
|
179
|
+
export type GetArtifactResponse = {
|
|
180
|
+
"type": "OPPORTUNITY" | "HYPOTHESIS" | "DOCUMENT";
|
|
181
|
+
id: string;
|
|
182
|
+
title: string;
|
|
183
|
+
description: string;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Get specific Opportunity
|
|
187
|
+
*/
|
|
188
|
+
export declare function getById({ opportunityId }: {
|
|
189
|
+
opportunityId: string;
|
|
190
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetOpportunityResponse>;
|
|
191
|
+
/**
|
|
192
|
+
* Update specific Opportunity
|
|
193
|
+
*/
|
|
194
|
+
export declare function updateById({ opportunityId, updateOpportunityRequest }: {
|
|
195
|
+
opportunityId: string;
|
|
196
|
+
updateOpportunityRequest: UpdateOpportunityRequest;
|
|
197
|
+
}, opts?: Oazapfts.RequestOpts): Promise<UpdateOpportunityResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* Delete specific Opportunity
|
|
200
|
+
*/
|
|
201
|
+
export declare function deleteById({ opportunityId }: {
|
|
202
|
+
opportunityId: string;
|
|
203
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
204
|
+
/**
|
|
205
|
+
* Get specific Hypothesis
|
|
206
|
+
*/
|
|
207
|
+
export declare function getById1({ hypothesisId }: {
|
|
208
|
+
hypothesisId: string;
|
|
209
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetHypothesisResponse>;
|
|
210
|
+
/**
|
|
211
|
+
* Update specific Hypothesis
|
|
212
|
+
*/
|
|
213
|
+
export declare function updateById1({ hypothesisId, updateHypothesisRequest }: {
|
|
214
|
+
hypothesisId: string;
|
|
215
|
+
updateHypothesisRequest: UpdateHypothesisRequest;
|
|
216
|
+
}, opts?: Oazapfts.RequestOpts): Promise<UpdateHypothesisResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* Delete specific Hypothesis
|
|
219
|
+
*/
|
|
220
|
+
export declare function deleteById1({ hypothesisId }: {
|
|
221
|
+
hypothesisId: string;
|
|
222
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
223
|
+
/**
|
|
224
|
+
* Get specific Document
|
|
225
|
+
*/
|
|
226
|
+
export declare function getById2({ documentId }: {
|
|
227
|
+
documentId: string;
|
|
228
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetDocumentResponse>;
|
|
229
|
+
/**
|
|
230
|
+
* Update specific Document
|
|
231
|
+
*/
|
|
232
|
+
export declare function updateById2({ documentId, updateDocumentRequest }: {
|
|
233
|
+
documentId: string;
|
|
234
|
+
updateDocumentRequest: UpdateDocumentRequest;
|
|
235
|
+
}, opts?: Oazapfts.RequestOpts): Promise<UpdateDocumentResponse>;
|
|
236
|
+
/**
|
|
237
|
+
* Delete specific Document
|
|
238
|
+
*/
|
|
239
|
+
export declare function deleteById2({ documentId }: {
|
|
240
|
+
documentId: string;
|
|
241
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
242
|
+
/**
|
|
243
|
+
* Get all Opportunities
|
|
244
|
+
*/
|
|
245
|
+
export declare function getAll({ filter, page, size, sort, direction }: {
|
|
246
|
+
filter?: string;
|
|
247
|
+
page?: number;
|
|
248
|
+
size?: number;
|
|
249
|
+
sort?: string;
|
|
250
|
+
direction?: string;
|
|
251
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PageResponseGetOpportunityResponse>;
|
|
252
|
+
/**
|
|
253
|
+
* Create new Opportunity
|
|
254
|
+
*/
|
|
255
|
+
export declare function create({ createOpportunityRequest }: {
|
|
256
|
+
createOpportunityRequest: CreateOpportunityRequest;
|
|
257
|
+
}, opts?: Oazapfts.RequestOpts): Promise<CreateOpportunityResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* Get all Hypotheses
|
|
260
|
+
*/
|
|
261
|
+
export declare function getAll1({ opportunityId }: {
|
|
262
|
+
opportunityId: string;
|
|
263
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetHypothesisResponse[]>;
|
|
264
|
+
/**
|
|
265
|
+
* Create new Hypothesis
|
|
266
|
+
*/
|
|
267
|
+
export declare function create1({ createHypothesisRequest }: {
|
|
268
|
+
createHypothesisRequest: CreateHypothesisRequest;
|
|
269
|
+
}, opts?: Oazapfts.RequestOpts): Promise<CreateHypothesisResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* Get all Documents by Hypothesis
|
|
272
|
+
*/
|
|
273
|
+
export declare function getAllByHypothesis({ hypothesisId }: {
|
|
274
|
+
hypothesisId: string;
|
|
275
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetDocumentResponse[]>;
|
|
276
|
+
/**
|
|
277
|
+
* Create Document
|
|
278
|
+
*/
|
|
279
|
+
export declare function create2({ createDocumentRequest }: {
|
|
280
|
+
createDocumentRequest: CreateDocumentRequest;
|
|
281
|
+
}, opts?: Oazapfts.RequestOpts): Promise<CreateDocumentResponse>;
|
|
282
|
+
/**
|
|
283
|
+
* Get specific Document content
|
|
284
|
+
*/
|
|
285
|
+
export declare function getContentById({ documentId }: {
|
|
286
|
+
documentId: string;
|
|
287
|
+
}, opts?: Oazapfts.RequestOpts): Promise<string>;
|
|
288
|
+
/**
|
|
289
|
+
* Get chat artifacts
|
|
290
|
+
*/
|
|
291
|
+
export declare function getAll2({ chatId }: {
|
|
292
|
+
chatId: string;
|
|
293
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetArtifactResponse[]>;
|
|
294
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/api/discover.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAG9D,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AACF,MAAM,MAAM,wCAAwC,GAAG;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,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,CAAC,EAAE,QAAQ,CAAC,WAAW,qCAS7B;AACD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,EAAE;IACjD,YAAY,EAAE,MAAM,CAAC;CACxB,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,kCAS7B;AACD;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,qBAAqB,EAAE,EAAE;IAC/C,qBAAqB,EAAE,qBAAqB,CAAC;CAChD,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,mCAS7B;AACD;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,UAAU,EAAE,EAAE;IAC3C,UAAU,EAAE,MAAM,CAAC;CACtB,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,mBAO7B;AACD;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE;IAChC,MAAM,EAAE,MAAM,CAAC;CAClB,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,kCAS7B"}
|
|
@@ -0,0 +1,180 @@
|
|
|
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 = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "https://discover-discover-core.stg.stackspot.com",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {
|
|
15
|
+
generatedServerUrl: "https://discover-discover-core.stg.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Get specific Opportunity
|
|
19
|
+
*/
|
|
20
|
+
export function getById({ opportunityId }, opts) {
|
|
21
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/opportunities/${encodeURIComponent(opportunityId)}`, {
|
|
22
|
+
...opts
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Update specific Opportunity
|
|
27
|
+
*/
|
|
28
|
+
export function updateById({ opportunityId, updateOpportunityRequest }, opts) {
|
|
29
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/opportunities/${encodeURIComponent(opportunityId)}`, oazapfts.json({
|
|
30
|
+
...opts,
|
|
31
|
+
method: "PUT",
|
|
32
|
+
body: updateOpportunityRequest
|
|
33
|
+
})));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Delete specific Opportunity
|
|
37
|
+
*/
|
|
38
|
+
export function deleteById({ opportunityId }, opts) {
|
|
39
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/opportunities/${encodeURIComponent(opportunityId)}`, {
|
|
40
|
+
...opts,
|
|
41
|
+
method: "DELETE"
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Get specific Hypothesis
|
|
46
|
+
*/
|
|
47
|
+
export function getById1({ hypothesisId }, opts) {
|
|
48
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/hypotheses/${encodeURIComponent(hypothesisId)}`, {
|
|
49
|
+
...opts
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Update specific Hypothesis
|
|
54
|
+
*/
|
|
55
|
+
export function updateById1({ hypothesisId, updateHypothesisRequest }, opts) {
|
|
56
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/hypotheses/${encodeURIComponent(hypothesisId)}`, oazapfts.json({
|
|
57
|
+
...opts,
|
|
58
|
+
method: "PUT",
|
|
59
|
+
body: updateHypothesisRequest
|
|
60
|
+
})));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Delete specific Hypothesis
|
|
64
|
+
*/
|
|
65
|
+
export function deleteById1({ hypothesisId }, opts) {
|
|
66
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/hypotheses/${encodeURIComponent(hypothesisId)}`, {
|
|
67
|
+
...opts,
|
|
68
|
+
method: "DELETE"
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get specific Document
|
|
73
|
+
*/
|
|
74
|
+
export function getById2({ documentId }, opts) {
|
|
75
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/documents/${encodeURIComponent(documentId)}`, {
|
|
76
|
+
...opts
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Update specific Document
|
|
81
|
+
*/
|
|
82
|
+
export function updateById2({ documentId, updateDocumentRequest }, opts) {
|
|
83
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/documents/${encodeURIComponent(documentId)}`, oazapfts.json({
|
|
84
|
+
...opts,
|
|
85
|
+
method: "PUT",
|
|
86
|
+
body: updateDocumentRequest
|
|
87
|
+
})));
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Delete specific Document
|
|
91
|
+
*/
|
|
92
|
+
export function deleteById2({ documentId }, opts) {
|
|
93
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/documents/${encodeURIComponent(documentId)}`, {
|
|
94
|
+
...opts,
|
|
95
|
+
method: "DELETE"
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get all Opportunities
|
|
100
|
+
*/
|
|
101
|
+
export function getAll({ filter, page, size, sort, direction }, opts) {
|
|
102
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/opportunities${QS.query(QS.explode({
|
|
103
|
+
filter,
|
|
104
|
+
page,
|
|
105
|
+
size,
|
|
106
|
+
sort,
|
|
107
|
+
direction
|
|
108
|
+
}))}`, {
|
|
109
|
+
...opts
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Create new Opportunity
|
|
114
|
+
*/
|
|
115
|
+
export function create({ createOpportunityRequest }, opts) {
|
|
116
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/opportunities", oazapfts.json({
|
|
117
|
+
...opts,
|
|
118
|
+
method: "POST",
|
|
119
|
+
body: createOpportunityRequest
|
|
120
|
+
})));
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get all Hypotheses
|
|
124
|
+
*/
|
|
125
|
+
export function getAll1({ opportunityId }, opts) {
|
|
126
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/hypotheses${QS.query(QS.explode({
|
|
127
|
+
opportunityId
|
|
128
|
+
}))}`, {
|
|
129
|
+
...opts
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Create new Hypothesis
|
|
134
|
+
*/
|
|
135
|
+
export function create1({ createHypothesisRequest }, opts) {
|
|
136
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/hypotheses", oazapfts.json({
|
|
137
|
+
...opts,
|
|
138
|
+
method: "POST",
|
|
139
|
+
body: createHypothesisRequest
|
|
140
|
+
})));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Get all Documents by Hypothesis
|
|
144
|
+
*/
|
|
145
|
+
export function getAllByHypothesis({ hypothesisId }, opts) {
|
|
146
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/documents${QS.query(QS.explode({
|
|
147
|
+
hypothesisId
|
|
148
|
+
}))}`, {
|
|
149
|
+
...opts
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Create Document
|
|
154
|
+
*/
|
|
155
|
+
export function create2({ createDocumentRequest }, opts) {
|
|
156
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/documents", oazapfts.json({
|
|
157
|
+
...opts,
|
|
158
|
+
method: "POST",
|
|
159
|
+
body: createDocumentRequest
|
|
160
|
+
})));
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get specific Document content
|
|
164
|
+
*/
|
|
165
|
+
export function getContentById({ documentId }, opts) {
|
|
166
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/documents/${encodeURIComponent(documentId)}/content`, {
|
|
167
|
+
...opts
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get chat artifacts
|
|
172
|
+
*/
|
|
173
|
+
export function getAll2({ chatId }, opts) {
|
|
174
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/artifacts${QS.query(QS.explode({
|
|
175
|
+
chatId
|
|
176
|
+
}))}`, {
|
|
177
|
+
...opts
|
|
178
|
+
}));
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=discover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../../src/api/discover.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC9C,MAAM,CAAC,MAAM,QAAQ,GAA8C;IAC/D,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,kDAAkD;CAC9D,CAAC;AACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,kBAAkB,EAAE,kDAAkD;CACzE,CAAC;AA8KF;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,aAAa,EAEtC,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAGlC,qBAAqB,kBAAkB,CAAC,aAAa,CAAC,EAAE,EAAE;QACzD,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AACD;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,aAAa,EAAE,wBAAwB,EAGnE,EAAE,IAA2B;IAC1B,OA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AACD;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,qBAAqB,EAE9C,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAGlC,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC;QAC9B,GAAG,IAAI;QACP,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qBAAqB;KAC9B,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AACD;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,UAAU,EAE1C,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAGlC,iBAAiB,kBAAkB,CAAC,UAAU,CAAC,UAAU,EAAE;QAC1D,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AACD;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAE/B,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAGlC,gBAAgB,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC;QACnC,MAAM;KACT,CAAC,CAAC,EAAE,EAAE;QACH,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC"}
|
package/dist/apis.json
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ConversationResponse } from '../api/ai.js';
|
|
2
|
+
import { GetOpportunityResponse } from '../api/discover.js';
|
|
3
|
+
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
4
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
5
|
+
export interface ChatConversionDetails extends ConversationResponse {
|
|
6
|
+
opportunityName?: string;
|
|
7
|
+
hypothesisCount?: number;
|
|
8
|
+
}
|
|
9
|
+
declare class DiscoverClient extends ReactQueryNetworkClient {
|
|
10
|
+
constructor();
|
|
11
|
+
protected buildStackSpotError(error: any): StackspotAPIError;
|
|
12
|
+
opportunities: import("../network/types.js").QueryObject<{
|
|
13
|
+
filter?: string | undefined;
|
|
14
|
+
page?: number | undefined;
|
|
15
|
+
size?: number | undefined;
|
|
16
|
+
sort?: string | undefined;
|
|
17
|
+
direction?: string | undefined;
|
|
18
|
+
}, import("../api/discover.js").PageResponseGetOpportunityResponse>;
|
|
19
|
+
opportunity: import("../network/types.js").QueryObject<{
|
|
20
|
+
opportunityId: string;
|
|
21
|
+
}, GetOpportunityResponse>;
|
|
22
|
+
hypotheses: import("../network/types.js").QueryObject<{
|
|
23
|
+
opportunityId: string;
|
|
24
|
+
}, import("../api/discover.js").GetHypothesisResponse[]>;
|
|
25
|
+
hypothesisById: import("../network/types.js").QueryObject<{
|
|
26
|
+
hypothesisId: string;
|
|
27
|
+
}, import("../api/discover.js").GetHypothesisResponse>;
|
|
28
|
+
documents: import("../network/types.js").QueryObject<{
|
|
29
|
+
hypothesisId: string;
|
|
30
|
+
}, import("../api/discover.js").GetDocumentResponse[]>;
|
|
31
|
+
document: import("../network/types.js").QueryObject<{
|
|
32
|
+
documentId: string;
|
|
33
|
+
}, import("../api/discover.js").GetDocumentResponse>;
|
|
34
|
+
artifacts: import("../network/types.js").QueryObject<{
|
|
35
|
+
chatId: string;
|
|
36
|
+
}, import("../api/discover.js").GetArtifactResponse[]>;
|
|
37
|
+
createOpportunity: import("../network/types.js").MutationObject<{
|
|
38
|
+
createOpportunityRequest: import("../api/discover.js").CreateOpportunityRequest;
|
|
39
|
+
}, import("../api/discover.js").CreateOpportunityResponse>;
|
|
40
|
+
createHypothesis: import("../network/types.js").MutationObject<{
|
|
41
|
+
createHypothesisRequest: import("../api/discover.js").CreateHypothesisRequest;
|
|
42
|
+
}, import("../api/discover.js").CreateHypothesisResponse>;
|
|
43
|
+
createDocument: import("../network/types.js").MutationObject<{
|
|
44
|
+
createDocumentRequest: import("../api/discover.js").CreateDocumentRequest;
|
|
45
|
+
}, import("../api/discover.js").CreateDocumentResponse>;
|
|
46
|
+
deleteOpportunity: import("../network/types.js").MutationObject<{
|
|
47
|
+
opportunityId: string;
|
|
48
|
+
}, never>;
|
|
49
|
+
deleteHypothesis: import("../network/types.js").MutationObject<{
|
|
50
|
+
hypothesisId: string;
|
|
51
|
+
}, never>;
|
|
52
|
+
deleteDocument: import("../network/types.js").MutationObject<{
|
|
53
|
+
documentId: string;
|
|
54
|
+
}, never>;
|
|
55
|
+
chats: Omit<import("../network/types.js").QueryObject<{
|
|
56
|
+
filter?: string | undefined;
|
|
57
|
+
page?: number | undefined;
|
|
58
|
+
size?: number | undefined;
|
|
59
|
+
}, ChatConversionDetails[]>, "isAllowed" | "useAllowed" | "getPermissionKey">;
|
|
60
|
+
}
|
|
61
|
+
export declare const discoverClient: DiscoverClient;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAuJ,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC7M,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,cAAM,cAAe,SAAQ,uBAAuB;;IAKlD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,iBAAiB;IAI5D,aAAa;;;;;;qEAAqB;IAElC,WAAW;;+BAAsB;IAEjC,UAAU;;0DAAsB;IAEhC,cAAc;;wDAAuB;IAErC,SAAS;;wDAAiC;IAE1C,QAAQ;;sDAAuB;IAE/B,SAAS;;wDAAsB;IAE/B,iBAAiB;;4DAAwB;IAEzC,gBAAgB;;2DAAyB;IAEzC,cAAc;;yDAAyB;IAEvC,iBAAiB;;cAA4B;IAE7C,gBAAgB;;cAA6B;IAE7C,cAAc;;cAA6B;IAE3C,KAAK;;;;kFAmCH;CACH;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
|