@e-llm-studio/instant-learning 1.3.0-alpha.17 → 1.3.0-alpha.19
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/README.md +50 -12
- package/dist/cjs/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/store/useLMSConfigStore.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
- package/dist/features/LearningManagement/store/useLMSConfigStore.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts +597 -0
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +12 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__awaiter as r,__generator as n,__spreadArray as t}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as u,useEffect as c}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,Search as b,ArrowRight as x}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import w from"../../assets/Search-result(add new).svg.js";import C from"../../store/useAuthStore.js";import{IL_CONFIG_CONSTANTS as _}from"../../config.js";import{retrieveGenreScopes as O,fetchStationsByKeyword as F,searchScopes as T,inheritScope as A,deleteRuleSet as N,updateStation as M,createRuleSet as E}from"../../apis/scopeApis.js";import k from"./InputField.js";import D from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import P from"./OnboardingLoader.js";import B from"./TemplateCard.js";var j=[{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"},{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"}],I=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],L=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],R=function(R){var W,U=R.isOpen,q=R.onClose,G=R.onBoardStation,Y=R.app_integration_id,H=R.token,K=R.stationNameParam,X=a(null),J=X[0],Q=X[1],V=a([]),Z=V[0],$=V[1],ee=a(0),re=ee[0],ne=ee[1],te=a(!0),oe=te[0],ie=te[1],le=a(!1),ae=le[0],se=le[1],ue=a([]),ce=ue[0],de=ue[1],pe=a(""),fe=pe[0],me=pe[1],he=a(""),ge=he[0],ve=he[1],be=a(!1),xe=be[0],Se=be[1],ye=a(!1),we=ye[0],Ce=ye[1],_e=a(null),Oe=_e[0],Fe=_e[1],Te=a(!1),Ae=Te[0],Ne=Te[1],Me=a(0),Ee=Me[0],ke=Me[1],De=a(""),ze=De[0],Pe=De[1],Be=C().user,je=s(null),Ie=s(null),Le=s(null),Re=s(null),We=a({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),Ue=We[0],qe=We[1],Ge=function(e,r){return e.find(function(e){return e.value===r})||null},Ye=u(function(){return Z.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Z]),He=u(function(){var e,r,n;if(!Ue.genre)return null;var t=Z.find(function(e){return e.scope_name===Ue.genre});return t?{id:t.id,title:t.scope_name||"Unnamed Template",description:(null===(e=t.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(r=t.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:t.rules_count||0,tiersCount:t.tier_count||0,isCopy:null!==(n=t.is_copy)&&void 0!==n&&n}:null},[Ue.genre,Z]);c(function(){return function(){Le.current&&clearTimeout(Le.current)}},[]);var Ke=function(e){return r(void 0,void 0,void 0,function(){var r,o,i;return n(this,function(n){switch(n.label){case 0:if(ae)return[2];se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,O({limit:"20",offset:String(e)})];case 2:return"success"===(null==(r=n.sent())?void 0:r.status)&&Array.isArray(null==r?void 0:r.data)?(o=r.data,$(function(r){if(0===e)return o;var n=new Set(r.map(function(e){return e.id})),i=o.filter(function(e){return!n.has(e.id)});return t(t([],r,!0),i,!0)}),o.length<20?ie(!1):ie(!0),ne(e+20)):ie(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),ie(!1),[3,5];case 4:return se(!1),[7];case 5:return[2]}})})};c(function(){if(U&&($([]),ne(0),ie(!0),Ke(0),K)){Pe(K);r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,F(K,!0)];case 1:return!0===(null==(e=n.sent())?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)&&(r=e.data.find(function(e){var r;return(null===(r=e.station_name)||void 0===r?void 0:r.toLowerCase())===K.toLowerCase()&&!e.ruleset_id}),r&&Q(r)),[3,3];case 2:return t=n.sent(),console.error("[StationOnboard] Error auto-selecting station:",t),[3,3];case 3:return[2]}})})}},[U,K]);c(function(){qe(J?function(r){var n;return e(e({},r),{region:null!==(n=J.market)&&void 0!==n?n:""})}:{region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""})},[J]),c(function(){var e=setTimeout(function(){ve(fe)},500);return function(){return clearTimeout(e)}},[fe]),c(function(){r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:if(!ge.trim())return de([]),[2];Se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:ge})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(r=e.data.map(function(e){var r,n,t;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(r=e.description)||void 0===r?void 0:r.trim())||"No description available.",inheritedText:(null===(n=e.inheritance)||void 0===n?void 0:n[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(t=e.is_copy)&&void 0!==t&&t}}),de(r)):de([]),[3,5];case 3:return t=n.sent(),console.error("[StationOnboard] Error searching scopes:",t),de([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[ge]),c(function(){!ge.trim()&&He&&Fe(He.id)},[ge,He]);var Xe=function(){setTimeout(function(){Re.current&&Re.current.scrollTo({top:Re.current.scrollHeight,behavior:"smooth"})},100)},Je=function(){Pe(""),Q(null),qe({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),de([]),me(""),Fe(null),q()},Qe=function(r,n){var t;if("primeTime"!==r){var o=null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"";qe(function(n){var t;return e(e({},n),((t={})[r]=String(o),t))}),"genre"===r&&(Ce(!0),Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){var e=Z.find(function(e){return e.scope_name===o});Fe(e?e.id:null),Ce(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";qe(function(r){return e(e({},r),{primeTime:i?[i]:[]})})}},Ve=Boolean(J&&Ue.region&&Ue.primeTime.length>0&&Ue.genre);return o(d,e({open:U,onClose:Je,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"}}},{children:[i(S,{ref:je}),o(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[o(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),i(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),i(m,e({onClick:Je,disabled:Ae,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),o(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(P,{isLoading:Ae,currentStep:Ee,onComplete:function(){Ne(!1);var e=Ie.current;Je(),G(e||void 0),Ie.current=null}}),o(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[o(p,e({ref:Re,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),i(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[o(p,e({className:"space-y-1.5"},{children:[o("label",e({className:"text-sm font-medium text-[#19213D]"},{children:[i("span",e({className:"mr-0.5 text-xs font-semibold text-[#8F2C23]"},{children:"*"})),"Station Name/Call Letters"]})),i(D,{value:ze,onChange:Pe,onStationSelect:function(e){return Q(e)}})]})),i(k,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ue.region||void 0,isSearchable:!1}),i(k,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:j,value:Ge(j,(null===(W=Ue.primeTime)||void 0===W?void 0:W[0])||""),onOptionChange:function(e){return Qe("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:Ge(Ye,Ue.genre),onOptionChange:function(e){return Qe("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ae&&oe&&Ke(re)},isLoadingOptions:ae,hasMoreOptions:oe})})),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Station Type",placeholder:"None",options:I,value:Ge(I,Ue.type),onOptionChange:function(r){Qe("type",r),"Low Sellout"!==(null==r?void 0:r.value)&&qe(function(r){return e(e({},r),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ue.type&&i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:L,value:Ge(L,Ue.lowSelloutConfig),onOptionChange:function(e){return Qe("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Ue.genre?o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:we?i(z,{}):He?i(B,e({},He,{isSelected:Oe===He.id,onSelect:Fe}),He.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),o("div",e({className:"relative mb-4 w-full"},{children:[i("input",{type:"text",value:fe,onChange:function(e){return me(e.target.value)},placeholder:"Search for station...",className:"w-full rounded-lg border border-[#E2E8F0] px-10 py-[7px] text-[12px] outline-none transition-all placeholder:text-[#BAC0CC] focus:border-blue-500 focus:ring-1 focus:ring-blue-500"}),i(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:16})]})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[xe&&i(z,{}),!xe&&0===ce.length&&ge.trim()&&o(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ge,'".']})),!xe&&ce.map(function(r){return i(B,e({},r,{isSelected:Oe===r.id,onSelect:Fe}),r.id)})]}))]}):o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i("img",{src:w,alt:"Empty Result"})}))]})}))]}))]})),o(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Je,disabled:Ae,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),i("button",e({onClick:function(){return r(void 0,void 0,void 0,function(){var r,o,i,l,a,s,u,c,d,p,f,m,h,g,v,b,x,S;return n(this,function(n){switch(n.label){case 0:if(!J||!Oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];r=He?t([He],ce,!0):ce,o=r.find(function(e){return e.id===Oe}),i=null!==(h=null==o?void 0:o.isCopy)&&void 0!==h&&h,Ne(!0),ke(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),a={topic:"customRuleSet",customScopeGroupName:(null==_?void 0:_.CUSTOM_SCOPE_GROUP_NAME)||"Audacy-Traffic-Manager",scopeDescription:J.station_name||"New Station",parentScopeId:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Be?void 0:Be.firstname)||"System",createdBy:(null==Be?void 0:Be.email)||"system@audacy.com",applicationMappingId:Y},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,E(a,H)];case 2:if(s=n.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return ke(1),[3,4];case 3:return u=n.sent(),console.error("[StationOnboard] Error creating rule set:",u),null===(v=je.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Ne(!1),ke(0),[2];case 4:return n.trys.push([4,6,,11]),c={market:J.market,region:J.region,primetime_windows:Ue.primeTime,genre:Ue.genre,station_type:""===Ue.type?null:Ue.type,low_sellout_configurations:"Low Sellout"===Ue.type?Ue.lowSelloutConfig:null,ruleset_id:l,station_guid:J.station_guid,station_name:J.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",c),[4,M(c)];case 5:return n.sent(),ke(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=je.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),Q(null),Fe(null),Pe(""),qe(function(r){return e(e({},r),{region:""})})):null===(x=je.current)||void 0===x||x.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),n.label=7;case 7:return n.trys.push([7,9,,10]),[4,N(l,H)];case 8:return n.sent(),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return Ne(!1),ke(0),[2];case 11:return n.trys.push([11,13,,14]),f={source_scope_id:Oe,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,A(f)];case 12:return n.sent(),ke(3),[3,14];case 13:return m=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(S=je.current)||void 0===S||S.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Ne(!1),ke(0),[2];case 14:return Ie.current=l,[2]}})})},disabled:!Ve||Ae,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Ve?"#2563EB":"#BFDBFE",color:"#fff",cursor:Ve&&!Ae?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:o(l,Ae?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{R as default};
|
|
2
|
+
//# sourceMappingURL=BackwardStationOnboardModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackwardStationOnboardModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{create as e}from"zustand";var t={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",subtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}}},n=e(function(e){return{lmsConfig:t,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:t})}}});function i(e,t,i){var r=n.getState().lmsConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},r);return"string"!=typeof l?null!=t?t:e:
|
|
1
|
+
import{create as e}from"zustand";var t={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",subtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}}},n=e(function(e){return{lmsConfig:t,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:t})}}});function i(e,t,i){var r=n.getState().lmsConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},r);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==i?void 0:i[t])&&void 0!==n?n:"{".concat(t,"}"))})}var r=e(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});function l(e,t,n){var i=r.getState().teachMeConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var i;return String(null!==(i=null==n?void 0:n[t])&&void 0!==i?i:"{".concat(t,"}"))})}export{t as defaultLMSConfig,i as dt,l as dtt,n as useLMSConfigStore,r as useTeachMeConfigStore};
|
|
2
2
|
//# sourceMappingURL=useLMSConfigStore.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as InstantLearning}from"./features/InstantLearning/InstantLearning.js";export{default as WtaWnta}from"./features/WtaWnta/WtaWnta.js";export{default as BookLearning}from"./features/DocumentLearning/DocumentLearning.js";export{default as ILOTJ}from"./features/IL-OTJ/ILOTJ.js";export{Button}from"./features/IL-OTJ/_components/atoms/Button/Button.js";export{Dropdown}from"./features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js";export{Toggle}from"./features/IL-OTJ/_components/atoms/Toggle/Toggle.js";export{Textarea}from"./features/IL-OTJ/_components/atoms/Textarea/Textarea.js";export{ConditionList}from"./features/IL-OTJ/_components/molecules/Condition/ConditionList.js";export{SectionWrapper}from"./features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js";export{SeparationRow}from"./features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.js";export{ConfigSection}from"./features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js";export{TextSection}from"./features/IL-OTJ/_components/organisms/TextSection/TextSection.js";export{ScopeSection}from"./features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js";export{ConditionSection}from"./features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js";export{TrafficManagerTemplate}from"./features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.js";export{Testing}from"./features/IL-OTJ/_components/templates/Testing/Testing.js";export{TemplateList,TemplateMap}from"./features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";export{extractAndParseResponse,extractAndParseWithProperty,extractTextFromChildren,extractVariantIds,parseValidationData,useHeaderObserver}from"./features/IL-OTJ/helpers/utils.js";export{CitationProvider,useCitations}from"./features/IL-OTJ/store/CitationsContext.js";export{getVariantInfo}from"./features/IL-OTJ/ILOTJTest.js";export{default as LearningManagement}from"./features/LearningManagement/LearningManagement.js";import"tslib";import"react/jsx-runtime";
|
|
1
|
+
export{default as InstantLearning}from"./features/InstantLearning/InstantLearning.js";export{default as WtaWnta}from"./features/WtaWnta/WtaWnta.js";export{default as BookLearning}from"./features/DocumentLearning/DocumentLearning.js";export{default as ILOTJ}from"./features/IL-OTJ/ILOTJ.js";export{Button}from"./features/IL-OTJ/_components/atoms/Button/Button.js";export{Dropdown}from"./features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js";export{Toggle}from"./features/IL-OTJ/_components/atoms/Toggle/Toggle.js";export{Textarea}from"./features/IL-OTJ/_components/atoms/Textarea/Textarea.js";export{ConditionList}from"./features/IL-OTJ/_components/molecules/Condition/ConditionList.js";export{SectionWrapper}from"./features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js";export{SeparationRow}from"./features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.js";export{ConfigSection}from"./features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js";export{TextSection}from"./features/IL-OTJ/_components/organisms/TextSection/TextSection.js";export{ScopeSection}from"./features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js";export{ConditionSection}from"./features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js";export{TrafficManagerTemplate}from"./features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.js";export{Testing}from"./features/IL-OTJ/_components/templates/Testing/Testing.js";export{TemplateList,TemplateMap}from"./features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";export{extractAndParseResponse,extractAndParseWithProperty,extractTextFromChildren,extractVariantIds,parseValidationData,useHeaderObserver}from"./features/IL-OTJ/helpers/utils.js";export{CitationProvider,useCitations}from"./features/IL-OTJ/store/CitationsContext.js";export{dummyDat,getVariantInfo}from"./features/IL-OTJ/ILOTJTest.js";export{default as LearningManagement}from"./features/LearningManagement/LearningManagement.js";import"tslib";import"react/jsx-runtime";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,602 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { HeaderMessageHandler } from "./helpers/utils";
|
|
3
|
+
export declare const dummyDat: ({
|
|
4
|
+
intent_output: {
|
|
5
|
+
nodes: {
|
|
6
|
+
title: {
|
|
7
|
+
next: null;
|
|
8
|
+
skip_node: boolean;
|
|
9
|
+
display_node: boolean;
|
|
10
|
+
comparison_config: {
|
|
11
|
+
mode: string;
|
|
12
|
+
type: string;
|
|
13
|
+
execution_mode: string;
|
|
14
|
+
criterion_set_id: string;
|
|
15
|
+
};
|
|
16
|
+
comparison_inputs: {
|
|
17
|
+
existing_variant: {
|
|
18
|
+
title: string;
|
|
19
|
+
content: string;
|
|
20
|
+
additional_attributes: null;
|
|
21
|
+
};
|
|
22
|
+
new_variant: {
|
|
23
|
+
title: string;
|
|
24
|
+
content: string;
|
|
25
|
+
additional_attributes: null;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
mapping_rationale: null;
|
|
29
|
+
evaluation_result: {
|
|
30
|
+
deviation_title: string;
|
|
31
|
+
deviation_explanation: string[];
|
|
32
|
+
evaluation_outputs: {
|
|
33
|
+
name: string;
|
|
34
|
+
output_value: string;
|
|
35
|
+
metadata: {
|
|
36
|
+
label_color: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
cognitive_decisioning: {
|
|
40
|
+
decisioning_factors: string[];
|
|
41
|
+
gaps_in_decision: string[];
|
|
42
|
+
decision_strength: number;
|
|
43
|
+
citations: null;
|
|
44
|
+
};
|
|
45
|
+
deviations: {};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
learning_description_intent: {
|
|
49
|
+
next: null;
|
|
50
|
+
skip_node: boolean;
|
|
51
|
+
display_node: boolean;
|
|
52
|
+
comparison_config: {
|
|
53
|
+
mode: string;
|
|
54
|
+
type: string;
|
|
55
|
+
execution_mode: string;
|
|
56
|
+
criterion_set_id: string;
|
|
57
|
+
};
|
|
58
|
+
comparison_inputs: {
|
|
59
|
+
existing_variant: {
|
|
60
|
+
title: string;
|
|
61
|
+
content: string;
|
|
62
|
+
additional_attributes: null;
|
|
63
|
+
};
|
|
64
|
+
new_variant: {
|
|
65
|
+
title: string;
|
|
66
|
+
content: string;
|
|
67
|
+
additional_attributes: null;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
mapping_rationale: null;
|
|
71
|
+
evaluation_result: {
|
|
72
|
+
deviation_title: string;
|
|
73
|
+
deviation_explanation: string[];
|
|
74
|
+
evaluation_outputs: {
|
|
75
|
+
name: string;
|
|
76
|
+
output_value: string;
|
|
77
|
+
metadata: {
|
|
78
|
+
label_color: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
cognitive_decisioning: {
|
|
82
|
+
decisioning_factors: string[];
|
|
83
|
+
gaps_in_decision: string[];
|
|
84
|
+
decision_strength: number;
|
|
85
|
+
citations: null;
|
|
86
|
+
};
|
|
87
|
+
deviations: {
|
|
88
|
+
"0": {
|
|
89
|
+
existing_variant: string;
|
|
90
|
+
new_variant: string;
|
|
91
|
+
deviation_summary: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
overall_comparison: {
|
|
97
|
+
next: {
|
|
98
|
+
"0": string;
|
|
99
|
+
"1": string;
|
|
100
|
+
};
|
|
101
|
+
skip_node: boolean;
|
|
102
|
+
display_node: boolean;
|
|
103
|
+
comparison_config: {
|
|
104
|
+
mode: string;
|
|
105
|
+
type: string;
|
|
106
|
+
execution_mode: string;
|
|
107
|
+
criterion_set_id: string;
|
|
108
|
+
};
|
|
109
|
+
comparison_inputs: {
|
|
110
|
+
existing_variant: {
|
|
111
|
+
title: string;
|
|
112
|
+
content: null;
|
|
113
|
+
additional_attributes: null;
|
|
114
|
+
};
|
|
115
|
+
new_variant: {
|
|
116
|
+
title: string;
|
|
117
|
+
content: null;
|
|
118
|
+
additional_attributes: null;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
mapping_rationale: null;
|
|
122
|
+
decision_scope_title: string;
|
|
123
|
+
decision_scope_description: string;
|
|
124
|
+
evaluation_result: {
|
|
125
|
+
deviation_title: string;
|
|
126
|
+
deviation_explanation: string[];
|
|
127
|
+
evaluation_outputs: {
|
|
128
|
+
name: string;
|
|
129
|
+
output_value: string;
|
|
130
|
+
metadata: {
|
|
131
|
+
label_color: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
cognitive_decisioning: {
|
|
135
|
+
decisioning_factors: string[];
|
|
136
|
+
gaps_in_decision: string[];
|
|
137
|
+
decision_strength: number;
|
|
138
|
+
citations: null;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
documents: {
|
|
144
|
+
existing_variant: {
|
|
145
|
+
role: string;
|
|
146
|
+
title: string;
|
|
147
|
+
metadata: {
|
|
148
|
+
file_name: null;
|
|
149
|
+
};
|
|
150
|
+
mime_type: null;
|
|
151
|
+
source_uri: null;
|
|
152
|
+
};
|
|
153
|
+
new_variant: {
|
|
154
|
+
role: string;
|
|
155
|
+
title: string;
|
|
156
|
+
metadata: {
|
|
157
|
+
file_name: null;
|
|
158
|
+
};
|
|
159
|
+
mime_type: null;
|
|
160
|
+
source_uri: null;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
base_root_id: string;
|
|
164
|
+
input_index_map: {
|
|
165
|
+
"0": string;
|
|
166
|
+
"1": string;
|
|
167
|
+
};
|
|
168
|
+
evaluation_criteria: {
|
|
169
|
+
"criteria-uuid1": {
|
|
170
|
+
criterion: {
|
|
171
|
+
name: string;
|
|
172
|
+
data_type: string;
|
|
173
|
+
measuring_unit: string;
|
|
174
|
+
criteria_properties: {
|
|
175
|
+
metadata: {
|
|
176
|
+
label_color: string;
|
|
177
|
+
};
|
|
178
|
+
description: string;
|
|
179
|
+
output_label: string;
|
|
180
|
+
output_template: string;
|
|
181
|
+
output_percentage: string;
|
|
182
|
+
}[];
|
|
183
|
+
};
|
|
184
|
+
criteria_set_id: string;
|
|
185
|
+
};
|
|
186
|
+
"criteria-uuid2": {
|
|
187
|
+
criterion: {
|
|
188
|
+
name: string;
|
|
189
|
+
data_type: string;
|
|
190
|
+
measuring_unit: string;
|
|
191
|
+
criteria_properties: {
|
|
192
|
+
metadata: {
|
|
193
|
+
label_color: string;
|
|
194
|
+
};
|
|
195
|
+
description: string;
|
|
196
|
+
output_label: string;
|
|
197
|
+
output_template: string;
|
|
198
|
+
output_percentage: string;
|
|
199
|
+
}[];
|
|
200
|
+
};
|
|
201
|
+
criteria_set_id: string;
|
|
202
|
+
};
|
|
203
|
+
"criteria-uuid3": {
|
|
204
|
+
criterion: {
|
|
205
|
+
name: string;
|
|
206
|
+
data_type: string;
|
|
207
|
+
measuring_unit: string;
|
|
208
|
+
criteria_properties: {
|
|
209
|
+
metadata: {
|
|
210
|
+
label_color: string;
|
|
211
|
+
};
|
|
212
|
+
description: string;
|
|
213
|
+
output_label: string;
|
|
214
|
+
output_template: string;
|
|
215
|
+
output_percentage: string;
|
|
216
|
+
}[];
|
|
217
|
+
};
|
|
218
|
+
criteria_set_id: string;
|
|
219
|
+
};
|
|
220
|
+
"criteria-uuid4": {
|
|
221
|
+
criterion: {
|
|
222
|
+
name: string;
|
|
223
|
+
data_type: string;
|
|
224
|
+
measuring_unit: string;
|
|
225
|
+
criteria_properties: {
|
|
226
|
+
metadata: {
|
|
227
|
+
label_color: string;
|
|
228
|
+
};
|
|
229
|
+
description: string;
|
|
230
|
+
output_label: string;
|
|
231
|
+
output_template: string;
|
|
232
|
+
output_percentage: string;
|
|
233
|
+
}[];
|
|
234
|
+
};
|
|
235
|
+
criteria_set_id: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
behaviour_output?: undefined;
|
|
240
|
+
} | {
|
|
241
|
+
behaviour_output: {
|
|
242
|
+
nodes: {
|
|
243
|
+
learning_description_behavior: {
|
|
244
|
+
next: null;
|
|
245
|
+
skip_node: boolean;
|
|
246
|
+
display_node: boolean;
|
|
247
|
+
comparison_config: {
|
|
248
|
+
mode: string;
|
|
249
|
+
type: string;
|
|
250
|
+
execution_mode: string;
|
|
251
|
+
criterion_set_id: string;
|
|
252
|
+
};
|
|
253
|
+
comparison_inputs: {
|
|
254
|
+
existing_variant: {
|
|
255
|
+
title: string;
|
|
256
|
+
content: string;
|
|
257
|
+
additional_attributes: null;
|
|
258
|
+
};
|
|
259
|
+
new_variant: {
|
|
260
|
+
title: string;
|
|
261
|
+
content: string;
|
|
262
|
+
additional_attributes: null;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
mapping_rationale: null;
|
|
266
|
+
evaluation_result: {
|
|
267
|
+
deviation_title: string;
|
|
268
|
+
deviation_explanation: string[];
|
|
269
|
+
evaluation_outputs: {
|
|
270
|
+
name: string;
|
|
271
|
+
output_value: string;
|
|
272
|
+
};
|
|
273
|
+
cognitive_decisioning: {
|
|
274
|
+
decisioning_factors: string[];
|
|
275
|
+
gaps_in_decision: string[];
|
|
276
|
+
decision_strength: number;
|
|
277
|
+
citations: null;
|
|
278
|
+
};
|
|
279
|
+
deviations: {
|
|
280
|
+
"0": {
|
|
281
|
+
existing_variant: string;
|
|
282
|
+
new_variant: string;
|
|
283
|
+
deviation_summary: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
"conditions-uuid12": {
|
|
289
|
+
next: {
|
|
290
|
+
"0": string;
|
|
291
|
+
"1": string;
|
|
292
|
+
};
|
|
293
|
+
skip_node: boolean;
|
|
294
|
+
display_node: boolean;
|
|
295
|
+
comparison_config: {
|
|
296
|
+
mode: string;
|
|
297
|
+
type: string;
|
|
298
|
+
execution_mode: string;
|
|
299
|
+
criterion_set_id: string;
|
|
300
|
+
};
|
|
301
|
+
comparison_inputs: {
|
|
302
|
+
existing_variant: {
|
|
303
|
+
title: string;
|
|
304
|
+
content: null;
|
|
305
|
+
additional_attributes: null;
|
|
306
|
+
};
|
|
307
|
+
new_variant: {
|
|
308
|
+
title: string;
|
|
309
|
+
content: null;
|
|
310
|
+
additional_attributes: null;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
mapping_rationale: null;
|
|
314
|
+
evaluation_result: {
|
|
315
|
+
deviation_title: string;
|
|
316
|
+
deviation_explanation: string[];
|
|
317
|
+
evaluation_outputs: {
|
|
318
|
+
name: string;
|
|
319
|
+
output_value: string;
|
|
320
|
+
metadata: {
|
|
321
|
+
label_color: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
cognitive_decisioning: {
|
|
325
|
+
decisioning_factors: string[];
|
|
326
|
+
gaps_in_decision: string[];
|
|
327
|
+
decision_strength: number;
|
|
328
|
+
citations: null;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
overall_comparison: {
|
|
333
|
+
next: {
|
|
334
|
+
"0": string;
|
|
335
|
+
"1": string;
|
|
336
|
+
};
|
|
337
|
+
skip_node: boolean;
|
|
338
|
+
display_node: boolean;
|
|
339
|
+
comparison_config: {
|
|
340
|
+
mode: string;
|
|
341
|
+
type: string;
|
|
342
|
+
execution_mode: string;
|
|
343
|
+
criterion_set_id: string;
|
|
344
|
+
};
|
|
345
|
+
comparison_inputs: {
|
|
346
|
+
existing_variant: {
|
|
347
|
+
title: string;
|
|
348
|
+
content: null;
|
|
349
|
+
additional_attributes: null;
|
|
350
|
+
};
|
|
351
|
+
new_variant: {
|
|
352
|
+
title: string;
|
|
353
|
+
content: null;
|
|
354
|
+
additional_attributes: null;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
mapping_rationale: null;
|
|
358
|
+
decision_scope_title: string;
|
|
359
|
+
decision_scope_description: string;
|
|
360
|
+
evaluation_result: {
|
|
361
|
+
deviation_title: string;
|
|
362
|
+
deviation_explanation: string[];
|
|
363
|
+
evaluation_outputs: {
|
|
364
|
+
name: string;
|
|
365
|
+
output_value: string;
|
|
366
|
+
metadata: {
|
|
367
|
+
label_color: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
cognitive_decisioning: {
|
|
371
|
+
decisioning_factors: string[];
|
|
372
|
+
gaps_in_decision: string[];
|
|
373
|
+
decision_strength: number;
|
|
374
|
+
citations: null;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
when_to_apply: {
|
|
379
|
+
next: null;
|
|
380
|
+
skip_node: boolean;
|
|
381
|
+
display_node: boolean;
|
|
382
|
+
comparison_config: {
|
|
383
|
+
mode: string;
|
|
384
|
+
type: string;
|
|
385
|
+
execution_mode: string;
|
|
386
|
+
criterion_set_id: string;
|
|
387
|
+
};
|
|
388
|
+
comparison_inputs: {
|
|
389
|
+
existing_variant: {
|
|
390
|
+
title: string;
|
|
391
|
+
content: string;
|
|
392
|
+
additional_attributes: null;
|
|
393
|
+
};
|
|
394
|
+
new_variant: {
|
|
395
|
+
title: string;
|
|
396
|
+
content: string;
|
|
397
|
+
additional_attributes: null;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
mapping_rationale: null;
|
|
401
|
+
evaluation_result: {
|
|
402
|
+
deviation_title: string;
|
|
403
|
+
deviation_explanation: string[];
|
|
404
|
+
evaluation_outputs: {
|
|
405
|
+
name: string;
|
|
406
|
+
output_value: string;
|
|
407
|
+
metadata: {
|
|
408
|
+
label_color: string;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
cognitive_decisioning: {
|
|
412
|
+
decisioning_factors: string[];
|
|
413
|
+
gaps_in_decision: string[];
|
|
414
|
+
decision_strength: number;
|
|
415
|
+
citations: null;
|
|
416
|
+
};
|
|
417
|
+
deviations: {
|
|
418
|
+
"0": {
|
|
419
|
+
existing_variant: string;
|
|
420
|
+
new_variant: string;
|
|
421
|
+
deviation_summary: string;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
when_not_to_apply: {
|
|
427
|
+
next: null;
|
|
428
|
+
skip_node: boolean;
|
|
429
|
+
display_node: boolean;
|
|
430
|
+
comparison_config: {
|
|
431
|
+
mode: string;
|
|
432
|
+
type: string;
|
|
433
|
+
execution_mode: string;
|
|
434
|
+
criterion_set_id: string;
|
|
435
|
+
};
|
|
436
|
+
comparison_inputs: {
|
|
437
|
+
existing_variant: {
|
|
438
|
+
title: string;
|
|
439
|
+
content: string;
|
|
440
|
+
additional_attributes: null;
|
|
441
|
+
};
|
|
442
|
+
new_variant: {
|
|
443
|
+
title: string;
|
|
444
|
+
content: string;
|
|
445
|
+
additional_attributes: null;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
mapping_rationale: null;
|
|
449
|
+
evaluation_result: {
|
|
450
|
+
deviation_title: string;
|
|
451
|
+
deviation_explanation: string[];
|
|
452
|
+
evaluation_outputs: {
|
|
453
|
+
name: string;
|
|
454
|
+
output_value: string;
|
|
455
|
+
};
|
|
456
|
+
cognitive_decisioning: {
|
|
457
|
+
decisioning_factors: string[];
|
|
458
|
+
gaps_in_decision: string[];
|
|
459
|
+
decision_strength: number;
|
|
460
|
+
citations: null;
|
|
461
|
+
};
|
|
462
|
+
deviations: {};
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
documents: {
|
|
467
|
+
existing_variant: {
|
|
468
|
+
role: string;
|
|
469
|
+
title: string;
|
|
470
|
+
metadata: {
|
|
471
|
+
file_name: null;
|
|
472
|
+
};
|
|
473
|
+
mime_type: null;
|
|
474
|
+
source_uri: null;
|
|
475
|
+
};
|
|
476
|
+
new_variant: {
|
|
477
|
+
role: string;
|
|
478
|
+
title: string;
|
|
479
|
+
metadata: {
|
|
480
|
+
file_name: null;
|
|
481
|
+
};
|
|
482
|
+
mime_type: null;
|
|
483
|
+
source_uri: null;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
base_root_id: string;
|
|
487
|
+
input_index_map: {
|
|
488
|
+
"0": string;
|
|
489
|
+
"1": string;
|
|
490
|
+
};
|
|
491
|
+
evaluation_criteria: {
|
|
492
|
+
"criteria-uuid1": {
|
|
493
|
+
criterion: {
|
|
494
|
+
name: string;
|
|
495
|
+
data_type: string;
|
|
496
|
+
measuring_unit: string;
|
|
497
|
+
criteria_properties: {
|
|
498
|
+
metadata: {
|
|
499
|
+
label_color: string;
|
|
500
|
+
};
|
|
501
|
+
description: string;
|
|
502
|
+
output_label: string;
|
|
503
|
+
output_template: string;
|
|
504
|
+
output_percentage: string;
|
|
505
|
+
}[];
|
|
506
|
+
};
|
|
507
|
+
criteria_set_id: string;
|
|
508
|
+
};
|
|
509
|
+
"criteria-uuid2": {
|
|
510
|
+
criterion: {
|
|
511
|
+
name: string;
|
|
512
|
+
data_type: string;
|
|
513
|
+
measuring_unit: string;
|
|
514
|
+
criteria_properties: {
|
|
515
|
+
metadata: {
|
|
516
|
+
label_color: string;
|
|
517
|
+
};
|
|
518
|
+
description: string;
|
|
519
|
+
output_label: string;
|
|
520
|
+
output_template: string;
|
|
521
|
+
output_percentage: string;
|
|
522
|
+
}[];
|
|
523
|
+
};
|
|
524
|
+
criteria_set_id: string;
|
|
525
|
+
};
|
|
526
|
+
"criteria-uuid3": {
|
|
527
|
+
criterion: {
|
|
528
|
+
name: string;
|
|
529
|
+
data_type: string;
|
|
530
|
+
measuring_unit: string;
|
|
531
|
+
criteria_properties: {
|
|
532
|
+
metadata: {
|
|
533
|
+
label_color: string;
|
|
534
|
+
};
|
|
535
|
+
description: string;
|
|
536
|
+
output_label: string;
|
|
537
|
+
output_template: string;
|
|
538
|
+
output_percentage: string;
|
|
539
|
+
}[];
|
|
540
|
+
};
|
|
541
|
+
criteria_set_id: string;
|
|
542
|
+
};
|
|
543
|
+
"criteria-uuid4": {
|
|
544
|
+
criterion: {
|
|
545
|
+
name: string;
|
|
546
|
+
data_type: string;
|
|
547
|
+
measuring_unit: string;
|
|
548
|
+
criteria_properties: {
|
|
549
|
+
metadata: {
|
|
550
|
+
label_color: string;
|
|
551
|
+
};
|
|
552
|
+
description: string;
|
|
553
|
+
output_label: string;
|
|
554
|
+
output_template: string;
|
|
555
|
+
output_percentage: string;
|
|
556
|
+
}[];
|
|
557
|
+
};
|
|
558
|
+
criteria_set_id: string;
|
|
559
|
+
};
|
|
560
|
+
"criteria-uuid5": {
|
|
561
|
+
criterion: {
|
|
562
|
+
name: string;
|
|
563
|
+
data_type: string;
|
|
564
|
+
measuring_unit: string;
|
|
565
|
+
criteria_properties: {
|
|
566
|
+
metadata: {
|
|
567
|
+
label_color: string;
|
|
568
|
+
};
|
|
569
|
+
description: string;
|
|
570
|
+
output_label: string;
|
|
571
|
+
output_template: string;
|
|
572
|
+
output_percentage: string;
|
|
573
|
+
}[];
|
|
574
|
+
};
|
|
575
|
+
criteria_set_id: string;
|
|
576
|
+
};
|
|
577
|
+
"criteria-uuid6": {
|
|
578
|
+
criterion: {
|
|
579
|
+
name: string;
|
|
580
|
+
data_type: string;
|
|
581
|
+
measuring_unit: string;
|
|
582
|
+
criteria_properties: {
|
|
583
|
+
metadata: {
|
|
584
|
+
label_color: string;
|
|
585
|
+
};
|
|
586
|
+
description: string;
|
|
587
|
+
output_label: string;
|
|
588
|
+
output_template: string;
|
|
589
|
+
output_percentage: string;
|
|
590
|
+
}[];
|
|
591
|
+
};
|
|
592
|
+
criteria_set_id: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
final_score: string;
|
|
596
|
+
rule_id: string;
|
|
597
|
+
};
|
|
598
|
+
intent_output?: undefined;
|
|
599
|
+
})[][];
|
|
3
600
|
export type HeaderMessageHandlers = Record<string, HeaderMessageHandler>;
|
|
4
601
|
interface ILOTJProps {
|
|
5
602
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAA2E,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAWrJ,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAKD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAA2E,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAWrJ,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAm2hD,CAAA;AAEx3hD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAKD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA25EnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|