mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 22:01:12 +00:00
Running prettier.
This commit is contained in:
parent
207820783e
commit
eff54ea26b
4 changed files with 39 additions and 39 deletions
10
src/http.ts
10
src/http.ts
|
@ -602,7 +602,7 @@ export class LemmyHttp {
|
|||
* Delete your account.
|
||||
*/
|
||||
async deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse> {
|
||||
return this.wrapper(HttpType.Post, '/user/delete_account', form);
|
||||
return this.wrapper(HttpType.Post, "/user/delete_account", form);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -658,7 +658,7 @@ export class LemmyHttp {
|
|||
* Verify your email
|
||||
*/
|
||||
async verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse> {
|
||||
return this.wrapper(HttpType.Post, '/user/verify_email', form);
|
||||
return this.wrapper(HttpType.Post, "/user/verify_email", form);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -676,7 +676,7 @@ export class LemmyHttp {
|
|||
): Promise<GetUnreadRegistrationApplicationCountResponse> {
|
||||
return this.wrapper(
|
||||
HttpType.Get,
|
||||
'/admin/registration_application/count',
|
||||
"/admin/registration_application/count",
|
||||
form
|
||||
);
|
||||
}
|
||||
|
@ -689,7 +689,7 @@ export class LemmyHttp {
|
|||
): Promise<ListRegistrationApplicationsResponse> {
|
||||
return this.wrapper(
|
||||
HttpType.Get,
|
||||
'/admin/registration_application/list',
|
||||
"/admin/registration_application/list",
|
||||
form
|
||||
);
|
||||
}
|
||||
|
@ -702,7 +702,7 @@ export class LemmyHttp {
|
|||
): Promise<RegistrationApplicationResponse> {
|
||||
return this.wrapper(
|
||||
HttpType.Put,
|
||||
'/admin/registration_application/approve',
|
||||
"/admin/registration_application/approve",
|
||||
form
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import {
|
||||
CommentView,
|
||||
CommunityBlockView,
|
||||
CommunityFollowerView,
|
||||
CommunityModeratorView,
|
||||
RegistrationApplicationView,
|
||||
CommentView,
|
||||
CommunityView,
|
||||
LocalUserSettingsView,
|
||||
ModAddCommunityView,
|
||||
|
@ -19,6 +18,7 @@ import {
|
|||
PersonBlockView,
|
||||
PersonViewSafe,
|
||||
PostView,
|
||||
RegistrationApplicationView,
|
||||
SiteView,
|
||||
} from "../views";
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import {
|
|||
Comment,
|
||||
CommentReport,
|
||||
CommunitySafe,
|
||||
LocalUserSettings,
|
||||
ModAdd,
|
||||
ModAddCommunity,
|
||||
ModBan,
|
||||
|
@ -19,15 +20,14 @@ import {
|
|||
ModRemovePost,
|
||||
ModStickyPost,
|
||||
ModTransferCommunity,
|
||||
PersonMention,
|
||||
PersonSafe,
|
||||
Post,
|
||||
PostReport,
|
||||
PrivateMessage,
|
||||
Site,
|
||||
PersonMention,
|
||||
PersonSafe,
|
||||
LocalUserSettings,
|
||||
RegistrationApplication,
|
||||
} from './source';
|
||||
Site,
|
||||
} from "./source";
|
||||
|
||||
export interface PersonViewSafe {
|
||||
person: PersonSafe;
|
||||
|
|
|
@ -24,6 +24,31 @@ import {
|
|||
RemoveCommunity,
|
||||
TransferCommunity,
|
||||
} from "./interfaces/api/community";
|
||||
import {
|
||||
AddAdmin,
|
||||
BanPerson,
|
||||
BlockPerson,
|
||||
ChangePassword,
|
||||
CreatePrivateMessage,
|
||||
DeleteAccount,
|
||||
DeletePrivateMessage,
|
||||
EditPrivateMessage,
|
||||
GetPersonDetails,
|
||||
GetPersonMentions,
|
||||
GetPrivateMessages,
|
||||
GetReplies,
|
||||
GetReportCount,
|
||||
GetUnreadCount,
|
||||
Login,
|
||||
MarkAllAsRead,
|
||||
MarkPersonMentionAsRead,
|
||||
MarkPrivateMessageAsRead,
|
||||
PasswordChange,
|
||||
PasswordReset,
|
||||
Register,
|
||||
SaveUserSettings,
|
||||
VerifyEmail,
|
||||
} from "./interfaces/api/person";
|
||||
import {
|
||||
CreatePost,
|
||||
CreatePostLike,
|
||||
|
@ -54,33 +79,8 @@ import {
|
|||
Search,
|
||||
TransferSite,
|
||||
} from "./interfaces/api/site";
|
||||
import {
|
||||
AddAdmin,
|
||||
BanPerson,
|
||||
CreatePrivateMessage,
|
||||
DeleteAccount,
|
||||
DeletePrivateMessage,
|
||||
EditPrivateMessage,
|
||||
GetPrivateMessages,
|
||||
GetReplies,
|
||||
GetPersonDetails,
|
||||
GetPersonMentions,
|
||||
Login,
|
||||
MarkAllAsRead,
|
||||
MarkPrivateMessageAsRead,
|
||||
MarkPersonMentionAsRead,
|
||||
PasswordChange,
|
||||
PasswordReset,
|
||||
Register,
|
||||
SaveUserSettings,
|
||||
ChangePassword,
|
||||
BlockPerson,
|
||||
GetReportCount,
|
||||
GetUnreadCount,
|
||||
VerifyEmail,
|
||||
} from './interfaces/api/person';
|
||||
import { UserJoin, PostJoin, CommunityJoin } from './interfaces/api/websocket';
|
||||
import { UserOperation } from './interfaces/others';
|
||||
import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket";
|
||||
import { UserOperation } from "./interfaces/others";
|
||||
|
||||
/**
|
||||
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
|
||||
|
|
Loading…
Reference in a new issue