add user account type

This commit is contained in:
nflnkr 2023-08-28 17:14:39 +03:00
parent 64028a50e2
commit 77a8ff5cc0
3 changed files with 27 additions and 1 deletions

25
lib/model/account.ts Normal file

@ -0,0 +1,25 @@
export interface UserAccount {
_id: string;
userId: string;
name: UserName;
cart: string[];
wallet: {
currency: string;
cash: number;
purchasesAmount: number;
spent: number;
money: number;
};
status: "no";
isDeleted: false;
createdAt: string;
updatedAt: string;
deletedAt: string;
}
export interface UserName {
firstname?: string;
secondname?: string;
middlename?: string;
orgname?: string;
}

@ -1,3 +1,4 @@
export type * from "./account";
export type * from "./cart";
export type * from "./discount";
export type * from "./privilege";

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