Niraj Nandish
f442145731
feat(api): backend challenge submission endpoint ( #50949 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-07-19 21:02:13 +02:00
Niraj Nandish
260d64a0ed
fix(api): getChallenges helper function ( #51011 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-07-19 13:10:32 +02:00
Oliver Eyton-Williams
6419daa038
fix(api): specify use of Int32 for small ints ( #50971 )
...
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com >
2023-07-18 11:03:49 +02:00
Oliver Eyton-Williams
5482650dd0
feat(api): project-completed ( #50701 )
...
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com >
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com >
2023-07-17 12:03:17 +04:00
renovate[bot]
8dea66d7b0
chore(deps): update dependency @fastify/type-provider-typebox to v3.3.0
2023-07-15 06:24:25 +00:00
Oliver Eyton-Williams
6e787d3336
feat(api): add /user/get-session-user ( #50557 )
...
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com >
2023-07-11 16:28:56 +00:00
renovate[bot]
03323180fd
chore(deps): update jest monorepo to v29.6.1
2023-07-09 04:51:55 +00:00
renovate[bot]
9105945b97
fix(deps): update dependency jsonwebtoken to v9.0.1
2023-07-09 00:13:51 +00:00
renovate[bot]
c5c02ce8a9
fix(deps): update dependency fastify to v4.19.2
2023-07-08 19:34:31 +00:00
renovate[bot]
8512ef948a
chore(deps): update dependency pino-pretty to v10.0.1
2023-07-08 12:07:19 +00:00
Sem Bauke
e32f0c83f1
chore(api): builduser update function ( #50642 )
...
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com >
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com >
2023-07-04 22:10:22 +02:00
renovate[bot]
10204613b9
fix(deps): update dependency fastify to v4.19.1
2023-07-02 18:44:15 +00:00
renovate[bot]
c94cd4e58e
fix(deps): update dependency fastify to v4.19.0
2023-07-02 07:37:56 +00:00
renovate[bot]
8763713907
fix(deps): update prisma monorepo to v4.16.2
2023-07-02 01:49:34 +00:00
renovate[bot]
986fa8c9a1
chore(deps): update dependency ts-jest to v29.1.1
2023-07-01 12:03:02 +00:00
renovate[bot]
e6b88035cf
fix(deps): update dependency jsonwebtoken to v9 [security] ( #50837 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-30 17:36:48 +05:30
Oliver Eyton-Williams
16c0949a4b
feat(api): user/user-token ( #50721 )
...
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com >
2023-06-29 10:36:44 +00:00
Oliver Eyton-Williams
ca1b6a230a
fix(api): require CSRF token for user routes ( #50684 )
2023-06-28 00:04:49 +05:30
renovate[bot]
ca581d395c
fix(deps): update prisma monorepo to v4.16.1
2023-06-25 07:52:07 +00:00
Muhammed Mustafa
ea45dc84b7
feat(api): add :email unsubscribe/:email to the deprecated ( #50497 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-06-22 10:25:40 -05:00
Muhammed Mustafa
01ae9d3561
feat(api): add update-my-about endpoint ( #50334 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
Co-authored-by: Sem Bauke <semboot699@gmail.com >
2023-06-15 13:15:58 +02:00
Sem Bauke
f3385dda8e
feat: /status/ping endpoint ( #50697 )
2023-06-14 19:27:10 +04:00
renovate[bot]
99782e4ede
fix(deps): update dependency fastify to v4.18.0
2023-06-11 03:56:47 +00:00
Oliver Eyton-Williams
65239ee68b
feat(api): allow redirection with message ( #50525 )
...
Co-authored-by: Muhammed Mustafa <MuhammedElruby@gmail.com >
2023-06-07 15:30:12 +02:00
Oliver Eyton-Williams
962f45475c
fix(api): improve schema accuracy ( #50626 )
2023-06-07 14:08:37 +02:00
Sem Bauke
754ae54387
feat: add /add-donation endpoint ( #50441 )
...
Co-authored-by: Muhammed Mustafa <MuhammedElruby@gmail.com >
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-06-07 14:04:32 +02:00
Oliver Eyton-Williams
30419c2e20
refactor: register fastify-sentry directly ( #50622 )
2023-06-06 13:45:12 +02:00
renovate[bot]
b16f7fe042
fix(deps): update prisma monorepo to v4.15.0
2023-06-04 01:52:16 +00:00
Muhammed Mustafa
e368410c89
feat(api): deprecate get account endpoint ( #50419 )
2023-06-02 08:09:54 +02:00
Sem Bauke
c5deeccd3f
feat: update my username endpoint ( #50271 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-06-02 07:04:50 +02:00
Niraj Nandish
8171abfa6d
feat(api): reset progress endpoint ( #50432 )
...
---------
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-05-26 11:26:26 +03:00
Niraj Nandish
a4ab0b4e18
chore: move update socials schema ( #50506 )
...
* chore: move update scoials schema
* fix: set maxLength value to satisfy tests
2023-05-24 11:57:19 -07:00
Oliver Eyton-Williams
2f77513a6a
fix(api): update new api schema ( #50500 )
...
* fix(api): remove unused parts of schema
isX are unused and prisma does not care what's in the db if you do not
ask for it.
* fix: add isCollegeAlgebraPyCertV8
2023-05-24 20:37:57 +03: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
Oliver Eyton-Williams
4cfd03224d
fix(api): cleanup test dbs after use ( #50466 )
2023-05-24 15:16:31 +02:00
Niraj Nandish
94534382ae
fix(api): rename account delete endpoint ( #50485 )
2023-05-23 21:37:29 -07:00
renovate[bot]
78f31aa966
fix(deps): update prisma monorepo to v4.14.1
2023-05-20 15:42:06 +00:00
Muhammed Mustafa
1e6b3cfa70
refactor(test): remove extra undefined mark ( #50428 )
2023-05-18 10:40:31 -07:00
Muhammed Mustafa
2fdaeaf550
fix(api): socials endpoint test ( #50423 )
...
fix(api): uocials endpoint textt
2023-05-18 14:08:40 +00:00
Niraj Nandish
999d8a6c03
feat(api): create account delete endpoint ( #50304 )
...
* feat(api): create account delete endpoint
---------
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-05-18 17:01:21 +03:00
Muhammed Mustafa
885cf86cd6
feat(api): add socials links endpoint ( #50332 )
...
* feat(api): add socials links endpoint
* Sort the typo in body call
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com >
* Revert "Sort the typo in body call"
This reverts commit 0588d3d70d .
---------
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com >
2023-05-18 17:29:43 +04:00
Muhammed Mustafa
9e905b58e1
feat(api): add json protocol to prisma client ( #50418 )
2023-05-18 17:16:53 +04:00
Oliver Eyton-Williams
c3c912db07
feat(api): add csrf protection ( #50275 )
...
Co-authored-by: Sboonny <muhammed@freecodecamp.org >
2023-05-18 17:06:40 +05:30
Oliver Eyton-Williams
df12c72f46
test: stop mocking FREECODECAMP_NODE_ENV ( #50406 )
...
While this lets us write slightly better tests, I don't think it's worth
the extra complexity. For example, it interferes with the creation of
test databases. We could work around this, but I'd rather keep things
simple.
2023-05-17 22:36:22 +04:00
Niraj Nandish
5bc14c21b9
feat: deprecated endpoint ( #50403 )
...
* feat: deprecated endpoints
2023-05-17 10:24:57 +03:00
renovate[bot]
0fef335292
fix(deps): update dependency @immobiliarelabs/fastify-sentry to v6 ( #50388 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-16 15:21:28 -07:00
Oliver Eyton-Williams
f6df0f3aed
docs: improve new api's mongodb setup guide ( #50392 )
...
* docs: improve new api's mongodb setup guide
* docs: give example variable
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com >
* Update api/README.md
---------
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com >
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com >
2023-05-16 20:04:41 +04:00
Naomi Carrigan
cdcea13d5f
fix(tools): api settings test ( #50394 )
2023-05-16 07:32:17 +03:00
Shaun Hamilton
651e1905fd
chore(api): pull prod db schema ( #49735 )
...
* chore(api): pull prod db schema
* manual user model schema
* adjust json types
* temp: fix object type
* adjust schema with Json types
* fix: oliver found my bugs 🐛
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
* ttl to int, remove github from user
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
* fix: remove unused parts of the prisma schema
---------
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-05-16 07:28:39 +03:00
Niraj Nandish
032f9d95ae
feat(api): add update privacy terms endpoint ( #50300 )
...
* feat: move update privacy terms route
* test: update privacy terms route tests
* feat: add /settings prefix to settings route
* fix: updated routes in tests
* Revert "fix: updated routes in tests"
This reverts commit 4a1305e135 .
* Revert "feat: add /settings prefix to settings route"
This reverts commit 2a0d4566fe .
2023-05-15 13:21:32 -07:00