Josh d482633e77
refactor(admin): auth pages to TS (#18635)
* refactor(admin): auth pages to TS

* fix: fix error message displays

* chore: remove generic

* chore: remove unnecessary test files

* chore: add tests

* fix: reset-password errors
2023-11-02 14:31:43 +00:00

38 lines
650 B
TypeScript

import { errors } from '@strapi/utils';
/**
* /providers/isSSOLocked
*/
export declare namespace IsSSOLocked {
export interface Request {
body: {};
query: {};
}
export interface Response {
data: {
isSSOLocked: boolean;
};
error?: errors.ApplicationError;
}
}
export interface Provider {
displayName: string;
icon?: string | null;
uid: string;
}
/**
* /providers
*/
export declare namespace GetProviders {
export interface Request {
body: {};
query: {};
}
/**
* TODO: this should follow the expected pattern of returning `data` as an object.
*/
export type Response = Provider[];
}