refactor user accounts structure
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { TAccountType } from '@/core/constants/accountTypes.const';
|
||||
|
||||
export interface IPartnerAccountRawResponse {
|
||||
username: string;
|
||||
id: string;
|
||||
}
|
||||
export interface IPartnerAccountResponse extends IPartnerAccountRawResponse {}
|
||||
|
||||
export interface IPartnerAccountRequest {
|
||||
username: string;
|
||||
password?: string;
|
||||
type: TAccountType;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './accounts_io';
|
||||
export * from './io';
|
||||
@@ -0,0 +1,14 @@
|
||||
export interface IPartnerRawResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
remained_license: number;
|
||||
license_quota: number;
|
||||
}
|
||||
export interface IPartnerResponse extends IPartnerRawResponse {}
|
||||
|
||||
export interface IPartnerRequest {
|
||||
name: string;
|
||||
code: string;
|
||||
license_quota: number;
|
||||
}
|
||||
Reference in New Issue
Block a user