@bunbase-ae/js 2.16.1-next.367.86ccc66 → 2.16.1-next.369.ceb4362

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/admin.ts +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunbase-ae/js",
3
- "version": "2.16.1-next.367.86ccc66",
3
+ "version": "2.16.1-next.369.ceb4362",
4
4
  "type": "module",
5
5
  "description": "TypeScript/JavaScript SDK for BunBase",
6
6
  "license": "UNLICENSED",
package/src/admin.ts CHANGED
@@ -1573,10 +1573,13 @@ class AdminSequencesClient {
1573
1573
  );
1574
1574
  }
1575
1575
 
1576
- async delete(name: string, opts: SequenceTenantOptions = {}): Promise<void> {
1577
- await this.http.request("DELETE", `/api/v1/admin/sequences/${encodeURIComponent(name)}`, {
1578
- query: tenantQuery(opts),
1579
- });
1576
+ async delete(name: string, opts: SequenceTenantOptions = {}): Promise<boolean> {
1577
+ const res = await this.http.request<{ deleted: boolean }>(
1578
+ "DELETE",
1579
+ `/api/v1/admin/sequences/${encodeURIComponent(name)}`,
1580
+ { query: tenantQuery(opts) },
1581
+ );
1582
+ return res.deleted;
1580
1583
  }
1581
1584
  }
1582
1585