mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-29 15:51: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.
|
* Delete your account.
|
||||||
*/
|
*/
|
||||||
async deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse> {
|
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
|
* Verify your email
|
||||||
*/
|
*/
|
||||||
async verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse> {
|
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> {
|
): Promise<GetUnreadRegistrationApplicationCountResponse> {
|
||||||
return this.wrapper(
|
return this.wrapper(
|
||||||
HttpType.Get,
|
HttpType.Get,
|
||||||
'/admin/registration_application/count',
|
"/admin/registration_application/count",
|
||||||
form
|
form
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -689,7 +689,7 @@ export class LemmyHttp {
|
||||||
): Promise<ListRegistrationApplicationsResponse> {
|
): Promise<ListRegistrationApplicationsResponse> {
|
||||||
return this.wrapper(
|
return this.wrapper(
|
||||||
HttpType.Get,
|
HttpType.Get,
|
||||||
'/admin/registration_application/list',
|
"/admin/registration_application/list",
|
||||||
form
|
form
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -702,7 +702,7 @@ export class LemmyHttp {
|
||||||
): Promise<RegistrationApplicationResponse> {
|
): Promise<RegistrationApplicationResponse> {
|
||||||
return this.wrapper(
|
return this.wrapper(
|
||||||
HttpType.Put,
|
HttpType.Put,
|
||||||
'/admin/registration_application/approve',
|
"/admin/registration_application/approve",
|
||||||
form
|
form
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
import {
|
import {
|
||||||
|
CommentView,
|
||||||
CommunityBlockView,
|
CommunityBlockView,
|
||||||
CommunityFollowerView,
|
CommunityFollowerView,
|
||||||
CommunityModeratorView,
|
CommunityModeratorView,
|
||||||
RegistrationApplicationView,
|
|
||||||
CommentView,
|
|
||||||
CommunityView,
|
CommunityView,
|
||||||
LocalUserSettingsView,
|
LocalUserSettingsView,
|
||||||
ModAddCommunityView,
|
ModAddCommunityView,
|
||||||
|
@ -19,6 +18,7 @@ import {
|
||||||
PersonBlockView,
|
PersonBlockView,
|
||||||
PersonViewSafe,
|
PersonViewSafe,
|
||||||
PostView,
|
PostView,
|
||||||
|
RegistrationApplicationView,
|
||||||
SiteView,
|
SiteView,
|
||||||
} from "../views";
|
} from "../views";
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {
|
||||||
Comment,
|
Comment,
|
||||||
CommentReport,
|
CommentReport,
|
||||||
CommunitySafe,
|
CommunitySafe,
|
||||||
|
LocalUserSettings,
|
||||||
ModAdd,
|
ModAdd,
|
||||||
ModAddCommunity,
|
ModAddCommunity,
|
||||||
ModBan,
|
ModBan,
|
||||||
|
@ -19,15 +20,14 @@ import {
|
||||||
ModRemovePost,
|
ModRemovePost,
|
||||||
ModStickyPost,
|
ModStickyPost,
|
||||||
ModTransferCommunity,
|
ModTransferCommunity,
|
||||||
|
PersonMention,
|
||||||
|
PersonSafe,
|
||||||
Post,
|
Post,
|
||||||
PostReport,
|
PostReport,
|
||||||
PrivateMessage,
|
PrivateMessage,
|
||||||
Site,
|
|
||||||
PersonMention,
|
|
||||||
PersonSafe,
|
|
||||||
LocalUserSettings,
|
|
||||||
RegistrationApplication,
|
RegistrationApplication,
|
||||||
} from './source';
|
Site,
|
||||||
|
} from "./source";
|
||||||
|
|
||||||
export interface PersonViewSafe {
|
export interface PersonViewSafe {
|
||||||
person: PersonSafe;
|
person: PersonSafe;
|
||||||
|
|
|
@ -24,6 +24,31 @@ import {
|
||||||
RemoveCommunity,
|
RemoveCommunity,
|
||||||
TransferCommunity,
|
TransferCommunity,
|
||||||
} from "./interfaces/api/community";
|
} 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 {
|
import {
|
||||||
CreatePost,
|
CreatePost,
|
||||||
CreatePostLike,
|
CreatePostLike,
|
||||||
|
@ -54,33 +79,8 @@ import {
|
||||||
Search,
|
Search,
|
||||||
TransferSite,
|
TransferSite,
|
||||||
} from "./interfaces/api/site";
|
} from "./interfaces/api/site";
|
||||||
import {
|
import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket";
|
||||||
AddAdmin,
|
import { UserOperation } from "./interfaces/others";
|
||||||
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';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
|
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
|
||||||
|
|
Loading…
Reference in a new issue