mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
20 lines
643 B
TypeScript
20 lines
643 B
TypeScript
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||
|
// See LICENSE.txt for license information.
|
||
|
|
||
|
declare namespace Cypress {
|
||
|
type LoginData = {
|
||
|
username: string
|
||
|
password: string
|
||
|
}
|
||
|
type UserData = LoginData & {
|
||
|
email: string
|
||
|
}
|
||
|
interface Chainable {
|
||
|
apiRegisterUser: (data: UserData, token?: string, failOnError?: boolean) => Chainable
|
||
|
apiLoginUser: (data: LoginData) => Chainable
|
||
|
apiGetMe: () => Chainable<string>
|
||
|
apiChangePassword: (userId: string, oldPassword: string, newPassword: string) => Chainable
|
||
|
apiInitServer: () => Chainable
|
||
|
}
|
||
|
}
|