@mybricks/sdk-for-app
Advanced tools
Comparing version 0.0.37 to 0.0.38
{ | ||
"name": "@mybricks/sdk-for-app", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "SDK for application UI", | ||
@@ -5,0 +5,0 @@ "main": "index.min.js", |
@@ -10,3 +10,3 @@ import axios from 'axios'; | ||
export * as fileSystem from './apis/fileSystem'; | ||
export * from './apis'; | ||
@@ -13,0 +13,0 @@ export const user = { |
import axios from 'axios'; | ||
import { getUserInfo } from './../../utils' | ||
import { FileItem } from './../type' | ||
interface FileItem { | ||
id: number | ||
name: string | ||
parentId: number | null | ||
description: string | null | ||
extName: string | ||
createTime: string | ||
creatorId: string | ||
creatorName: string | ||
updateTime: string | ||
} | ||
export default (params = {}): Promise<FileItem[]> => { | ||
@@ -17,0 +6,0 @@ const { parentId } = params |
import axios from 'axios'; | ||
import { VersionItem } from './../type' | ||
interface FileItem { | ||
id: number | ||
name: string | ||
parentId: number | null | ||
description: string | null | ||
extName: string | ||
createTime: string | ||
creatorId: string | ||
creatorName: string | ||
updateTime: string | ||
} | ||
interface Params { | ||
@@ -21,3 +10,3 @@ fileId: number | string | ||
export default (params: Params): Promise<FileItem[]> => { | ||
export default (params: Params): Promise<VersionItem[]> => { | ||
const { fileId, pageIndex = 1, pageSize = 100 } = params ?? {} | ||
@@ -24,0 +13,0 @@ return axios({ |
export { default as openPanel } from './openPanel' | ||
export { default as getVersions } from './getVersions' | ||
export { default as getVersions } from './getVersions' | ||
export { default as getAll } from './getAll' | ||
export { default as getPublishContent } from './getPublishContent' |
Sorry, the diff of this file is not supported yet
58888
36
1797