2024-08-28 04:43:23 -07:00
|
|
|
import type { PaginationParams } from './common';
|
|
|
|
|
2024-10-29 14:44:28 -07:00
|
|
|
/**
|
|
|
|
* @category Request params
|
|
|
|
*/
|
2024-08-28 04:43:23 -07:00
|
|
|
interface CreateGroupParams {
|
|
|
|
display_name: string;
|
|
|
|
note?: string;
|
|
|
|
avatar?: File;
|
|
|
|
header?: File;
|
|
|
|
}
|
|
|
|
|
2024-10-29 14:44:28 -07:00
|
|
|
/**
|
|
|
|
* @category Request params
|
|
|
|
*/
|
2024-08-28 04:43:23 -07:00
|
|
|
interface UpdateGroupParams {
|
|
|
|
display_name?: string;
|
|
|
|
note?: string;
|
|
|
|
avatar?: File | '';
|
|
|
|
header?: File | '';
|
|
|
|
}
|
|
|
|
|
2024-10-29 14:44:28 -07:00
|
|
|
/**
|
|
|
|
* @category Request params
|
|
|
|
*/
|
2024-08-28 04:43:23 -07:00
|
|
|
type GetGroupMembershipsParams = Omit<PaginationParams, 'min_id'>;
|
2024-10-29 14:44:28 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @category Request params
|
|
|
|
*/
|
2024-08-28 04:43:23 -07:00
|
|
|
type GetGroupMembershipRequestsParams = Omit<PaginationParams, 'min_id'>;
|
2024-10-29 14:44:28 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @category Request params
|
|
|
|
*/
|
2024-08-28 04:43:23 -07:00
|
|
|
type GetGroupBlocksParams = Omit<PaginationParams, 'min_id'>;
|
|
|
|
|
|
|
|
export type {
|
|
|
|
CreateGroupParams,
|
|
|
|
UpdateGroupParams,
|
|
|
|
GetGroupMembershipsParams,
|
|
|
|
GetGroupMembershipRequestsParams,
|
|
|
|
GetGroupBlocksParams,
|
|
|
|
};
|