Type /api/accounts/search request + response bodies

This commit is contained in:
Rory Powell 2023-07-14 15:22:44 +01:00
parent f45a439b26
commit c464e5c91d
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import { Account } from "../../documents"
import { Hosting } from "../../sdk"
export interface CreateAccountRequest {
@ -11,3 +12,11 @@ export interface CreateAccountRequest {
name?: string
password: string
}
export interface SearchAccountsRequest {
// one or the other - not both
email?: string
tenantId?: string
}
export type SearchAccountsResponse = Account[]