@phpsandbox/sdk 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/phpsandbox-sdk.esm.js +10 -0
- package/dist/browser/phpsandbox-sdk.esm.min.js +7 -7
- package/dist/browser/phpsandbox-sdk.iife.js +10 -0
- package/dist/browser/phpsandbox-sdk.iife.min.js +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/servers.d.ts +10 -0
- package/dist/servers.js +10 -0
- package/package.json +1 -1
|
@@ -19650,6 +19650,16 @@ ${JSON.stringify(metadata, null, 2)}` : "";
|
|
|
19650
19650
|
async installation() {
|
|
19651
19651
|
return (await this.client.get(`/servers/${encodeURIComponent(this.data.id)}/installation`)).data;
|
|
19652
19652
|
}
|
|
19653
|
+
async members(options = {}) {
|
|
19654
|
+
const query = options.page === void 0 ? "" : `?${new URLSearchParams({ page: String(options.page) }).toString()}`;
|
|
19655
|
+
return this.client.get(`/servers/${encodeURIComponent(this.data.id)}/members${query}`);
|
|
19656
|
+
}
|
|
19657
|
+
async share(email3) {
|
|
19658
|
+
return (await this.client.post(`/servers/${encodeURIComponent(this.data.id)}/members`, { email: email3 })).data;
|
|
19659
|
+
}
|
|
19660
|
+
async revokeAccess(memberId) {
|
|
19661
|
+
await this.client.delete(`/servers/${encodeURIComponent(this.data.id)}/members/${encodeURIComponent(String(memberId))}`);
|
|
19662
|
+
}
|
|
19653
19663
|
refresh() {
|
|
19654
19664
|
return this.client.servers.get(this.data.id);
|
|
19655
19665
|
}
|