New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dtable-web-api

Package Overview
Dependencies
Maintainers
1
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtable-web-api - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

123

lib/dtable-web-api.js

@@ -836,2 +836,125 @@ "use strict";

}
}, {
key: "sysAdminListGroupDTables",
value: function sysAdminListGroupDTables(groupID) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/dtables/';
return this.req.get(url);
}
}, {
key: "sysAdminDeleteDTableFromGroup",
value: function sysAdminDeleteDTableFromGroup(groupID, tableID) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/dtables/' + tableID + '/';
return this.req["delete"](url);
}
}, {
key: "sysAdminListGroupMembers",
value: function sysAdminListGroupMembers(groupID) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/';
return this.req.get(url);
}
}, {
key: "sysAdminDeleteGroupMember",
value: function sysAdminDeleteGroupMember(groupID, email) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/' + encodeURIComponent(email) + '/';
return this.req["delete"](url);
}
}, {
key: "sysAdminAddGroupMember",
value: function sysAdminAddGroupMember(groupID, emails) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/';
var form = new _formData["default"]();
for (var i = 0; i < emails.length; i++) {
form.append('email', emails[i]);
}
return this._sendPostRequest(url, form);
}
}, {
key: "sysAdminUpdateGroupMemberRole",
value: function sysAdminUpdateGroupMemberRole(groupID, email, isAdmin) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/' + encodeURIComponent(email) + '/';
var formData = new _formData["default"]();
formData.append('is_admin', isAdmin);
return this.req.put(url, formData);
}
}, {
key: "sysAdminListAllGroups",
value: function sysAdminListAllGroups(page, perPage) {
var url = this.server + '/api/v2.1/admin/groups/';
var params = {
page: page,
per_page: perPage
};
return this.req.get(url, {
params: params
});
}
}, {
key: "sysAdminCreateNewGroup",
value: function sysAdminCreateNewGroup(groupName, ownerEmail) {
var url = this.server + '/api/v2.1/admin/groups/';
var formData = new _formData["default"]();
formData.append('group_name', groupName);
formData.append('group_owner', ownerEmail);
return this._sendPostRequest(url, formData);
}
}, {
key: "sysAdminTransferGroup",
value: function sysAdminTransferGroup(receiverEmail, groupID) {
var url = this.server + '/api/v2.1/admin/groups/' + groupID + '/';
var formData = new _formData["default"]();
formData.append('new_owner', receiverEmail);
return this.req.put(url, formData);
}
}, {
key: "sysAdminListAllSysNotifications",
value: function sysAdminListAllSysNotifications() {
var url = this.server + '/api/v2.1/admin/sys-notifications/';
return this.req.get(url);
}
}, {
key: "sysAdminAddSysNotification",
value: function sysAdminAddSysNotification(msg) {
var url = this.server + '/api/v2.1/admin/sys-notifications/';
var formData = new _formData["default"]();
formData.append('msg', msg);
return this._sendPostRequest(url, formData);
}
}, {
key: "sysAdminDeleteSysNotification",
value: function sysAdminDeleteSysNotification(nid) {
var url = this.server + '/api/v2.1/admin/sys-notifications/' + nid + '/';
return this.req["delete"](url);
}
}, {
key: "sysAdminSetSysNotificationToCurrent",
value: function sysAdminSetSysNotificationToCurrent(nid) {
var url = this.server + '/api/v2.1/admin/sys-notifications/' + nid + '/';
return this.req.put(url);
}
}, {
key: "sysAdminListAdminLogs",
value: function sysAdminListAdminLogs(page, perPage) {
var url = this.server + '/api/v2.1/admin/admin-logs/';
var params = {
page: page,
per_page: perPage
};
return this.req.get(url, {
params: params
});
}
}, {
key: "sysAdminListAdminLoginLogs",
value: function sysAdminListAdminLoginLogs(page, perPage) {
var url = this.server + '/api/v2.1/admin/admin-login-logs/';
var params = {
page: page,
per_page: perPage
};
return this.req.get(url, {
params: params
});
}
}]);

@@ -838,0 +961,0 @@

2

package.json
{
"name": "dtable-web-api",
"version": "1.0.10",
"version": "1.0.11",
"description": "an interface for dtable-web",

@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js",

@@ -661,4 +661,104 @@ import axios from 'axios';

sysAdminListGroupDTables(groupID) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/dtables/';
return this.req.get(url);
}
sysAdminDeleteDTableFromGroup(groupID, tableID) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/dtables/' + tableID + '/';
return this.req.delete(url);
}
sysAdminListGroupMembers(groupID) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/';
return this.req.get(url);
}
sysAdminDeleteGroupMember(groupID, email) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/' + encodeURIComponent(email) + '/';
return this.req.delete(url);
}
sysAdminAddGroupMember(groupID, emails) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/';
let form = new FormData();
for (var i = 0; i < emails.length; i++) {
form.append('email', emails[i]);
}
return this._sendPostRequest(url, form);
}
sysAdminUpdateGroupMemberRole(groupID, email, isAdmin) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/members/' + encodeURIComponent(email) + '/';
let formData = new FormData();
formData.append('is_admin', isAdmin);
return this.req.put(url, formData);
}
sysAdminListAllGroups(page, perPage) {
let url = this.server + '/api/v2.1/admin/groups/';
let params = {
page: page,
per_page: perPage
};
return this.req.get(url, { params: params });
}
sysAdminCreateNewGroup(groupName, ownerEmail) {
let url = this.server + '/api/v2.1/admin/groups/';
let formData = new FormData();
formData.append('group_name', groupName);
formData.append('group_owner', ownerEmail);
return this._sendPostRequest(url, formData);
}
sysAdminTransferGroup(receiverEmail, groupID) {
let url = this.server + '/api/v2.1/admin/groups/' + groupID + '/';
let formData = new FormData();
formData.append('new_owner', receiverEmail);
return this.req.put(url, formData);
}
sysAdminListAllSysNotifications() {
let url = this.server + '/api/v2.1/admin/sys-notifications/';
return this.req.get(url);
}
sysAdminAddSysNotification(msg) {
let url = this.server + '/api/v2.1/admin/sys-notifications/';
let formData = new FormData();
formData.append('msg', msg);
return this._sendPostRequest(url, formData);
}
sysAdminDeleteSysNotification(nid) {
let url = this.server + '/api/v2.1/admin/sys-notifications/' + nid + '/';
return this.req.delete(url);
}
sysAdminSetSysNotificationToCurrent(nid) {
let url = this.server + '/api/v2.1/admin/sys-notifications/' + nid + '/';
return this.req.put(url);
}
sysAdminListAdminLogs(page, perPage) {
let url = this.server + '/api/v2.1/admin/admin-logs/';
let params = {
page: page,
per_page: perPage
};
return this.req.get(url, { params: params });
}
sysAdminListAdminLoginLogs(page, perPage) {
let url = this.server + '/api/v2.1/admin/admin-login-logs/';
let params = {
page: page,
per_page: perPage
};
return this.req.get(url, { params: params });
}
}
export default DTableWebAPI;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc