Commit Graph

118 Commits

Author SHA1 Message Date
Jonathan Barrow
6f0f9dcf4d
Renamed appID to communityID in communities/:id/posts to better match usage 2023-04-25 16:01:54 -04:00
Jonathan Barrow
dc040731bb
Added optional remaster_version field to ParamPack 2023-04-25 15:57:14 -04:00
Jonathan Barrow
ea41488347
Added missing result elements to some responses 2023-04-25 15:01:46 -04:00
Jonathan Barrow
d1fb023869
Removed unused XML parsing middleware 2023-04-25 09:34:38 -04:00
Jonathan Barrow
6e86498981
Added types to modules without types 2023-04-24 23:37:36 -04:00
Jonathan Barrow
28651873d7
Removed object-to-xml in favor of only using xmlbuilder 2023-04-24 16:37:18 -04:00
Jonathan Barrow
4664d9fe05
Removed XMLResponseGenerator class in favor of Mongoose Schema methods 2023-04-24 16:29:04 -04:00
Jonathan Barrow
c869b3ae36
Moved generatePostUID to Model method to prevent possible ID collisions 2023-04-24 11:57:15 -04:00
Jonathan Barrow
4ae2317c83
Use Model.create instead of new Model with Mongoose 2023-04-24 11:25:38 -04:00
Jonathan Barrow
4de3856a25
use response.status() method and not response.statusCode setter 2023-04-24 11:12:44 -04:00
Jonathan Barrow
05ba27793a
Always set content-type for all routes & use response.type method 2023-04-24 11:10:29 -04:00
Jonathan Barrow
72285ee221
Cleaner server start function 2023-04-23 19:55:54 -04:00
Jonathan Barrow
37d14b16d5
split api and discovery services 2023-04-23 19:51:58 -04:00
Jonathan Barrow
d45f6d1104
Fixed linting issues 2023-04-23 19:43:28 -04:00
Jonathan Barrow
106b581fe3
Full conversion to TypeScript 2023-04-23 19:32:42 -04:00
Jonathan Barrow
c13383812e
Updated logger and logs path 2023-04-22 17:11:23 -04:00
Jonathan Barrow
442c20ed67
Fixed build failures 2023-04-22 17:09:21 -04:00
Jonathan Barrow
93008c5a1a
Removed JSON config, moved to env vars 2023-04-22 11:03:51 -04:00
Jonathan Barrow
f70cd34406
Barebones move to TypeScript 2023-04-22 10:17:33 -04:00
EpicUsername12
75b3b1d6b1 Forgot to await the community save() 2023-04-20 06:04:49 +02:00
EpicUsername12
7eaede2fee Removed log 2023-04-20 03:40:31 +02:00
EpicUsername12
70697b93f0 Base 'POST: /v1/communities' 2023-04-20 03:40:05 +02:00
EpicUsername12
7c0770b330 Early version of /v1/communities 2023-04-20 03:21:34 +02:00
Jemma Poffinbarger
6d2eef8b0f Fixed in-game messages creating broken conversations 2023-04-17 23:59:25 -05:00
Jemma Poffinbarger
aeb07a2f38 Fixed topics and communities response 2023-04-16 18:18:16 -05:00
Jemma Poffinbarger
58f11a21b1 Fixed /v1/topics timing out. Updated post ID length 2023-04-16 16:13:32 -05:00
Jemma Poffinbarger
9acc8b13f4 Updated schema. Fixed request for friends not working. Added check to discovery server on auth to reject other requests when discovery is closed. 2023-04-16 02:36:21 -05:00
Jemma
f50bf61abf Updated post ID format and removed legacy methods on post model 2023-04-14 14:37:32 -05:00
Jemma
bd855421c2 Added support for getting posts from friends in /v1/people 2023-04-12 10:30:00 -05:00
Jemma
831fcb2bc0 Added friends list request. Refactored util document. Code cleanup 2023-04-12 10:13:51 -05:00
Jemma Poffinbarger
6aa22c8c31 Added support for 'type=memo' flag in community posts 2023-04-10 22:01:10 -05:00
Jemma Poffinbarger
448736d4ae Added support for topic tags. fixed parent community id's not being strings (???) 2023-04-06 22:39:49 -05:00
Jemma
0c3903035c
Update communities.js 2023-04-06 02:10:01 -05:00
Jemma Poffinbarger
32ea68b549 Adjusted parameters for /v1/people response. Check for empty post content. Re-enable support for WWP 2023-04-06 01:16:22 -05:00
Jemma Poffinbarger
1d64d7621f Fixed bugs in some xml responses for communities and posts. Added support for /v1/people endpoints. Added support for more search queries in posts requests. Fixed country_id not being stored in posts 2023-04-05 22:41:08 -05:00
Jemma
0bab90ed09 Added updated query for topics to update based on recent posts in communities 2023-04-04 20:46:28 -05:00
Jemma
e35ceeb4b4 Refactored xml generation class to be more streamlined. Added support for storing screenshot length in database. 2023-04-04 20:17:13 -05:00
Jemma
3b1db444e6 Added /v1/posts.search endpoint 2023-04-04 18:51:11 -05:00
Jemma Poffinbarger
3d9104eca2 Fixed communities request for AC Plaza. Fixed replies endpoint timing out when requesting replies that did not contain app data 2023-04-01 22:02:23 -05:00
Jemma Poffinbarger
6a61f9e0bc Fixed communities request. Added support for post replies. 2023-03-30 23:51:15 -05:00
Jemma Poffinbarger
e896483001 Fixed app_id query not being assigned to another in the new post endpoint 2023-03-26 13:52:26 -05:00
Jemma Poffinbarger
397c51cc29 Updated community requests to use app ID when searching for posts first, then the community ID. Added additional check to ensure empathy does not go below 0. Added endpoint to mark post as removed. Updated post endpoint to attempt to get the community in the following priority order: community_id -> app_id -> title_id. Updating logging for token parsing issues 2023-03-26 13:22:28 -05:00
Jemma Poffinbarger
04328fe487 added support for fetching community posts with non-standard community ID 2023-03-26 12:14:09 -05:00
poffinbargej
8e37511331 Updated discovery version to 1 (sorry shutter :p) 2023-03-24 10:31:40 -05:00
Jemma
c6a8d8dba9 removed auth bypass for topics endpoint 2023-03-23 22:15:50 -05:00
Jemma
a7d28f155b Added topics flag to database 2023-03-23 22:05:31 -05:00
Jemma Poffinbarger
a0a5e3d32c Fixed crashing on Nintendo Land. Fixed community post responses and app data parsing. Added cache to WWP to (hopefully) help with some performance issues. 2023-03-21 23:46:08 -05:00
Jemma Poffinbarger
71245c41b3 Finished implementing sub-community support. Added support for the followed users endpoint. Fixed a number of inconsistencies in different endpoints. Fixed messages sent via the API not storing the correct Mii face URL. General code cleanup. 2023-03-20 21:40:55 -05:00
Jemma Poffinbarger
a3799e8a11 Fixed in-game posts from not displaying. Fixed submitting drawing posts in game. Updated dependencies 2023-03-05 17:15:19 -06:00
Jemma Poffinbarger
2ed94634eb updated post body filter 2022-11-19 21:11:07 -06:00