Fix experience bugs (#9)
This commit is contained in:
1 parent
c300500135
commit
b35d5a926a
260 files changed
+36865
-16290
No files matched your search
@@ -1,24 +1,10 @@
|
||||
import { ICredential } from './credential';
|
||||
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;
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import { IApplication } from './application';
|
||||
|
||||
export enum ICredentialType {
|
||||
TOKEN = 'Token',
|
||||
IDENTITY = 'Identity'
|
||||
}
|
||||
|
||||
export interface ICredential {
|
||||
id?: string;
|
||||
name?: string;
|
||||
type?: ICredentialType;
|
||||
limited_amount?: number;
|
||||
used_amount?: number;
|
||||
expired_at?: string;
|
||||
token?: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
application?: IApplication;
|
||||
application_id?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
user_id?: string;
|
||||
}
|
||||
|
||||
export interface ICredentialListResponse {
|
||||
count: number;
|
||||
items: ICredential[];
|
||||
}
|
||||
|
||||
export type ICredentialDetailResponse = ICredential;
|
||||
@@ -10,3 +10,4 @@ export * from './order';
|
||||
export * from './usage';
|
||||
export * from './user';
|
||||
export * from './service';
|
||||
export * from './credential';
|
||||
Reference in new issue
Block a user