@obe-loms/coms-parser 1.6.8 → 1.6.10
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.
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { POAEP } from "../../types/poaep";
|
|
2
|
+
import DataTableException from "../types/DataTableException";
|
|
3
|
+
import ParserResult from "../types/ParserResult";
|
|
4
|
+
import { DataTable } from "./DataTable";
|
|
5
|
+
import { PoaepRow } from "../types/PoaepDTRow";
|
|
6
|
+
export declare class PoaepDT extends DataTable<POAEP, PoaepRow> {
|
|
7
|
+
/**
|
|
8
|
+
* Initializes the DataTable for POAEP
|
|
9
|
+
* Also sets up custom validators for the DataTable
|
|
10
|
+
*/
|
|
11
|
+
constructor();
|
|
12
|
+
fromCSVString(csvString: string): Promise<ParserResult<PoaepRow[]>>;
|
|
13
|
+
toJson(): Promise<ParserResult<{
|
|
14
|
+
jsonObj: POAEP;
|
|
15
|
+
validMsgs: string[];
|
|
16
|
+
tableErrors: DataTableException[];
|
|
17
|
+
}>>;
|
|
18
|
+
validateFields(validMsgs: string[], tableErrors: DataTableException[]): Promise<void>;
|
|
19
|
+
}
|
|
@@ -1,33 +1,41 @@
|
|
|
1
|
+
import Taxonomy from "../../types/Taxonomy";
|
|
1
2
|
/**
|
|
2
3
|
* Represents the CO number column in the internal COAEP DataTable.
|
|
3
|
-
* @type {string | null}
|
|
4
4
|
*/
|
|
5
5
|
export type CoaepDT_No = string | null;
|
|
6
6
|
/**
|
|
7
7
|
* Represents the CO statement column in the internal COAEP DataTable.
|
|
8
|
-
* @type {[string | null, string | null, string | null, string | null] | null}
|
|
9
8
|
*/
|
|
10
9
|
export type CoaepDT_CO = [string | null, string | null, string | null, string | null] | null;
|
|
10
|
+
export type CoaepDT_CogLvl = "I" | "E" | "D" | null;
|
|
11
|
+
export type CoaepDT_TaxLvl = Taxonomy | null;
|
|
12
|
+
export type CoaepDT_Verb = string | null;
|
|
13
|
+
export type CoaepDT_Rest = string | null;
|
|
11
14
|
/**
|
|
12
15
|
* Represents the ILO statement column in the internal COAEP DataTable.
|
|
13
|
-
* @type {[string | null, string | null, string | null, string | null]}
|
|
14
16
|
*/
|
|
15
17
|
export type CoaepDT_ILO = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
CoaepDT_CogLvl,
|
|
19
|
+
CoaepDT_TaxLvl,
|
|
20
|
+
CoaepDT_Verb,
|
|
21
|
+
CoaepDT_Rest
|
|
20
22
|
];
|
|
21
23
|
/**
|
|
22
24
|
* Represents the Assessment Tool column in the internal COAEP DataTable.
|
|
23
|
-
* @type {string | null}
|
|
24
25
|
*/
|
|
25
26
|
export type CoaepDT_AT = string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Represents the Performance Target column in the internal COAEP DataTable.
|
|
29
|
+
*/
|
|
30
|
+
export type CoaepDT_Perf = number | null;
|
|
31
|
+
/**
|
|
32
|
+
* Represents the Passing Score column in the internal COAEP DataTable.
|
|
33
|
+
*/
|
|
34
|
+
export type CoaepDT_Pass = number | null;
|
|
26
35
|
/**
|
|
27
36
|
* Represents the Performance Target and Passing Score tuple column in the internal COAEP DataTable.
|
|
28
|
-
* @type {[number | null, number | null]}
|
|
29
37
|
* */
|
|
30
|
-
export type CoaepDT_PT = [
|
|
38
|
+
export type CoaepDT_PT = [CoaepDT_Perf, CoaepDT_Pass];
|
|
31
39
|
/**
|
|
32
40
|
* Represents a row in the internal COAEP DataTable.
|
|
33
41
|
* @column 0: CO Number: string | null
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Taxonomy from "../../types/Taxonomy";
|
|
2
|
+
export type PoaepDT_PO = string | null;
|
|
3
|
+
export type PoaepDT_Taxo = Taxonomy | null;
|
|
4
|
+
export type PoaepDT_PI = string | null;
|
|
5
|
+
export type PoaepDT_FC = string | null;
|
|
6
|
+
export type PoaepDT_SC = string | null;
|
|
7
|
+
export type PoaepDT_AT = string | null;
|
|
8
|
+
export type PoaepDT_Perf = number | null;
|
|
9
|
+
export type PoaepDT_Pass = number | null;
|
|
10
|
+
export type PoaepDT_PT = [PoaepDT_Perf, PoaepDT_Pass];
|
|
11
|
+
export type PoaepRow = [
|
|
12
|
+
PoaepDT_PO,
|
|
13
|
+
PoaepDT_Taxo,
|
|
14
|
+
PoaepDT_PI,
|
|
15
|
+
PoaepDT_FC[],
|
|
16
|
+
PoaepDT_SC,
|
|
17
|
+
PoaepDT_AT,
|
|
18
|
+
PoaepDT_PT
|
|
19
|
+
];
|
package/bundle.js
CHANGED
|
@@ -1,60 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
1
|
+
import _0x853b0f from 'papaparse';
|
|
2
|
+
import * as _0x2f630f from 'xlsx';
|
|
3
3
|
|
|
4
|
-
function parseCurriculum(
|
|
4
|
+
function parseCurriculum(_0x2d8b16){let _0x225aca='',_0x4109b2='',_0x545cbd=0x0,_0x41a3f2=null;const _0x12e71e=[];return _0x853b0f['parse'](_0x2d8b16,{'skipEmptyLines':!![],'complete':_0x1300d6=>{_0x1300d6['data']['forEach'](_0x3b8788=>{const _0x2c4c82=_0x3b8788['map'](_0x35f0ec=>(_0x35f0ec??'')['toString']()['trim']()),_0x14bfd4=_0x2c4c82[0x0]??'';if(_0x14bfd4['includes']('Rev#')){const _0x32343e=_0x14bfd4['match'](/([A-Z0-9]+)\s*-\s*.*:\s*(.*?)\s+Rev#\s*(\d+)/i);_0x32343e&&(_0x225aca=_0x32343e[0x1]?.['trim']()??'',_0x4109b2=_0x32343e[0x2]?.['trim']()??'',_0x545cbd=parseInt(_0x32343e[0x3]??'0',0xa));return;}if(/FIRST YEAR/i['test'](_0x14bfd4)){_0x41a3f2=0x1;return;}if(/SECOND YEAR/i['test'](_0x14bfd4)){_0x41a3f2=0x2;return;}if(/THIRD YEAR/i['test'](_0x14bfd4)){_0x41a3f2=0x3;return;}if(/FOURTH YEAR/i['test'](_0x14bfd4)){_0x41a3f2=0x4;return;}if(/FIFTH YEAR/i['test'](_0x14bfd4)){_0x41a3f2=0x5;return;}if(/First Semester/i['test'](_0x14bfd4)||/Second Semester/i['test'](_0x14bfd4)||/Summer/i['test'](_0x14bfd4))return;const _0x136ae6=[{'sem':0x1,'offset':0x0},{'sem':0x2,'offset':0x6},{'sem':0x3,'offset':0xc}];_0x136ae6['forEach'](({sem:_0x28a935,offset:_0x1ca154})=>{const _0x436155=_0x2c4c82[_0x1ca154]??'',_0x2e1375=_0x2c4c82[_0x1ca154+0x1]??'',_0x518ae9=_0x2c4c82[_0x1ca154+0x2]??'',_0x3e2c8a=_0x2c4c82[_0x1ca154+0x3]??'',_0xfc73c5=_0x2c4c82[_0x1ca154+0x4]??'';_0x436155&&_0x41a3f2&&_0x12e71e['push']({'curr_id':_0x225aca,'program_name':_0x4109b2,'revision_no':_0x545cbd,'year_level':_0x41a3f2,'sem':_0x28a935,'course_id':_0x436155,'course_desc':_0x2e1375,'total_units':_0x518ae9,'lec_unit':_0x3e2c8a,'lab_unit':_0xfc73c5});});});}}),_0x12e71e;}
|
|
5
5
|
|
|
6
|
-
function convertToCSVFile(
|
|
6
|
+
function convertToCSVFile(_0x53eb2d,_0x49f534){return new Promise((_0x5599a0,_0x4c87a5)=>{const _0x1905b0=new FileReader();_0x1905b0['onload']=_0x1d4280=>{const _0x202116=_0x1d4280['target']?.['result'];if(!_0x202116){_0x4c87a5(new Error('Failed\x20to\x20read\x20file'));return;}try{const _0x35981a=_0x2f630f['read'](_0x202116,{'type':'array'});!_0x49f534&&(_0x49f534=_0x35981a['SheetNames'][0x0]);if(!_0x49f534){_0x4c87a5(new Error('No\x20sheets\x20found\x20in\x20workbook'));return;}const _0x5e2783=_0x35981a['Sheets'][_0x49f534];if(!_0x5e2783){_0x4c87a5(new Error('No\x20sheets\x20found\x20in\x20worksheet'));return;}const _0x16abc9=_0x2f630f['utils']['sheet_to_csv'](_0x5e2783,{'strip':!![]}),_0x5df75c=_0x53eb2d['name']['replace'](/\.[^/.]+$/,'.csv'),_0x5f4066=new File([_0x16abc9],_0x5df75c,{'type':'text/csv','lastModified':Date['now']()});_0x5599a0(_0x5f4066);}catch(_0x1691a4){_0x4c87a5(_0x1691a4);}},_0x1905b0['onerror']=()=>{_0x4c87a5(new Error('File\x20reading\x20failed'));},_0x1905b0['readAsArrayBuffer'](_0x53eb2d);});}
|
|
7
7
|
|
|
8
|
-
async function uploadCurriculum(
|
|
8
|
+
async function uploadCurriculum(_0x33e2da,_0xe146b){try{const _0x57e9d2=await convertToCSVFile(_0xe146b),_0x478493=await _0x57e9d2['text'](),_0x392626=parseCurriculum(_0x478493),_0x1c11be=_0x853b0f['unparse'](_0x392626),_0x3fa573=new File([_0x1c11be],_0x57e9d2['name'],{'type':'text/csv'}),_0x3404ab=new FormData();_0x3404ab['append']('csvFile',_0x3fa573);const _0x5f1fbf=await fetch(_0x33e2da+'/curr-courses/upload',{'method':'POST','body':_0x3404ab});if(!_0x5f1fbf['ok']){const _0x440747=await _0x5f1fbf['json']();throw _0x440747;}return _0x5f1fbf['json']();}catch(_0x5a94d1){throw _0x5a94d1;}}
|
|
9
9
|
|
|
10
|
-
function parseCourseOffering(
|
|
10
|
+
function parseCourseOffering(_0x4ef919){let _0x2abe29='',_0x5afd4c='';const _0x5c12fb=[],_0x3588a2=_0x853b0f['parse'](_0x4ef919,{'header':![],'skipEmptyLines':!![],'delimiter':','}),_0x3bf5ae=_0x3588a2['data'];for(let _0xbb0db0=0x0;_0xbb0db0<Math['min'](0x5,_0x3bf5ae['length']);_0xbb0db0++){const _0x10d1fa=_0x3bf5ae[_0xbb0db0];if(_0x10d1fa&&_0x10d1fa['length']>0x0){const _0x47b2ee=_0x10d1fa[0x0]?.['toString']()||'',_0x146a5f=_0x47b2ee['match'](/(First|Second)\s+Sem\s+S\/Y\s+(\d{4}-\d{4})/i);if(_0x146a5f){_0x2abe29=_0x146a5f[0x1]?.['toLowerCase']()==='first'?'1':'2';if(_0x146a5f[0x2]){const _0x5be9e8=_0x146a5f[0x2]['match'](/(\d{2})(\d{2})-(\d{2})(\d{2})/);_0x5be9e8&&_0x5be9e8[0x2]&&_0x5be9e8[0x4]&&(_0x5afd4c=_0x5be9e8[0x2]+_0x5be9e8[0x4]);}}}}let _0x2fbf5d=-1;for(let _0x56b44c=0x0;_0x56b44c<_0x3bf5ae['length'];_0x56b44c++){const _0x148445=_0x3bf5ae[_0x56b44c];if(_0x148445&&_0x148445['some'](_0x566013=>_0x566013?.['toString']()['toUpperCase']()['includes']('CODE'))){_0x2fbf5d=_0x56b44c;break;}}if(_0x2fbf5d===-1)throw new Error('Could\x20not\x20find\x20header\x20row\x20in\x20CSV\x20data');let _0x1f8cde={'code':'','description':'','unit':0x0};for(let _0x336a8d=_0x2fbf5d+0x1;_0x336a8d<_0x3bf5ae['length'];_0x336a8d++){const _0x1e1b06=_0x3bf5ae[_0x336a8d];if(!_0x1e1b06||_0x1e1b06['length']<0x8)continue;const _0x46f635=_0x1e1b06[0x1]?.['toString']()['trim']()||'',_0x256f41=_0x1e1b06[0x4]?.['toString']()['trim']()||'',_0x2c0456=_0x1e1b06[0x5]?.['toString']()['trim']()||'',_0x1deb2b=_0x1e1b06[0x6]?.['toString']()['trim']()||'',_0x3a075f=_0x1e1b06[0x7]?.['toString']()['trim']()||'',_0x418dd1=_0x1e1b06[0x3]?.['toString']()['trim']()||'';let _0x4f306b=_0x1e1b06[0x0]?.['toString']()['trim']()||'',_0x2e490d=_0x1e1b06[0x2]?.['toString']()['trim']()||'';if(!_0x46f635)continue;if(!_0x4f306b)_0x4f306b=_0x1f8cde['code'];if(!_0x2e490d)_0x2e490d=_0x1f8cde['description'];let _0x54f9b7=_0x1f8cde['unit'];if(_0x418dd1){const _0x264c7b=_0x418dd1['match'](/(\d+)/);_0x264c7b&&_0x264c7b[0x1]&&(_0x54f9b7=parseInt(_0x264c7b[0x1],0xa));}const _0x14c470={'sem':_0x2abe29,'school_year':_0x5afd4c,'code':_0x4f306b,'course_no':_0x46f635,'course_desc':_0x2e490d,'unit':_0x54f9b7,'time':_0x256f41,'days':_0x2c0456,'faculty':_0x1deb2b,'room':_0x3a075f};_0x1f8cde['code']=_0x4f306b,_0x1f8cde['description']=_0x2e490d,_0x1f8cde['unit']=_0x54f9b7,_0x5c12fb['push'](_0x14c470);}return _0x5c12fb;}
|
|
11
11
|
|
|
12
|
-
async function uploadCourseOffering(
|
|
12
|
+
async function uploadCourseOffering(_0x1c31fd,_0x241cae){try{const _0x14ea4b=await convertToCSVFile(_0x241cae),_0x3fdc4e=await _0x14ea4b['text'](),_0x4c941c=parseCourseOffering(_0x3fdc4e),_0x20cda7=_0x853b0f['unparse'](_0x4c941c),_0xc25d82=new File([_0x20cda7],_0x14ea4b['name'],{'type':'text/csv'}),_0x405f22=new FormData();_0x405f22['append']('csvFile',_0xc25d82);const _0x2767e7=await fetch(_0x1c31fd+'/course-offerings/upload',{'method':'POST','body':_0x405f22});if(!_0x2767e7['ok']){const _0x250822=await _0x2767e7['json']();throw _0x250822;}return _0x2767e7['json']();}catch(_0xf0a976){throw _0xf0a976;}}
|
|
13
13
|
|
|
14
|
-
function performaceTarget(
|
|
14
|
+
function performaceTarget(_0x4efbd5){if(!_0x4efbd5)return {'performance_target':null,'passing_score':null};const _0x5dde0a=_0x4efbd5['match'](/\d+/g);return {'performance_target':_0x5dde0a?.[0x0]?parseInt(_0x5dde0a[0x0],0xa):null,'passing_score':_0x5dde0a?.[0x1]?parseInt(_0x5dde0a[0x1],0xa):null};}
|
|
15
15
|
|
|
16
|
-
const HEADERS$1={'co':['course\x20outcome','co\x20statement','outcome\x20statement'],'ilo':['intended\x20learning','ilo','learning\x20outcome'],'assessTool':['assessment\x20tool','assessment\x20method','tool'],'perfTarget':['performance\x20target','target','passing']};function getCoaepHeader(
|
|
16
|
+
const HEADERS$1={'co':['course\x20outcome','co\x20statement','outcome\x20statement'],'ilo':['intended\x20learning','ilo','learning\x20outcome'],'assessTool':['assessment\x20tool','assessment\x20method','tool'],'perfTarget':['performance\x20target','target','passing']};function getCoaepHeader(_0x405e62){let _0xc7c17e={'headerRowIndex':-1,'coIdx':-1,'iloIdx':-1,'assessToolIdx':-1,'perfTargetIdx':-1};for(let _0x34c0d5=0x0;_0x34c0d5<Math['min'](_0x405e62['length'],0x14);_0x34c0d5++){const _0x460759=(_0x405e62[_0x34c0d5]??[])['map'](_0x566601=>_0x566601['toLowerCase']()['trim']()),_0x5b3736=_0x460759['findIndex'](_0x8bff8b=>HEADERS$1['co']['some'](_0x48a622=>_0x8bff8b['includes'](_0x48a622))),_0xb89224=_0x460759['findIndex'](_0x58ae99=>HEADERS$1['ilo']['some'](_0x39d442=>_0x58ae99['includes'](_0x39d442))),_0x2f17be=_0x460759['findIndex'](_0x10dbc0=>HEADERS$1['assessTool']['some'](_0x1f4ac6=>_0x10dbc0['includes'](_0x1f4ac6))),_0x3eaafa=_0x460759['findIndex'](_0x3ab433=>HEADERS$1['perfTarget']['some'](_0x50bdfe=>_0x3ab433['includes'](_0x50bdfe))),_0x2b5a40=[_0x5b3736,_0xb89224,_0x2f17be,_0x3eaafa]['filter'](_0x4155f5=>_0x4155f5!==-1)['length'];if(_0x2b5a40>=0x3){_0xc7c17e={'headerRowIndex':_0x34c0d5,'coIdx':_0x5b3736,'iloIdx':_0xb89224,'assessToolIdx':_0x2f17be,'perfTargetIdx':_0x3eaafa};break;}}return _0xc7c17e;}
|
|
17
17
|
|
|
18
|
-
function extractFromObjective(
|
|
18
|
+
function extractFromObjective(_0x6da575){const _0x131bc4={'cognitive_level':null,'taxonomy_level':null,'verb':null,'rest':_0x6da575['trim']()},_0x2bf1cd=_0x6da575['match'](/^\((I|E|D)\)/);_0x2bf1cd&&(_0x131bc4['cognitive_level']=_0x2bf1cd[0x1],_0x131bc4['rest']=_0x6da575['slice'](_0x2bf1cd[0x0]['length'])['trim']());const _0x42908a=_0x131bc4['rest']?.['match'](/^(.*?)\:/);_0x42908a&&(_0x131bc4['taxonomy_level']=_0x42908a[0x1]['trim']()['toLowerCase']()||null,_0x131bc4['rest']=_0x131bc4['rest']?.['slice'](_0x42908a[0x0]['length'])['trim']()||null);const _0x1f7304=_0x131bc4['rest']?.['match'](/(?:shall|will)\s+([a-zA-Z-]+)/);if(_0x1f7304)_0x131bc4['verb']=_0x1f7304[0x1]['trim']()['toLowerCase']()||null;else {const _0x1e2cba=_0x131bc4['rest']?.['match'](/^\w+/);if(_0x1e2cba)_0x131bc4['verb']=_0x1e2cba[0x0]['trim']()['toLowerCase']()||null;}return _0x131bc4;}
|
|
19
19
|
|
|
20
|
-
function parseCOAEP(
|
|
20
|
+
function parseCOAEP(_0x11a3a9){const _0x493e79=_0x853b0f['parse'](_0x11a3a9,{'skipEmptyLines':![]})['data'],_0x18144f={'COAEP':{'faculty':null,'course':null,'sy':null,'semester':null,'co':[]}},{headerRowIndex:_0x44a225,coIdx:_0x4a6903,iloIdx:_0x50c412,assessToolIdx:_0xffc5a5,perfTargetIdx:_0x30eb78}=getCoaepHeader(_0x493e79);if(_0x44a225===-1)return {'error':'Could\x20not\x20auto-detect\x20header\x20row.','message':'Please\x20ensure\x20the\x20CSV\x20file\x20is\x20in\x20the\x20correct\x20COAEP\x20format.'};_0x493e79['forEach'](_0x21bc97=>{const _0x2a650b=_0x21bc97['indexOf']('Name\x20of\x20Faculty:'),_0x51e302=_0x21bc97['indexOf']('School\x20Year'),_0x3ab56f=_0x21bc97['indexOf']('Course:'),_0x4eca8c=_0x21bc97['indexOf']('Semester');_0x2a650b!==-1&&(_0x18144f['COAEP']['faculty']=_0x21bc97[_0x2a650b+0x1]?.['trim']()||_0x18144f['COAEP']['faculty']);_0x51e302!==-1&&(_0x18144f['COAEP']['sy']=_0x21bc97[_0x51e302+0x1]?.['trim']()||_0x18144f['COAEP']['sy']);_0x3ab56f!==-1&&(_0x18144f['COAEP']['course']=_0x21bc97[_0x3ab56f+0x1]?.['trim']()||_0x18144f['COAEP']['course']);if(_0x4eca8c!==-1){const _0x53ccd3=_0x21bc97[_0x4eca8c+0x1]?.['trim']()||'',_0x34399e=_0x53ccd3['match'](/\d+/)?.[0x0];_0x18144f['COAEP']['semester']=_0x34399e?parseInt(_0x34399e,0xa):_0x18144f['COAEP']['semester'];}});let _0x2590d7=null;return _0x493e79['forEach']((_0x206b8f,_0x339e58)=>{if(_0x339e58<=_0x44a225)return;let _0x4d81ab=_0x206b8f[_0x4a6903-0x1]?.['trim']()||'',_0x3d4326=_0x206b8f[_0x4a6903]?.['trim']()||'';/^\d+$/['test'](_0x206b8f[_0x4a6903]?.['trim']()||'')&&(_0x4d81ab=_0x206b8f[_0x4a6903]?.['trim']()||'',_0x3d4326=_0x206b8f[_0x4a6903+0x1]?.['trim']()||'');const _0x1a5848=_0x206b8f[_0x50c412]?.['trim']()||'',_0x3c808e=_0x206b8f[_0xffc5a5]?.['replace'](/^ILO\d+[:.]?\s*/,'')['trim']()||'',_0x52859b=_0x206b8f[_0x30eb78]?.['replace'](/\s+/g,'\x20')['trim']()||'';if(_0x4d81ab&&/^\d+$/['test'](_0x4d81ab)){_0x2590d7&&_0x18144f['COAEP']['co']['push'](_0x2590d7);const _0x6b5f42=_0x3d4326,{verb:_0x3e6b81,cognitive_level:_0xd8f2e1,taxonomy_level:_0x4d3df0}=extractFromObjective(_0x6b5f42);if(!_0x3e6b81)return {'error':'Could\x20not\x20find\x20verb.','message':'Please\x20ensure\x20the\x20Course\x20Outcome\x20#'+_0x4d81ab+'\x20is\x20in\x20the\x20correct\x20format.'};_0x2590d7={'statement':_0x6b5f42,'ilo':[],'verb':_0x3e6b81,'cognitive_level':_0xd8f2e1,'taxonomy_level':_0x4d3df0};}if(_0x2590d7&&_0x1a5848&&_0x52859b){const _0x4e1702=_0x1a5848['replace'](/^ILO\d+[:.]?\s*/,'');if(_0x4e1702['match'](/^(Revision|Prepared|Date|Approved|Effectivity|Page)/i)||_0x4e1702['length']<0xa)return;let _0x894241=_0x3c808e;if(!_0x894241&&_0x4e1702['includes'](':')){const _0x294755=_0x4e1702['match'](/^ILO\d+:\s*(.+?)(?:\s*\(|$)/);_0x294755&&(_0x894241=_0x294755[0x1]?.['trim']()||'');}const {performance_target:_0x12ed69,passing_score:_0x2f2050}=performaceTarget(_0x52859b),{verb:_0x503712,cognitive_level:_0x2f293a,taxonomy_level:_0x3ba15f}=extractFromObjective(_0x4e1702);_0x2590d7['ilo']['push']({'statement':_0x4e1702,'assessment_tool':_0x894241,'performance_target':_0x12ed69,'passing_score':_0x2f2050,'verb':_0x503712,'cognitive_level':_0x2f293a,'taxonomy_level':_0x3ba15f});}}),_0x2590d7&&_0x18144f['COAEP']['co']['push'](_0x2590d7),_0x18144f;}
|
|
21
21
|
|
|
22
|
-
async function uploadCOAEP(
|
|
22
|
+
async function uploadCOAEP(_0xef6e7d,_0x5f59c2,_0xd808fd){try{const _0x67015=await convertToCSVFile(_0x5f59c2),_0x363221=await _0x67015['text'](),_0xaec756=parseCOAEP(_0x363221);console['log'](_0xaec756);const _0x4926e2=await fetch(_0xef6e7d+'/coaeps/upload?course_id='+_0xd808fd,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0xaec756)});if(!_0x4926e2['ok']){const _0x3dbcef=await _0x4926e2['json']();throw _0x3dbcef;}return _0x4926e2['json']();}catch(_0x36b758){throw _0x36b758;}}
|
|
23
23
|
|
|
24
|
-
async function uploadEnrolledStudent(
|
|
24
|
+
async function uploadEnrolledStudent(_0x47a680,_0x2f7d09){try{const _0x32180f=await convertToCSVFile(_0x2f7d09),_0x450321=new FormData();_0x450321['append']('csvFile',_0x32180f);const _0x3554ef=await fetch(_0x47a680+'/enrolled-students/upload',{'method':'POST','body':_0x450321});if(!_0x3554ef['ok']){const _0x5a0e31=await _0x3554ef['json']();throw _0x5a0e31;}return _0x3554ef['json']();}catch(_0x1f76cd){throw _0x1f76cd;}}
|
|
25
25
|
|
|
26
|
-
function parseClassList(
|
|
26
|
+
function parseClassList(_0x13f6a9){const _0x39e588=_0x853b0f['parse'](_0x13f6a9,{'skipEmptyLines':!![]})['data'];let _0x3e0f12='',_0x4b0e96='',_0x3e96c4='';const _0x235ab1=[];return _0x39e588['forEach'](_0x48af83=>{const _0x3f4aa4=_0x48af83['map'](_0x8abade=>(_0x8abade??'')['toString']()['trim']()),_0x590d52=_0x3f4aa4[0x0]??'';if(_0x590d52['startsWith']('Course\x20No:')){const _0x9b8e44=_0x590d52['replace']('Course\x20No:','')['trim'](),_0x3c4642=_0x9b8e44['split'](/\s+/);_0x3e96c4=_0x3c4642[0x0]??'';const [_0x1d08a7,_0x2220a1]=(_0x3c4642[0x1]??'')['split']('-');_0x4b0e96=_0x1d08a7??'';const _0x39441f=(_0x2220a1??'')['match'](/[a-z]$/);_0x3e0f12=_0x39441f?_0x39441f[0x0]:'';}if(/^\d+$/['test'](_0x590d52)){const _0x18ae08=_0x3f4aa4[0x2]??'';_0x235ab1['push']({'subj_code':_0x3e96c4,'student_no':_0x18ae08,'course_id':_0x4b0e96,'section':_0x3e0f12});}}),{'enrolledCourses':_0x235ab1};}
|
|
27
27
|
|
|
28
|
-
async function uploadClassList(
|
|
28
|
+
async function uploadClassList(_0x4177cc,_0x1fe5f2,_0x453f1f,_0x56e337){try{const _0x300a7f=await convertToCSVFile(_0x1fe5f2),_0x56a701=await _0x300a7f['text'](),_0x1d64f3=parseClassList(_0x56a701),_0xa51cb6='subj_code='+_0x453f1f+'&period_id='+_0x56e337,_0x2d9a85=await fetch(_0x4177cc+'/enrolled-courses/upload?'+_0xa51cb6,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x1d64f3)});if(!_0x2d9a85['ok']){const _0x4a2981=await _0x2d9a85['json']();throw _0x4a2981;}return _0x2d9a85['json']();}catch(_0x3877dc){throw _0x3877dc;}}
|
|
29
29
|
|
|
30
|
-
function parseAssessmentCsv(
|
|
30
|
+
function parseAssessmentCsv(_0x5ae443){const {data:_0x4853fe}=_0x853b0f['parse'](_0x5ae443,{'skipEmptyLines':!![]}),_0x34e902=_0x4853fe['filter'](_0x3d9cb1=>_0x3d9cb1['length']>0x0),_0x53c9aa=_0x34e902['find'](_0x27202f=>_0x27202f['some'](_0x104173=>_0x104173?.['includes']('Faculty'))),_0x492e4a=_0x53c9aa?_0x53c9aa['findIndex'](_0x6e11af=>_0x6e11af?.['includes']('Faculty')):-1,_0x2920e8=_0x492e4a!==-1&&_0x53c9aa?_0x53c9aa[_0x492e4a+0x2]?.['replace'](/"/g,'')['trim']()??'':'',_0x3a4b90=_0x34e902['find'](_0xea5024=>_0xea5024['some'](_0x1c7b39=>_0x1c7b39?.['includes']('Semester'))),_0xadd4a9=_0x3a4b90?_0x3a4b90['findIndex'](_0x34cb9d=>_0x34cb9d?.['includes']('Semester')):-1,_0xad8417=_0xadd4a9!==-1&&_0x3a4b90?_0x3a4b90[_0xadd4a9+0x2]?.['trim']()??'':'',_0x23419b=_0xad8417['includes']('1st')?0x1:_0xad8417['includes']('2nd')?0x2:0x0,_0x2242fc=_0x34e902['find'](_0x4b0a46=>_0x4b0a46['some'](_0x5ae7b5=>_0x5ae7b5?.['includes']('Course\x20&\x20Sec'))),_0x30fbcc=_0x2242fc?_0x2242fc['findIndex'](_0x513f3a=>_0x513f3a?.['includes']('Course\x20&\x20Sec')):-1,_0x199016=_0x30fbcc!==-1&&_0x2242fc?_0x2242fc[_0x30fbcc+0x2]?.['trim']()??'':'';let _0x5e43b6='',_0x140342='';if(_0x199016){const _0x1d5820=_0x199016['match'](/^([A-Za-z0-9]+)-?([A-Za-z]+)?/);_0x1d5820&&(_0x5e43b6=_0x1d5820[0x1]??'',_0x1d5820[0x2]&&(_0x140342=_0x1d5820[0x2]['replace'](/^OC/i,'')));}const _0x32c876=_0x34e902['find'](_0x579a1f=>_0x579a1f['some'](_0xb5bfcf=>_0xb5bfcf?.['includes']('School\x20Year'))),_0x184fc9=_0x32c876?_0x32c876['findIndex'](_0x574038=>_0x574038?.['includes']('School\x20Year')):-1,_0x4e01d5=_0x184fc9!==-1&&_0x32c876?_0x32c876[_0x184fc9+0x2]?.['trim']()??'':'';let _0x3d39ba=0x0;if(_0x4e01d5){const _0x382748=_0x4e01d5['match'](/(\d{4})-(\d{4})/);if(_0x382748){const _0x38ea83=(_0x382748[0x1]??'')['slice'](0x2),_0x1ca707=(_0x382748[0x2]??'')['slice'](0x2);_0x3d39ba=parseInt(_0x38ea83+_0x1ca707,0xa);}}const _0xb1269f={'faculty':_0x2920e8,'course':_0x5e43b6,'section':_0x140342,'semester':_0x23419b,'sy':_0x3d39ba},_0x3e4625=_0x34e902['findIndex'](_0x10e9da=>_0x10e9da['some'](_0x5212ca=>_0x5212ca?.['trim']()==='CO\x20#'));if(_0x3e4625===-1)throw new Error('CO\x20header\x20row\x20not\x20found\x20in\x20CSV');const _0x5848fd=_0x34e902[_0x3e4625+0x1];if(!_0x5848fd)throw new Error('ILO\x20header\x20row\x20not\x20found\x20in\x20CSV');const _0x22fc9f={};let _0x22acda=0x1,_0x3a2db5=0x1;for(let _0x53f985=0x3;_0x53f985<_0x5848fd['length'];_0x53f985++){const _0x4ceba2=_0x5848fd[_0x53f985];if(!_0x4ceba2)continue;const _0x16746c='co'+_0x22acda;if(!_0x22fc9f[_0x16746c])_0x22fc9f[_0x16746c]=[];_0x22fc9f[_0x16746c]['push']('ilo'+_0x3a2db5),_0x3a2db5++,_0x3a2db5>0x3&&(_0x22acda++,_0x3a2db5=0x1);}const _0x1df7a9=_0x34e902['findIndex'](_0x500f0e=>_0x500f0e['includes']('Name\x20of\x20Students'));if(_0x1df7a9===-1)throw new Error('Student\x20header\x20row\x20not\x20found\x20in\x20CSV');const _0x54b87b=_0x34e902[_0x1df7a9];if(!_0x54b87b)throw new Error('Student\x20header\x20row\x20is\x20missing');const _0x42276c=_0x54b87b['findIndex'](_0x7d97ff=>_0x7d97ff?.['includes']('Name\x20of\x20Students'));if(_0x42276c===-1)throw new Error('Name\x20of\x20Students\x20column\x20not\x20found\x20in\x20CSV');const _0x1d849f=_0x42276c+0x2,_0x2f75f5=[];for(let _0x1db8b6=_0x1df7a9+0x1;_0x1db8b6<_0x34e902['length'];_0x1db8b6++){const _0x505152=_0x34e902[_0x1db8b6];if(!_0x505152)continue;if(_0x505152['some'](_0x579003=>_0x579003?.['toUpperCase']()['includes']('TOTAL\x20STUDENTS')||_0x579003?.['toUpperCase']()['includes']('ACHIEVED\x20THE\x20MINIMUM')||_0x579003?.['toUpperCase']()['includes']('INACTIVE')||_0x579003?.['toUpperCase']()['includes']('AVERAGE')))continue;if(!_0x505152[_0x42276c])continue;const _0x27a7ef=_0x505152[_0x42276c]['replace'](/"/g,'')['trim'](),_0xaf0512=_0x505152['slice'](_0x1d849f)['map'](_0x2d2c70=>_0x2d2c70===null?null:!isNaN(Number(_0x2d2c70))?parseFloat(_0x2d2c70):0x0);let _0x4fe9a1=0x0;const _0xdce94f={};Object['entries'](_0x22fc9f)['forEach'](([_0x34d888,_0x113df6])=>{const _0x2d3af8={};_0x113df6['forEach'](_0x159e61=>{_0x2d3af8[_0x159e61]=_0xaf0512[_0x4fe9a1]??0x0,_0x4fe9a1++;}),_0xdce94f[_0x34d888]={'transmuted_score':_0x2d3af8};}),_0x2f75f5['push']({'student_name':_0x27a7ef,'coaep':_0xdce94f});}const _0x44a075=_0x34e902['find'](_0x43683b=>_0x43683b['some'](_0x287254=>_0x287254?.['includes']('ACHIEVED\x20THE\x20MINIMUM'))),_0x7901c2=_0x34e902['find'](_0x1ba6eb=>_0x1ba6eb['some'](_0x4461c8=>_0x4461c8?.['includes']('AVERAGE'))),_0x3e22eb=_0x44a075?_0x44a075['slice'](_0x1d849f)['map'](_0xbded7=>_0xbded7&&!isNaN(Number(_0xbded7))?parseInt(_0xbded7):0x0):[],_0x2da5f5=_0x7901c2?_0x7901c2['slice'](_0x1d849f)['map'](_0x4cd145=>_0x4cd145&&_0x4cd145!=='#DIV/0!'&&!isNaN(Number(_0x4cd145))?parseInt(_0x4cd145):0x0):[],_0x2c47d9={};let _0x3cc66d=0x0;return Object['entries'](_0x22fc9f)['forEach'](([_0x332808,_0x336107])=>{if(!_0x2c47d9[_0x332808])_0x2c47d9[_0x332808]={};_0x336107['forEach'](_0x134ac8=>{_0x2c47d9[_0x332808][_0x134ac8]={'achievedMinimum':_0x3e22eb[_0x3cc66d]??0x0,'average':_0x2da5f5[_0x3cc66d]??0x0},_0x3cc66d++;});}),{'assessmentData':{'classAssignment':_0xb1269f,'student':_0x2f75f5,'total':_0x2c47d9}};}
|
|
31
31
|
|
|
32
|
-
async function uploadAssessmentData(
|
|
32
|
+
async function uploadAssessmentData(_0x10f00e,_0x46f333){try{const _0x1e66f7=await convertToCSVFile(_0x46f333),_0x2d4717=await _0x1e66f7['text'](),_0x241d01=parseAssessmentCsv(_0x2d4717),_0x357831=await fetch(_0x10f00e+'/assessment-data/upload',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x241d01)});if(!_0x357831['ok']){const _0x428ba4=await _0x357831['json']();throw _0x428ba4;}return _0x357831['json']();}catch(_0x2a7e96){throw _0x2a7e96;}}
|
|
33
33
|
|
|
34
|
-
async function uploadDeptFaculty(
|
|
34
|
+
async function uploadDeptFaculty(_0xf2ebee,_0x44db9f){try{const _0x54cae9=await convertToCSVFile(_0x44db9f),_0x15c2d0=new FormData();_0x15c2d0['append']('csvFile',_0x54cae9);const _0x1c0b9c=await fetch(_0xf2ebee+'/dept-faculties/upload',{'method':'POST','body':_0x15c2d0});if(!_0x1c0b9c['ok']){const _0x166855=await _0x1c0b9c['json']();throw _0x166855;}return _0x1c0b9c['json']();}catch(_0x54c8f7){throw _0x54c8f7;}}
|
|
35
35
|
|
|
36
|
-
const HEADERS={'po':['program\x20outcome','po\x20statement','outcome\x20statement'],'tl':['taxonomy','level'],'pi':['performance\x20indicator'],'fc':['formative'],'sc':['summative'],'at':['assessment\x20tool','assessment\x20method','tool'],'pt':['performance\x20target','target','passing']};function getPoaepHeader(
|
|
36
|
+
const HEADERS={'po':['program\x20outcome','po\x20statement','outcome\x20statement'],'tl':['taxonomy','level'],'pi':['performance\x20indicator'],'fc':['formative'],'sc':['summative'],'at':['assessment\x20tool','assessment\x20method','tool'],'pt':['performance\x20target','target','passing']};function getPoaepHeader(_0x2961d3){let _0x461937={'headerIdx':-1,'poIdx':-1,'tlIdx':-1,'piIdx':-1,'fcIdx':-1,'scIdx':-1,'atIdx':-1,'ptIdx':-1};for(let _0x5c745e=0x0;_0x5c745e<Math['min'](_0x2961d3['length'],0x14);_0x5c745e++){const _0x44e2e8=(_0x2961d3[_0x5c745e]??[])['map'](_0x4fc8c4=>_0x4fc8c4['toLowerCase']()['trim']()),_0x7b68b6=_0x44e2e8['findIndex'](_0x3f2bfa=>HEADERS['po']['some'](_0x1de230=>_0x3f2bfa['toLowerCase']()['includes'](_0x1de230))),_0x3f9a2c=_0x44e2e8['findIndex'](_0xbb4f8b=>HEADERS['tl']['some'](_0x3063dc=>_0xbb4f8b['toLowerCase']()['includes'](_0x3063dc))),_0xd2dc52=_0x44e2e8['findIndex'](_0x552465=>HEADERS['pi']['some'](_0x34af92=>_0x552465['toLowerCase']()['includes'](_0x34af92))),_0x15ce86=_0x44e2e8['findIndex'](_0x4a3d09=>HEADERS['fc']['some'](_0x599d7b=>_0x4a3d09['toLowerCase']()['includes'](_0x599d7b))),_0x10c8ba=_0x44e2e8['findIndex'](_0x1655bd=>HEADERS['sc']['some'](_0x4eefe2=>_0x1655bd['toLowerCase']()['includes'](_0x4eefe2))),_0x3e74f6=_0x44e2e8['findIndex'](_0x42b6b7=>HEADERS['at']['some'](_0x18fe46=>_0x42b6b7['toLowerCase']()['includes'](_0x18fe46))),_0x5b4992=_0x44e2e8['findIndex'](_0x1c4c55=>HEADERS['pt']['some'](_0x1b0438=>_0x1c4c55['toLowerCase']()['includes'](_0x1b0438))),_0x4792d0=[_0x7b68b6,_0x3f9a2c,_0xd2dc52,_0x15ce86,_0x10c8ba,_0x3e74f6,_0x5b4992]['filter'](_0x50f31c=>_0x50f31c!==-1)['length'];if(_0x4792d0>=0x3){_0x461937={'headerIdx':_0x5c745e,'poIdx':_0x7b68b6,'tlIdx':_0x3f9a2c,'piIdx':_0xd2dc52,'fcIdx':_0x15ce86,'scIdx':_0x10c8ba,'atIdx':_0x3e74f6,'ptIdx':_0x5b4992};break;}}if(_0x461937['headerIdx']===-1)throw new Error('No\x20valid\x20headers\x20found\x20in\x20POAEP\x20file.');return _0x461937;}
|
|
37
37
|
|
|
38
|
-
const parseFormativeCourses=
|
|
38
|
+
const parseFormativeCourses=_0x4be6da=>{let _0x3714f8=_0x4be6da['split'](',')['reduce']((_0xac3ac6,_0x41b667)=>{const _0x231e94=_0x41b667['trim']();if(_0x231e94)_0xac3ac6['push'](_0x231e94);return _0xac3ac6;},[]);return _0x3714f8;};
|
|
39
39
|
|
|
40
|
-
const parsePOAEP=
|
|
40
|
+
const parsePOAEP=_0x5cbb5a=>{try{const _0x289561=_0x853b0f['parse'](_0x5cbb5a,{'skipEmptyLines':![]})['data'],{headerIdx:_0x363d10,poIdx:_0x256579,tlIdx:_0xf7ba34,piIdx:_0x4f9e8d,fcIdx:_0x4e69df,scIdx:_0x27ae1d,atIdx:_0x44988b,ptIdx:_0x4bb88a}=getPoaepHeader(_0x289561),_0x487d34=[];let _0x4e7fe5={'po_desc':'','seq_no':0x0,'PerfIndicators':[]},_0x282c4b='',_0x26e65a='',_0x174c1f='';for(let _0x56aaec=_0x363d10+0x1;_0x56aaec<_0x289561['length'];_0x56aaec++){const _0x768c9d=_0x289561[_0x56aaec];if(!_0x768c9d)break;const _0xf9c9b2=_0x768c9d[_0x256579]?.['trim']()||'';_0xf9c9b2!==''&&(_0x4e7fe5={'po_desc':_0xf9c9b2,'seq_no':_0x4e7fe5['seq_no']+0x1,'PerfIndicators':[]},_0x487d34['push'](_0x4e7fe5),_0x282c4b='',_0x26e65a='',_0x174c1f='');if(_0x4e7fe5['po_desc']==='')throw new Error('Invalid\x20Program\x20Outcome\x20at\x20row\x20'+_0x56aaec+'.');const _0x1f6f2d=_0x768c9d[_0x4f9e8d]?.['trim']()||'';if(_0x1f6f2d==='')break;const _0x1fe97c=_0x768c9d[_0x4e69df]?.['trim']()||'';if(_0x1fe97c==='')throw new Error('Empty\x20Formative\x20Courses\x20at\x20row\x20'+_0x56aaec+'.');const _0x4df84f=_0x768c9d[_0x27ae1d]?.['trim']()||_0x282c4b;if(_0x4df84f==='')throw new Error('Empty\x20Summative\x20Course\x20at\x20row\x20'+_0x56aaec+'.');_0x282c4b=_0x4df84f;const _0x4bc38a=_0x768c9d[_0x44988b]?.['trim']()||_0x26e65a;if(_0x4bc38a==='')throw new Error('Empty\x20Assessment\x20Tool\x20at\x20row\x20'+_0x56aaec+'.');_0x26e65a=_0x4bc38a;const _0x3c4d57=_0x768c9d[_0x4bb88a]?.['trim']()||_0x174c1f;if(_0x3c4d57==='')throw new Error('Empty\x20Performance\x20Target\x20at\x20row\x20'+_0x56aaec+'.');_0x174c1f=_0x3c4d57;const _0x180a8e=parseFormativeCourses(_0x1fe97c);if(_0x180a8e['length']===0x0)throw new Error('Invalid\x20Formative\x20Courses\x20format\x20at\x20row\x20'+_0x56aaec+'.');const _0x3af1f8=performaceTarget(_0x3c4d57);if(!_0x3af1f8['performance_target']||!_0x3af1f8['passing_score'])throw new Error('Invalid\x20Performance\x20Targets\x20format\x20at\x20row\x20'+_0x56aaec+'.');const _0x5df971={'pi_desc':_0x1f6f2d,'FormativeCourses':_0x180a8e['map'](_0x4afbaf=>({'course_id':_0x4afbaf,'cognitive_level':0x0})),'SummativeCourse':{'course_id':_0x4df84f},'AssessmentTool':{'at_desc':_0x4bc38a},'PerformanceTargets':{'target_percent':_0x3af1f8['performance_target'],'min_score':_0x3af1f8['passing_score']}};_0x4e7fe5['PerfIndicators']['push'](_0x5df971);}return {'success':!![],'message':'Successfully\x20parsed\x20POAEP\x20file.','data':{'POAEP':_0x487d34}};}catch(_0x753f2d){return {'success':![],'error':_0x753f2d instanceof Error?_0x753f2d['message']:_0x753f2d,'message':'Please\x20ensure\x20the\x20file\x20follows\x20the\x20POAEP\x20template.'};}};
|
|
41
41
|
|
|
42
|
-
async function uploadPOAEP(
|
|
42
|
+
async function uploadPOAEP(_0x161482,_0x463ef4,_0x39ccd5,_0x1d6c1f,_0x2c8d05){try{const _0x489cf4=await convertToCSVFile(_0x463ef4),_0x384926=await _0x489cf4['text'](),_0x3a0f5f=parsePOAEP(_0x384926),_0x463564=await fetch(_0x161482+'/program-outcomes/poaep/upload?curr_id='+_0x1d6c1f+'&period_id='+_0x2c8d05,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x39ccd5},'credentials':'include','body':JSON['stringify'](_0x3a0f5f)});if(!_0x463564['ok']){const _0x7584a4=await _0x463564['json']();throw _0x7584a4;}return _0x463564['json']();}catch(_0x4ea17e){throw _0x4ea17e;}}
|
|
43
43
|
|
|
44
|
-
class DataTable{['name'];['headers'];['table'];['validators']=[];constructor(
|
|
44
|
+
class DataTable{['name'];['headers'];['table'];['validators']=[];constructor(_0x5795ce='DataTable',_0x1c0fa6){this['name']=_0x5795ce,this['headers']=_0x1c0fa6,this['table']=[],this['validators']=[];}['getName'](){return this['name'];}['getHeaders'](){return this['headers'];}['getTable'](){if(this['table']['length']===0x0)return {'success':![],'message':'Datatable\x20is\x20unset.'};return {'success':!![],'message':'Successfully\x20fetched\x20datatable.','data':{'name':this['name'],'headers':this['headers'],'table':this['table']}};}async['setTable'](_0x602cf9){await this['assertInitialized']();}async['initializeTable'](_0x349ae3,_0x262b1a){try{let _0x34b4c0;if(_0x349ae3 instanceof File)_0x34b4c0=await this['fromXML'](_0x349ae3,_0x262b1a);else _0x34b4c0=await this['fromCSVString'](_0x349ae3);if(!_0x34b4c0['success']||!_0x34b4c0['data'])return _0x34b4c0;if(_0x34b4c0['data']['length']===0x0)throw new Error('Cannot\x20set\x20an\x20empty\x20table.');return this['table']=_0x34b4c0['data'],{'success':!![],'message':'Successfully\x20set\x20table.'};}catch(_0xf2fe78){return {'success':![],'message':'Error\x20setting\x20table.','error':_0xf2fe78};}}async['assertInitialized'](){if(this['table']['length']===0x0)Promise['reject']({'error':this['name']+'\x20is\x20unset.','from':this['name']['toUpperCase']()+'_ASSERT_INIT'});}async['fromXML'](_0x2a4d3a,_0xffb020){const _0x66bb49=await convertToCSVFile(_0x2a4d3a,_0xffb020),_0x4d025f=await _0x66bb49['text']();return this['fromCSVString'](_0x4d025f);}async['findValue'](_0x3c921f){let [_0xd26f06,_0x9925a5]=[-1,-1];if(!_0x3c921f)return {'row':_0xd26f06,'column':_0x9925a5};for(let _0x10c4bf=0x0;_0x10c4bf<this['table']['length'];_0x10c4bf++){const _0x4d9b84=this['table'][_0x10c4bf];for(let _0x33a42e=0x0;_0x33a42e<_0x4d9b84['length'];_0x33a42e++){if(typeof _0x3c921f==='string'){if(_0x4d9b84[_0x33a42e]===_0x3c921f)return {'row':_0x10c4bf,'column':_0x33a42e};}else {if(_0x4d9b84[_0x33a42e]){if(_0x4d9b84[_0x33a42e]===_0x3c921f)return {'row':_0x10c4bf,'column':_0x33a42e};}}}}return {'row':_0xd26f06,'column':_0x9925a5};}async['validate'](){const _0x5d50d4=[],_0x42a63a=[];try{await this['assertInitialized']()['then'](()=>{_0x5d50d4['push']('Table\x20is\x20initialized.');})['catch'](_0x4517ce=>_0x42a63a['push'](_0x4517ce));if(_0x42a63a['length']>0x0)throw 'Cannot\x20validate\x20uninitialized\x20table.';await this['validateFields'](_0x5d50d4,_0x42a63a);const {success:_0x269732,message:_0x15f419,error:_0x9490cd,data:_0x3cb167}=await this['toJson']();if(!_0x3cb167)throw 'Cannot\x20access\x20Json\x20Object\x20data.';_0x5d50d4['push'](..._0x3cb167['validMsgs']),_0x42a63a['push'](..._0x3cb167['tableErrors']);const {jsonObj:_0x1485e6}=_0x3cb167;for(const _0x30f280 of this['validators']){await _0x30f280['validate'](_0x5d50d4,_0x42a63a,this,_0x1485e6);}let _0x1c6acb=this['name']+'\x20ran\x20its\x20validations.';if(_0x5d50d4['length']>0x0)_0x1c6acb+='\x20'+_0x5d50d4['length']+'\x20validations\x20were\x20successful.';if(_0x42a63a['length']>0x0)_0x1c6acb+='\x20'+_0x42a63a['length']+'\x20validations\x20failed.';return {'success':!![],'message':_0x1c6acb,'data':{'validMsgs':_0x5d50d4,'tableErrors':_0x42a63a}};}catch(_0xa75221){return _0x42a63a['push']({'error':this['name']+'\x20failed\x20to\x20run\x20all\x20its\x20validations.','from':this['name']['toUpperCase']()+'_VALIDATE','cause':_0xa75221}),{'success':![],'message':this['name']+'\x20failed\x20to\x20run\x20all\x20its\x20validations.','data':{'validMsgs':_0x5d50d4,'tableErrors':_0x42a63a}};}}['useValidator'](_0x701b){this['validators']['push'](_0x701b);}}
|
|
45
45
|
|
|
46
|
-
class DTValidator{['name'];constructor(
|
|
46
|
+
class DTValidator{['name'];constructor(_0x392fbb){this['name']=_0x392fbb;}['getName'](){return this['name'];}['report'](_0x3409b1,_0x55b922,_0x4a2eaa){if(_0x3409b1['length']>0x0)_0x4a2eaa['push'](..._0x3409b1);else _0x55b922['push'](this['name']+'\x20successfully\x20validated.');}}
|
|
47
47
|
|
|
48
|
-
class LastILOTaxo extends DTValidator{constructor(){super('LAST_ILO_TAXO');}async['validate'](
|
|
48
|
+
class LastILOTaxo extends DTValidator{constructor(){super('LAST_ILO_TAXO');}async['validate'](_0x121582,_0x454551,_0x5137e6,_0xeae9d4){const _0x1b7a96=[];if(!_0xeae9d4){_0x454551['push']({'error':'Unable\x20to\x20access\x20COAEP\x20object.','from':this['name']});return;}for(let _0x5fba7a=0x0;_0x5fba7a<_0xeae9d4['co']['length'];_0x5fba7a++){const _0x199a77=_0xeae9d4['co'][_0x5fba7a];if(!_0x199a77){const {row:_0x561604,column:_0x3f6959}=await _0x5137e6['findValue'](_0x5fba7a+0x1+'');_0x1b7a96['push']({'error':'No\x20CO\x20Statement\x20for\x20CO\x20'+(_0x5fba7a+0x1)+'.','row':_0x561604,'column':_0x3f6959+0x1,'from':this['name']});continue;}if(!_0x199a77?.['ilo']){const {row:_0x3ad39f,column:_0x405c13}=await _0x5137e6['findValue'](_0x199a77['statement']);_0x1b7a96['push']({'error':'No\x20ILOs\x20for\x20CO\x20'+(_0x5fba7a+0x1)+'.','row':_0x3ad39f,'column':_0x405c13,'from':this['name']});continue;}const _0x32cab0=_0x199a77['ilo']['length']-0x1,_0x1cce3e=_0x199a77['ilo'][_0x32cab0];if(!_0x1cce3e['taxonomy_level']){const {row:_0x1a2eaf,column:_0x2b3faf}=await _0x5137e6['findValue'](_0x1cce3e['statement']);_0x1b7a96['push']({'error':'Last\x20ILO\x20for\x20CO\x20'+(_0x5fba7a+0x1)+'\x20has\x20no\x20Taxonomy\x20Level.','row':_0x1a2eaf,'column':_0x2b3faf,'from':this['name']});continue;}if(_0x1cce3e['taxonomy_level']!==_0x199a77['taxonomy_level']){const {row:_0x128403,column:_0x1fcd12}=await _0x5137e6['findValue'](_0x1cce3e['statement']);_0x1b7a96['push']({'error':'Last\x20ILO\x20for\x20CO\x20'+(_0x5fba7a+0x1)+'\x20does\x20not\x20match\x20the\x20CO\x27s\x20Taxonomy\x20Level.\x20('+_0x1cce3e['taxonomy_level']+'\x20!==\x20'+_0x199a77['taxonomy_level']+')','row':_0x128403,'column':_0x1fcd12,'from':this['name']});}}this['report'](_0x1b7a96,_0x121582,_0x454551);}}
|
|
49
49
|
|
|
50
|
-
const whitelist=['applying','analyzing','evaluating','creating'];class MinCOtaxo extends DTValidator{constructor(){super('MIN_CO_TAXO');}async['validate'](
|
|
50
|
+
const whitelist=['applying','analyzing','evaluating','creating'];class MinCOtaxo extends DTValidator{constructor(){super('MIN_CO_TAXO');}async['validate'](_0x5c2d7a,_0x36579a,_0x4795ed,_0x45fa28){const _0x2a2af6=[];if(!_0x45fa28){_0x36579a['push']({'error':'Unable\x20to\x20access\x20COAEP\x20object.','from':this['name']});return;}for(let _0x431b17=0x0;_0x431b17<_0x45fa28['co']['length'];_0x431b17++){const _0x17d7da=_0x45fa28['co'][_0x431b17];if(!_0x17d7da['taxonomy_level']){_0x2a2af6['push']({'error':'No\x20taxonomy\x20level\x20for\x20CO\x20'+(_0x431b17+0x1),'from':this['name']});continue;}if(!whitelist['includes'](_0x17d7da['taxonomy_level'])){const {row:_0x3cc8bf,column:_0x38e485}=await _0x4795ed['findValue'](_0x17d7da['statement']);let _0xc51cd7={'error':'Cannot\x20have\x20CO\x20Taxonomy\x20Level\x20of\x20lower\x20than\x20Applying:\x20'+_0x17d7da['taxonomy_level']['toUpperCase'](),'from':this['name']};(_0x3cc8bf!==-1||_0x38e485!==-1)&&(_0xc51cd7['row']=_0x3cc8bf,_0xc51cd7['column']=_0x38e485),_0x2a2af6['push'](_0xc51cd7);}}this['report'](_0x2a2af6,_0x5c2d7a,_0x36579a);return;}}
|
|
51
51
|
|
|
52
|
-
const taxoOrder={'remembering':0x1,'understanding':0x2,'applying':0x3,'analyzing':0x4,'evaluating':0x5,'creating':0x6};
|
|
52
|
+
const taxoOrder={'remembering':0x1,'understanding':0x2,'applying':0x3,'analyzing':0x4,'evaluating':0x5,'creating':0x6};
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
class ILOTaxoOrder extends DTValidator{constructor(){super('ILO_TAXO_ORDER');}async['validate'](_0x4b46d7,_0x286502,_0x3c3fb2,_0x59c188){const _0x5e9146=[];if(!_0x59c188){_0x286502['push']({'error':'Unable\x20to\x20access\x20COAEP\x20object.','from':this['name']});return;}for(let _0x4c6f4a=0x0;_0x4c6f4a<_0x59c188['co']['length'];_0x4c6f4a++){const _0x16a5e7=_0x59c188['co'][_0x4c6f4a];if(!_0x16a5e7){const {row:_0x563270,column:_0x5db470}=await _0x3c3fb2['findValue'](_0x4c6f4a+0x1+'');_0x5e9146['push']({'error':'No\x20CO\x20Statement\x20for\x20CO\x20'+(_0x4c6f4a+0x1)+'.','row':_0x563270,'column':_0x5db470+0x1,'from':this['name']});continue;}if(!_0x16a5e7?.['ilo']){const {row:_0x1e7926,column:_0x16935f}=await _0x3c3fb2['findValue'](_0x16a5e7['statement']);_0x5e9146['push']({'error':'No\x20ILOs\x20for\x20CO\x20'+(_0x4c6f4a+0x1)+'.','row':_0x1e7926,'column':_0x16935f,'from':this['name']});continue;}const _0x19fd69=await _0x3c3fb2['findValue'](_0x16a5e7['ilo'][0x0]['statement']),_0x74179d=_0x16a5e7['ilo']['map'](_0x55ecb5=>taxoOrder[_0x55ecb5['taxonomy_level']]);let _0x529144=_0x74179d[0x0];for(let _0x31c51a=0x1;_0x31c51a<_0x74179d['length'];_0x31c51a++){if(_0x74179d[_0x31c51a]<_0x529144){_0x5e9146['push']({'error':'Under\x20CO\x20'+(_0x4c6f4a+0x1)+',\x20ILO\x20'+(_0x31c51a+0x1)+'\x20should\x20not\x20have\x20a\x20taxonomy\x20level\x20lower\x20than\x20ILO\x20'+_0x31c51a+'\x27s.','row':_0x19fd69['row'],'column':_0x19fd69['column']+_0x31c51a,'from':this['name']});continue;}_0x529144=_0x74179d[_0x31c51a];}}this['report'](_0x5e9146,_0x4b46d7,_0x286502);}}
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
const minPerfTarget=0x32,minPassScore=0x32;class MinPerfTarget extends DTValidator{constructor(){super('MIN_PERF_TARGET');}async['validate'](_0x3a8511,_0x4f67e4,_0x4c4737,_0x18fd25){const {success:_0x893553,data:_0x531df9}=_0x4c4737['getTable'](),_0x50c120=[];if(!_0x893553){_0x50c120['push']({'error':'Failed\x20to\x20access\x20table\x20data.','from':this['name']});return;}const {table:_0x26b93b}=_0x531df9;for(let _0xe602b6=0x0;_0xe602b6<_0x26b93b['length'];_0xe602b6++){const _0x18a908=_0x26b93b[_0xe602b6],[_0x57044f,_0x52f7a9]=_0x18a908[0x4];if(!_0x57044f)_0x50c120['push']({'error':'Performance\x20target\x20is\x20required.','row':_0xe602b6,'column':0x4,'from':this['name']});else _0x57044f<minPerfTarget&&_0x50c120['push']({'error':'Performance\x20target\x20must\x20be\x20at\x20least\x20'+minPerfTarget+'.','row':_0xe602b6,'column':0x4,'from':this['name']});if(!_0x52f7a9)_0x50c120['push']({'error':'Pass\x20score\x20is\x20required.','row':_0xe602b6,'column':0x6,'from':this['name']});else _0x52f7a9<minPassScore&&_0x50c120['push']({'error':'Pass\x20score\x20must\x20be\x20at\x20least\x20'+minPassScore+'.','row':_0xe602b6,'column':0x6,'from':this['name']});}this['report'](_0x50c120,_0x3a8511,_0x4f67e4);}}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class CoaepDT extends DataTable{['faculty']=null;['course']=null;['sy']=null;['semester']=null;constructor(){super('CoaepDT',['No.','Course\x20Outcome\x20Statement','Intended\x20Learning\x20Outcome','Assessment\x20Tool','Performance\x20Target']),this['useValidator'](new MinCOtaxo()),this['useValidator'](new LastILOTaxo()),this['useValidator'](new ILOTaxoOrder()),this['useValidator'](new MinPerfTarget());}async['validateFields'](_0x507d31,_0x34c1f9){const _0x238dd8=[];let _0x56423d=null,_0x3b147a=null;for(let _0x5799be=0x0;_0x5799be<this['table']['length'];_0x5799be++){const _0x23f181=[],_0xc2a6a7=this['table'][_0x5799be],_0x4f88fa=_0xc2a6a7[0x0]||_0x56423d,_0x52a4e8=_0xc2a6a7[0x1]||_0x3b147a,_0x397ab1=_0xc2a6a7[0x2],_0x1b0f95=_0xc2a6a7[0x3],_0x281b49=_0xc2a6a7[0x4];if(!_0x4f88fa)_0x23f181['push'](0x0);if(!_0x3b147a)_0x23f181['push'](0x1);if(!_0x397ab1)_0x23f181['push'](0x2);if(!_0x1b0f95)_0x23f181['push'](0x3);if(!_0x281b49)_0x23f181['push'](0x4);if(_0x3b147a!==_0x52a4e8)this['validateObjectiveGrammar'](_0x52a4e8,_0x5799be,0x1,_0x34c1f9);_0x56423d=_0x4f88fa,_0x3b147a=_0x52a4e8;for(const _0x389539 of _0x23f181){_0x238dd8['push']({'error':'Missing\x20field:\x20'+this['headers'][_0x389539],'row':_0x5799be,'column':_0x389539});}if(_0x397ab1)this['validateObjectiveGrammar'](_0x397ab1,_0x5799be,0x2,_0x34c1f9);}if(_0x238dd8['length']>0x0)_0x34c1f9['push'](..._0x238dd8);else _0x507d31['push'](this['name']+'\x20successfully\x20validated\x20all\x20fields.');}async['fromCSVString'](_0xb000a0){try{const _0x230d1a=[],_0x3d2db6=_0x853b0f['parse'](_0xb000a0,{'skipEmptyLines':![]})['data'],{headerRowIndex:_0x4689f7,coIdx:_0x22ddd0,iloIdx:_0x49016c,assessToolIdx:_0x3baaa8,perfTargetIdx:_0x631c0a}=getCoaepHeader(_0x3d2db6);if(_0x4689f7===-0x1)throw new Error('Could\x20not\x20auto-detect\x20header\x20row.\x20Please\x20ensure\x20the\x20CSV\x20file\x20is\x20in\x20the\x20correct\x20COAEP\x20format.');_0x3d2db6['forEach'](_0x2882bc=>{const _0x49ae76=_0x2882bc['indexOf']('Name\x20of\x20Faculty:'),_0x34dba0=_0x2882bc['indexOf']('School\x20Year'),_0x3ba545=_0x2882bc['indexOf']('Course:'),_0x2d9256=_0x2882bc['indexOf']('Semester');_0x49ae76!==-0x1&&(this['faculty']=_0x2882bc[_0x49ae76+0x1]?.['trim']()||this['faculty']);_0x34dba0!==-0x1&&(this['sy']=_0x2882bc[_0x34dba0+0x1]?.['trim']()||this['sy']);_0x3ba545!==-0x1&&(this['course']=_0x2882bc[_0x3ba545+0x1]?.['trim']()||this['course']);if(_0x2d9256!==-0x1){const _0x38be94=_0x2882bc[_0x2d9256+0x1]?.['trim']()||'',_0x1e52c9=_0x38be94['match'](/\d+/)?.[0x0];this['semester']=_0x1e52c9?parseInt(_0x1e52c9,0xa):this['semester'];}});for(let _0x14d443=0x0;_0x14d443<=_0x3d2db6['length'];_0x14d443++){const _0xf7b0a5=_0x3d2db6[_0x14d443];if(!_0xf7b0a5)break;if(_0x14d443<=_0x4689f7)continue;if(!_0xf7b0a5[_0x49016c])break;let _0x2a6038=_0xf7b0a5[_0x22ddd0-0x1]?.['trim']()||'',_0x9bb49=_0xf7b0a5[_0x22ddd0]?.['trim']()||'',_0x1723ed=_0xf7b0a5[_0x49016c]?.['trim']()||'';/^\d+$/['test'](_0xf7b0a5[_0x22ddd0]?.['trim']()||'')&&(_0x2a6038=_0xf7b0a5[_0x22ddd0]?.['trim']()||'',_0x9bb49=_0xf7b0a5[_0x22ddd0+0x1]?.['trim']()||'');let _0x3fe071=null;if(_0x9bb49){const {cognitive_level:_0x5afbfa,taxonomy_level:_0x101963,verb:_0x1d0e05,rest:_0x55bf98}=extractFromObjective(_0x9bb49);_0x3fe071=[_0x5afbfa,_0x101963,_0x1d0e05,_0x55bf98];}let _0xa03bb4;{const {cognitive_level:_0x27e805,taxonomy_level:_0x3a549f,verb:_0x58804b,rest:_0x336925}=extractFromObjective(_0x1723ed);_0xa03bb4=[_0x27e805,_0x3a549f,_0x58804b,_0x336925];}const _0x4d12b8=_0xf7b0a5[_0x631c0a]?.['replace'](/\s+/g,'\x20')['trim']()||'',{performance_target:_0x45a5d8,passing_score:_0xe41aa5}=performaceTarget(_0x4d12b8);_0x230d1a['push']([_0x2a6038,_0x3fe071,_0xa03bb4,_0xf7b0a5[_0x3baaa8]?.['replace'](/^ILO\d+[:.]?\s*/,'')['trim']()||'',[_0x45a5d8,_0xe41aa5]]);}return {'success':!![],'message':'Successfully\x20converted\x20COAEP\x20datatable.','data':_0x230d1a};}catch(_0x5af347){return {'success':![],'message':'Error\x20parsing\x20COAEP\x20table','error':_0x5af347};}}async['toJson'](){const _0x5c65d7=[],_0x1f1515=[],_0x39eb71='COAEPDT_TO_JSON';try{await this['assertInitialized']();const _0x12627e={'faculty':this['faculty'],'course':this['course'],'sy':this['sy'],'semester':this['semester'],'co':[]};let _0xae78cf=null,_0x20f8a1='',_0x508f3d=[null,null];this['table']['forEach']((_0x1e7627,_0x5b4438)=>{if(_0x5b4438===0x0&&!_0x1e7627[0x1])_0x1f1515['push']({'error':'Cannot\x20have\x20empty\x20CO\x20Statement\x20in\x20first\x20row.','row':0x0,'column':0x1,'from':_0x39eb71});_0x1e7627[0x1]&&(_0x20f8a1='',_0x508f3d=[null,null]);const _0x263de8=_0x1e7627[0x1],_0x367d45=_0x1e7627[0x2],_0x1cf57f=_0x1e7627[0x3]||_0x20f8a1,_0x506d36=_0x1e7627[0x4]||_0x508f3d;if(!_0x367d45)_0x1f1515['push']({'error':'Cannot\x20have\x20empty\x20ILO.','row':0x1,'column':0x2,'from':_0x39eb71});if(!_0x1cf57f)_0x1f1515['push']({'error':'Cannot\x20have\x20empty\x20Assessment\x20Tool.','row':_0x5b4438,'column':0x3,'from':_0x39eb71});if(!_0x506d36)_0x1f1515['push']({'error':'Cannot\x20have\x20empty\x20Performance\x20Target.','row':_0x5b4438,'column':0x4,'from':_0x39eb71});if(_0x263de8){const [_0x2c4067,_0x5a527f,_0x476fa5,_0x241317]=_0x263de8,_0x4f8877={'statement':_0x241317,'ilo':[],'taxonomy_level':_0x5a527f,'cognitive_level':_0x2c4067,'verb':_0x476fa5};_0xae78cf=_0x4f8877,_0x12627e['co']['push'](_0x4f8877);}const [_0x566d91,_0x5eb37f,_0x362180,_0x4c48ea]=_0x367d45,[_0x19f85b,_0x595fb6]=_0x506d36,_0x118386={'statement':_0x4c48ea,'assessment_tool':_0x1cf57f,'performance_target':_0x19f85b,'passing_score':_0x595fb6,'cognitive_level':_0x566d91,'taxonomy_level':_0x5eb37f,'verb':_0x362180};_0xae78cf['ilo']['push'](_0x118386);});if(_0x1f1515['length'])return _0x1f1515['push']({'error':'Converted\x20COAEP\x20datatable\x20to\x20JSON,\x20but\x20with\x20errors.','from':_0x39eb71}),{'success':![],'message':'Converted\x20COAEP\x20datatable\x20to\x20JSON,\x20but\x20with\x20errors.','data':{'jsonObj':_0x12627e,'validMsgs':_0x5c65d7,'tableErrors':_0x1f1515}};return _0x5c65d7['push']('Successfully\x20converted\x20COAEP\x20datatable\x20to\x20JSON.'),{'success':!![],'message':'Successfully\x20converted\x20COAEP\x20datatable\x20to\x20JSON','data':{'jsonObj':_0x12627e,'validMsgs':_0x5c65d7,'tableErrors':_0x1f1515}};}catch(_0x42c30f){return _0x1f1515['push']({'error':'Error\x20converting\x20COAEP\x20datatable\x20to\x20JSON','from':_0x39eb71}),{'success':![],'message':'Error\x20converting\x20COAEP\x20datatable\x20to\x20JSON','error':_0x42c30f,'data':{'jsonObj':null,'tableErrors':_0x1f1515}};}}['validateObjectiveGrammar'](_0x464501,_0x405f37,_0x338fdc,_0x18f023){if(!_0x464501){_0x18f023['push']({'error':'Cannot\x20find\x20objective\x20statement.','row':_0x405f37,'column':_0x338fdc,'from':this['name']['toUpperCase']()+'_OBJ_GRAMMAR'});return;}const [_0x28e35c,_0x4919da,_0x4d865d,_0x47b6b8]=_0x464501,_0x42fa66=[];if(!_0x28e35c)_0x42fa66['push']('Cognitive\x20Level');if(!_0x4919da)_0x42fa66['push']('Taxonomy\x20Level');if(!_0x4d865d)_0x42fa66['push']('Verb');if(!_0x42fa66['length'])return;_0x18f023['push']({'error':'Cannot\x20find\x20fields:\x20'+_0x42fa66['join'](',\x20')+'.','row':_0x405f37,'column':_0x338fdc,'from':this['name']['toUpperCase']()+'_OBJ_GRAMMAR'});}}
|
|
59
|
+
|
|
60
|
+
class Client{['BASE_URL'];constructor(_0x359320){this['BASE_URL']=_0x359320;}['Parser'](){return {'curriculum':async _0x313ed6=>{const _0x22f90b=await uploadCurriculum(this['BASE_URL'],_0x313ed6);return _0x22f90b;},'courseOffering':async _0x2a9997=>{const _0x4e466d=await uploadCourseOffering(this['BASE_URL'],_0x2a9997);return _0x4e466d;},'coaep':async(_0x3b35d0,_0x1d4456)=>{const _0x3c9847=await uploadCOAEP(this['BASE_URL'],_0x3b35d0,_0x1d4456);return _0x3c9847;},'enrolledStudent':async _0x4a57f6=>{const _0x138ff2=await uploadEnrolledStudent(this['BASE_URL'],_0x4a57f6);return _0x138ff2;},'classlist':async(_0x2920b,_0x553b57,_0x2073b9)=>{const _0x10ca76=await uploadClassList(this['BASE_URL'],_0x2920b,_0x553b57,_0x2073b9);return _0x10ca76;},'assessmentData':async _0x421c8d=>{const _0x287c86=await uploadAssessmentData(this['BASE_URL'],_0x421c8d);return _0x287c86;},'deptFaculty':async _0x13e8b5=>{const _0xee190a=await uploadDeptFaculty(this['BASE_URL'],_0x13e8b5);return _0xee190a;},'poaep':async(_0x31edd3,_0x364692,_0x32b00e,_0x2eea5b)=>{const _0x5186dc=await uploadPOAEP(this['BASE_URL'],_0x31edd3,_0x364692,_0x32b00e,_0x2eea5b);return _0x5186dc;},'CoaepDT':CoaepDT};}}
|
|
59
61
|
|
|
60
62
|
export { Client as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import Taxonomy from "../types/Taxonomy";
|
|
1
2
|
export default function extractFromObjective(objective: string): {
|
|
2
3
|
cognitive_level: "I" | "E" | "D" | null;
|
|
3
|
-
taxonomy_level:
|
|
4
|
+
taxonomy_level: Taxonomy | null;
|
|
4
5
|
verb: string | null;
|
|
5
6
|
rest: string | null;
|
|
6
7
|
};
|
package/package.json
CHANGED
package/types/Taxonomy.d.ts
CHANGED