onchain-sdk
Advanced tools
Comparing version 0.0.12 to 0.0.14
@@ -0,1 +1,2 @@ | ||
import GeneralUtils, { node_request } from './GeneralUtils'; | ||
declare namespace API.parmas { | ||
@@ -8,8 +9,6 @@ type login = { | ||
} | ||
declare class CommonUtils { | ||
baseUrl: string; | ||
fetch: any; | ||
constructor({ baseUrl: baseUrl, fetch: fetch }: any); | ||
declare class CommonUtils extends GeneralUtils { | ||
constructor(data: node_request); | ||
getToken(data: API.parmas.login): Promise<any>; | ||
} | ||
export default CommonUtils; |
import { TabInfo } from '../../hooks/useTabInfo/type'; | ||
import { APP } from '../../typings'; | ||
declare class InstanceUtils { | ||
constructor(); | ||
import GeneralUtils, { node_request } from './GeneralUtils'; | ||
export interface instanceInter { | ||
params: {}; | ||
} | ||
declare class InstanceUtils extends GeneralUtils { | ||
constructor(data: node_request); | ||
/** | ||
* 初始化实例 | ||
*/ | ||
initInstance(): void; | ||
/** | ||
* 获取实例 | ||
*/ | ||
getInstanceInfo({ instanceId, tabCode, authCode, version, versionOrder, userId, tenantId, }: { | ||
instanceId: string; | ||
tabCode: string; | ||
authCode: string; | ||
version: string; | ||
versionOrder: string; | ||
userId: string; | ||
tenantId: string; | ||
}): Promise<any>; | ||
/** | ||
* 处理实例的版本 | ||
*/ | ||
getInstanceVersion({ instanceId }: { | ||
instanceId: string; | ||
}): Promise<{ | ||
/**版本列表 */ | ||
versions: any; | ||
orderVersionMap: any; | ||
versionOrders: any; | ||
orderPreVersionMap: any; | ||
versionOrderMap: any; | ||
}>; | ||
/** | ||
* 判断页签是否可以编辑 | ||
@@ -7,0 +40,0 @@ */ |
{ | ||
"name": "onchain-sdk", | ||
"private": false, | ||
"version": "0.0.12", | ||
"version": "0.0.14", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "start": "umi dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
481846
400
12959