Add pl-api to workspace
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
27
packages/pl-api/lib/params/groups.ts
Normal file
27
packages/pl-api/lib/params/groups.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import type { PaginationParams } from './common';
|
||||
|
||||
interface CreateGroupParams {
|
||||
display_name: string;
|
||||
note?: string;
|
||||
avatar?: File;
|
||||
header?: File;
|
||||
}
|
||||
|
||||
interface UpdateGroupParams {
|
||||
display_name?: string;
|
||||
note?: string;
|
||||
avatar?: File | '';
|
||||
header?: File | '';
|
||||
}
|
||||
|
||||
type GetGroupMembershipsParams = Omit<PaginationParams, 'min_id'>;
|
||||
type GetGroupMembershipRequestsParams = Omit<PaginationParams, 'min_id'>;
|
||||
type GetGroupBlocksParams = Omit<PaginationParams, 'min_id'>;
|
||||
|
||||
export type {
|
||||
CreateGroupParams,
|
||||
UpdateGroupParams,
|
||||
GetGroupMembershipsParams,
|
||||
GetGroupMembershipRequestsParams,
|
||||
GetGroupBlocksParams,
|
||||
};
|
||||
Reference in New Issue
Block a user