dtable-web-api
Advanced tools
Comparing version 1.0.54 to 1.0.55
{ | ||
"name": "dtable-web-api", | ||
"version": "1.0.54", | ||
"version": "1.0.55", | ||
"description": "an interface for dtable-web", | ||
@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js", |
@@ -478,2 +478,7 @@ import axios from 'axios'; | ||
isDTableAssetExist (workspaceID, tableName, path) { | ||
const url = this.server + '/api/v2.1/workspace/' + workspaceID + '/dtable/' + tableName + '/asset-exists/?path=' + path; | ||
return this.req.get(url); | ||
} | ||
getTableRowShareLink(workspaceID, tableName, table_id, rowId) { | ||
@@ -1056,2 +1061,30 @@ let params = "?workspace_id=" + workspaceID + "&name=" + encodeURIComponent(tableName) + "&table_id=" + table_id + "&row_id=" + rowId; | ||
orgAdminListDTables(orgID, page, perPage) { | ||
const url = this.server + '/api/v2.1/org/' + orgID + '/admin/dtables/'; | ||
let params = { | ||
page: page, | ||
per_page: perPage | ||
}; | ||
return this.req.get(url, {params: params}); | ||
} | ||
orgAdminDeleteDTable(orgID, dtableID) { | ||
const url = this.server + '/api/v2.1/org/' + orgID + '/admin/dtables/' + dtableID + '/'; | ||
return this.req.delete(url); | ||
} | ||
orgAdminListTrashDTables(orgID, page, perPage) { | ||
const url = this.server + '/api/v2.1/org/' + orgID + '/admin/trash-dtables/'; | ||
let params = { | ||
page: page, | ||
per_page: perPage | ||
}; | ||
return this.req.get(url, {params: params}); | ||
} | ||
orgAdminRestoreTrashDTable(orgID, dtableID) { | ||
const url = this.server + '/api/v2.1/org/' + orgID + '/admin/trash-dtables/' + dtableID + '/'; | ||
return this.req.put(url); | ||
} | ||
// sys-admin | ||
@@ -1058,0 +1091,0 @@ sysAdminListAllDTables(page, perPage) { |
Sorry, the diff of this file is too big to display
126148
3402