@stack-spot/portal-network 1.0.0-betaadp.2 → 1.0.0-dev.1768422812092
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 +633 -0
- package/dist/api/account.d.ts +413 -277
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +261 -176
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +309 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +169 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +243 -149
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +77 -5
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +487 -98
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +427 -146
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +374 -221
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +299 -93
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +1125 -83
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +538 -16
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +380 -0
- package/dist/api/discover.d.ts.map +1 -0
- package/dist/api/discover.js +256 -0
- package/dist/api/discover.js.map +1 -0
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/api/workflows.d.ts +68 -5
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js +16 -0
- package/dist/api/workflows.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +10 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api-addresses.d.ts +20 -18
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +81 -21
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +241 -0
- package/dist/apis.json +18 -2
- package/dist/client/account-asset-manager.d.ts +112 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +265 -242
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +80 -34
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +166 -119
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +62 -11
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +266 -79
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +262 -20
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +10 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +11 -2
- package/dist/client/api-management.js.map +1 -1
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +213 -46
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +168 -33
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +535 -162
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +296 -7
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +92 -53
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +38 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +84 -0
- package/dist/client/discover.d.ts.map +1 -0
- package/dist/client/discover.js +359 -0
- package/dist/client/discover.js.map +1 -0
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +17 -10
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +50 -7
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +53 -53
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +3 -7
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +115 -76
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +47 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/error/dictionary/cloud-platform.d.ts +76 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +80 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/error/dictionary/workspace-ai.d.ts +9 -0
- package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-ai.js +9 -0
- package/dist/error/dictionary/workspace-ai.js.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +16 -4
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +2 -0
- package/dist/network/types.d.ts.map +1 -1
- package/dist/utils/StreamedJson.d.ts +3 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +23 -3
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +10 -9
- package/package.stg.json +3 -0
- package/readme.md +40 -1
- package/src/api/account.ts +701 -540
- package/src/api/accountAssetManager.ts +771 -0
- package/src/api/agent-tools.ts +332 -151
- package/src/api/ai.ts +891 -170
- package/src/api/cloudPlatform.ts +667 -298
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +2088 -97
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +601 -0
- package/src/api/edpBfa.ts +472 -0
- package/src/api/genAiInference.ts +47 -4
- package/src/api/workflows.ts +100 -5
- package/src/api/workspaceManager.ts +25 -10
- package/src/api-addresses.ts +113 -38
- package/src/apis-itau.json +241 -0
- package/src/apis.json +18 -2
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +71 -40
- package/src/client/agent-tools.ts +57 -17
- package/src/client/ai.ts +232 -20
- package/src/client/api-management.ts +7 -2
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/cloud-platform.ts +101 -27
- package/src/client/code-shift.ts +196 -8
- package/src/client/data-integration.ts +28 -1
- package/src/client/discover.ts +319 -0
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +55 -9
- package/src/client/workspace-ai.ts +19 -23
- package/src/client/workspace-manager.ts +31 -2
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/error/dictionary/cloud-platform.ts +80 -12
- package/src/error/dictionary/workspace-ai.ts +10 -0
- package/src/index.ts +7 -4
- package/src/network/NetworkClient.ts +18 -6
- package/src/network/types.ts +3 -0
- package/src/utils/StreamedJson.tsx +19 -4
- 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
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { HttpError } from '@oazapfts/runtime';
|
|
2
|
-
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
3
|
-
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
|
-
declare class DiscoveryClient extends ReactQueryNetworkClient {
|
|
5
|
-
constructor();
|
|
6
|
-
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
7
|
-
/**
|
|
8
|
-
* Get list of hypotheses
|
|
9
|
-
*/
|
|
10
|
-
listHypotheses: import("../network/types.js").QueryObject<{
|
|
11
|
-
filter?: string | undefined;
|
|
12
|
-
page?: number | undefined;
|
|
13
|
-
size?: number | undefined;
|
|
14
|
-
sort?: string | undefined;
|
|
15
|
-
direction?: string | undefined;
|
|
16
|
-
status?: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED" | undefined;
|
|
17
|
-
}, import("../api/discovery.js").PageResponseHypothesisResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Get details of an hypothesis by id
|
|
20
|
-
*/
|
|
21
|
-
getHypothesisById: import("../network/types.js").QueryObject<{
|
|
22
|
-
$number: string;
|
|
23
|
-
}, import("../api/discovery.js").HypothesisResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Get list of hypothesis documents
|
|
26
|
-
*/
|
|
27
|
-
listDocumentsByHypothesis: import("../network/types.js").QueryObject<{
|
|
28
|
-
filter?: string | undefined;
|
|
29
|
-
page?: number | undefined;
|
|
30
|
-
size?: number | undefined;
|
|
31
|
-
sort?: string | undefined;
|
|
32
|
-
direction?: string | undefined;
|
|
33
|
-
hypothesisNumber: string;
|
|
34
|
-
}, import("../api/discovery.js").PageResponseDocumentSummaryResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Get list of all documents
|
|
37
|
-
*/
|
|
38
|
-
listAllDocuments: import("../network/types.js").QueryObject<{
|
|
39
|
-
filter?: string | undefined;
|
|
40
|
-
page?: number | undefined;
|
|
41
|
-
size?: number | undefined;
|
|
42
|
-
sort?: string | undefined;
|
|
43
|
-
direction?: string | undefined;
|
|
44
|
-
}, import("../api/discovery.js").PageResponseDocumentWithHypothesesResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Get document details by id
|
|
47
|
-
*/
|
|
48
|
-
getDocumentById: import("../network/types.js").QueryObject<{
|
|
49
|
-
documentId: string;
|
|
50
|
-
versionId?: string | undefined;
|
|
51
|
-
}, import("../api/discovery.js").DocumentDetailResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* Get list of opportunities
|
|
54
|
-
*/
|
|
55
|
-
listOpportunities: import("../network/types.js").QueryObject<{
|
|
56
|
-
filter?: string | undefined;
|
|
57
|
-
page?: number | undefined;
|
|
58
|
-
size?: number | undefined;
|
|
59
|
-
sort?: string | undefined;
|
|
60
|
-
direction?: string | undefined;
|
|
61
|
-
}, import("../api/discovery.js").PageResponseOpportunityResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Get list of document types
|
|
64
|
-
*/
|
|
65
|
-
listDocumentTypes: import("../network/types.js").QueryObject<void, import("../api/discovery.js").DocumentTypeResponse[]>;
|
|
66
|
-
/**
|
|
67
|
-
* Create an hypothesis
|
|
68
|
-
*/
|
|
69
|
-
createHypothesis: import("../network/types.js").MutationObject<Omit<{
|
|
70
|
-
createHypothesisRequest: import("../api/discovery.js").CreateHypothesisRequest;
|
|
71
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/discovery.js").HypothesisResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* Create an document
|
|
74
|
-
*/
|
|
75
|
-
createDocument: import("../network/types.js").MutationObject<Omit<{
|
|
76
|
-
hypothesisNumber: string;
|
|
77
|
-
documentUploadRequest?: import("../api/discovery.js").DocumentUploadRequest | undefined;
|
|
78
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/discovery.js").DocumentUploadResponse>;
|
|
79
|
-
/**
|
|
80
|
-
* Attach a existing document in an hypothesis
|
|
81
|
-
*/
|
|
82
|
-
attachExistingDocument: import("../network/types.js").MutationObject<Omit<{
|
|
83
|
-
hypothesisNumber: string;
|
|
84
|
-
documentAttachRequest: import("../api/discovery.js").DocumentAttachRequest;
|
|
85
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
86
|
-
/**
|
|
87
|
-
* Delete an document
|
|
88
|
-
*/
|
|
89
|
-
deleteDocument: import("../network/types.js").MutationObject<Omit<{
|
|
90
|
-
hypothesisNumber: string;
|
|
91
|
-
documentId: string;
|
|
92
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
93
|
-
/**
|
|
94
|
-
* Download an document
|
|
95
|
-
*/
|
|
96
|
-
downloadDocument: import("../network/types.js").QueryObject<Omit<{
|
|
97
|
-
documentId: string;
|
|
98
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, Blob>;
|
|
99
|
-
/**
|
|
100
|
-
* List versions of a document
|
|
101
|
-
*/
|
|
102
|
-
listDocumentVersions: import("../network/types.js").QueryObject<Omit<{
|
|
103
|
-
documentId: string;
|
|
104
|
-
page?: number | undefined;
|
|
105
|
-
size?: number | undefined;
|
|
106
|
-
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/discovery.js").PageResponseDocumentVersionResponse>;
|
|
107
|
-
}
|
|
108
|
-
export declare const discoveryClient: DiscoveryClient;
|
|
109
|
-
export {};
|
|
110
|
-
//# sourceMappingURL=discovery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/client/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAI5E,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
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { attach, createHypothesis, defaults, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber, download, findHypothesisByNumber, getAll, getById, list1, list2, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery.js';
|
|
2
|
-
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
3
|
-
import { baseDictionary } from '../error/dictionary/base.js';
|
|
4
|
-
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
5
|
-
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
6
|
-
import { getApiAddresses } from '../api-addresses.js';
|
|
7
|
-
class DiscoveryClient extends ReactQueryNetworkClient {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(getApiAddresses().discovery.url, defaults);
|
|
10
|
-
/**
|
|
11
|
-
* Get list of hypotheses
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "listHypotheses", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: this.query(listHypothesis)
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* Get details of an hypothesis by id
|
|
21
|
-
*/
|
|
22
|
-
Object.defineProperty(this, "getHypothesisById", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true,
|
|
25
|
-
writable: true,
|
|
26
|
-
value: this.query(findHypothesisByNumber)
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Get list of hypothesis documents
|
|
30
|
-
*/
|
|
31
|
-
Object.defineProperty(this, "listDocumentsByHypothesis", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: this.query(list2)
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* Get list of all documents
|
|
39
|
-
*/
|
|
40
|
-
Object.defineProperty(this, "listAllDocuments", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
writable: true,
|
|
44
|
-
value: this.query(listAllDocumentsWithHypotheses)
|
|
45
|
-
});
|
|
46
|
-
/**
|
|
47
|
-
* Get document details by id
|
|
48
|
-
*/
|
|
49
|
-
Object.defineProperty(this, "getDocumentById", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true,
|
|
52
|
-
writable: true,
|
|
53
|
-
value: this.query(getById)
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* Get list of opportunities
|
|
57
|
-
*/
|
|
58
|
-
Object.defineProperty(this, "listOpportunities", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true,
|
|
61
|
-
writable: true,
|
|
62
|
-
value: this.query(list1)
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* Get list of document types
|
|
66
|
-
*/
|
|
67
|
-
Object.defineProperty(this, "listDocumentTypes", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
configurable: true,
|
|
70
|
-
writable: true,
|
|
71
|
-
value: this.query(getAll)
|
|
72
|
-
});
|
|
73
|
-
/**
|
|
74
|
-
* Create an hypothesis
|
|
75
|
-
*/
|
|
76
|
-
Object.defineProperty(this, "createHypothesis", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
configurable: true,
|
|
79
|
-
writable: true,
|
|
80
|
-
value: this.mutation(removeAuthorizationParam(createHypothesis))
|
|
81
|
-
});
|
|
82
|
-
/**
|
|
83
|
-
* Create an document
|
|
84
|
-
*/
|
|
85
|
-
Object.defineProperty(this, "createDocument", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
configurable: true,
|
|
88
|
-
writable: true,
|
|
89
|
-
value: this.mutation(removeAuthorizationParam(upload))
|
|
90
|
-
});
|
|
91
|
-
/**
|
|
92
|
-
* Attach a existing document in an hypothesis
|
|
93
|
-
*/
|
|
94
|
-
Object.defineProperty(this, "attachExistingDocument", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
configurable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
value: this.mutation(removeAuthorizationParam(attach))
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* Delete an document
|
|
102
|
-
*/
|
|
103
|
-
Object.defineProperty(this, "deleteDocument", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
configurable: true,
|
|
106
|
-
writable: true,
|
|
107
|
-
value: this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber))
|
|
108
|
-
});
|
|
109
|
-
/**
|
|
110
|
-
* Download an document
|
|
111
|
-
*/
|
|
112
|
-
Object.defineProperty(this, "downloadDocument", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
configurable: true,
|
|
115
|
-
writable: true,
|
|
116
|
-
value: this.query(removeAuthorizationParam(download))
|
|
117
|
-
});
|
|
118
|
-
/**
|
|
119
|
-
* List versions of a document
|
|
120
|
-
*/
|
|
121
|
-
Object.defineProperty(this, "listDocumentVersions", {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
configurable: true,
|
|
124
|
-
writable: true,
|
|
125
|
-
value: this.query(removeAuthorizationParam(listVersions))
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
buildStackSpotError(error) {
|
|
129
|
-
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
export const discoveryClient = new DiscoveryClient();
|
|
133
|
-
//# sourceMappingURL=discovery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,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;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,eAAgB,SAAQ,uBAAuB;IAEnD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAMlD;;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"}
|