mirror of
https://github.com/strapi/strapi.git
synced 2025-07-15 21:11:28 +00:00
47 lines
941 B
TypeScript
47 lines
941 B
TypeScript
![]() |
import { errors } from '@strapi/utils';
|
||
|
|
||
|
import type { SanitizedAdminUser } from './shared';
|
||
|
import type { Entity, EntityService } from '@strapi/types';
|
||
|
|
||
|
/**
|
||
|
* /find - Find admin users
|
||
|
*/
|
||
|
export declare namespace FindAll {
|
||
|
// TODO make the types for this
|
||
|
export interface Request {
|
||
|
query: EntityService.Params.Pick<'admin::user', 'sort' | 'filters' | 'fields'>;
|
||
|
body: {};
|
||
|
}
|
||
|
|
||
|
export interface Response {
|
||
|
data: {
|
||
|
results: SanitizedAdminUser[];
|
||
|
pagination: {
|
||
|
page: number;
|
||
|
pageSize: number;
|
||
|
pageCount: number;
|
||
|
total: number;
|
||
|
};
|
||
|
};
|
||
|
error?: errors.ApplicationError;
|
||
|
}
|
||
|
}
|
||
|
/**
|
||
|
* /findOne - Find an admin user
|
||
|
*/
|
||
|
export declare namespace FindOne {
|
||
|
export interface Request {
|
||
|
body: {};
|
||
|
query: {};
|
||
|
}
|
||
|
|
||
|
export interface Params {
|
||
|
id: Entity.ID;
|
||
|
}
|
||
|
|
||
|
export interface Response {
|
||
|
data: SanitizedAdminUser;
|
||
|
error?: errors.ApplicationError;
|
||
|
}
|
||
|
}
|