dtable-web-api
Advanced tools
Comparing version 1.0.78 to 1.0.79
{ | ||
"name": "dtable-web-api", | ||
"version": "1.0.78", | ||
"version": "1.0.79", | ||
"description": "an interface for dtable-web", | ||
@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js", |
@@ -109,5 +109,9 @@ import axios from 'axios'; | ||
// share view api | ||
listDTableUserViewShares(workspaceId, dtableName) { | ||
listDTableUserViewShares(workspaceId, dtableName, tableId, viewId) { | ||
let url = this.server + '/api/v2.1/workspace/' + workspaceId + '/dtable/' + dtableName + '/user-view-shares/'; | ||
return this.req.get(url); | ||
let params = ''; | ||
if (tableId && viewId) { | ||
params = `?table_id${tableId}&view_id=${viewId}`; | ||
} | ||
return this.req.get(url + params); | ||
} | ||
@@ -139,5 +143,9 @@ | ||
listDTableGroupViewShares(workspaceId, dtableName) { | ||
listDTableGroupViewShares(workspaceId, dtableName, tableId, viewId) { | ||
let url = this.server + '/api/v2.1/workspace/' + workspaceId + '/dtable/' + dtableName + '/group-view-shares/'; | ||
return this.req.get(url); | ||
let params = ''; | ||
if (tableId && viewId) { | ||
params = `?table_id${tableId}&view_id=${viewId}`; | ||
} | ||
return this.req.get(url + params); | ||
} | ||
@@ -144,0 +152,0 @@ |
Sorry, the diff of this file is too big to display
150115
4028