lemmy-js-client 0.20.0-alpha.13 → 0.20.0-alpha.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +30 -0
- package/dist/http.js +32 -0
- package/dist/types/LemmyErrorType.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +0 -1
- package/dist/types/Post.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +0 -1
- package/dist/types/Search.d.ts +5 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -140,6 +140,12 @@ import { ListMedia } from "./types/ListMedia";
|
|
140
140
|
import { ListMediaResponse } from "./types/ListMediaResponse";
|
141
141
|
import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
142
142
|
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
143
|
+
import { CreateTagline } from "./types/CreateTagline";
|
144
|
+
import { TaglineResponse } from "./types/TaglineResponse";
|
145
|
+
import { UpdateTagline } from "./types/UpdateTagline";
|
146
|
+
import { DeleteTagline } from "./types/DeleteTagline";
|
147
|
+
import { ListTaglines } from "./types/ListTaglines";
|
148
|
+
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
143
149
|
/**
|
144
150
|
* Helps build lemmy HTTP requests.
|
145
151
|
*/
|
@@ -751,6 +757,30 @@ export declare class LemmyHttp {
|
|
751
757
|
* `HTTP.Post /custom_emoji/delete`
|
752
758
|
*/
|
753
759
|
deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
|
760
|
+
/**
|
761
|
+
* Create a new tagline
|
762
|
+
*
|
763
|
+
* `HTTP.POST /tagline`
|
764
|
+
*/
|
765
|
+
createTagline(form: CreateTagline): Promise<TaglineResponse>;
|
766
|
+
/**
|
767
|
+
* Edit an existing tagline
|
768
|
+
*
|
769
|
+
* `HTTP.PUT /tagline`
|
770
|
+
*/
|
771
|
+
editTagline(form: UpdateTagline): Promise<TaglineResponse>;
|
772
|
+
/**
|
773
|
+
* Delete a tagline
|
774
|
+
*
|
775
|
+
* `HTTP.Post /tagline/delete`
|
776
|
+
*/
|
777
|
+
deleteTagline(form: DeleteTagline): Promise<SuccessResponse>;
|
778
|
+
/**
|
779
|
+
* List taglines
|
780
|
+
*
|
781
|
+
* `HTTP.GET /tagline/list`
|
782
|
+
*/
|
783
|
+
listTaglines(form: ListTaglines): Promise<ListTaglinesResponse>;
|
754
784
|
/**
|
755
785
|
* Create a new oauth provider method
|
756
786
|
*
|
package/dist/http.js
CHANGED
@@ -844,6 +844,38 @@ class LemmyHttp {
|
|
844
844
|
deleteCustomEmoji(form) {
|
845
845
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
|
846
846
|
}
|
847
|
+
/**
|
848
|
+
* Create a new tagline
|
849
|
+
*
|
850
|
+
* `HTTP.POST /tagline`
|
851
|
+
*/
|
852
|
+
createTagline(form) {
|
853
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/tagline", form);
|
854
|
+
}
|
855
|
+
/**
|
856
|
+
* Edit an existing tagline
|
857
|
+
*
|
858
|
+
* `HTTP.PUT /tagline`
|
859
|
+
*/
|
860
|
+
editTagline(form) {
|
861
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/tagline", form);
|
862
|
+
}
|
863
|
+
/**
|
864
|
+
* Delete a tagline
|
865
|
+
*
|
866
|
+
* `HTTP.Post /tagline/delete`
|
867
|
+
*/
|
868
|
+
deleteTagline(form) {
|
869
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/tagline/delete", form);
|
870
|
+
}
|
871
|
+
/**
|
872
|
+
* List taglines
|
873
|
+
*
|
874
|
+
* `HTTP.GET /tagline/list`
|
875
|
+
*/
|
876
|
+
listTaglines(form) {
|
877
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/tagline/list", form);
|
878
|
+
}
|
847
879
|
/**
|
848
880
|
* Create a new oauth provider method
|
849
881
|
*
|
@@ -321,12 +321,12 @@ export type LemmyErrorType = {
|
|
321
321
|
message: string;
|
322
322
|
} | {
|
323
323
|
error: "cant_delete_site";
|
324
|
+
} | {
|
325
|
+
error: "url_length_overflow";
|
324
326
|
} | {
|
325
327
|
error: "post_schedule_time_must_be_in_future";
|
326
328
|
} | {
|
327
329
|
error: "too_many_scheduled_posts";
|
328
|
-
} | {
|
329
|
-
error: "url_length_overflow";
|
330
330
|
} | {
|
331
331
|
error: "not_found";
|
332
332
|
};
|
package/dist/types/Post.d.ts
CHANGED
package/dist/types/Search.d.ts
CHANGED
@@ -13,5 +13,9 @@ export interface Search {
|
|
13
13
|
listing_type?: ListingType;
|
14
14
|
page?: number;
|
15
15
|
limit?: number;
|
16
|
-
|
16
|
+
title_only?: boolean;
|
17
|
+
post_url_only?: boolean;
|
18
|
+
saved_only?: boolean;
|
19
|
+
liked_only?: boolean;
|
20
|
+
disliked_only?: boolean;
|
17
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users"
|
1
|
+
export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users";
|
package/package.json
CHANGED