add auth types
This commit is contained in:
parent
f16a659a61
commit
b2e9eeff44
21
lib/model/auth.ts
Normal file
21
lib/model/auth.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
export interface RegisterRequest {
|
||||||
|
login: string;
|
||||||
|
password: string;
|
||||||
|
phoneNumber: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RegisterResponse {
|
||||||
|
accessToken: string;
|
||||||
|
login: string;
|
||||||
|
email: string;
|
||||||
|
phoneNumber: string;
|
||||||
|
refreshToken: string;
|
||||||
|
_id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface LoginRequest {
|
||||||
|
login: string;
|
||||||
|
password: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LoginResponse = RegisterResponse;
|
@ -1,4 +1,5 @@
|
|||||||
export type * from "./account";
|
export type * from "./account";
|
||||||
|
export type * from "./auth";
|
||||||
export type * from "./cart";
|
export type * from "./cart";
|
||||||
export type * from "./discount";
|
export type * from "./discount";
|
||||||
export type * from "./privilege";
|
export type * from "./privilege";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@frontend/kitui",
|
"name": "@frontend/kitui",
|
||||||
"version": "1.0.42",
|
"version": "1.0.43",
|
||||||
"description": "test",
|
"description": "test",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user