mirror of
https://github.com/strapi/strapi.git
synced 2025-07-17 05:53:01 +00:00

* chore(admin): convert ProfilePage and re-use server driven types * chore: fix tests * chore: fix double export from types * fix: type isSSOLocked endpoint
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;
|
|
}
|
|
}
|