@taiger-common/core 1.0.7 → 1.0.8

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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNotArchiv = exports.Bayerische_Formel = exports.is_TaiGer_Guest = exports.is_TaiGer_Student = exports.is_TaiGer_Manager = exports.is_TaiGer_Agent = exports.is_TaiGer_External = exports.is_TaiGer_Editor = exports.is_TaiGer_Admin = exports.is_TaiGer_AdminAgent = exports.is_TaiGer_role = void 0;
3
+ exports.isProgramWithdraw = exports.isProgramRejected = exports.isProgramAdmitted = exports.isProgramSubmitted = exports.isProgramDecided = exports.isNotArchiv = exports.Bayerische_Formel = exports.is_TaiGer_Guest = exports.is_TaiGer_Student = exports.is_TaiGer_Manager = exports.is_TaiGer_Agent = exports.is_TaiGer_External = exports.is_TaiGer_Editor = exports.is_TaiGer_Admin = exports.is_TaiGer_AdminAgent = exports.is_TaiGer_role = void 0;
4
4
  var constants_1 = require("../constants");
5
5
  // Tested
6
6
  var is_TaiGer_role = function (user) {
@@ -64,3 +64,28 @@ var isNotArchiv = function (user) {
64
64
  return false;
65
65
  };
66
66
  exports.isNotArchiv = isNotArchiv;
67
+ // Tested
68
+ var isProgramDecided = function (application) {
69
+ return application.decided === 'O';
70
+ };
71
+ exports.isProgramDecided = isProgramDecided;
72
+ // Tested
73
+ var isProgramSubmitted = function (application) {
74
+ return application.closed === 'O';
75
+ };
76
+ exports.isProgramSubmitted = isProgramSubmitted;
77
+ // Tested
78
+ var isProgramAdmitted = function (application) {
79
+ return application.admission === 'O';
80
+ };
81
+ exports.isProgramAdmitted = isProgramAdmitted;
82
+ // Tested
83
+ var isProgramRejected = function (application) {
84
+ return application.admission === 'X';
85
+ };
86
+ exports.isProgramRejected = isProgramRejected;
87
+ // Tested
88
+ var isProgramWithdraw = function (application) {
89
+ return application.closed === 'X';
90
+ };
91
+ exports.isProgramWithdraw = isProgramWithdraw;
@@ -50,3 +50,23 @@ export var isNotArchiv = function (user) {
50
50
  }
51
51
  return false;
52
52
  };
53
+ // Tested
54
+ export var isProgramDecided = function (application) {
55
+ return application.decided === 'O';
56
+ };
57
+ // Tested
58
+ export var isProgramSubmitted = function (application) {
59
+ return application.closed === 'O';
60
+ };
61
+ // Tested
62
+ export var isProgramAdmitted = function (application) {
63
+ return application.admission === 'O';
64
+ };
65
+ // Tested
66
+ export var isProgramRejected = function (application) {
67
+ return application.admission === 'X';
68
+ };
69
+ // Tested
70
+ export var isProgramWithdraw = function (application) {
71
+ return application.closed === 'X';
72
+ };
@@ -2,3 +2,8 @@ export interface UserProps {
2
2
  role: string;
3
3
  archiv?: boolean;
4
4
  }
5
+ export interface ApplicationProps {
6
+ decided: string;
7
+ closed: string;
8
+ admission: string;
9
+ }
@@ -1,4 +1,4 @@
1
- import { UserProps } from '../types';
1
+ import { ApplicationProps, UserProps } from '../types';
2
2
  export declare const is_TaiGer_role: (user: UserProps) => boolean;
3
3
  export declare const is_TaiGer_AdminAgent: (user: UserProps) => boolean;
4
4
  export declare const is_TaiGer_Admin: (user: UserProps) => boolean;
@@ -10,3 +10,8 @@ export declare const is_TaiGer_Student: (user: UserProps) => boolean;
10
10
  export declare const is_TaiGer_Guest: (user: UserProps) => boolean;
11
11
  export declare const Bayerische_Formel: (high: number, low: number, my: number) => string;
12
12
  export declare const isNotArchiv: (user: UserProps) => boolean;
13
+ export declare const isProgramDecided: (application: ApplicationProps) => boolean;
14
+ export declare const isProgramSubmitted: (application: ApplicationProps) => boolean;
15
+ export declare const isProgramAdmitted: (application: ApplicationProps) => boolean;
16
+ export declare const isProgramRejected: (application: ApplicationProps) => boolean;
17
+ export declare const isProgramWithdraw: (application: ApplicationProps) => boolean;
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.SCHOOL_TYPES=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||(i={})),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.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.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}},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.SCHOOL_TYPES=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||(i={})),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.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.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "TaiGer core package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",