Commit graph

212 commits

Author SHA1 Message Date
Dessalines
b4f1bbcd63
Add totp token (#192)
* Adding new TOTP generate and update methods. Fixes #191

* Fix husky mode.
2023-09-27 14:55:29 +00:00
maarten.vercruysse
20587370ab Fix conflict issues 2023-09-26 18:40:22 +02:00
Maarten Vercruysse
a4d56f1133
Merge branch 'main' into add_int_visibility 2023-09-26 13:24:06 +02:00
Dessalines
ab7af88a2b
Removing auth and useless interfaces. (#181)
* Removing auth and useless interfaces.

* v0.19.0-rc.8

* v0.19.0-rc.10

* Changing jwt cookie to auth.

* Adding a few types merged from main.

* v0.19.0-rc.11

* Adding blockInstance fn.

* v0.19.0-rc.12
2023-09-25 21:47:28 -04:00
maarten.vercruysse
8f9fe6e435 type changes 2023-09-23 01:13:26 +02:00
SleeplessOne1917
61d4dbabea
Merge branch 'main' into add_community_hide 2023-09-18 19:47:24 -04:00
576b4b85d9 Adding a set header function. 2023-09-18 18:46:53 -04:00
51b17fe7f9 Adding hide community. Fixes #183 2023-09-18 18:08:34 -04:00
Dessalines
4439d22157
Adding block instance. (#178)
* Adding block instance.

- https://github.com/LemmyNet/lemmy/pull/3869

* v0.19.0-rc.4

* Forgot to add types.

* v0.19.0-rc.5

* Fixing optional site issue.
2023-09-06 08:28:00 -04:00
973b255c82 Updating moderator_view. 2023-08-29 15:53:23 -04:00
biosfood
981c866930 change moderator view to be a listing type 2023-07-31 12:01:53 +02:00
Dessalines
c77ee9ee16
Adding some additions from main. (#171) 2023-07-26 15:23:11 -04:00
SleeplessOne1917
b5355233fd
Generate error enum types (#161)
* Generate error enum types

* Remove unnecessary newline

* Catch errors not covered by LemmyErrorType

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-17 11:37:53 -04:00
SleeplessOne1917
ef5757dab5
Merge branch 'main' into update_prettier_3_0_0 2023-07-14 20:46:40 +00:00
Domenic Horner
0c1483f9fd
changes for blur_nsfw/auto_expand (#162)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-12 08:55:29 -04:00
Dessalines
120d1e8103
Adding moderator_view to GetPosts. (#166) 2023-07-12 08:37:57 -04:00
33519b2be7 Upgrade prettier. 2023-07-12 08:37:34 -04:00
Dessalines
8fa91b55bb
Add open links in new tab. (#160) 2023-07-03 18:38:57 -04:00
Sander Saarend
d497a1efea
Handle 413 response on image uploads (#154)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 17:59:54 -04:00
39d27b04d0 Add show_nsfw community sort. 2023-06-29 16:56:27 -04:00
SleeplessOne1917
f577df0a07
Make fetch function optional (#148) 2023-06-26 18:35:23 -04:00
Dessalines
ef5609dec9
Adding additional post sorts. (#153) 2023-06-26 16:34:43 -04:00
Cavanaugh Richards
b5fdfa6513
Add default object to client functions where the form data or query is optional 2023-06-23 12:16:57 -05:00
Cavanaugh Richards
9b73693910
Run prettier 2023-06-23 12:16:57 -05:00
Cavanaugh Richards
ea8cab69f4
Add default value to encodeGetParams body type param.
Fixes #146
2023-06-23 12:16:56 -05:00
Dessalines
4553c749cb
Removing websocket. (#145) 2023-06-21 11:40:11 -04:00
Ivo Barros
3a2a645487 add ending empty line 2023-06-20 22:37:59 +01:00
Ivo Barros
6b603d42b7
Merge branch 'main' into hour-sort-types 2023-06-20 22:26:29 +01:00
Ivo Barros
27d84695a2 Add Hour Sort types 2023-06-20 22:24:54 +01:00
SleeplessOne1917
389772ea75
Merge branch 'main' into custom-fetchinator 2023-06-20 17:59:05 +00:00
Dessalines
4116422023
Adding some 0.18.0 changes. (#138) 2023-06-16 10:30:50 -04:00
SleeplessOne1917
6e1c4162d1
Merge branch 'main' into custom-fetchinator 2023-06-15 15:50:20 +00:00
Gingka/Ginger Pepper
6ea0d653c4
DERP, forgot to actually set #fetchFunction 2023-06-14 21:45:11 -04:00
Gingka/Ginger Pepper
802bbeda1b
remove trailing slashes from instance url 2023-06-14 15:22:11 -04:00
Gingka/Ginger Pepper
44288b92ee
add support for a custom fetch function (closing #2) 2023-06-14 15:08:52 -04:00
22b0777f51 Add taglines to site response. 2023-06-06 09:06:58 -04:00
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
402aba2d38
Remove bigints (#121)
* Alter script to change bigints to numbers

* Run script to convert bigints to numbers
2023-05-15 15:41: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
SleeplessOne1917
40dfb4c3ac
Make script for adding types to index (#118)
* Make script for adding types to index

* Add semicolons to export lines
2023-05-11 13:10:28 -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
Dessalines
cfc1dcf0f4
Adding diesel SortType and ListingType enums. (#112)
* Adding diesel SortType and ListingType enums.

* v0.17.2-rc.6

* Remove comment.
2023-04-17 19:12:56 -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
Dessalines
c13af053f0 Totp (#106)
* Adding TOTP support.

* v0.17.2-rc.2

* Fix name.

* v0.17.2-rc.3
2023-03-27 12:22:28 -04:00
Anon
0c25b7cfd2 Merge remote-tracking branch 'upstream/main' into custom-emojis 2023-02-18 10:25:55 -06:00
Dessalines
dcb849bdd9
Adding email admins for new reports. (#105)
* Adding email admins for new reports.

* v0.17.2-rc.1
2023-02-16 21:06:56 -05: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
8d7f40554a
Fixing requireapplication string. (#104) 2023-01-18 22:13:59 -05: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
81c0be5931
Udate CreateSite/EditSite structs for registration mode (#100) 2023-01-03 14:44:53 -05:00
f3dd61731f
Add LocalSite.registration_mode (#96) 2022-12-29 09:51:34 -05:00
Dessalines
0b6e2af513
Add community language (#85)
* Adding some API fixes.

* v0.17.0-rc.55

* Adding create community discussion languages.

* v0.17.0-rc.57
2022-12-19 10:57:02 -05:00
Anon
60c5c85cd7
Add FeaturePost support (#88)
* Add FeaturePost support

* Make featured not optional
2022-12-11 10:20:01 -05:00
Dessalines
d31d7a0993
Remove federation strict_allowlist and retry_count. Fixes #82 (#83) 2022-11-21 11:49:24 -05:00
Anon
dbc846bb44
Update Taglines pt 2 (#81)
* Add Tagline structs

* updated is an option<string>

* Address PR Comments

* Move taglines to siteres

* Add Type
2022-11-19 19:17:09 -05:00
Anon
14ed320d90
Add Tagline structs (#80)
* Add Tagline structs

* updated is an option<string>

* Address PR Comments
2022-11-18 12:19:56 -05:00
Dessalines
ad5be5ce3a
Move settings to database (#79)
* Adding site settings to DB.

* v0.17.0-rc.47

* Forgot some fields

* v0.17.0-rc.48

* Fixing some missing fields.

* v0.17.0-rc.49

* Fixing some missing fields.

* v0.17.0-rc.50

* Fixing some missing fields 3.

* v0.17.0-rc.51
2022-11-05 15:50:19 -04: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
e57cd12ca8
v0.17.0-rc.40 (#72) 2022-09-27 15:34:53 -04:00
Dessalines
f7d19d1aed
Person post unread comments (#74)
* Add unread post comments.

* v0.17.0-rc.42
2022-09-27 15:32:53 -04:00
Dessalines
c3b76c88b0
Add language (#77)
* Add language_id for user, post, and comment creation.

* v0.17.0-rc.44
2022-09-22 12:52:44 -04:00
ca66e1b8ba
Rename post.embed_html field to embed_video_url (#75)
https://github.com/LemmyNet/lemmy/pull/2261
2022-09-13 17:23:11 -04:00
Anon
c3be80f46c
Add Modlog Filters (#65)
* Add types for Modlog Filters

* Update for optionals
2022-08-17 19:30:14 -04:00
Dessalines
8d0b25d862
Distinguish (#73)
* Add distinguish

* v0.17.0-rc.41
2022-08-17 19:29:58 -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
637ada9f9f
Removing CommunityFollowerResponse, using SubscribedType. (#62)
* Removing CommunityFollowerResponse, using SubscribedType.

* v0.17.0-rc.11
2022-06-22 15:43:00 -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
6bf01146f0
Add legal information (#61)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-05-22 15:48:08 -04:00
Dessalines
44e5c91042
Add default_post_listing_type (#53)
* Add default_post_listing_type

* v0.17.0-rc.4

* Forgot to add to the Site interface.

* v0.17.0-rc.5
2022-05-22 15:47:15 -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
a8f4298f06 Use enum types in API. Fixes #51 2022-05-15 15:26:40 -04:00
Marcin Wojnarowski
7203e3dce6
Remove creator from SiteView (#49) 2022-05-03 18:12:41 +00:00
Dessalines
4e41168488
Adding posting_restricted_to_mods (#48) 2022-04-29 17:21:23 +00:00
4d6be6e9c2
Add site to GetCommunityResponse (#47)
* Add site to GetCommunityResponse

* Add new site fields (fixes #44)
2022-04-25 21:10:02 +00: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
1b31b8ffd2
Add field Site.default_theme in missing places (#46) 2022-02-24 13:18:35 -05:00
a86ade901b
Add field Site.default_theme (#45) 2022-02-23 11:53:29 -05:00
Dessalines
ada672c225
Adding ban_expires to person (#40) 2022-01-09 11:51:16 -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