Commit graph

394 commits

Author SHA1 Message Date
Mikołaj Pich
31fa6d26f2 Make guardian first and second nullable, deprecate guardians list 2021-02-06 11:54:33 +01:00
Mikołaj Pich
d250c5133e Make familyName nullable in StudentInfo 2021-02-02 17:40:04 +01:00
Mikołaj Pich
9daf6e5f8d Make StudentGuardian.Email field nullable 2021-01-25 00:01:43 +01:00
Mikołaj Pich
a722e777bd Use bytestream instead of string for jsoup parse input 2021-01-23 19:49:36 +01:00
Mikołaj Pich
848671e111 Fix tests 2021-01-21 10:22:30 +01:00
Mikołaj Pich
6b3a58ce05 Add X-V-* headers 2021-01-21 09:32:27 +01:00
Mikołaj Pich
d55d6afcc9 Change messageId to type string 2021-01-21 09:18:59 +01:00
Mikołaj Pich
22417c56d9 Remove Nieprzeczytana and idWiadomoscAdresat from get*Message() endpoint params 2021-01-21 09:11:00 +01:00
Mikołaj Pich
ae676aa5de Decrease timeout to 30 seconds 2021-01-20 17:56:16 +01:00
Mikołaj Pich
febb27e8a5 Fix missing 'success' value at $.feedback in ApiResponse 2021-01-19 19:44:25 +01:00
Mikołaj Pich
6edc85315f Add separate data class for additional lessons 2020-12-18 21:34:06 +01:00
Mikołaj Pich
41b164fe50 Set more timeout configs 2020-12-16 20:16:13 +01:00
Mikołaj Pich
fd47c5e4cd Change callTimeout to connectTimeout 2020-12-16 10:29:25 +01:00
Mikołaj Pich
d098eb4cc2 Make feedback.innerExceptionMessage nullable 2020-12-08 22:17:17 +01:00
Mikołaj Pich
61a87ed00a Enable tslv1.2 to gdansk, lublin and koszalin 2020-12-07 16:22:20 +01:00
Mikołaj Pich
50c049efde Fix login to edu.gdansk and eduportal.koszalin 2020-12-06 16:06:35 +01:00
Mikołaj Pich
d74d684b72 Add student info 2020-11-29 22:27:10 +01:00
Mikołaj Pich
ebaf78312d Add timetable additional lessons 2020-11-11 19:58:41 +01:00
Mikołaj Pich
07100af76c Remove unused timetable classes 2020-11-11 19:02:24 +01:00
Mikołaj Pich
21541c9a6c Add timetable lesson case with two change lines 2020-11-11 18:03:09 +01:00
Mikołaj Pich
d66d47526a Don't run jsoup to check errors on json responses 2020-11-11 17:24:01 +01:00
Mikołaj Pich
bdc0083ac5 Fix some remote tests 2020-11-11 17:10:34 +01:00
Mikołaj Pich
64781b74e2 Add director information feature 2020-11-07 23:58:58 +01:00
Mikołaj Pich
bcf6b53608 Rework grade statistics 2020-11-07 17:03:19 +01:00
dependabot-preview[bot]
1a0acdabfb
Bump moshi-adapters from 1.10.0 to 1.11.0 (#62) 2020-11-01 18:17:53 +00:00
Mikołaj Pich
0ac6b7961e Add class average to grade partial statistics 2020-11-01 14:02:38 +01:00
Mikołaj Pich
c24f2f19d0 Increase call timeout to 60 seconds 2020-10-30 00:22:38 +01:00
Mikołaj Pich
f82bf7429f Make exceptionMessage field optional in feedback of error response 2020-10-21 19:16:15 +02:00
Mikołaj Pich
0ace1296d6 Add conferences 2020-10-18 23:30:53 +02:00
Mikołaj Pich
fae6cdc6cb Fix tests 2020-10-15 11:59:22 +02:00
Mikołaj Pich
e769c833ad Change exception hierarchy 2020-10-15 11:53:44 +02:00
Mikołaj Pich
86b76c8c6a Make feedback.handled nullable 2020-10-15 11:25:24 +02:00
Mikołaj Pich
a9c771814a Add custom http error exceptions 2020-10-15 11:24:45 +02:00
Mikołaj Pich
4d7e031999 Fix handling retrofit runtime exceptions in auto login interceptor 2020-10-13 14:10:22 +02:00
Mikołaj Pich
73692b188c Skip Default symbol login at register 2020-10-13 12:04:59 +02:00
dependabot-preview[bot]
74ef6297b1
Bump moshi-kotlin-codegen from 1.9.3 to 1.11.0 (#56) 2020-10-13 10:04:46 +00:00
dependabot-preview[bot]
245f7bfa9c
Bump moshi from 1.9.3 to 1.11.0 (#57) 2020-10-13 10:00:14 +00:00
dependabot-preview[bot]
0beb981d47
Bump moshi-adapters from 1.9.3 to 1.10.0 (#55) 2020-10-12 17:14:27 +00:00
Mikołaj Pich
7577fc940a Make Diary.symbol nullable 2020-09-29 20:34:21 +02:00
Mikołaj Pich
fd481aea0c Fix unregister device service method return type 2020-09-29 20:30:45 +02:00
Mikołaj Pich
84c0703c23 Fix parsing sent excues for all day 2020-09-28 23:11:49 +02:00
Mikołaj Pich
6b9fd68ba8 Fix UnregisterDeviceRequest moshi adapter 2020-09-28 23:06:37 +02:00
Mikołaj Pich
876cb1949f Add log stmt in sendMessage() 2020-09-27 21:32:34 +02:00
Mikołaj Pich
9364c2e6fc Prepend EDUNET\ to umt.tarnow.pl login 2020-09-27 17:44:00 +02:00
Mikołaj Pich
3ce92d979e Fix no enum constant found on umt.tarnow.pl login 2020-09-27 17:39:53 +02:00
Mikołaj Pich
b94a4c1eec Fix umt.tarnow.pl login 2020-09-26 23:19:05 +02:00
Mikołaj Pich
01903e16db Fix parsing attendance summary 2020-09-26 15:50:43 +02:00
Mikołaj Pich
2b9fef6d0f Fix date serialization in requests 2020-09-26 15:35:36 +02:00
Mikołaj Pich
3e7228b0cf Fix lint 2020-09-26 15:16:37 +02:00
Mikołaj Pich
07a21f8fb7 Fix grade points summary parsing 2020-09-26 15:14:22 +02:00
Mikołaj Pich
510161aaf9 Migrate scraper to moshi 2020-09-26 14:34:32 +02:00
Mikołaj Pich
b652036a26 Fix eduportal.koszalin.pl login 2020-09-15 18:27:12 +02:00
Mikołaj Pich
a926e11387 Fix parsing summary message in password recover 2020-09-13 23:11:39 +02:00
Mikołaj Pich
7c0e838faa Improve retrying after requests auto login 2020-09-12 16:27:46 +02:00
Mikołaj Pich
de79078eee Make notLoggedInCallback suspend 2020-09-12 13:18:18 +02:00
Mikołaj Pich
1e17571dc7 Add eduportal.koszalin.pl to known register in password recover 2020-09-12 11:03:24 +02:00
Mikołaj Pich
0faa50327d Add AttendanceCategory.getCategoryByName() method 2020-09-06 18:24:57 +02:00
Mikołaj Pich
c1b92fe905 Use orEmpty() instead of not-null assertion operator 2020-09-03 15:51:31 +02:00
Mikołaj Pich
126d84660d Synchronize auto login on jar object 2020-09-01 22:37:33 +02:00
Mikołaj Pich
698ab58791 Return recipients list instead of recipient name string 2020-08-29 20:58:33 +02:00
Mikołaj Pich
dbbe280ccb Normalize recipients in received and deleted messages 2020-08-29 17:22:00 +02:00
Mikołaj Pich
e2fe3a3bc0 Use diary semesters' unit id to match correct unit 2020-08-29 16:47:38 +02:00
Mikołaj Pich
ead5197309 Disable auto login thread synchronization before 0.20.0 release 2020-08-29 13:58:50 +02:00
Mikołaj Pich
822cf88715 Normalize recipients in sent messages 2020-08-29 13:57:27 +02:00
Mikołaj Pich
c6d1453536 Fix userLoginId value 2020-08-29 12:14:37 +02:00
Mikołaj Pich
2b686643f3 Fix lint 2020-08-29 11:12:51 +02:00
Mikołaj Pich
f217a70d9c Fix messages test 2020-08-29 11:01:53 +02:00
Mikołaj Pich
8db8258351 Throw IAE if folder id is out of range 1..3 2020-08-29 09:37:56 +02:00
Mikołaj Pich
5a2e47c307 Fix message deleting 2020-08-27 11:50:07 +02:00
Mikołaj Pich
90792717e6 Fix getRecipients endpoint http method 2020-08-27 10:40:45 +02:00
Mikołaj Pich
9895a5ba5a Update Message pojo 2020-08-27 10:39:40 +02:00
Mikołaj Pich
e1f5170257 Fix compilation error 2020-08-27 00:34:06 +02:00
Mikołaj Pich
f41e6618e1 Update messages endpoints (20.09.0001.39536) 2020-08-27 00:25:38 +02:00
Mikołaj Pich
b919b962ca Make student second name nullable 2020-08-23 19:16:15 +02:00
Mikołaj Pich
f907f691a2 Fix units url in register repo 2020-08-23 17:14:18 +02:00
Mikołaj Pich
5930df6734 Fix units url in register repo 2020-08-23 17:07:53 +02:00
Mikołaj Pich
7aa654605b Disable login interceptor in messages service used in registration 2020-08-23 16:52:06 +02:00
Mikołaj Pich
a0539b7e5a Use flatMap instead of map {}.flatten() 2020-08-23 16:03:48 +02:00
Mikołaj Pich
e613b2441b Add student second- and surname, remove level from className 2020-08-19 22:06:55 +02:00
Mikołaj Pich
0a81167215 Add user name and user login id in scrapper 2020-08-17 23:43:15 +02:00
Mikołaj Pich
5b99fd1d2b Add semesters list to student 2020-08-16 17:55:46 +02:00
Mikołaj Pich
aba6e34e3f Synchronize request and relogin in auto login interceptor 2020-08-08 11:04:11 +02:00
Mikołaj Pich
2c35b2ddf3 Remove support for uonetplus-opiekun from cookie interceptor 2020-08-02 18:05:19 +02:00
Mikołaj Pich
b04c0fb296 Remove indents from timetable parser 2020-08-02 17:43:15 +02:00
Mikołaj Pich
2c87de06ea Refactor register repo 2020-07-27 00:38:35 +02:00
Mikołaj Pich
57753e6a6a Use data class in notes 2020-07-26 23:58:38 +02:00
Mikołaj Pich
ed3f074bde Use data class in mobile devices 2020-07-26 23:09:22 +02:00
Mikołaj Pich
9af6dd85a5 Use data class in homework, remove support for old homework endpoint 2020-07-26 23:05:25 +02:00
Mikołaj Pich
df9acbd78f Use data class in grades 2020-07-26 21:35:03 +02:00
Mikołaj Pich
97f7eae65f Use data class in exams 2020-07-26 21:09:50 +02:00
Mikołaj Pich
7ae93ad126 Move Attendance.Category to separate enum class, use data class where possible 2020-07-26 21:00:33 +02:00
Mikołaj Pich
d8acc8c362 Refactor attendance mapper 2020-07-26 20:48:18 +02:00
Mikołaj Pich
bc276b21b5 Remove support for student and parent module in scraper 2020-07-26 19:02:56 +02:00
Mikołaj Pich
71571826d4 Convert mappers to expresssion body 2020-07-25 20:37:03 +02:00
Mikołaj Pich
cca8c74b8f Remove threetenbp 2020-07-25 20:25:47 +02:00
Mikołaj Pich
9847db41e7 Remove deprecated current flag from Semester 2020-06-14 23:40:44 +02:00
Mikołaj Pich
e626b49d95 Migrate sdk main module to coroutines 2020-06-14 23:33:39 +02:00
Mikołaj Pich
23ece778fe Remove unnecessary dependencies 2020-06-14 23:00:16 +02:00
Mikołaj Pich
d0882012c7 Rename not logged in interceptor 2020-06-14 21:20:42 +02:00
Mikołaj Pich
85c7bcbb82 Check cookie jar before make request 2020-06-14 21:10:18 +02:00
Mikołaj Pich
f7c4156fca Merge not logged in and empty cookie jar interceptors 2020-06-14 20:45:29 +02:00
Mikołaj Pich
87bccc2158 Fix auto login 2020-06-14 20:03:21 +02:00
Mikołaj Pich
0165e05aae Migrate scraper module to coroutines 2020-06-14 18:26:58 +02:00
Mikołaj Pich
48b7ed8955 Add debug log in register, when no student found 2020-06-11 15:56:32 +02:00
Mikołaj Pich
7dc0761c79 Add missing params to student and snp 2020-06-10 21:15:02 +02:00
Mikołaj Pich
1fcb2a3c5b Add empty cookie jar interceptor 2020-06-10 21:04:24 +02:00
Mikołaj Pich
be82cb75a0 Move exceptions from interceptor to exception package 2020-06-10 20:19:31 +02:00
Mikołaj Pich
294bfd8343 Update scrapper UA 2020-06-10 19:08:22 +02:00
Mikołaj Pich
bf2976b51a Fix auto login on ADFSLightCufs (edu.lublin.eu) 2020-06-10 18:29:33 +02:00
Mikołaj Pich
a9b5349625 Add more logging in student start repo 2020-06-10 18:09:52 +02:00
Mikołaj Pich
f7d6832d23 Modify error handling when empty response from message deleting 2020-06-10 18:03:33 +02:00
Mikołaj Pich
c16cbe6c89 Add empty body to student service requests 2020-06-10 17:50:00 +02:00
Mikołaj Pich
a57afdb9b0 Add header to getUserCache overload 2020-06-08 22:25:33 +02:00
Mikołaj Pich
545b34ef92 Add content type to UserCache.mvc/Get endpoint (20.08) 2020-06-08 22:10:07 +02:00
Mikołaj Pich
7f22f0c498 Update UczenCache.mvc endpoint scheme (20.0x) 2020-06-06 17:56:16 +02:00
Mikołaj Pich
2d2b5176e6 Fix json deserialization error in message delete 2020-06-04 01:15:59 +02:00
Mikołaj Pich
d0081b4598 Remove dash from empty points sum 2020-06-02 13:16:12 +02:00
Mikołaj Pich
e2c0adbe8c Update anti forgery is empty error message 2020-06-01 02:23:40 +02:00
Mikołaj Pich
aadeb64a9f Create registers selector consts in account repo 2020-06-01 02:22:38 +02:00
Mikołaj Pich
b8654c37c4 Fix handling not logged in adfslight 2020-06-01 02:11:41 +02:00
Mikołaj Pich
fd51552acd
Fix previous change 2020-05-23 13:18:25 +02:00
Mikołaj Pich
7b6c97e4be
Add fakelog.tk to account recover support 2020-05-23 13:11:29 +02:00
Mikołaj Pich
46a16814e9 cs fix 2020-05-20 23:21:05 +02:00
Mikołaj Pich
46619e3bc5 Add basic support for new homework (20.07) 2020-05-20 11:31:19 +02:00
Mikołaj Pich
0dbcea9d6f Update homework endpoint (20.06) 2020-05-20 09:46:44 +02:00
Mikołaj Pich
445905bfa9 Rename getGrades() to getGradesDetails(), add getGrades() with details and summary 2020-05-02 12:26:38 +02:00
Mikołaj Pich
5225d88e11 Add adfslight error fixture, update tests 2020-04-17 22:20:22 +02:00
Mikołaj Pich
f051cedbed Add classId to log stmt in student start repo 2020-04-10 19:15:16 +02:00
Mikołaj Pich
7c05da6b56 Add studentid to log stmt in student start repo 2020-04-10 18:50:03 +02:00
Mikołaj Pich
f272cfcf95 Add new fields to MobileDevice, rename date to crateDate 2020-04-09 23:40:02 +02:00
Mikołaj Pich
0cf724a70a Apply custom tls socket factory only on vulcan.net.pl 2020-04-04 14:14:56 +02:00
Mikołaj Pich
111bcc73b8 Refactor getClientBuilder() 2020-04-04 13:30:32 +02:00
Mikołaj Pich
9761b4eb91 Add trust manager to sslsocketfactory 2020-04-04 12:24:37 +02:00
Mikołaj Pich
97b393acb6 Add custom tls socket factory to enable tls1.2 on android 4.1 2020-04-04 02:51:53 +02:00
Mikołaj Pich
d5ebf8d9e7 Add student threats 2020-04-02 23:49:12 +02:00
Mikołaj Pich
58cf03a711 Add self governments impl 2020-04-02 23:40:52 +02:00
Mikołaj Pich
bff34b1990 Add attachments to homework 2020-04-01 23:27:05 +02:00
Mikołaj Pich
ceb4ac01e7 Add fallback to name from dicts if senderName is null 2020-03-29 23:40:54 +02:00
Mikołaj Pich
c88a06e65e Add getMessageDetails() 2020-03-29 19:40:23 +02:00
Mikołaj Pich
4ea879b45f Add support for message attachments 2020-03-26 23:23:32 +01:00
Mikołaj Pich
bda9845c48 Change points to int, categoryType to enum in notes 2020-03-26 21:45:39 +01:00
Mikołaj Pich
6e4a0a64c5 Add notes tests with points 2020-03-26 21:02:08 +01:00
Mikołaj Pich
85d47f60a8 Add requireNotNull() in map chains 2020-03-13 19:56:57 +01:00
Mikołaj Pich
91f97bebec
Remove unused fallback symbols 2020-02-29 22:12:28 +01:00
Mikołaj Pich
fa45c4431d
Rename institution to unitName 2020-02-29 22:04:20 +01:00
Mikołaj Pich
277b1c121b
Add schoolShortName to Student 2020-02-29 20:00:00 +01:00
Mikołaj Pich
b2543ee30e
Use shorter ext funcs in RegisterRepositoryTest to enqueue fixtures 2020-02-29 14:38:28 +01:00
Mikołaj Pich
94cc14926d
Remove deprecation from getLuckyNumber, add param with optional filtering by institution 2020-02-27 01:06:47 +01:00
Mikołaj Pich
5729eda692
Fix support for lucky numbers from multiple schools 2020-02-27 00:51:48 +01:00
Mikołaj Pich
68d5092683
Add triple change support in different configuration 2020-02-09 00:43:31 +01:00
Mikołaj Pich
7e89883696
Merge branch 'feature/account-unlock' 2020-02-07 15:02:47 +01:00
Mikołaj Pich
a575dc34e1
Add orEmpty on nullable lists in messages repo 2020-02-07 15:01:48 +01:00
Mikołaj Pich
c10af020d2
Add orEmpty on nullable lists in homepage repo 2020-02-07 14:59:07 +01:00
Mikołaj Pich
2017c0e013
Throw FDE when showCompletedLessons is false in cache 2020-02-07 14:56:26 +01:00
Mikołaj Pich
4a2496ebd0 Revert "Add info about three switches to Semester"
This reverts commit e5540814bb.
2020-02-07 14:02:33 +01:00
Mikołaj Pich
e5540814bb
Add info about three switches to Semester 2020-02-07 00:44:56 +01:00
Mikołaj Pich
a8c46cca01
Add orEmpty() on list in streams 2020-02-07 00:19:21 +01:00
Mikołaj Pich
36111831d7
Add categoryType and point fields to Note 2020-02-04 21:12:08 +01:00
Mikołaj Pich
18147d05a2
Change success check to match message instead of title 2020-02-03 21:28:49 +01:00
Mikołaj Pich
064a24e3bf
Build std reset url with symbol from param 2020-02-03 15:33:04 +01:00
Mikołaj Pich
82d9a001b4
Trim symbol and email 2020-02-03 14:43:59 +01:00
Mikołaj Pich
99b026435f
Change password reset detection in ErrorInterceptor 2020-02-03 14:34:18 +01:00
Mikołaj Pich
08dec15f65
Add one more error handler 2020-02-03 12:05:11 +01:00
Mikołaj Pich
081542bced
Add required fields to adfs password reset request 2020-02-02 19:46:30 +01:00
Mikołaj Pich
b061de8c7f
Move validation to account repo 2020-02-02 19:14:02 +01:00
Mikołaj Pich
1394c849a8
Add password reset validation in interceptor 2020-02-02 18:29:09 +01:00
Mikołaj Pich
6d4f978c88
Fix stream 2020-02-02 17:48:53 +01:00
Mikołaj Pich
5acad6e01b
Add missing umt.tarnow.pl 2020-02-02 17:33:13 +01:00
Mikołaj Pich
0857ac2e94
Use appropriate username field name in send() method 2020-02-02 17:02:45 +01:00
Mikołaj Pich
e8ad7218ea
Merge branch 'master' into feature/account-unlock 2020-02-02 16:19:09 +01:00
Mikołaj Pich
16d36ddf16
Add sending message in mobile mode 2020-02-02 16:04:48 +01:00
Mikołaj Pich
26ea71dc8d
Replace if else if else if with when 2020-02-02 14:37:01 +01:00
Mikołaj Pich
236ce8e326
Refactor scraper grade mapper 2020-02-02 14:25:40 +01:00
Mikołaj Pich
9ac5de0aa5
Optimize GradeCustomConverters 2020-02-01 22:00:46 +01:00
Mikołaj Pich
0f68c9b1d9
Don't treat grade in comment as grade 2020-02-01 22:00:31 +01:00
Mikołaj Pich
1bd9832786
Change return param of getPasswordResetUrl() to type and url pair 2020-01-30 21:49:00 +01:00
Mikołaj Pich
fd2546ccab
Merge branch 'master' into feature/account-unlock 2020-01-30 20:19:11 +01:00
Mikołaj Pich
d2d8b68763
Add debug log on empty semesters list 2020-01-30 19:52:49 +01:00
Mikołaj Pich
8e1485f1ac
Merge branch 'master' into feature/account-unlock 2020-01-21 18:42:45 +01:00
Mikołaj Pich
e2a98931cb Handle point grades with decimal counter 2020-01-20 23:51:03 +01:00
Mikołaj Pich
9f82c57ee1
Add tests to sdk module 2020-01-15 21:03:00 +01:00
Mikołaj Pich
91af695514
Add missing support for grades with double plus 2020-01-14 17:32:24 +01:00
Mikołaj Pich
a8547f83c4
Merge branch 'master' into feature/account-unlock 2020-01-12 14:10:09 +01:00
Mikołaj Pich
9c87fb711c
Add forgery token validation in sendMessage() 2020-01-11 00:04:36 +01:00
Mikołaj Pich
f9c30bf119
Avoid deprecated newInstance() call on Class 2020-01-10 15:10:01 +01:00
Mikołaj Pich
49a6203d25
Return captcha code and unlock url 2020-01-04 20:32:21 +01:00
Mikołaj Pich
127a6716c6
Move password reset to AccountRepository 2020-01-04 20:27:56 +01:00
Mikołaj Pich
84d9a6779d
Add sendPasswordResetRequest() method 2020-01-04 01:23:21 +01:00
Mikołaj Pich
008887c359
Add getPasswordResetCaptchaCode() method 2020-01-03 23:09:40 +01:00
Mikołaj Pich
0886d71acc
Fix error content matching 2019-12-31 13:04:52 +01:00
Mikołaj Pich
3332962a6a
Skip login on TemporarilyDisabledException 2019-12-31 01:27:00 +01:00
Mikołaj Pich
ba0bb6df1e
Add timetable back-compatibility with vulcan pre-19.11 2019-12-27 20:35:34 +01:00
Mikołaj Pich
3f7c62ff27
Fix null in Recipient shortName 2019-12-26 14:13:21 +01:00
Mikołaj Pich
cfbed19894
Rename modules 2019-12-23 19:19:30 +01:00