@e-llm-studio/instant-learning 0.0.76 → 0.0.78
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/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/cjs/utils/agentGenieAPI.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/types/src/utils/agentGenieAPI.d.ts +3 -3
- package/dist/types/src/utils/agentGenieAPI.d.ts.map +1 -1
- package/dist/utils/agentGenieAPI.js +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ export interface TopicOption {
|
|
|
6
6
|
* Fetches the list of existing topics from the server.
|
|
7
7
|
* @returns A promise that resolves to an array of TopicOption objects.
|
|
8
8
|
*/
|
|
9
|
-
export declare const fetchExistingTopicsAPI: () => Promise<TopicOption[]>;
|
|
10
|
-
export declare const fetchScopes: (name: string, organizationName: string) => Promise<{
|
|
9
|
+
export declare const fetchExistingTopicsAPI: (baseUrl: string) => Promise<TopicOption[]>;
|
|
10
|
+
export declare const fetchScopes: (name: string, organizationName: string, baseUrl: string) => Promise<{
|
|
11
11
|
scopeOptions: any;
|
|
12
12
|
customScopeOptions: any;
|
|
13
13
|
}>;
|
|
14
|
-
export declare const fetchUserByEmail: (email: string) => Promise<any>;
|
|
14
|
+
export declare const fetchUserByEmail: (email: string, baseUrl: string) => Promise<any>;
|
|
15
15
|
//# sourceMappingURL=agentGenieAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentGenieAPI.d.ts","sourceRoot":"","sources":["../../../../src/utils/agentGenieAPI.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"agentGenieAPI.d.ts","sourceRoot":"","sources":["../../../../src/utils/agentGenieAPI.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,YAAmB,MAAM,KAAG,QAAQ,WAAW,EAAE,CA6BnF,CAAC;AAEF,eAAO,MAAM,WAAW,SAAgB,MAAM,oBAAmB,MAAM,WAAU,MAAM;;;EA4CtF,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAiB,MAAM,WAAU,MAAM,iBAWnE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from"../node_modules/tslib/tslib.es6.mjs.js";import n from"../node_modules/axios/lib/axios.js";var o="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MDU5NjU4Yy1hNjVjLTRlMTQtODlhYS1hNTE5NWY1ZDA5ZjUiLCJ1c2VybmFtZSI6IkthdGh5YXlhbmlNIiwibmFtZSI6Ik0gS2F0aHlheWFuaSIsImVtYWlsIjoibWFkdW1idS5rYXRoeWF5YW5pQHRlY2hvbHV0aW9uLmNvbSIsInJvbGUiOiJzdXBlcl9hZG1pbiIsInN0YXR1cyI6ImFjdGl2ZSIsImlhdCI6MTc1MzM4Mzg4N30.iF2nGYpBedIfeGasUNc7lhjStb_B_u1uz6NFEh0u6qI",r="
|
|
1
|
+
import{__awaiter as e,__generator as t}from"../node_modules/tslib/tslib.es6.mjs.js";import n from"../node_modules/axios/lib/axios.js";var o="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MDU5NjU4Yy1hNjVjLTRlMTQtODlhYS1hNTE5NWY1ZDA5ZjUiLCJ1c2VybmFtZSI6IkthdGh5YXlhbmlNIiwibmFtZSI6Ik0gS2F0aHlheWFuaSIsImVtYWlsIjoibWFkdW1idS5rYXRoeWF5YW5pQHRlY2hvbHV0aW9uLmNvbSIsInJvbGUiOiJzdXBlcl9hZG1pbiIsInN0YXR1cyI6ImFjdGl2ZSIsImlhdCI6MTc1MzM4Mzg4N30.iF2nGYpBedIfeGasUNc7lhjStb_B_u1uz6NFEh0u6qI",r="techolution-instantLearning-topics",s="techolution-instantLearning-variants",i=function(i){return e(void 0,void 0,void 0,(function(){var e,a,c,u,l;return t(this,(function(t){switch(t.label){case 0:e={topic_table:r,variant_table:s},a="".concat(i,"/api/instant-learning/getExistingTopics"),c={Authorization:"Bearer ".concat(o)},t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.post(a,e,{headers:c})];case 2:return(u=t.sent()).data.response&&0!==Object.keys(u.data.response.response).length?[2,Object.entries(u.data.response.response).map((function(e){return{id:e[0],label:e[1].topic_name}}))]:[2,[]];case 3:return l=t.sent(),console.error("Error fetching existing topics:",l),[2,[]];case 4:return[2]}}))}))},a=function(r,s,i){return e(void 0,void 0,void 0,(function(){var e,a,c,u,l,d,h,p,g,I,b,m,f;return t(this,(function(t){switch(t.label){case 0:e={Authorization:"Bearer ".concat(o)},a="".concat(i,"/api/chatbot/getChatbot?name=").concat(r,"&organizationName=").concat(s),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.get(a,{headers:e})];case 2:return h=t.sent(),c=h.data,[3,4];case 3:throw u=t.sent(),console.error("Error fetching chatbot details:",u),u;case 4:l="".concat(i,"/api/agent/getAgentSettings?agentSettingsId=").concat(c.agentSettingsId),t.label=5;case 5:return t.trys.push([5,7,,8]),[4,n.get(l,{headers:e})];case 6:return h=t.sent(),d=null===(f=h.data)||void 0===f?void 0:f.agentSettings,[3,8];case 7:throw p=t.sent(),console.error("Error fetching agent settings:",p),p;case 8:return g=(null==d?void 0:d.scopeMetrics)||[],I=g.filter((function(e){return e.isSelected})),b=I.find((function(e){return"Custom"===e.scope})),m=(null==b?void 0:b.id)&&Array.isArray(b.id)?b.id.map((function(e){return{scopeName:e.scopeName,scopeId:e.id}})):[],console.log("Scope options:",I),console.log("Custom scope options:",m),[2,{scopeOptions:I,customScopeOptions:m}]}}))}))},c=function(r,s){return e(void 0,void 0,void 0,(function(){var e,i,a;return t(this,(function(t){switch(t.label){case 0:e="".concat(s,"/api/users/getUserByEmail/").concat(r),i={Authorization:"Bearer ".concat(o)},t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.get(e,{headers:i})];case 2:return[2,t.sent().data];case 3:throw a=t.sent(),console.error("Error fetching user by email:",a),a;case 4:return[2]}}))}))};export{i as fetchExistingTopicsAPI,a as fetchScopes,c as fetchUserByEmail};
|
|
2
2
|
//# sourceMappingURL=agentGenieAPI.js.map
|