@tumaet/prompt-shared-state 0.0.3 → 0.0.5

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.
Files changed (116) hide show
  1. package/dist/index.js +3 -0
  2. package/dist/index.js.map +1 -0
  3. package/dist/interfaces/application/exportedApplicationAnswer.js +2 -0
  4. package/dist/interfaces/application/exportedApplicationAnswer.js.map +1 -0
  5. package/dist/interfaces/application/index.js +2 -0
  6. package/dist/interfaces/application/index.js.map +1 -0
  7. package/dist/interfaces/course/course.js +2 -0
  8. package/dist/interfaces/course/course.js.map +1 -0
  9. package/dist/interfaces/course/courseType.js +12 -0
  10. package/dist/interfaces/course/courseType.js.map +1 -0
  11. package/dist/interfaces/course/index.js +4 -0
  12. package/dist/interfaces/course/index.js.map +1 -0
  13. package/dist/interfaces/course/updateCourse.js +2 -0
  14. package/dist/interfaces/course/updateCourse.js.map +1 -0
  15. package/dist/interfaces/coursePhase/coursePhase.js +2 -0
  16. package/dist/interfaces/coursePhase/coursePhase.js.map +1 -0
  17. package/dist/interfaces/coursePhase/coursePhaseWithType.js +2 -0
  18. package/dist/interfaces/coursePhase/coursePhaseWithType.js.map +1 -0
  19. package/dist/interfaces/coursePhase/createCoursePhase.js +2 -0
  20. package/dist/interfaces/coursePhase/createCoursePhase.js.map +1 -0
  21. package/dist/interfaces/coursePhase/index.js +5 -0
  22. package/dist/interfaces/coursePhase/index.js.map +1 -0
  23. package/dist/interfaces/coursePhase/updateCoursePhase.js +2 -0
  24. package/dist/interfaces/coursePhase/updateCoursePhase.js.map +1 -0
  25. package/dist/interfaces/coursePhaseParticipation/coursePhaseParticipationWithStudent.js +2 -0
  26. package/dist/interfaces/coursePhaseParticipation/coursePhaseParticipationWithStudent.js.map +1 -0
  27. package/dist/interfaces/coursePhaseParticipation/index.js +5 -0
  28. package/dist/interfaces/coursePhaseParticipation/index.js.map +1 -0
  29. package/dist/interfaces/coursePhaseParticipation/passStatus.js +7 -0
  30. package/dist/interfaces/coursePhaseParticipation/passStatus.js.map +1 -0
  31. package/dist/interfaces/coursePhaseParticipation/updateCoursePhaseParticipation.js +2 -0
  32. package/dist/interfaces/coursePhaseParticipation/updateCoursePhaseParticipation.js.map +1 -0
  33. package/dist/interfaces/coursePhaseParticipation/updateCoursePhaseParticipationStatus.js +2 -0
  34. package/dist/interfaces/coursePhaseParticipation/updateCoursePhaseParticipationStatus.js.map +1 -0
  35. package/dist/interfaces/coursePhaseType/coursePhaseType.js +2 -0
  36. package/dist/interfaces/coursePhaseType/coursePhaseType.js.map +1 -0
  37. package/dist/interfaces/coursePhaseType/coursePhaseTypeMetaDataItem.js +2 -0
  38. package/dist/interfaces/coursePhaseType/coursePhaseTypeMetaDataItem.js.map +1 -0
  39. package/dist/interfaces/coursePhaseType/index.js +3 -0
  40. package/dist/interfaces/coursePhaseType/index.js.map +1 -0
  41. package/dist/interfaces/index.js +10 -0
  42. package/dist/interfaces/index.js.map +1 -0
  43. package/dist/interfaces/mailing/coursePhaseMailingConfigData.js +2 -0
  44. package/dist/interfaces/mailing/coursePhaseMailingConfigData.js.map +1 -0
  45. package/dist/interfaces/mailing/index.js +4 -0
  46. package/dist/interfaces/mailing/index.js.map +1 -0
  47. package/dist/interfaces/mailing/mailingReport.js +2 -0
  48. package/dist/interfaces/mailing/mailingReport.js.map +1 -0
  49. package/dist/interfaces/mailing/sendStatusMail.js +2 -0
  50. package/dist/interfaces/mailing/sendStatusMail.js.map +1 -0
  51. package/dist/interfaces/roles/getPermissionString.js +9 -0
  52. package/dist/interfaces/roles/getPermissionString.js.map +1 -0
  53. package/dist/interfaces/roles/index.js +3 -0
  54. package/dist/interfaces/roles/index.js.map +1 -0
  55. package/dist/interfaces/roles/role.js +9 -0
  56. package/dist/interfaces/roles/role.js.map +1 -0
  57. package/dist/interfaces/student/gender.js +22 -0
  58. package/dist/interfaces/student/gender.js.map +1 -0
  59. package/dist/interfaces/student/index.js +4 -0
  60. package/dist/interfaces/student/index.js.map +1 -0
  61. package/dist/interfaces/student/student.js +2 -0
  62. package/dist/interfaces/student/student.js.map +1 -0
  63. package/dist/interfaces/student/studyDegree.js +16 -0
  64. package/dist/interfaces/student/studyDegree.js.map +1 -0
  65. package/dist/interfaces/user/index.js +2 -0
  66. package/dist/interfaces/user/index.js.map +1 -0
  67. package/dist/interfaces/user/user.js +2 -0
  68. package/dist/interfaces/user/user.js.map +1 -0
  69. package/dist/types/index.d.ts +1 -0
  70. package/dist/types/interfaces/application/exportedApplicationAnswer.d.ts +6 -0
  71. package/dist/types/interfaces/application/index.d.ts +1 -0
  72. package/dist/types/interfaces/course/course.d.ts +14 -0
  73. package/dist/types/interfaces/course/courseType.d.ts +11 -0
  74. package/dist/types/interfaces/course/index.d.ts +3 -0
  75. package/dist/types/interfaces/course/updateCourse.d.ts +5 -0
  76. package/dist/types/interfaces/coursePhase/coursePhase.d.ts +10 -0
  77. package/dist/types/interfaces/coursePhase/coursePhaseWithType.d.ts +9 -0
  78. package/dist/types/interfaces/coursePhase/createCoursePhase.d.ts +6 -0
  79. package/dist/types/interfaces/coursePhase/index.d.ts +4 -0
  80. package/dist/types/interfaces/coursePhase/updateCoursePhase.d.ts +7 -0
  81. package/dist/types/interfaces/coursePhaseParticipation/coursePhaseParticipationWithStudent.d.ts +14 -0
  82. package/dist/types/interfaces/coursePhaseParticipation/index.d.ts +4 -0
  83. package/dist/types/interfaces/coursePhaseParticipation/passStatus.d.ts +5 -0
  84. package/dist/types/interfaces/coursePhaseParticipation/updateCoursePhaseParticipation.d.ts +10 -0
  85. package/dist/types/interfaces/coursePhaseParticipation/updateCoursePhaseParticipationStatus.d.ts +5 -0
  86. package/dist/types/interfaces/coursePhaseType/coursePhaseType.d.ts +8 -0
  87. package/dist/types/interfaces/coursePhaseType/coursePhaseTypeMetaDataItem.d.ts +4 -0
  88. package/dist/types/interfaces/coursePhaseType/index.d.ts +2 -0
  89. package/dist/types/interfaces/index.d.ts +9 -0
  90. package/dist/types/interfaces/mailing/coursePhaseMailingConfigData.d.ts +6 -0
  91. package/dist/types/interfaces/mailing/index.d.ts +3 -0
  92. package/dist/types/interfaces/mailing/mailingReport.d.ts +4 -0
  93. package/dist/types/interfaces/mailing/sendStatusMail.d.ts +4 -0
  94. package/dist/types/interfaces/roles/getPermissionString.d.ts +2 -0
  95. package/dist/types/interfaces/roles/index.d.ts +2 -0
  96. package/dist/types/interfaces/roles/role.d.ts +7 -0
  97. package/dist/types/interfaces/student/gender.d.ts +7 -0
  98. package/dist/types/interfaces/student/index.d.ts +3 -0
  99. package/dist/types/interfaces/student/student.d.ts +16 -0
  100. package/dist/types/interfaces/student/studyDegree.d.ts +5 -0
  101. package/dist/types/interfaces/user/index.d.ts +1 -0
  102. package/dist/types/interfaces/user/user.d.ts +8 -0
  103. package/dist/zustand/index.js.map +1 -0
  104. package/package.json +3 -9
  105. package/dist/esm/index.js +0 -2
  106. package/dist/esm/index.js.map +0 -1
  107. package/dist/esm/zustand/index.js.map +0 -1
  108. package/dist/esm/zustand/useDemoStore.js +0 -6
  109. package/dist/esm/zustand/useDemoStore.js.map +0 -1
  110. package/dist/main.js +0 -2
  111. package/dist/main.js.map +0 -1
  112. package/dist/types/main.d.ts +0 -1
  113. package/dist/types/zustand/zustand.d.ts +0 -1
  114. package/dist/zustand/zustand.js +0 -2
  115. package/dist/zustand/zustand.js.map +0 -1
  116. /package/dist/{esm/zustand → zustand}/index.js +0 -0
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './interfaces';
2
+ export * from './zustand';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=exportedApplicationAnswer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exportedApplicationAnswer.js","sourceRoot":"","sources":["../../../src/interfaces/application/exportedApplicationAnswer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './exportedApplicationAnswer';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=course.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"course.js","sourceRoot":"","sources":["../../../src/interfaces/course/course.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export var CourseType;
2
+ (function (CourseType) {
3
+ CourseType["LECTURE"] = "lecture";
4
+ CourseType["SEMINAR"] = "seminar";
5
+ CourseType["PRACTICAL"] = "practical course";
6
+ })(CourseType || (CourseType = {}));
7
+ export const CourseTypeDetails = {
8
+ [CourseType.LECTURE]: { name: 'Lecture' },
9
+ [CourseType.SEMINAR]: { name: 'Seminar', ects: 5 },
10
+ [CourseType.PRACTICAL]: { name: 'Practical Course', ects: 10 },
11
+ };
12
+ //# sourceMappingURL=courseType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"courseType.js","sourceRoot":"","sources":["../../../src/interfaces/course/courseType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,4CAA8B,CAAA;AAChC,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAED,MAAM,CAAC,MAAM,iBAAiB,GAE1B;IACF,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;IACzC,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE;IAClD,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE,EAAE;CAC/D,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './course';
2
+ export * from './courseType';
3
+ export * from './updateCourse';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/course/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=updateCourse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateCourse.js","sourceRoot":"","sources":["../../../src/interfaces/course/updateCourse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coursePhase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coursePhase.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhase/coursePhase.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coursePhaseWithType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coursePhaseWithType.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhase/coursePhaseWithType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createCoursePhase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCoursePhase.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhase/createCoursePhase.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './coursePhase';
2
+ export * from './coursePhaseWithType';
3
+ export * from './createCoursePhase';
4
+ export * from './updateCoursePhase';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhase/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=updateCoursePhase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateCoursePhase.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhase/updateCoursePhase.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coursePhaseParticipationWithStudent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coursePhaseParticipationWithStudent.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseParticipation/coursePhaseParticipationWithStudent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './coursePhaseParticipationWithStudent';
2
+ export * from './passStatus';
3
+ export * from './updateCoursePhaseParticipation';
4
+ export * from './updateCoursePhaseParticipationStatus';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseParticipation/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA;AACrD,cAAc,cAAc,CAAA;AAC5B,cAAc,kCAAkC,CAAA;AAChD,cAAc,wCAAwC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export var PassStatus;
2
+ (function (PassStatus) {
3
+ PassStatus["PASSED"] = "passed";
4
+ PassStatus["FAILED"] = "failed";
5
+ PassStatus["NOT_ASSESSED"] = "not_assessed";
6
+ })(PassStatus || (PassStatus = {}));
7
+ //# sourceMappingURL=passStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passStatus.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseParticipation/passStatus.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,2CAA6B,CAAA;AAC/B,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=updateCoursePhaseParticipation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateCoursePhaseParticipation.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseParticipation/updateCoursePhaseParticipation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=updateCoursePhaseParticipationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateCoursePhaseParticipationStatus.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseParticipation/updateCoursePhaseParticipationStatus.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coursePhaseType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coursePhaseType.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseType/coursePhaseType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coursePhaseTypeMetaDataItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coursePhaseTypeMetaDataItem.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseType/coursePhaseTypeMetaDataItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './coursePhaseType';
2
+ export * from './coursePhaseTypeMetaDataItem';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/coursePhaseType/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,10 @@
1
+ export * from './application';
2
+ export * from './course';
3
+ export * from './coursePhase';
4
+ export * from './coursePhaseParticipation';
5
+ export * from './coursePhaseType';
6
+ export * from './mailing';
7
+ export * from './roles';
8
+ export * from './student';
9
+ export * from './user';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coursePhaseMailingConfigData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coursePhaseMailingConfigData.js","sourceRoot":"","sources":["../../../src/interfaces/mailing/coursePhaseMailingConfigData.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './coursePhaseMailingConfigData';
2
+ export * from './mailingReport';
3
+ export * from './sendStatusMail';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/mailing/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mailingReport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mailingReport.js","sourceRoot":"","sources":["../../../src/interfaces/mailing/mailingReport.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sendStatusMail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendStatusMail.js","sourceRoot":"","sources":["../../../src/interfaces/mailing/sendStatusMail.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { Role } from './role';
2
+ // Function to get the permission string
3
+ export const getPermissionString = (role, courseName, courseSemesterTag) => {
4
+ if (role === Role.PROMPT_ADMIN || role === Role.PROMPT_LECTURER) {
5
+ return role;
6
+ }
7
+ return `${courseName}-${courseSemesterTag}-${role}`;
8
+ };
9
+ //# sourceMappingURL=getPermissionString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPermissionString.js","sourceRoot":"","sources":["../../../src/interfaces/roles/getPermissionString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,wCAAwC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAAU,EACV,UAAmB,EACnB,iBAA0B,EAClB,EAAE;IACV,IAAI,IAAI,KAAK,IAAI,CAAC,YAAY,IAAI,IAAI,KAAK,IAAI,CAAC,eAAe,EAAE,CAAC;QAChE,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,GAAG,UAAU,IAAI,iBAAiB,IAAI,IAAI,EAAE,CAAA;AACrD,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './getPermissionString';
2
+ export * from './role';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/roles/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,9 @@
1
+ export var Role;
2
+ (function (Role) {
3
+ Role["PROMPT_ADMIN"] = "PROMPT_Admin";
4
+ Role["PROMPT_LECTURER"] = "PROMPT_Lecturer";
5
+ Role["COURSE_LECTURER"] = "Lecturer";
6
+ Role["COURSE_EDITOR"] = "Editor";
7
+ Role["COURSE_STUDENT"] = "Student";
8
+ })(Role || (Role = {}));
9
+ //# sourceMappingURL=role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.js","sourceRoot":"","sources":["../../../src/interfaces/roles/role.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAMX;AAND,WAAY,IAAI;IACd,qCAA6B,CAAA;IAC7B,2CAAmC,CAAA;IACnC,oCAA4B,CAAA;IAC5B,gCAAwB,CAAA;IACxB,kCAA0B,CAAA;AAC5B,CAAC,EANW,IAAI,KAAJ,IAAI,QAMf"}
@@ -0,0 +1,22 @@
1
+ export var Gender;
2
+ (function (Gender) {
3
+ Gender["MALE"] = "male";
4
+ Gender["FEMALE"] = "female";
5
+ Gender["DIVERSE"] = "diverse";
6
+ Gender["PREFER_NOT_TO_SAY"] = "prefer_not_to_say";
7
+ })(Gender || (Gender = {}));
8
+ export function getGenderString(gender) {
9
+ switch (gender) {
10
+ case Gender.MALE:
11
+ return 'Male';
12
+ case Gender.FEMALE:
13
+ return 'Female';
14
+ case Gender.DIVERSE:
15
+ return 'Diverse';
16
+ case Gender.PREFER_NOT_TO_SAY:
17
+ return 'Prefer not to say';
18
+ default:
19
+ return 'Unknown';
20
+ }
21
+ }
22
+ //# sourceMappingURL=gender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gender.js","sourceRoot":"","sources":["../../../src/interfaces/student/gender.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,6BAAmB,CAAA;IACnB,iDAAuC,CAAA;AACzC,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAED,MAAM,UAAU,eAAe,CAAC,MAA0B;IACxD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,MAAM,CAAC,IAAI;YACd,OAAO,MAAM,CAAA;QACf,KAAK,MAAM,CAAC,MAAM;YAChB,OAAO,QAAQ,CAAA;QACjB,KAAK,MAAM,CAAC,OAAO;YACjB,OAAO,SAAS,CAAA;QAClB,KAAK,MAAM,CAAC,iBAAiB;YAC3B,OAAO,mBAAmB,CAAA;QAC5B;YACE,OAAO,SAAS,CAAA;IACpB,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './gender';
2
+ export * from './student';
3
+ export * from './studyDegree';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/student/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=student.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student.js","sourceRoot":"","sources":["../../../src/interfaces/student/student.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export var StudyDegree;
2
+ (function (StudyDegree) {
3
+ StudyDegree["BACHELOR"] = "bachelor";
4
+ StudyDegree["MASTER"] = "master";
5
+ })(StudyDegree || (StudyDegree = {}));
6
+ export function getStudyDegreeString(degree) {
7
+ switch (degree) {
8
+ case StudyDegree.BACHELOR:
9
+ return 'Bachelor';
10
+ case StudyDegree.MASTER:
11
+ return 'Master';
12
+ default:
13
+ return 'Unknown';
14
+ }
15
+ }
16
+ //# sourceMappingURL=studyDegree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studyDegree.js","sourceRoot":"","sources":["../../../src/interfaces/student/studyDegree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;AACnB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,MAAM,UAAU,oBAAoB,CAAC,MAA+B;IAClE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,WAAW,CAAC,QAAQ;YACvB,OAAO,UAAU,CAAA;QACnB,KAAK,WAAW,CAAC,MAAM;YACrB,OAAO,QAAQ,CAAA;QACjB;YACE,OAAO,SAAS,CAAA;IACpB,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './user';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/interfaces/user/user.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
+ export * from './interfaces';
1
2
  export * from './zustand';
@@ -0,0 +1,6 @@
1
+ export interface ExportedApplicationAnswer {
2
+ key: string;
3
+ answer: string;
4
+ type: 'text' | 'multiselect';
5
+ order_num: number;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './exportedApplicationAnswer';
@@ -0,0 +1,14 @@
1
+ import { CoursePhaseWithType } from '../coursePhase/coursePhaseWithType';
2
+ export interface Course {
3
+ id: string;
4
+ name: string;
5
+ startDate: Date;
6
+ endDate: Date;
7
+ courseType: string;
8
+ ects: number;
9
+ semesterTag: string;
10
+ metaData: {
11
+ [key: string]: any;
12
+ };
13
+ coursePhases: Array<CoursePhaseWithType>;
14
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum CourseType {
2
+ LECTURE = "lecture",
3
+ SEMINAR = "seminar",
4
+ PRACTICAL = "practical course"
5
+ }
6
+ export declare const CourseTypeDetails: {
7
+ [key in CourseType]: {
8
+ name: string;
9
+ ects?: number;
10
+ };
11
+ };
@@ -0,0 +1,3 @@
1
+ export * from './course';
2
+ export * from './courseType';
3
+ export * from './updateCourse';
@@ -0,0 +1,5 @@
1
+ export interface UpdateCourseData {
2
+ metaData?: {
3
+ [key: string]: any;
4
+ };
5
+ }
@@ -0,0 +1,10 @@
1
+ export interface CoursePhaseWithMetaData {
2
+ id: string;
3
+ courseID: string;
4
+ name: string;
5
+ metaData: {
6
+ [key: string]: any;
7
+ };
8
+ isInitialPhase: boolean;
9
+ coursePhaseTypeID: string;
10
+ }
@@ -0,0 +1,9 @@
1
+ export interface CoursePhaseWithType {
2
+ id: string;
3
+ courseID: string;
4
+ name: string;
5
+ isInitialPhase: boolean;
6
+ sequenceOrder: number;
7
+ coursePhaseTypeID: string;
8
+ coursePhaseType: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface CreateCoursePhase {
2
+ courseId: string;
3
+ name: string;
4
+ isInitialPhase: boolean;
5
+ coursePhaseTypeID: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ export * from './coursePhase';
2
+ export * from './coursePhaseWithType';
3
+ export * from './createCoursePhase';
4
+ export * from './updateCoursePhase';
@@ -0,0 +1,7 @@
1
+ export interface UpdateCoursePhase {
2
+ id: string;
3
+ name?: string;
4
+ metaData?: {
5
+ [key: string]: any;
6
+ };
7
+ }
@@ -0,0 +1,14 @@
1
+ import { Student } from '../student/student';
2
+ import { PassStatus } from './passStatus';
3
+ export interface CoursePhaseParticipationWithStudent {
4
+ id: string;
5
+ passStatus: PassStatus;
6
+ courseParticipationID: string;
7
+ metaData: {
8
+ [key: string]: any;
9
+ };
10
+ prevMetaData: {
11
+ [key: string]: any;
12
+ };
13
+ student: Student;
14
+ }
@@ -0,0 +1,4 @@
1
+ export * from './coursePhaseParticipationWithStudent';
2
+ export * from './passStatus';
3
+ export * from './updateCoursePhaseParticipation';
4
+ export * from './updateCoursePhaseParticipationStatus';
@@ -0,0 +1,5 @@
1
+ export declare enum PassStatus {
2
+ PASSED = "passed",
3
+ FAILED = "failed",
4
+ NOT_ASSESSED = "not_assessed"
5
+ }
@@ -0,0 +1,10 @@
1
+ import { PassStatus } from './passStatus';
2
+ export interface UpdateCoursePhaseParticipation {
3
+ id: string;
4
+ coursePhaseID: string;
5
+ courseParticipationID: string;
6
+ passStatus?: PassStatus;
7
+ metaData: {
8
+ [key: string]: any;
9
+ };
10
+ }
@@ -0,0 +1,5 @@
1
+ import { PassStatus } from './passStatus';
2
+ export interface UpdateCoursePhaseParticipationStatus {
3
+ passStatus: PassStatus;
4
+ coursePhaseParticipationIDs: string[];
5
+ }
@@ -0,0 +1,8 @@
1
+ import { CoursePhaseTypeMetaDataItem } from './coursePhaseTypeMetaDataItem';
2
+ export interface CoursePhaseType {
3
+ id: string;
4
+ name: string;
5
+ requiredInputMetaData: CoursePhaseTypeMetaDataItem[];
6
+ providedOutputMetaData: CoursePhaseTypeMetaDataItem[];
7
+ initialPhase: boolean;
8
+ }
@@ -0,0 +1,4 @@
1
+ export type CoursePhaseTypeMetaDataItem = {
2
+ name: string;
3
+ type: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './coursePhaseType';
2
+ export * from './coursePhaseTypeMetaDataItem';
@@ -0,0 +1,9 @@
1
+ export * from './application';
2
+ export * from './course';
3
+ export * from './coursePhase';
4
+ export * from './coursePhaseParticipation';
5
+ export * from './coursePhaseType';
6
+ export * from './mailing';
7
+ export * from './roles';
8
+ export * from './student';
9
+ export * from './user';
@@ -0,0 +1,6 @@
1
+ export interface CoursePhaseMailingConfigData {
2
+ failedMailSubject?: string;
3
+ failedMailContent?: string;
4
+ passedMailSubject?: string;
5
+ passedMailContent?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './coursePhaseMailingConfigData';
2
+ export * from './mailingReport';
3
+ export * from './sendStatusMail';
@@ -0,0 +1,4 @@
1
+ export interface MailingReport {
2
+ successfulEmails: string[];
3
+ failedEmails: string[];
4
+ }
@@ -0,0 +1,4 @@
1
+ import { PassStatus } from '../coursePhaseParticipation/passStatus';
2
+ export interface SendStatusMail {
3
+ statusMailToBeSend: PassStatus;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { Role } from './role';
2
+ export declare const getPermissionString: (role: Role, courseName?: string, courseSemesterTag?: string) => string;
@@ -0,0 +1,2 @@
1
+ export * from './getPermissionString';
2
+ export * from './role';
@@ -0,0 +1,7 @@
1
+ export declare enum Role {
2
+ PROMPT_ADMIN = "PROMPT_Admin",
3
+ PROMPT_LECTURER = "PROMPT_Lecturer",
4
+ COURSE_LECTURER = "Lecturer",
5
+ COURSE_EDITOR = "Editor",
6
+ COURSE_STUDENT = "Student"
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum Gender {
2
+ MALE = "male",
3
+ FEMALE = "female",
4
+ DIVERSE = "diverse",
5
+ PREFER_NOT_TO_SAY = "prefer_not_to_say"
6
+ }
7
+ export declare function getGenderString(gender: Gender | undefined): string;
@@ -0,0 +1,3 @@
1
+ export * from './gender';
2
+ export * from './student';
3
+ export * from './studyDegree';
@@ -0,0 +1,16 @@
1
+ import { Gender } from './gender';
2
+ import { StudyDegree } from './studyDegree';
3
+ export interface Student {
4
+ id?: string;
5
+ firstName: string;
6
+ lastName: string;
7
+ email: string;
8
+ matriculationNumber?: string;
9
+ universityLogin?: string;
10
+ hasUniversityAccount: boolean;
11
+ gender?: Gender;
12
+ nationality?: string;
13
+ studyDegree?: StudyDegree;
14
+ currentSemester?: number;
15
+ studyProgram?: string;
16
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum StudyDegree {
2
+ BACHELOR = "bachelor",
3
+ MASTER = "master"
4
+ }
5
+ export declare function getStudyDegreeString(degree: StudyDegree | undefined): string;
@@ -0,0 +1 @@
1
+ export * from './user';
@@ -0,0 +1,8 @@
1
+ export interface User {
2
+ firstName: string;
3
+ lastName: string;
4
+ email: string;
5
+ username: string;
6
+ matriculationNumber: string;
7
+ universityLogin: string;
8
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/zustand/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tumaet/prompt-shared-state",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ls1intum/prompt-lib.git"
@@ -10,14 +10,8 @@
10
10
  "types": "./dist/types/index.d.ts",
11
11
  "license": "MIT",
12
12
  "exports": {
13
- ".": {
14
- "types": "./dist/main.d.ts",
15
- "default": "./dist/main.js"
16
- },
17
- "./zustand": {
18
- "types": "./dist/zustand.d.ts",
19
- "default": "./dist/zustand.js"
20
- }
13
+ ".": "./dist/index.js",
14
+ "./*": "./dist/*"
21
15
  },
22
16
  "files": [
23
17
  "dist"
package/dist/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './zustand';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/zustand/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -1,6 +0,0 @@
1
- import { create } from 'zustand';
2
- export const useDemoStore = create((set) => ({
3
- count: 0,
4
- increment: () => set((state) => ({ count: state.count + 1 })),
5
- }));
6
- //# sourceMappingURL=useDemoStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDemoStore.js","sourceRoot":"","sources":["../../../src/zustand/useDemoStore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAOhC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC;CAC9D,CAAC,CAAC,CAAA"}
package/dist/main.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './zustand/useDemoStore';
2
- //# sourceMappingURL=main.js.map
package/dist/main.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
@@ -1 +0,0 @@
1
- export * from './zustand/useDemoStore';
@@ -1 +0,0 @@
1
- export * from './useDemoStore';
@@ -1,2 +0,0 @@
1
- export * from './useDemoStore';
2
- //# sourceMappingURL=zustand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zustand.js","sourceRoot":"","sources":["../../src/zustand/zustand.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
File without changes