Migrate new service (#1)

This commit is contained in:
AceDataCloud committed 2024-03-07 01:09:03 +08:00
1 parent f13ca37d63
commit 28da0263dc
109 files changed
+1160 -1053

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
import { IService } from './service';
export enum IApplicationType {
API = 'Api'
}
export enum ICredentialType {
TOKEN = 'Token',
IDENTITY = 'Identity'
}
export interface ICredential {
type: ICredentialType;
name?: string;
token?: string;
username?: string;
password?: string;
created_at?: string;
updated_at?: string;
}
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;