@stackfactor/client-api 1.1.19 → 1.1.21
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/lib/aiAssistant.js +4 -4
- package/package.json +1 -1
package/lib/aiAssistant.js
CHANGED
|
@@ -21,7 +21,7 @@ export const askQuestion = (
|
|
|
21
21
|
updatedContext: updatedContext,
|
|
22
22
|
};
|
|
23
23
|
let confirmationRequest = client.post(
|
|
24
|
-
"/api/v1/
|
|
24
|
+
"/api/v1/aiassistant/askquestion",
|
|
25
25
|
{ data: data },
|
|
26
26
|
{
|
|
27
27
|
headers: { authorization: token },
|
|
@@ -49,7 +49,7 @@ export const endConversation = (conversationId, token) => {
|
|
|
49
49
|
conversationId: conversationId,
|
|
50
50
|
};
|
|
51
51
|
let confirmationRequest = client.post(
|
|
52
|
-
"/api/v1/
|
|
52
|
+
"/api/v1/aiassistant/endconversation",
|
|
53
53
|
{ data: data },
|
|
54
54
|
{
|
|
55
55
|
headers: { authorization: token },
|
|
@@ -74,7 +74,7 @@ export const endConversation = (conversationId, token) => {
|
|
|
74
74
|
const getConversationByElementId = (elementId, token) => {
|
|
75
75
|
return new Promise(function (resolve, reject) {
|
|
76
76
|
let confirmationRequest = client.get(
|
|
77
|
-
`/api/v1/
|
|
77
|
+
`/api/v1/aiassistant/getconversation/${elementId}`,
|
|
78
78
|
{
|
|
79
79
|
headers: { authorization: token },
|
|
80
80
|
}
|
|
@@ -113,7 +113,7 @@ const startConversation = (
|
|
|
113
113
|
elementType: elementType,
|
|
114
114
|
};
|
|
115
115
|
let confirmationRequest = client.post(
|
|
116
|
-
"/api/v1/
|
|
116
|
+
"/api/v1/aiassistant/startconversation",
|
|
117
117
|
{ data: data },
|
|
118
118
|
{
|
|
119
119
|
headers: { authorization: token },
|