@stack-spot/portal-network 0.172.3-beta.1 → 0.173.0-beta.1
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 +20 -0
- package/dist/api/codeShift.d.ts +21 -5
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +13 -0
- package/dist/api/codeShift.js.map +1 -1
- 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 +2 -2
- package/dist/client/code-shift.d.ts +12 -5
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +10 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/discover.d.ts +64 -0
- package/dist/client/discover.d.ts.map +1 -0
- package/dist/client/discover.js +124 -0
- package/dist/client/discover.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/codeShift.ts +55 -5
- package/src/api/discover.ts +435 -0
- package/src/apis.json +2 -2
- package/src/client/code-shift.ts +5 -0
- package/src/client/discover.ts +89 -0
- package/src/index.ts +2 -1
- 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/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/discovery.ts +0 -73
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime';
|
|
2
|
+
import { ConversationResponse } from '../api/ai.js';
|
|
3
|
+
import { GetOpportunityResponse } from '../api/discover.js';
|
|
4
|
+
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
5
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
6
|
+
export interface ChatConversionDetails extends ConversationResponse {
|
|
7
|
+
opportunityName?: string;
|
|
8
|
+
hypothesisCount?: number;
|
|
9
|
+
}
|
|
10
|
+
declare class DiscoverClient extends ReactQueryNetworkClient {
|
|
11
|
+
constructor();
|
|
12
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
13
|
+
opportunities: import("../network/types.js").QueryObject<{
|
|
14
|
+
filter?: string | undefined;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
size?: number | undefined;
|
|
17
|
+
sort?: string | undefined;
|
|
18
|
+
direction?: string | undefined;
|
|
19
|
+
}, import("../api/discover.js").PageResponseGetOpportunityResponse>;
|
|
20
|
+
opportunity: import("../network/types.js").QueryObject<{
|
|
21
|
+
opportunityId: string;
|
|
22
|
+
}, GetOpportunityResponse>;
|
|
23
|
+
hypotheses: import("../network/types.js").QueryObject<{
|
|
24
|
+
opportunityId: string;
|
|
25
|
+
}, import("../api/discover.js").GetHypothesisResponse[]>;
|
|
26
|
+
hypothesisById: import("../network/types.js").QueryObject<{
|
|
27
|
+
hypothesisId: string;
|
|
28
|
+
}, import("../api/discover.js").GetHypothesisResponse>;
|
|
29
|
+
documents: import("../network/types.js").QueryObject<{
|
|
30
|
+
hypothesisId: string;
|
|
31
|
+
}, import("../api/discover.js").GetDocumentResponse[]>;
|
|
32
|
+
document: import("../network/types.js").QueryObject<{
|
|
33
|
+
documentId: string;
|
|
34
|
+
}, import("../api/discover.js").GetDocumentResponse>;
|
|
35
|
+
artifacts: import("../network/types.js").QueryObject<{
|
|
36
|
+
chatId: string;
|
|
37
|
+
}, import("../api/discover.js").GetArtifactResponse[]>;
|
|
38
|
+
createOpportunity: import("../network/types.js").MutationObject<{
|
|
39
|
+
createOpportunityRequest: import("../api/discover.js").CreateOpportunityRequest;
|
|
40
|
+
}, import("../api/discover.js").CreateOpportunityResponse>;
|
|
41
|
+
createHypothesis: import("../network/types.js").MutationObject<{
|
|
42
|
+
createHypothesisRequest: import("../api/discover.js").CreateHypothesisRequest;
|
|
43
|
+
}, import("../api/discover.js").CreateHypothesisResponse>;
|
|
44
|
+
createDocument: import("../network/types.js").MutationObject<{
|
|
45
|
+
createDocumentRequest: import("../api/discover.js").CreateDocumentRequest;
|
|
46
|
+
}, import("../api/discover.js").CreateDocumentResponse>;
|
|
47
|
+
deleteOpportunity: import("../network/types.js").MutationObject<{
|
|
48
|
+
opportunityId: string;
|
|
49
|
+
}, never>;
|
|
50
|
+
deleteHypothesis: import("../network/types.js").MutationObject<{
|
|
51
|
+
hypothesisId: string;
|
|
52
|
+
}, never>;
|
|
53
|
+
deleteDocument: import("../network/types.js").MutationObject<{
|
|
54
|
+
documentId: string;
|
|
55
|
+
}, never>;
|
|
56
|
+
chats: Omit<import("../network/types.js").QueryObject<{
|
|
57
|
+
filter?: string | undefined;
|
|
58
|
+
page?: number | undefined;
|
|
59
|
+
size?: number | undefined;
|
|
60
|
+
}, ChatConversionDetails[]>, "isAllowed" | "useAllowed" | "getPermissionKey">;
|
|
61
|
+
}
|
|
62
|
+
export declare const discoverClient: DiscoverClient;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAuJ,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAE7M,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAE9D,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,SAAS,GAAG,iBAAiB;IAIlE,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"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { getApiAddresses } from '../api-addresses.js';
|
|
2
|
+
import { create, create1, create2, defaults, deleteById, deleteById1, deleteById2, getAll, getAll1, getAll2, getAllByHypothesis, getById, getById1, getById2 } from '../api/discover.js';
|
|
3
|
+
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
|
+
import { baseDictionary } from '../error/dictionary/base.js';
|
|
5
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
6
|
+
import { aiClient } from './ai.js';
|
|
7
|
+
class DiscoverClient extends ReactQueryNetworkClient {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(getApiAddresses().discover.url, defaults);
|
|
10
|
+
Object.defineProperty(this, "opportunities", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: this.query(getAll)
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "opportunity", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: this.query(getById)
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "hypotheses", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: this.query(getAll1)
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "hypothesisById", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: this.query(getById1)
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "documents", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: this.query(getAllByHypothesis)
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(this, "document", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: this.query(getById2)
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(this, "artifacts", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
value: this.query(getAll2)
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(this, "createOpportunity", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
configurable: true,
|
|
55
|
+
writable: true,
|
|
56
|
+
value: this.mutation(create)
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(this, "createHypothesis", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: this.mutation(create1)
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(this, "createDocument", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true,
|
|
68
|
+
value: this.mutation(create2)
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(this, "deleteOpportunity", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
value: this.mutation(deleteById)
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(this, "deleteHypothesis", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: this.mutation(deleteById1)
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(this, "deleteDocument", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
configurable: true,
|
|
85
|
+
writable: true,
|
|
86
|
+
value: this.mutation(deleteById2)
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(this, "chats", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
configurable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
value: this.query({
|
|
93
|
+
name: 'chats',
|
|
94
|
+
request: async (_signal, variables) => {
|
|
95
|
+
const opportunities = await this.opportunities.query({});
|
|
96
|
+
const opportunitiesByChatId = opportunities.content.reduce((acc, opp) => {
|
|
97
|
+
if (opp.chatId) {
|
|
98
|
+
acc[opp.chatId] = opp;
|
|
99
|
+
}
|
|
100
|
+
return acc;
|
|
101
|
+
}, {});
|
|
102
|
+
const chatsHistory = await aiClient.chats.query({ ...variables, page: variables.page, size: variables.size ?? 40 });
|
|
103
|
+
const filteredItems = variables.filter
|
|
104
|
+
? chatsHistory.filter((chat) => chat.title.toLowerCase().includes(variables.filter.toLowerCase()))
|
|
105
|
+
: chatsHistory;
|
|
106
|
+
const enrichedChats = filteredItems?.map(chat => {
|
|
107
|
+
const relatedOpportunity = opportunitiesByChatId[chat.id];
|
|
108
|
+
return {
|
|
109
|
+
...chat,
|
|
110
|
+
opportunityName: relatedOpportunity?.title ?? null,
|
|
111
|
+
hypothesisCount: relatedOpportunity?.hypotheses?.length ?? 0,
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
return enrichedChats;
|
|
115
|
+
},
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
buildStackSpotError(error) {
|
|
120
|
+
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export const discoverClient = new DiscoverClient();
|
|
124
|
+
//# sourceMappingURL=discover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAA0B,MAAM,iBAAiB,CAAA;AAC7M,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAO/B,MAAM,cAAe,SAAQ,uBAAuB;IAClD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOjD;;;;mBAAgB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;WAAA;QAElC;;;;mBAAc,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;WAAA;QAEjC;;;;mBAAa,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;WAAA;QAEhC;;;;mBAAiB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;WAAA;QAErC;;;;mBAAY,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC;WAAA;QAE1C;;;;mBAAW,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;WAAA;QAE/B;;;;mBAAY,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;WAAA;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,SAAS,CAAC,MAAO,CAAC,WAAW,EAAE,CAAC,CAAC;wBACnG,CAAC,CAAC,YAAY,CAAA;oBAEhB,MAAM,aAAa,GAAG,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;wBAC9C,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;wBAEzD,OAAO;4BACL,GAAG,IAAI;4BACP,eAAe,EAAE,kBAAkB,EAAE,KAAK,IAAI,IAAI;4BAClD,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;yBAC7D,CAAA;oBACH,CAAC,CAAC,CAAA;oBAEF,OAAO,aAAwC,CAAA;gBACjD,CAAC;aACF,CAAC;WAAA;IAnEF,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;CAgEF;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { CancelledError } from '@tanstack/react-query';
|
|
2
2
|
export { apiAddresses, getApiAddresses, getBaseUrlWithOverride, setApisOverride } from './api-addresses.js';
|
|
3
3
|
export { accountClient } from './client/account.js';
|
|
4
|
+
export * from './client/discover.js';
|
|
4
5
|
export { agentClient } from './client/agent.js';
|
|
5
6
|
export { agentToolsClient } from './client/agent-tools.js';
|
|
6
7
|
export { aiClient } from './client/ai.js';
|
|
@@ -13,7 +14,7 @@ export { cloudServicesClient } from './client/cloud-services.js';
|
|
|
13
14
|
export { codeShiftClient } from './client/code-shift.js';
|
|
14
15
|
export { contentClient } from './client/content.js';
|
|
15
16
|
export { dataIntegrationClient } from './client/data-integration.js';
|
|
16
|
-
export {
|
|
17
|
+
export { discoverClient } from './client/discover.js';
|
|
17
18
|
export { eventBusClient } from './client/event-bus.js';
|
|
18
19
|
export { genAiInferenceClient } from './client/gen-ai-inference.js';
|
|
19
20
|
export { insightsClient } from './client/insights.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,YAAY,E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,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { CancelledError } from '@tanstack/react-query';
|
|
2
2
|
export { apiAddresses, getApiAddresses, getBaseUrlWithOverride, setApisOverride } from './api-addresses.js';
|
|
3
3
|
export { accountClient } from './client/account.js';
|
|
4
|
+
export * from './client/discover.js';
|
|
4
5
|
export { agentClient } from './client/agent.js';
|
|
5
6
|
export { agentToolsClient } from './client/agent-tools.js';
|
|
6
7
|
export { aiClient } from './client/ai.js';
|
|
@@ -13,7 +14,7 @@ export { cloudServicesClient } from './client/cloud-services.js';
|
|
|
13
14
|
export { codeShiftClient } from './client/code-shift.js';
|
|
14
15
|
export { contentClient } from './client/content.js';
|
|
15
16
|
export { dataIntegrationClient } from './client/data-integration.js';
|
|
16
|
-
export {
|
|
17
|
+
export { discoverClient } from './client/discover.js';
|
|
17
18
|
export { eventBusClient } from './client/event-bus.js';
|
|
18
19
|
export { genAiInferenceClient } from './client/gen-ai-inference.js';
|
|
19
20
|
export { insightsClient } from './client/insights.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CA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AAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA"}
|
package/package.json
CHANGED
package/src/api/codeShift.ts
CHANGED
|
@@ -909,6 +909,7 @@ export type ProgramGroupsDetailsResponse = {
|
|
|
909
909
|
issuesCount?: number;
|
|
910
910
|
};
|
|
911
911
|
export type AnalyticsProgramGroupsDetailsResponse = {
|
|
912
|
+
programsCount?: number;
|
|
912
913
|
totalFilesCount?: number;
|
|
913
914
|
analyzedFilesCount?: number;
|
|
914
915
|
issuesFilesCount?: number;
|
|
@@ -947,6 +948,7 @@ export type RepositoryDetailedReportItemResponse = {
|
|
|
947
948
|
status?: string | null;
|
|
948
949
|
};
|
|
949
950
|
export type AnalyticsRepositoryDetailedReportResponse = {
|
|
951
|
+
reposCount?: number;
|
|
950
952
|
totalFilesCount?: number;
|
|
951
953
|
analyzedFilesCount?: number;
|
|
952
954
|
issuesFilesCount?: number;
|
|
@@ -989,6 +991,13 @@ export type ListUserResponse = {
|
|
|
989
991
|
items: UserResponse6[];
|
|
990
992
|
itemsCount: number;
|
|
991
993
|
};
|
|
994
|
+
export type SearchReposInScmRequest = {
|
|
995
|
+
repository_name?: string;
|
|
996
|
+
code_term?: string | null;
|
|
997
|
+
};
|
|
998
|
+
export type SearchReposInScmResponse = {
|
|
999
|
+
search_id: string;
|
|
1000
|
+
};
|
|
992
1001
|
/**
|
|
993
1002
|
* Check Role Route
|
|
994
1003
|
*/
|
|
@@ -1608,7 +1617,7 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
|
|
|
1608
1617
|
moduleId?: string;
|
|
1609
1618
|
createdByEmail?: string | null;
|
|
1610
1619
|
reportByEmail?: string | null;
|
|
1611
|
-
orderBy?:
|
|
1620
|
+
orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
1612
1621
|
orderDirection?: string;
|
|
1613
1622
|
tags?: string[] | null;
|
|
1614
1623
|
authorization: string;
|
|
@@ -1659,7 +1668,7 @@ export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, module
|
|
|
1659
1668
|
moduleId?: string;
|
|
1660
1669
|
createdByEmail?: string | null;
|
|
1661
1670
|
reportByEmail?: string | null;
|
|
1662
|
-
orderBy?:
|
|
1671
|
+
orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
1663
1672
|
orderDirection?: string;
|
|
1664
1673
|
tags?: string[] | null;
|
|
1665
1674
|
extension?: "csv" | "xlsx";
|
|
@@ -2072,7 +2081,7 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
|
|
|
2072
2081
|
name?: string | null;
|
|
2073
2082
|
pageSize?: number;
|
|
2074
2083
|
page?: number;
|
|
2075
|
-
orderBy?:
|
|
2084
|
+
orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
2076
2085
|
orderDirection?: string;
|
|
2077
2086
|
integrationId?: string;
|
|
2078
2087
|
authorization: string;
|
|
@@ -2110,7 +2119,7 @@ export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ modu
|
|
|
2110
2119
|
reportByEmail?: string | null;
|
|
2111
2120
|
tags?: string[] | null;
|
|
2112
2121
|
name?: string | null;
|
|
2113
|
-
orderBy?:
|
|
2122
|
+
orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
2114
2123
|
orderDirection?: string;
|
|
2115
2124
|
integrationId?: string;
|
|
2116
2125
|
extension?: "csv" | "xlsx";
|
|
@@ -2330,7 +2339,7 @@ export function analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastRe
|
|
|
2330
2339
|
executedBy?: string[] | null;
|
|
2331
2340
|
repositoryUrl?: string | null;
|
|
2332
2341
|
tags?: string[] | null;
|
|
2333
|
-
orderBy?: ("repositoryUrl" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
|
|
2342
|
+
orderBy?: ("repositoryUrl" | "moduleName" | "merged" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
|
|
2334
2343
|
orderDirection?: ("ASC" | "DESC") | null;
|
|
2335
2344
|
startDate?: string | null;
|
|
2336
2345
|
endDate?: string | null;
|
|
@@ -3213,3 +3222,44 @@ export function listUserServiceV1UsersGet({ authorization }: {
|
|
|
3213
3222
|
})
|
|
3214
3223
|
}));
|
|
3215
3224
|
}
|
|
3225
|
+
/**
|
|
3226
|
+
* Search Repos Scm Service
|
|
3227
|
+
*/
|
|
3228
|
+
export function searchReposScmServiceV2ReposSearchScmPost({ authorization, searchReposInScmRequest }: {
|
|
3229
|
+
authorization: string;
|
|
3230
|
+
searchReposInScmRequest: SearchReposInScmRequest;
|
|
3231
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3232
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3233
|
+
status: 200;
|
|
3234
|
+
} | {
|
|
3235
|
+
status: 201;
|
|
3236
|
+
data: SearchReposInScmResponse;
|
|
3237
|
+
} | {
|
|
3238
|
+
status: 207;
|
|
3239
|
+
data: HttpErrorResponseRead;
|
|
3240
|
+
} | {
|
|
3241
|
+
status: 400;
|
|
3242
|
+
data: HttpErrorResponseRead;
|
|
3243
|
+
} | {
|
|
3244
|
+
status: 401;
|
|
3245
|
+
data: HttpErrorResponseRead;
|
|
3246
|
+
} | {
|
|
3247
|
+
status: 404;
|
|
3248
|
+
data: HttpErrorResponseRead;
|
|
3249
|
+
} | {
|
|
3250
|
+
status: 422;
|
|
3251
|
+
} | {
|
|
3252
|
+
status: 500;
|
|
3253
|
+
data: HttpErrorResponseRead;
|
|
3254
|
+
} | {
|
|
3255
|
+
status: 503;
|
|
3256
|
+
data: HttpErrorResponseRead;
|
|
3257
|
+
}>("/v2/repos/search-scm", oazapfts.json({
|
|
3258
|
+
...opts,
|
|
3259
|
+
method: "POST",
|
|
3260
|
+
body: searchReposInScmRequest,
|
|
3261
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3262
|
+
authorization
|
|
3263
|
+
})
|
|
3264
|
+
})));
|
|
3265
|
+
}
|