@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
|
@@ -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=discov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