mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +00:00
Remove categories
This commit is contained in:
parent
4b9591670f
commit
71a451fa60
7 changed files with 1 additions and 27 deletions
|
@ -54,7 +54,6 @@ import {
|
||||||
GetSiteConfig,
|
GetSiteConfig,
|
||||||
GetSiteConfigResponse,
|
GetSiteConfigResponse,
|
||||||
GetSiteResponse,
|
GetSiteResponse,
|
||||||
ListCategoriesResponse,
|
|
||||||
SaveSiteConfig,
|
SaveSiteConfig,
|
||||||
Search,
|
Search,
|
||||||
SearchResponse,
|
SearchResponse,
|
||||||
|
@ -140,10 +139,6 @@ export class LemmyHttp {
|
||||||
return this.wrapper(HttpType.Put, '/site/config', form);
|
return this.wrapper(HttpType.Put, '/site/config', form);
|
||||||
}
|
}
|
||||||
|
|
||||||
async listCategories(): Promise<ListCategoriesResponse> {
|
|
||||||
return this.wrapper(HttpType.Get, '/categories', {});
|
|
||||||
}
|
|
||||||
|
|
||||||
async getModlog(form: GetModlog): Promise<GetModlogResponse> {
|
async getModlog(form: GetModlog): Promise<GetModlogResponse> {
|
||||||
return this.wrapper(HttpType.Get, '/modlog', form);
|
return this.wrapper(HttpType.Get, '/modlog', form);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,6 @@ export interface CreateCommunity {
|
||||||
description?: string;
|
description?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
banner?: string;
|
banner?: string;
|
||||||
category_id: number;
|
|
||||||
nsfw: boolean;
|
nsfw: boolean;
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
@ -79,7 +78,6 @@ export interface EditCommunity {
|
||||||
description?: string;
|
description?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
banner?: string;
|
banner?: string;
|
||||||
category_id: number;
|
|
||||||
nsfw: boolean;
|
nsfw: boolean;
|
||||||
auth: string;
|
auth: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Category, UserSafeSettings } from '../source';
|
import { UserSafeSettings } from '../source';
|
||||||
import {
|
import {
|
||||||
CommentView,
|
CommentView,
|
||||||
CommunityView,
|
CommunityView,
|
||||||
|
@ -16,12 +16,6 @@ import {
|
||||||
UserViewSafe,
|
UserViewSafe,
|
||||||
} from '../views';
|
} from '../views';
|
||||||
|
|
||||||
export interface ListCategories {}
|
|
||||||
|
|
||||||
export interface ListCategoriesResponse {
|
|
||||||
categories: Category[];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search types are `All, Comments, Posts, Communities, Users, Url`
|
* Search types are `All, Comments, Posts, Communities, Users, Url`
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,7 +8,6 @@ export enum UserOperation {
|
||||||
CreateCommunity,
|
CreateCommunity,
|
||||||
CreatePost,
|
CreatePost,
|
||||||
ListCommunities,
|
ListCommunities,
|
||||||
ListCategories,
|
|
||||||
GetPost,
|
GetPost,
|
||||||
GetCommunity,
|
GetCommunity,
|
||||||
CreateComment,
|
CreateComment,
|
||||||
|
|
|
@ -198,7 +198,6 @@ export interface CommunitySafe {
|
||||||
name: string;
|
name: string;
|
||||||
title: string;
|
title: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
category_id: number;
|
|
||||||
creator_id: number;
|
creator_id: number;
|
||||||
removed: boolean;
|
removed: boolean;
|
||||||
published: string;
|
published: string;
|
||||||
|
@ -238,11 +237,6 @@ export interface Comment {
|
||||||
local: boolean;
|
local: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Category {
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface UserMention {
|
export interface UserMention {
|
||||||
id: number;
|
id: number;
|
||||||
recipient_id: number;
|
recipient_id: number;
|
||||||
|
|
|
@ -6,7 +6,6 @@ import {
|
||||||
UserAggregates,
|
UserAggregates,
|
||||||
} from './aggregates';
|
} from './aggregates';
|
||||||
import {
|
import {
|
||||||
Category,
|
|
||||||
Comment,
|
Comment,
|
||||||
CommentReport,
|
CommentReport,
|
||||||
CommunitySafe,
|
CommunitySafe,
|
||||||
|
@ -182,7 +181,6 @@ export interface CommunityUserBanView {
|
||||||
export interface CommunityView {
|
export interface CommunityView {
|
||||||
community: CommunitySafe;
|
community: CommunitySafe;
|
||||||
creator: UserSafe;
|
creator: UserSafe;
|
||||||
category: Category;
|
|
||||||
subscribed: boolean;
|
subscribed: boolean;
|
||||||
counts: CommunityAggregates;
|
counts: CommunityAggregates;
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,10 +124,6 @@ export class LemmyWebsocket {
|
||||||
return wrapper(UserOperation.GetFollowedCommunities, form);
|
return wrapper(UserOperation.GetFollowedCommunities, form);
|
||||||
}
|
}
|
||||||
|
|
||||||
listCategories() {
|
|
||||||
return wrapper(UserOperation.ListCategories, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
createPost(form: CreatePost) {
|
createPost(form: CreatePost) {
|
||||||
return wrapper(UserOperation.CreatePost, form);
|
return wrapper(UserOperation.CreatePost, form);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue