Files
Nexior/src/models/application.ts
T
2024-03-24 23:27:13 +08:00

27 lines
547 B
TypeScript

import { ICredential } from './credential';
import { IService } from './service';
export enum IApplicationType {
API = 'Api'
}
export interface IApplication {
id?: string;
type?: IApplicationType;
service_id?: string;
service?: IService;
user_id?: string;
remaining_amount?: number;
used_amount?: number;
credentials?: ICredential[];
created_at?: string;
updated_at?: string;
}
export interface IApplicationListResponse {
count: number;
items: IApplication[];
}
export type IApplicationDetailResponse = IApplication;