@taiger-common/core 1.0.10 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/constants/programs.js +0 -1
- package/dist/esm/constants/programs.js +0 -1
- package/dist/types/constants/programs.d.ts +0 -1
- package/dist/types/types/users.d.ts +8 -0
- package/dist/umd/index.js +1 -1
- package/package.json +4 -2
- package/dist/cjs/types/index.js +0 -17
- package/dist/cjs/types/users.js +0 -2
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal user shape for role-checking utils.
|
|
3
|
+
* Compatible with @taiger-common/model IUser (role from Mongoose discriminator).
|
|
4
|
+
*/
|
|
1
5
|
export interface UserProps {
|
|
2
6
|
role: string;
|
|
3
7
|
archiv?: boolean;
|
|
4
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Minimal application shape for application-status utils.
|
|
11
|
+
* Compatible with @taiger-common/model IApplication.
|
|
12
|
+
*/
|
|
5
13
|
export interface ApplicationProps {
|
|
6
14
|
decided: string;
|
|
7
15
|
closed: string;
|
package/dist/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.exampleTypescriptPackage=t():e.exampleTypescriptPackage=t()}(this,(()=>(()=>{"use strict";var e={329:(e,t)=>{var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.PROFILE_NAME=t.ProfileNameType=t.DocumentStatusType=void 0,(o=t.DocumentStatusType||(t.DocumentStatusType={})).Uploaded="uploaded",o.Missing="missing",o.Accepted="accepted",o.Rejected="rejected",o.NotNeeded="notneeded",function(e){e.High_School_Diploma="High_School_Diploma",e.High_School_Transcript="High_School_Transcript",e.University_Entrance_Examination_GSAT="University_Entrance_Examination_GSAT",e.Bachelor_Certificate="Bachelor_Certificate",e.Bachelor_Transcript="Bachelor_Transcript",e.Second_Degree_Certificate="Second_Degree_Certificate",e.Second_Degree_Transcript="Second_Degree_Transcript",e.Englisch_Certificate="Englisch_Certificate",e.German_Certificate="German_Certificate",e.GRE="GRE",e.GMAT="GMAT",e.ECTS_Conversion="ECTS_Conversion",e.Course_Description="Course_Description",e.Internship="Internship",e.Exchange_Student_Certificate="Exchange_Student_Certificate",e.Employment_Certificate="Employment_Certificate",e.Passport_Photo="Passport_Photo",e.Passport="Passport",e.Others="Others"}(i=t.ProfileNameType||(t.ProfileNameType={})),t.PROFILE_NAME=((r={})[i.High_School_Diploma]="High School Diploma",r[i.High_School_Transcript]="High School Transcript",r[i.University_Entrance_Examination_GSAT]="GSAT/SAT/TVE/IB Test",r[i.Bachelor_Certificate]="Bachelor Certificate/Enrolment",r[i.Bachelor_Transcript]="Bachelor Transcript",r[i.Second_Degree_Certificate]="Second Degree Certificate/Enrolment",r[i.Second_Degree_Transcript]="Second Degree Transcript",r[i.Englisch_Certificate]="TOEFL or IELTS",r[i.German_Certificate]="TestDaF or Goethe B2/C1",r[i.GRE]="GRE",r[i.GMAT]="GMAT",r[i.ECTS_Conversion]="ECTS Conversion",r[i.Course_Description]="Course Description",r[i.Internship]="Internship Certificate",r[i.Exchange_Student_Certificate]="Exchange Student Certificate",r[i.Employment_Certificate]="Employment Certificate",r[i.Passport_Photo]="Formal Profile Photo",r[i.Passport]="Passport Copy",r[i.Others]="Others",r)},875:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(329),t),o(r(430),t),o(r(727),t)},430:(e,t)=>{var r,i,o,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCHOOL_TAGS=t.DIFFICULTY=t.SCHOOL_TYPES=t.SchoolType=t.SemesterType=t.PROGRAM_SUBJECTS=void 0,t.PROGRAM_SUBJECTS={LING:{label:"Linguistics",category:"AH"},MUS:{label:"Music",category:"AH"},THEO:{label:"Theology, Divinity and Religious Studies",category:"AH"},ARCH:{label:"Archaeology",category:"AH"},"ARCH-BE":{label:"Architecture and Built Environment",category:"AH"},"ART-DES":{label:"Art and Design",category:"AH"},CLAH:{label:"Classics and Ancient History",category:"AH"},ELL:{label:"English Language and Literature",category:"AH"},HIST:{label:"History",category:"AH"},ARTH:{label:"Art History",category:"AH"},"MOD-LANG":{label:"Modern Languages",category:"AH"},"PERF-ART":{label:"Performing Arts",category:"AH"},PHIL:{label:"Philosophy",category:"AH"},"CHEM-ENG":{label:"Engineering - Chemical",category:"ET"},"CIV-STR-ENG":{label:"Engineering - Civil and Structural",category:"ET"},CSIS:{label:"Computer Science and Information Systems",category:"ET"},"DS-AI":{label:"Data Science and Artificial Intelligence",category:"ET"},"ELEC-ENG":{label:"Engineering - Electrical and Electronic",category:"ET"},"PETRO-ENG":{label:"Engineering - Petroleum",category:"ET"},"MECH-ENG":{label:"Engineering - Mechanical",category:"ET"},"MIN-MIN-ENG":{label:"Engineering - Mineral and Mining",category:"ET"},"AG-FOR":{label:"Agriculture and Forestry",category:"LSM"},"ANA-PHYS":{label:"Anatomy and Physiology",category:"LSM"},"BIO-SCI":{label:"Biological Sciences",category:"LSM"},DENT:{label:"Dentistry",category:"LSM"},MED:{label:"Medicine",category:"LSM"},NURS:{label:"Nursing",category:"LSM"},PHARM:{label:"Pharmacy and Pharmacology",category:"LSM"},PSYCH:{label:"Psychology",category:"LSM"},"VET-SCI":{label:"Veterinary Science",category:"LSM"},CHEM:{label:"Chemistry",category:"NS"},"EAR-MAR-SCI":{label:"Earth and Marine Sciences",category:"NS"},"ENV-SCI":{label:"Environmental Sciences",category:"NS"},GEO:{label:"Geography",category:"NS"},GEOL:{label:"Geology",category:"NS"},GEOPH:{label:"Geophysics",category:"NS"},"MAT-SCI":{label:"Materials Sciences",category:"NS"},MATH:{label:"Mathematics",category:"NS"},"PHYS-ASTRO":{label:"Physics and Astronomy",category:"NS"},"ACC-FIN":{label:"Accounting and Finance",category:"SSM"},ANTH:{label:"Anthropology",category:"SSM"},"BUS-MGMT":{label:"Business and Management Studies",category:"SSM"},"COMM-MEDIA":{label:"Communication and Media Studies",category:"SSM"},"DEV-STUD":{label:"Development Studies",category:"SSM"},ECON:{label:"Economics and Econometrics",category:"SSM"},"EDU-TRAIN":{label:"Education and Training",category:"SSM"},"HOSP-MGMT":{label:"Hospitality and Leisure Management",category:"SSM"},LAW:{label:"Law and Legal Studies",category:"SSM"},"LIB-INFO":{label:"Library and Information Management",category:"SSM"},MKT:{label:"Marketing",category:"SSM"},POL:{label:"Politics",category:"SSM"},"SOC-POL":{label:"Social Policy and Administration",category:"SSM"},SOC:{label:"Sociology",category:"SSM"},SPORT:{label:"Sports-Related Subjects",category:"SSM"},"STAT-OR":{label:"Statistics and Operational Research",category:"SSM"}},(n=t.SemesterType||(t.SemesterType={})).SummerSemester="SS",n.WinterSemester="WS",n.Rolling="Rolling",function(e){e.University="University",e.University_of_Applied_Sciences="University_of_Applied_Sciences"}(i=t.SchoolType||(t.SchoolType={})),t.SCHOOL_TYPES=[i.University,i.University_of_Applied_Sciences],function(e){e.TU9="TU9",e.U15="U15",e.EUROTECH="EUROTECH",e.GERMAN_ELITE="GERMAN_ELITE",e.TOP50="TOP50",e.TIME="TIME",e.TOP100="TOP100",e.TOP150="TOP150",e.TOP250="TOP250",e.TOP500="TOP500"}(o||(o={})),t.DIFFICULTY={EASY:"EASY",MEDIUM:"MEDIUM",HARD:"HARD"},t.SCHOOL_TAGS=((r={})[o.U15]={label:"U15",category:"U15"},r[o.TU9]={label:"TU9 German Universities of Technology",category:"TU9"},r[o.EUROTECH]={label:"EuroTech Universities Alliance",category:"EUROTECH"},r[o.GERMAN_ELITE]={label:"German Excellence Initiative",category:"GERMAN_ELITE"},r[o.TIME]={label:"Top International Managers in Engineering",category:"TIME"},r[o.TOP50]={label:"QS Top 50 Universities",category:"TOP50"},r[o.TOP100]={label:"QS Top 100 Universities",category:"TOP100"},r[o.TOP150]={label:"QS Top 150 Universities",category:"TOP150"},r[o.TOP250]={label:"QS Top 250 Universities",category:"TOP150"},r[o.TOP500]={label:"QS Top 500 Universities",category:"TOP500"},r)},727:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Role=void 0,t.Role={Admin:"Admin",Manager:"Manager",External:"External",Guest:"Guest",Agent:"Agent",Editor:"Editor",Student:"Student"}},229:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(875),t),o(r(799),t),o(r(731),t)},799:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(979),t)},979:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProgramWithdraw=t.isProgramRejected=t.isProgramAdmitted=t.isProgramSubmitted=t.isProgramDecided=t.isNotArchiv=t.Bayerische_Formel=t.is_TaiGer_Guest=t.is_TaiGer_Student=t.is_TaiGer_Manager=t.is_TaiGer_Agent=t.is_TaiGer_External=t.is_TaiGer_Editor=t.is_TaiGer_Admin=t.is_TaiGer_AdminAgent=t.is_TaiGer_role=void 0;var i=r(875);t.is_TaiGer_role=function(e){return(null==e?void 0:e.role)===i.Role.Admin||(null==e?void 0:e.role)===i.Role.Agent||(null==e?void 0:e.role)===i.Role.Editor||(null==e?void 0:e.role)===i.Role.External},t.is_TaiGer_AdminAgent=function(e){return(null==e?void 0:e.role)===i.Role.Admin||(null==e?void 0:e.role)===i.Role.Agent},t.is_TaiGer_Admin=function(e){return(null==e?void 0:e.role)===i.Role.Admin},t.is_TaiGer_Editor=function(e){return(null==e?void 0:e.role)===i.Role.Editor},t.is_TaiGer_External=function(e){return(null==e?void 0:e.role)===i.Role.External},t.is_TaiGer_Agent=function(e){return(null==e?void 0:e.role)===i.Role.Agent},t.is_TaiGer_Manager=function(e){return(null==e?void 0:e.role)===i.Role.Manager},t.is_TaiGer_Student=function(e){return(null==e?void 0:e.role)===i.Role.Student},t.is_TaiGer_Guest=function(e){return(null==e?void 0:e.role)===i.Role.Guest},t.Bayerische_Formel=function(e,t,r){return e-t!=0?(1+3*(e-r)/(e-t)).toFixed(2):"0"},t.isNotArchiv=function(e){return void 0===e.archiv||!e.archiv},t.isProgramDecided=function(e){return"O"===e.decided},t.isProgramSubmitted=function(e){return"O"===e.closed},t.isProgramAdmitted=function(e){return"O"===e.admission},t.isProgramRejected=function(e){return"X"===e.admission},t.isProgramWithdraw=function(e){return"X"===e.closed}},731:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(599),t)}},t={};return function r(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,r),n.exports}(229)})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.exampleTypescriptPackage=t():e.exampleTypescriptPackage=t()}(this,(()=>(()=>{"use strict";var e={329:(e,t)=>{var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.PROFILE_NAME=t.ProfileNameType=t.DocumentStatusType=void 0,(o=t.DocumentStatusType||(t.DocumentStatusType={})).Uploaded="uploaded",o.Missing="missing",o.Accepted="accepted",o.Rejected="rejected",o.NotNeeded="notneeded",function(e){e.High_School_Diploma="High_School_Diploma",e.High_School_Transcript="High_School_Transcript",e.University_Entrance_Examination_GSAT="University_Entrance_Examination_GSAT",e.Bachelor_Certificate="Bachelor_Certificate",e.Bachelor_Transcript="Bachelor_Transcript",e.Second_Degree_Certificate="Second_Degree_Certificate",e.Second_Degree_Transcript="Second_Degree_Transcript",e.Englisch_Certificate="Englisch_Certificate",e.German_Certificate="German_Certificate",e.GRE="GRE",e.GMAT="GMAT",e.ECTS_Conversion="ECTS_Conversion",e.Course_Description="Course_Description",e.Internship="Internship",e.Exchange_Student_Certificate="Exchange_Student_Certificate",e.Employment_Certificate="Employment_Certificate",e.Passport_Photo="Passport_Photo",e.Passport="Passport",e.Others="Others"}(i=t.ProfileNameType||(t.ProfileNameType={})),t.PROFILE_NAME=((r={})[i.High_School_Diploma]="High School Diploma",r[i.High_School_Transcript]="High School Transcript",r[i.University_Entrance_Examination_GSAT]="GSAT/SAT/TVE/IB Test",r[i.Bachelor_Certificate]="Bachelor Certificate/Enrolment",r[i.Bachelor_Transcript]="Bachelor Transcript",r[i.Second_Degree_Certificate]="Second Degree Certificate/Enrolment",r[i.Second_Degree_Transcript]="Second Degree Transcript",r[i.Englisch_Certificate]="TOEFL or IELTS",r[i.German_Certificate]="TestDaF or Goethe B2/C1",r[i.GRE]="GRE",r[i.GMAT]="GMAT",r[i.ECTS_Conversion]="ECTS Conversion",r[i.Course_Description]="Course Description",r[i.Internship]="Internship Certificate",r[i.Exchange_Student_Certificate]="Exchange Student Certificate",r[i.Employment_Certificate]="Employment Certificate",r[i.Passport_Photo]="Formal Profile Photo",r[i.Passport]="Passport Copy",r[i.Others]="Others",r)},875:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(329),t),o(r(430),t),o(r(727),t)},430:(e,t)=>{var r,i,o,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCHOOL_TAGS=t.DIFFICULTY=t.SCHOOL_TYPES=t.SchoolType=t.SemesterType=t.PROGRAM_SUBJECTS=void 0,t.PROGRAM_SUBJECTS={LING:{label:"Linguistics",category:"AH"},MUS:{label:"Music",category:"AH"},THEO:{label:"Theology, Divinity and Religious Studies",category:"AH"},ARCH:{label:"Archaeology",category:"AH"},"ARCH-BE":{label:"Architecture and Built Environment",category:"AH"},"ART-DES":{label:"Art and Design",category:"AH"},CLAH:{label:"Classics and Ancient History",category:"AH"},ELL:{label:"English Language and Literature",category:"AH"},HIST:{label:"History",category:"AH"},ARTH:{label:"Art History",category:"AH"},"MOD-LANG":{label:"Modern Languages",category:"AH"},"PERF-ART":{label:"Performing Arts",category:"AH"},PHIL:{label:"Philosophy",category:"AH"},"CHEM-ENG":{label:"Engineering - Chemical",category:"ET"},"CIV-STR-ENG":{label:"Engineering - Civil and Structural",category:"ET"},CSIS:{label:"Computer Science and Information Systems",category:"ET"},"DS-AI":{label:"Data Science and Artificial Intelligence",category:"ET"},"ELEC-ENG":{label:"Engineering - Electrical and Electronic",category:"ET"},"PETRO-ENG":{label:"Engineering - Petroleum",category:"ET"},"MECH-ENG":{label:"Engineering - Mechanical",category:"ET"},"MIN-MIN-ENG":{label:"Engineering - Mineral and Mining",category:"ET"},"AG-FOR":{label:"Agriculture and Forestry",category:"LSM"},"ANA-PHYS":{label:"Anatomy and Physiology",category:"LSM"},"BIO-SCI":{label:"Biological Sciences",category:"LSM"},DENT:{label:"Dentistry",category:"LSM"},MED:{label:"Medicine",category:"LSM"},NURS:{label:"Nursing",category:"LSM"},PHARM:{label:"Pharmacy and Pharmacology",category:"LSM"},PSYCH:{label:"Psychology",category:"LSM"},"VET-SCI":{label:"Veterinary Science",category:"LSM"},CHEM:{label:"Chemistry",category:"NS"},"EAR-MAR-SCI":{label:"Earth and Marine Sciences",category:"NS"},"ENV-SCI":{label:"Environmental Sciences",category:"NS"},GEO:{label:"Geography",category:"NS"},GEOL:{label:"Geology",category:"NS"},GEOPH:{label:"Geophysics",category:"NS"},"MAT-SCI":{label:"Materials Sciences",category:"NS"},MATH:{label:"Mathematics",category:"NS"},"PHYS-ASTRO":{label:"Physics and Astronomy",category:"NS"},"ACC-FIN":{label:"Accounting and Finance",category:"SSM"},ANTH:{label:"Anthropology",category:"SSM"},"BUS-MGMT":{label:"Business and Management Studies",category:"SSM"},"COMM-MEDIA":{label:"Communication and Media Studies",category:"SSM"},"DEV-STUD":{label:"Development Studies",category:"SSM"},ECON:{label:"Economics and Econometrics",category:"SSM"},"EDU-TRAIN":{label:"Education and Training",category:"SSM"},"HOSP-MGMT":{label:"Hospitality and Leisure Management",category:"SSM"},LAW:{label:"Law and Legal Studies",category:"SSM"},"LIB-INFO":{label:"Library and Information Management",category:"SSM"},MKT:{label:"Marketing",category:"SSM"},POL:{label:"Politics",category:"SSM"},"SOC-POL":{label:"Social Policy and Administration",category:"SSM"},SOC:{label:"Sociology",category:"SSM"},SPORT:{label:"Sports-Related Subjects",category:"SSM"},"STAT-OR":{label:"Statistics and Operational Research",category:"SSM"}},(n=t.SemesterType||(t.SemesterType={})).SummerSemester="SS",n.WinterSemester="WS",n.Rolling="Rolling",function(e){e.University="University",e.University_of_Applied_Sciences="University_of_Applied_Sciences"}(i=t.SchoolType||(t.SchoolType={})),t.SCHOOL_TYPES=[i.University,i.University_of_Applied_Sciences],function(e){e.TU9="TU9",e.U15="U15",e.EUROTECH="EUROTECH",e.GERMAN_ELITE="GERMAN_ELITE",e.TOP50="TOP50",e.TIME="TIME",e.TOP100="TOP100",e.TOP150="TOP150",e.TOP250="TOP250",e.TOP500="TOP500"}(o||(o={})),t.DIFFICULTY={EASY:"EASY",HARD:"HARD"},t.SCHOOL_TAGS=((r={})[o.U15]={label:"U15",category:"U15"},r[o.TU9]={label:"TU9 German Universities of Technology",category:"TU9"},r[o.EUROTECH]={label:"EuroTech Universities Alliance",category:"EUROTECH"},r[o.GERMAN_ELITE]={label:"German Excellence Initiative",category:"GERMAN_ELITE"},r[o.TIME]={label:"Top International Managers in Engineering",category:"TIME"},r[o.TOP50]={label:"QS Top 50 Universities",category:"TOP50"},r[o.TOP100]={label:"QS Top 100 Universities",category:"TOP100"},r[o.TOP150]={label:"QS Top 150 Universities",category:"TOP150"},r[o.TOP250]={label:"QS Top 250 Universities",category:"TOP150"},r[o.TOP500]={label:"QS Top 500 Universities",category:"TOP500"},r)},727:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Role=void 0,t.Role={Admin:"Admin",Manager:"Manager",External:"External",Guest:"Guest",Agent:"Agent",Editor:"Editor",Student:"Student"}},229:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(875),t),o(r(799),t),o(r(731),t)},799:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(979),t)},979:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProgramWithdraw=t.isProgramRejected=t.isProgramAdmitted=t.isProgramSubmitted=t.isProgramDecided=t.isNotArchiv=t.Bayerische_Formel=t.is_TaiGer_Guest=t.is_TaiGer_Student=t.is_TaiGer_Manager=t.is_TaiGer_Agent=t.is_TaiGer_External=t.is_TaiGer_Editor=t.is_TaiGer_Admin=t.is_TaiGer_AdminAgent=t.is_TaiGer_role=void 0;var i=r(875);t.is_TaiGer_role=function(e){return(null==e?void 0:e.role)===i.Role.Admin||(null==e?void 0:e.role)===i.Role.Agent||(null==e?void 0:e.role)===i.Role.Editor||(null==e?void 0:e.role)===i.Role.External},t.is_TaiGer_AdminAgent=function(e){return(null==e?void 0:e.role)===i.Role.Admin||(null==e?void 0:e.role)===i.Role.Agent},t.is_TaiGer_Admin=function(e){return(null==e?void 0:e.role)===i.Role.Admin},t.is_TaiGer_Editor=function(e){return(null==e?void 0:e.role)===i.Role.Editor},t.is_TaiGer_External=function(e){return(null==e?void 0:e.role)===i.Role.External},t.is_TaiGer_Agent=function(e){return(null==e?void 0:e.role)===i.Role.Agent},t.is_TaiGer_Manager=function(e){return(null==e?void 0:e.role)===i.Role.Manager},t.is_TaiGer_Student=function(e){return(null==e?void 0:e.role)===i.Role.Student},t.is_TaiGer_Guest=function(e){return(null==e?void 0:e.role)===i.Role.Guest},t.Bayerische_Formel=function(e,t,r){return e-t!=0?(1+3*(e-r)/(e-t)).toFixed(2):"0"},t.isNotArchiv=function(e){return void 0===e.archiv||!e.archiv},t.isProgramDecided=function(e){return"O"===e.decided},t.isProgramSubmitted=function(e){return"O"===e.closed},t.isProgramAdmitted=function(e){return"O"===e.admission},t.isProgramRejected=function(e){return"X"===e.admission},t.isProgramWithdraw=function(e){return"X"===e.closed}},731:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(599),t)}},t={};return function r(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,r),n.exports}(229)})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiger-common/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "TaiGer core package",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/LIYUNG/taiger-core/issues"
|
|
52
52
|
},
|
|
53
|
-
"dependencies": {
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@taiger-common/model": "^1.0.47"
|
|
55
|
+
},
|
|
54
56
|
"devDependencies": {
|
|
55
57
|
"@commitlint/cli": "^13.1.0",
|
|
56
58
|
"@commitlint/config-conventional": "^13.1.0",
|
package/dist/cjs/types/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./users"), exports);
|
package/dist/cjs/types/users.js
DELETED