Commit Graph

29 Commits

Author SHA1 Message Date
Andreas Eriksson 20ee509c28 style: 💄 Add eslint rules to api-skolplattformen and autofix
Add react-native-community eslint rules to project and run autofix on
all files.
2022-04-24 20:27:10 +02:00
Andreas Eriksson dcb6d23976 Set the personalNumber in api after login
This is used from the Hooks-library to prefix the cache keys. With login on device with BankId or Freja we never set the personal number in the API and all cache keys in Hooks was prefixed with "undefined".
2022-04-23 23:26:24 +02:00
Kajetan Kazimierczak bc2625dc59 fix: 🐛 Rensa sessionen innan Freja login
Rensar sessioner. Löser problemet då man avbryter identifieringen i
Freja-appen och då blir ÖS alltid i avbrutet läge tills man startar om
2022-04-23 15:58:56 +02:00
Kajetan Kazimierczak 8e3a9c1390 fix: 🐛 fix for iOS 2022-04-22 14:38:13 +02:00
Kajetan Kazimierczak c5bec5f9ee fix: 🐛 Fulfix. Login funkar 2022-04-11 22:20:22 +02:00
Kajetan Kazimierczak c5302b0dff session 2022-04-06 08:41:11 +02:00
Kajetan Kazimierczak d9c62a6d91 feat: 🎸 Logga in med Freja eID+ 2022-04-01 23:38:47 +02:00
Andreas Eriksson 63de271323 Only use queueFetcher if one child has status FS 2022-02-11 23:14:16 +01:00
Andreas Eriksson 410b9ebe97 Add childId to calls that should be queued 2022-02-11 22:46:42 +01:00
Andreas Eriksson c1de51242c Add queue fetcher to api 2022-02-11 18:31:24 +01:00
Kajetan Kazimierczak b7dbd356c6
feat: 🎸 Hämta lärare och skolkontakter från api-skolplattfomen och visa lärarens namn i schemat (#589)
* feat: 🎸 Get list of teachers from api-skolplattfomen

* feat: 🎸 teachers and school contacts in hooks

* style: 💄 lint

* chore: 🤖 fakeData for matching some lessons with teachers

* feat: 🎸 Teacher's names in timetable (where available)

* test: 💍 fix failing tests (add mocks for new calls)
2021-12-10 10:33:52 +01:00
Andreas Eriksson 933a8840a3
feat: 🎸 Fix image load and typescript errors (#570)
* Update Cocoapods version
* Use new api GetRequestHeaders to get headers
* Remove warnings of missing colors and brushes
* Fix typing errors
* Change affected main branch to main
* Remove unused feature toggle
* Add dummy login checker to remove using any
2021-12-02 15:34:15 +01:00
Viktor Sarström d26fd62e5c fix: 🐛 merge 2021-11-27 20:27:40 +01:00
Kajetan Kazimierczak 508b0792a1 fix: 🐛 error loading SKOLA24_CHILDREN SAML 2021-11-26 23:59:59 +01:00
Jonathan Edenström 97e131d30d fix: fetch typings 2021-11-24 07:17:37 +01:00
Andreas Eriksson d24347f272
refactor: Fix typescript build errors (#539) 2021-11-15 23:36:26 +01:00
Viktor Sarström 46632691bf fix: 🐛 Fixes TS config + lint etc 2021-11-12 13:46:25 +01:00
Viktor Sarström 9d213413be fix: 🐛 Merge with master 2021-11-09 10:53:07 +01:00
Emil Lindqvist 2162221322 Add interface for hjarntorget and skkolplattformen 2021-11-09 10:28:48 +01:00
Emil Lindqvist aeeab7feb6 Rename skolplattfomen api 2021-11-09 10:27:38 +01:00
Emil Lindqvist a9603422c8 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-11-09 10:25:31 +01:00
Andreas Eriksson beaf991342 Add check for correct set-cookie header in response
This way we can detect when the api returns data for the wrong child. We then throw an exception.
In the app the api-hooks library retires requests when errors occur so we try again and hope
that correct data is returned.
2021-10-30 15:23:40 +02:00
Emil Lindqvist 456e1a520c Make run scripts work with new structure 2021-10-11 10:50:23 +02:00
Emil Lindqvist 52c4c03665 Add interface for hjarntorget and skkolplattformen 2021-10-11 09:57:22 +02:00
Emil Lindqvist 85ffe3e40d Rename skolplattfomen api 2021-10-11 09:45:36 +02:00
Emil Lindqvist 214fa44bc6 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-10-10 21:09:14 +02:00
Jonathan Edenström 169b5365e9 fix: lint and prettier fixes 2021-10-06 22:47:50 +02:00
Jonathan Edenström 18ed8620af fix: rename and fix imports 2021-10-05 17:44:14 +02:00
Erik Hellman 8832990524 Moved to libs directory 2021-10-03 11:32:39 +02:00
Renamed from lib/api.ts (Browse further)