diff --git a/src/dtable-web-api.js b/src/dtable-web-api.js index 94d1dffa..64785b1a 100644 --- a/src/dtable-web-api.js +++ b/src/dtable-web-api.js @@ -2357,6 +2357,20 @@ class DTableWebAPI { return this.req.delete(url) } + orgAdminGetVerification(orgID) { + const url = this.server + '/api/v2.1/org/' + orgID + '/admin/verification/'; + return this.req.get(url); + } + + orgAdminUpdateVerification(orgID, phone, code) { + let url = this.server + '/api/v2.1/org/' + orgID + '/admin/verification/'; + let data = { + phone: phone, + code: code + }; + return this.req.post(url, data); + } + // sys-admin sysAdminListAllDTables(page, perPage) { const url = this.server + '/api/v2.1/admin/dtables/'; @@ -2561,6 +2575,11 @@ class DTableWebAPI { }); } + sysAdminUpdateOrgVerification(orgID, verified) { + const url = this.server + '/api/v2.1/admin/organizations/' + orgID + '/org-verification/'; + return this.req.post(url, {verified: verified}); + } + sysAdminSearchOrgs(query) { let url = this.server + '/api/v2.1/admin/search-organization/'; let params = {