add auth types

This commit is contained in:
nflnkr 2023-08-28 17:52:17 +03:00
parent f16a659a61
commit b2e9eeff44
3 changed files with 23 additions and 1 deletions

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 "./auth";
export type * from "./cart";
export type * from "./discount";
export type * from "./privilege";

@ -1,6 +1,6 @@
{
"name": "@frontend/kitui",
"version": "1.0.42",
"version": "1.0.43",
"description": "test",
"main": "./dist/index.js",
"module": "./dist/index.js",