Commit Graph

27 Commits

Author SHA1 Message Date
Huyen Nguyen
ba70f5d253 feat(api): add /submit-quiz-attempt endpoint (#57201) 2024-12-06 12:45:12 -06:00
Shaun Hamilton
bb16ab9245 breaking(api): refactor exam environment endpoints (#56806) 2024-10-30 10:45:31 +05:30
Shaun Hamilton
ea44135808 feat(api): add exam-environment endpoints (#55662)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-10-04 09:20:18 -05:00
Oliver Eyton-Williams
7345989917 refactor(api): import add-donation schema (#55876) 2024-08-19 13:30:02 +02:00
Ahmad Abdolsaheb
a1c12847e4 feat(api): add update-stripe-card endpoint (#55548)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-08-05 18:52:03 -05:00
Ahmad Abdolsaheb
b2518cc347 feat(api): add charge-stripe and create-stripe-payment-intent endpoints (#54545)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-07-15 15:23:51 +02:00
Niraj Nandish
ca60b5e81d feat(api): block useragents in /get-public-profile (#55487) 2024-07-12 09:33:00 +02:00
Oliver Eyton-Williams
4547b8d1f9 fix(api): return examResults in user's challenges (#55451) 2024-07-11 22:09:49 +05:30
Oliver Eyton-Williams
a22e90c10d fix(api): use generic error message if CSRF error (#55264) 2024-06-27 10:47:23 +02:00
Oliver Eyton-Williams
22e74e6406 feat(api): port /confirm-email to new api (#54975)
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
2024-06-27 10:07:53 +02:00
Oliver Eyton-Williams
589e891c26 fix(api): narrow serializers for update-my-email (#55178) 2024-06-20 20:20:08 +02:00
Oliver Eyton-Williams
517a351a28 feat(api): send errors to Sentry (#55208)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-19 17:36:41 +05:30
Oliver Eyton-Williams
8bcf080ad2 feat(api): GET /api/users/exists (#54875) 2024-06-12 12:01:17 -05:00
Oliver Eyton-Williams
a8f7e15dc2 feat(api): api/users/get-public-profile (#54729)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-10 12:46:55 -05:00
Oliver Eyton-Williams
84a41a4da8 feat(api): finish update-my-email endpoint (#54921)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-03 09:08:42 +02:00
Oliver Eyton-Williams
aae96b3af9 fix(api): update-my-username response body (#54901) 2024-05-22 16:44:36 -07:00
Oliver Eyton-Williams
e877b9208c fix(api): give expected default if field missing (#54807) 2024-05-22 14:43:13 +03:00
Tom
acb38ca4e2 feat(api): add email subscription endpoints to new API (#54000)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-05-07 11:31:39 +00:00
Oliver Eyton-Williams
fc6498eddf fix(api): return missing isXCertified (#54627) 2024-05-03 09:25:10 +02:00
Oliver Eyton-Williams
f26a9b9bc0 fix(api): allow empty string for social, not undefined (#54621) 2024-05-03 09:23:47 +02:00
Ahmad Abdolsaheb
3f9f7e729b feat: restrict card donation for users with little progress (#54529)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-26 16:27:50 +03:00
Oliver Eyton-Williams
0b65ec502b fix(api): /charge-stripe-card responses (#54530)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-25 12:22:43 -07:00
Oliver Eyton-Williams
28f45b51dd fix(api): consistent responses from certificate/showCert (#54426) 2024-04-25 14:02:59 +02:00
Shaun Hamilton
133f07becd chore(api): refactor schemas into individual files (#54350) 2024-04-11 14:45:56 +02:00
Oliver Eyton-Williams
39857b5aa4 test(api): schema security (#50413)
* test: confirm all schemas pass basic validation

* refactor: use tested schemas in routes

* chore: move ajv to dev deps
2023-05-24 09:31:13 -07:00
renovate[bot]
b48d12714a fix(deps): update dependency @sinclair/typebox to v0.26.6 (#49855)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-04-03 09:13:36 +00:00
Oliver Eyton-Williams
a128dd8fcd chore(api): compile TS into /dist (#49812
* chore: compile TS into /dist

Having the output co-located with the source meant that the js would be
imported by default. Given that we don't recompile on source changes,
this means the server got 'stuck' at the point of compilation and would
only register changes on build.

Also, compiling to a dist directory should make it easier to build when
we want to deploy. That said, the motivation is mostly DX.

* fix: put schema.prisma in the default location
2023-03-28 19:42:20 +05:30