Commit graph

55 commits

Author SHA1 Message Date
SleeplessOne1917
fa1c032835
Make private class properties actually private (#128)
* Make private class properties actually private

* Update version in package.json
2023-06-05 19:32:23 -04:00
Anon
d866cae686 Remove BigInt 2023-06-04 20:46:09 -05:00
Dessalines
d886904888
Better error wrapping. (#126)
* Better error wrapping.

* Simplifying

* Moving return to else.
2023-05-29 22:28:26 -04:00
Dessalines
882b511372
MarkCommentReplyAsRead response was wrong. (#125) 2023-05-26 16:11:33 -04:00
Dessalines
79df2a5ca8
Add missing response types in http client. (#124) 2023-05-24 23:13:03 -04:00
Dessalines
6577342793
Merge branch 'main' into add_error_message_as_exception 2023-05-23 20:43:26 -04:00
412f9936e4 Adding new distinguish comment. 2023-05-23 16:43:17 -04:00
e19c60e341 Switching to const. 2023-05-21 22:56:35 -04:00
3307940dbe Making the error json into an exception. 2023-05-21 22:45:44 -04:00
Dessalines
9439d2a5a9
Fixing bigint serialization. (#120) 2023-05-15 12:23:50 -04:00
SleeplessOne1917
c66211f7c9
Fix body not serializing because of bigint (#119)
* Fix body not serializing because of bigint

* Use cleaner JSON handling
2023-05-12 09:07:54 -04:00
Dessalines
68f0b8152f
Upgrading deps (#117)
* Upgrading deps

* Upgrading node
2023-05-10 11:15:51 -04:00
Dessalines
431b34e938
Adding support for federated instances. Fixes #115 (#116) 2023-05-10 11:02:29 -04:00
Dessalines
0078d575b3
Adding bindings from rust. Fixes #113 (#114)
* Adding bindings from rust. Fixes #113

* v0.17.2-rc.7

* v0.17.2-rc.8

* v0.17.2-rc.9

* Trying encode 1

* v0.17.2-rc.10

* Nixing encode

* Switching to old comment GetPost.

* v0.17.2-rc.11
2023-05-02 17:15:36 -04:00
SleeplessOne1917
533e222a0c
Add getComment to client (#111) 2023-04-12 19:48:54 -04:00
SleeplessOne1917
de4414b877 feat: add image upload method to http client (#108)
* feat: add image upload method to http client

* fix: Make files optional on UploadImageResponse

* fix: Fix comment typo

* fix: replace loose equals with strict equals

* fix: Remove useless awaits

* fix: Add explicit return types to image upload helper functions

* fix: Include client headers in image upload request

* fix: Change type of uploadImage arg to File | Buffer instead of Blob | Buffer

* doc: Add doc string

* refactor: Switch to using cross-fetch instead of node-fetch v3

* chore: remove unnecessary asyncs
2023-03-27 12:24:50 -04:00
Anon
13ed39d527 Fixes for monads 2023-01-31 19:05:46 -06:00
Anon
50285bd049 Add custom emojis 2023-01-31 19:05:46 -06:00
Dessalines
8065620cb5
Removing monads. Fixes #98 (#99)
* Removing monads. Fixes #98

* Fixing http get params

* In encode get params, dont serialize the undefineds.

* v0.17.0-rc.60
2023-01-04 11:29:06 -05:00
Anon
60c5c85cd7
Add FeaturePost support (#88)
* Add FeaturePost support

* Make featured not optional
2022-12-11 10:20:01 -05:00
Dessalines
00189a6462
Private message report (#78)
* Adding private message reporting.

* v0.17.0-rc.46
2022-09-27 22:57:11 -04:00
Dessalines
54bc5139ee
Starting to add comment tree paging (#70)
* Starting to add comment tree paging

* Switching comment_read to mark_comment_reply_read.

* Finishing up comment tree paging.

* v0.17.0-rc.35

* Get rid of circular dependency

* Upgrade deps

* v0.17.0-rc.36

* Fix deserializing non HTTP gets

* v0.17.0-rc.37
2022-07-29 23:33:06 -04:00
Dessalines
e7f5a5d05f
Admin purge (#35)
* Adding admin purge to API.

* v0.13.4-rc.2

* v0.17.0-rc.10

* v0.17.0-rc.12

* Fixing a few purge issues.

* v0.17.0-rc.33
2022-06-23 14:50:20 -04:00
Dessalines
adf324df19
Remove save and get SiteConfig. Fixes #68 (#69)
* Remove save and get SiteConfig. Fixes #68

* v0.17.0-rc.32
2022-06-23 09:59:12 -04:00
Dessalines
36103fbca0
Add option types (#67)
* Testing some option types over the API.

* v0.17.0-rc.6

* Removing a few to better test.

* v0.17.0-rc.7

* Simpler again.

* v0.17.0-rc.8

* Trying swan.io boxed

* v0.17.0-rc.13

* Trying option-t

* v0.17.0-rc.14

* Adding rust-style Options using @sniptt/monads

- Also added serialization with class-transformer

* v0.17.0-rc.15

* Trying to fix encodeGetParams.

* v0.17.0-rc.16

* Trying to fix encodeGetParams 2.

* v0.17.0-rc.17

* Using init constructors.

* v0.17.0-rc.18

* v0.17.0-rc.19

* Add more type info.

* v0.17.0-rc.20

* Adding reflect-metadata

* v0.17.0-rc.21

* Adding type to siteview.site

* v0.17.0-rc.22

* Adding rest of nested types.

* v0.17.0-rc.23

* Adding toOption function.

* v0.17.0-rc.24

* Trying to fix send.

* v0.17.0-rc.25

* Try to stringify jsonres.

* v0.17.0-rc.26

* Try to stringify jsonres 2.

* v0.17.0-rc.27

* Adding toOption function.

* v0.17.0-rc.28

* Forgot to type a communityview.

* v0.17.0-rc.29

* Forgot to type a registrationapplicationview.

* v0.17.0-rc.30
2022-06-21 17:42:09 -04:00
Dessalines
a03b88ccab
Revert "Add follow pending. (#52)" (#63)
This reverts commit 57de18c17e.
2022-05-26 10:47:40 -04:00
Dessalines
357bf2f011
Adding mark post as read. Fixes #36 (#57) 2022-05-22 15:46:20 -04:00
Dessalines
07919905c3
Adding endpoint comments. Fixes #50 (#56) 2022-05-22 15:45:53 -04:00
Dessalines
57de18c17e
Add follow pending. (#52)
* Add follow pending.

* v0.17.0-rc.1

* Make follower optional.

* v0.17.0-rc.2

* Pending is now required.

* v0.17.0-rc.3
2022-05-22 15:44:30 -04:00
Dessalines
9f4a112a18
Removing site_creator, adding LeaveAdmin. (#42)
* Removing site_creator, adding LeaveAdmin.

* v0.15.1-rc.1
2022-03-01 11:54:51 -05:00
Dessalines
e201e1c1b4
Adding bannedpersons endpoint. (#41) 2022-01-06 11:19:36 -05:00
Dessalines
c4827a62c0
Adding private instance related endpoints. (#38)
* Adding private instance related endpoints.

* Running prettier.

* v0.15.0-rc.1

* v0.15.0-rc.2

* Remove VerifyEmailResponse

* v0.15.0-rc.3

* Revert "Remove VerifyEmailResponse"

This reverts commit 49713c23c6.

* Add optional auth to modlog.

* v0.15.0-rc.6
2021-12-30 10:27:05 -05:00
Dessalines
5e4ff291c5
Upgrade deps 2 (#39)
* Upgrade deps

* Running prettier.
2021-12-06 14:44:10 -05:00
Dessalines
52b456827d
Get unread count (#34)
* Adding GetUnreadCount

* v0.13.4-rc.1
2021-10-17 13:42:40 -04:00
81ff3d4137 Upgrade deps 2021-09-28 12:08:22 -04:00
Dessalines
7758a7772e
Updating reporting API. (#32)
* Updating reporting API.

* v0.12.3-rc.1

* Fix names

* v0.12.3-rc.2

* Adding creator_banned and counts to report views

* v0.12.3-rc.3

* Adding unresolved_only

* v0.12.3-rc.4

* Adding my_vote to report views

* v0.12.3-rc.5

* Fix comment
2021-09-28 10:38:49 +00:00
Dessalines
f32772c2e1
Resolve endpoint (#28)
* Adding ResolveObject to the API. Fixes #27

* v0.11.4-rc.13

* v0.11.4-rc.14

* Forgot to add the websocket

* v0.11.4-rc.15
2021-08-23 16:15:24 -04:00
Dessalines
8f35e63b3a
Adding typedoc, and code comments. Fixes #29 (#30) 2021-08-22 21:01:40 -04:00
Dessalines
a0b3f7606b
Adding block person and block community actions (#22)
* Adding block person and block community actions

* Forgot creator_blocked from views

* Adding creator_blocked to PersonMentionView

* Moving blocked and follows to MyUserInfo

* Change to local_user_view

* Add moderates to MyUserInfo

* Adding blockcommunityresponse

* rename recipient to target
2021-08-19 20:49:15 -04:00
Dessalines
a408457bcf
Adding GetSiteMetadata (#26)
* Adding GetSiteMetadata

* v0.11.4-rc.11
2021-08-19 11:14:39 -04:00
0ef7f5001c Adding change password endpoint. 2021-04-01 17:35:37 -04:00
9be225add3 Including API version in HTTP constructor. 2021-03-29 10:29:27 -04:00
0012c349a2 Merge branch 'main' into split_user_table_2 2021-03-22 10:46:52 -04:00
Marcin Wojnarowski
0456ad6a1c
Fix markAllAsRead response type
As per 4b92e35edc/crates/api/src/local_user.rs (L902)
2021-03-21 20:51:40 +01:00
c836a28a97 Fixing saveusersettings 2021-03-12 14:03:44 -05:00
a7937e53f2 Update API to deal with new person table. Fixes #7 2021-03-12 13:22:16 -05:00
71a451fa60 Remove categories 2021-03-03 16:28:55 +01:00
9bd5dab517 Adding some comments. 2021-01-24 12:37:04 -05:00
e4b54162a4 Making a few API v2 changes. 2021-01-18 16:45:43 -05:00
7ba95c72f3 Use proper generics for messagetype and responsetype. 2020-12-20 14:21:26 -05:00