Commit Graph

  • ea7fde0abf Merge branch 'dev' into rewrite Jonathan Barrow 2023-04-29 21:00:23 -04:00
  • 19a802181e Merge pull request #21 from PretendoNetwork/rewrite-jon Jonathan Barrow 2023-04-29 20:55:13 -04:00
  • 56f248981e Use new account server token format Jonathan Barrow 2023-04-28 17:02:06 -04:00
  • 9a25a7a9a2 Added test and dev subdomains to discovery Jonathan Barrow 2023-04-28 16:36:20 -04:00
  • 436e5f3bd9 Removed account server DB, now uses gRPC Jonathan Barrow 2023-04-28 14:13:03 -04:00
  • 1b76eb967b Added missing Settings.json method Jonathan Barrow 2023-04-26 12:20:23 -04:00
  • 26f309e2b9 Fixed /v1/people crashing when distinct_pid=1 Jonathan Barrow 2023-04-26 12:04:27 -04:00
  • d68f0c37d9 Added separateArrayItems: true to XML generation for responses with lists Jonathan Barrow 2023-04-26 11:17:48 -04:00
  • c243347adb Spelling mistake in test script Jonathan Barrow 2023-04-26 11:13:43 -04:00
  • 4c61c89fd7 Move error 16 directly after error 15 in auth middleware Jonathan Barrow 2023-04-26 11:13:15 -04:00
  • 7ef9147c6c Add topics to topics list Jonathan Barrow 2023-04-26 11:12:20 -04:00
  • bd8b249246 Merge branch 'rewrite-jon' of https://github.com/PretendoNetwork/olv-api into rewrite-jon Jemma Poffinbarger 2023-04-26 00:25:48 -05:00
  • dbd8f44831 Updated community test case to also validate error response formatting Jemma 2023-04-26 00:25:23 -05:00
  • a8d57fb487 Added xml errors to communities.ts Jemma Poffinbarger 2023-04-26 00:23:29 -05:00
  • cf7c71f40b Added individual errors in the auth middleware Jemma Poffinbarger 2023-04-25 23:09:22 -05:00
  • 8651e8cfd7 Removed unused dev depend Jonathan Barrow 2023-04-25 19:25:49 -04:00
  • e5870d685d Updated tests to have cleaner output Jonathan Barrow 2023-04-25 19:22:18 -04:00
  • fbfc406c58 Added PP_ACPlaza to newman tests Jonathan Barrow 2023-04-25 17:22:35 -04:00
  • a9e2a6fb4b Fixed collections being swapped Jonathan Barrow 2023-04-25 16:09:28 -04:00
  • 6f0f9dcf4d Renamed appID to communityID in communities/:id/posts to better match usage Jonathan Barrow 2023-04-25 16:01:54 -04:00
  • 510e75dc38 Replace rm -rf with rimraf Jonathan Barrow 2023-04-25 15:58:44 -04:00
  • 11fb673fc8 Added the start of unit tests Jonathan Barrow 2023-04-25 15:57:44 -04:00
  • dc040731bb Added optional remaster_version field to ParamPack Jonathan Barrow 2023-04-25 15:57:14 -04:00
  • ea41488347 Added missing result elements to some responses Jonathan Barrow 2023-04-25 15:01:46 -04:00
  • d1fb023869 Removed unused XML parsing middleware Jonathan Barrow 2023-04-25 09:34:38 -04:00
  • 36bda89508 Merge pull request #23 from PretendoNetwork/rewrite Jonathan Barrow 2023-04-25 01:20:07 -04:00
  • 69ffa6f074 Merge pull request #22 from PretendoNetwork/postman Jemma 2023-04-24 23:54:28 -05:00
  • 180091aca0 Added initial support for api testing via postman Jemma 2023-04-24 23:52:29 -05:00
  • 6e86498981 Added types to modules without types Jonathan Barrow 2023-04-24 23:37:36 -04:00
  • 5d924b45f1 Removed unused and updated vulnerable dependencies Jonathan Barrow 2023-04-24 22:06:08 -04:00
  • 28651873d7 Removed object-to-xml in favor of only using xmlbuilder Jonathan Barrow 2023-04-24 16:37:18 -04:00
  • 4664d9fe05 Removed XMLResponseGenerator class in favor of Mongoose Schema methods Jonathan Barrow 2023-04-24 16:29:04 -04:00
  • c869b3ae36 Moved generatePostUID to Model method to prevent possible ID collisions Jonathan Barrow 2023-04-24 11:57:15 -04:00
  • 4ae2317c83 Use Model.create instead of new Model with Mongoose Jonathan Barrow 2023-04-24 11:25:38 -04:00
  • 4de3856a25 use response.status() method and not response.statusCode setter Jonathan Barrow 2023-04-24 11:12:44 -04:00
  • 05ba27793a Always set content-type for all routes & use response.type method Jonathan Barrow 2023-04-24 11:10:29 -04:00
  • 72285ee221 Cleaner server start function Jonathan Barrow 2023-04-23 19:55:54 -04:00
  • 37d14b16d5 split api and discovery services Jonathan Barrow 2023-04-23 19:51:58 -04:00
  • d45f6d1104 Fixed linting issues Jonathan Barrow 2023-04-23 19:43:28 -04:00
  • 106b581fe3 Full conversion to TypeScript Jonathan Barrow 2023-04-23 19:32:42 -04:00
  • c13383812e Updated logger and logs path Jonathan Barrow 2023-04-22 17:11:23 -04:00
  • 442c20ed67 Fixed build failures Jonathan Barrow 2023-04-22 17:09:21 -04:00
  • 93008c5a1a Removed JSON config, moved to env vars Jonathan Barrow 2023-04-22 11:03:51 -04:00
  • f70cd34406 Barebones move to TypeScript Jonathan Barrow 2023-04-22 10:17:33 -04:00
  • defdd35f4b Added linter config Jonathan Barrow 2023-04-21 10:17:45 -04:00
  • 20ddd11761 updated gitignore Jonathan Barrow 2023-04-21 10:08:59 -04:00
  • c3759db11b Begin move to TS Jonathan Barrow 2023-04-21 10:07:54 -04:00
  • 471a1efb23 Merge pull request #20 from EpicUsername12/rewrite-post-sub-communities Jonathan Barrow 2023-04-21 09:43:02 -04:00
  • 75b3b1d6b1 Forgot to await the community save() EpicUsername12 2023-04-20 06:04:49 +02:00
  • 7eaede2fee Removed log EpicUsername12 2023-04-20 03:40:31 +02:00
  • 70697b93f0 Base 'POST: /v1/communities' EpicUsername12 2023-04-20 03:40:05 +02:00
  • 63f1b43986 Moved 'multer' to non-dev depedencies EpicUsername12 2023-04-20 03:39:38 +02:00
  • 7c0770b330 Early version of /v1/communities EpicUsername12 2023-04-20 03:21:34 +02:00
  • 6d2eef8b0f Fixed in-game messages creating broken conversations Jemma Poffinbarger 2023-04-17 23:59:25 -05:00
  • aeb07a2f38 Fixed topics and communities response Jemma Poffinbarger 2023-04-16 18:18:16 -05:00
  • 58f11a21b1 Fixed /v1/topics timing out. Updated post ID length Jemma Poffinbarger 2023-04-16 16:13:32 -05:00
  • 9acc8b13f4 Updated schema. Fixed request for friends not working. Added check to discovery server on auth to reject other requests when discovery is closed. Jemma Poffinbarger 2023-04-16 02:36:21 -05:00
  • f50bf61abf Updated post ID format and removed legacy methods on post model Jemma 2023-04-14 14:37:32 -05:00
  • d916accfc2 Updated example config to reflect new friends keys Jemma 2023-04-12 10:32:12 -05:00
  • bd855421c2 Added support for getting posts from friends in /v1/people Jemma 2023-04-12 10:30:00 -05:00
  • 831fcb2bc0 Added friends list request. Refactored util document. Code cleanup Jemma 2023-04-12 10:13:51 -05:00
  • 6aa22c8c31 Added support for 'type=memo' flag in community posts Jemma Poffinbarger 2023-04-10 22:01:10 -05:00
  • 448736d4ae Added support for topic tags. fixed parent community id's not being strings (???) Jemma Poffinbarger 2023-04-06 22:39:49 -05:00
  • 0c3903035c Update communities.js Jemma 2023-04-06 02:10:01 -05:00
  • 32ea68b549 Adjusted parameters for /v1/people response. Check for empty post content. Re-enable support for WWP Jemma Poffinbarger 2023-04-06 01:16:22 -05:00
  • 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 Jemma Poffinbarger 2023-04-05 22:41:08 -05:00
  • 0bab90ed09 Added updated query for topics to update based on recent posts in communities Jemma 2023-04-04 20:46:28 -05:00
  • e35ceeb4b4 Refactored xml generation class to be more streamlined. Added support for storing screenshot length in database. Jemma 2023-04-04 20:17:13 -05:00
  • 3b1db444e6 Added /v1/posts.search endpoint Jemma 2023-04-04 18:50:53 -05:00
  • 3d9104eca2 Fixed communities request for AC Plaza. Fixed replies endpoint timing out when requesting replies that did not contain app data Jemma Poffinbarger 2023-04-01 22:02:23 -05:00
  • 6a61f9e0bc Fixed communities request. Added support for post replies. Jemma Poffinbarger 2023-03-30 23:51:15 -05:00
  • e896483001 Fixed app_id query not being assigned to another in the new post endpoint Jemma Poffinbarger 2023-03-26 13:52:26 -05:00
  • 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 Jemma Poffinbarger 2023-03-26 13:22:28 -05:00
  • 04328fe487 added support for fetching community posts with non-standard community ID Jemma Poffinbarger 2023-03-26 12:13:53 -05:00
  • 8e37511331 Updated discovery version to 1 (sorry shutter :p) poffinbargej 2023-03-24 10:31:40 -05:00
  • c6a8d8dba9 removed auth bypass for topics endpoint Jemma 2023-03-23 22:15:50 -05:00
  • a7d28f155b Added topics flag to database Jemma 2023-03-23 22:05:31 -05:00
  • 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. Jemma Poffinbarger 2023-03-21 23:46:08 -05:00
  • 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. Jemma Poffinbarger 2023-03-20 21:40:55 -05:00
  • a3799e8a11 Fixed in-game posts from not displaying. Fixed submitting drawing posts in game. Updated dependencies Jemma Poffinbarger 2023-03-05 17:15:19 -06:00
  • e9fd02b81a Merge pull request #15 from PretendoNetwork/dependabot/npm_and_yarn/minimist-1.2.7 Jemma 2022-12-07 09:31:35 -06:00
  • 652e0001b3 Bump minimist from 1.2.5 to 1.2.7 dependabot[bot] 2022-12-07 15:31:05 +00:00
  • 33674103dc Merge pull request #12 from PretendoNetwork/dependabot/npm_and_yarn/moment-timezone-0.5.35 Jemma 2022-12-07 09:30:56 -06:00
  • 8975e6243a Merge pull request #13 from PretendoNetwork/dependabot/npm_and_yarn/qs-6.5.3 Jemma 2022-12-07 09:30:35 -06:00
  • 2af92d5908 Bump qs from 6.5.2 to 6.5.3 dependabot[bot] 2022-12-07 15:29:13 +00:00
  • 2ed94634eb updated post body filter Jemma Poffinbarger 2022-11-19 21:11:07 -06:00
  • f3aba68423 Updated auth flow to properly route discovery traffic when the user is signed in Jemma Poffinbarger 2022-11-19 14:34:05 -06:00
  • 57a7c698fc Added filter to prevent invalid characters from showing up in the body of API responses CaramelKat 2022-10-03 21:30:26 -05:00
  • ec9664d125 Updated to support removed post flag. updated title id's variable for topics and posts requests CaramelKat 2022-09-19 21:36:17 -05:00
  • dae68dfc67 Fixed post ID's not working in WaraWara. Added status endpoint to check server status Jemma Poffinbarger 2022-09-17 19:52:43 -05:00
  • a33b30af63 Updated auth to let discovery work without a param pack. Began implemented users endpoint. Added missing parameters to the message object Jemma Poffinbarger 2022-09-17 17:35:49 -05:00
  • a13a817919 Fixed posting error from games CaramelKat 2022-09-05 09:13:17 -05:00
  • ae9649d72a Temporally disabled friend messages until a replacement dependency can be tested and implemented to prevent a server crash Jemma Poffinbarger 2022-08-31 20:04:04 -05:00
  • 26b0a22b8d Bump moment-timezone from 0.5.28 to 0.5.35 dependabot[bot] 2022-08-31 00:59:53 +00:00
  • 035c4e0a23 This was too long in the making, and I've already made too many changes to list here. The Great rewrite begins! CaramelKat 2022-08-28 20:45:09 -05:00
  • fcb375fe75 Merge pull request #11 from PretendoNetwork/add-license Jemma 2022-08-16 13:44:00 -05:00
  • 29effc635e Create LICENSE Jemma 2022-08-16 10:19:45 -05:00
  • 44ceda860c Merge pull request #9 from PretendoNetwork/docker Jemma 2022-05-08 10:16:22 -05:00
  • 6b3447dd6b add logs to ignore files mrjvs 2022-05-08 16:28:12 +02:00
  • 33f6f33154 modify code to support config.json in root of repo mrjvs 2022-05-08 15:37:25 +02:00