refactor: 移除业务提供项兼容客户端入口
This commit is contained in:
1 parent
c3edc4f595
commit
40ea7d245b
2 files changed
+9
-28
No files matched your search
@@ -439,25 +439,6 @@ export class ApiClient {
|
||||
body,
|
||||
});
|
||||
}
|
||||
updateAdminOfferingCompat(id: string, body: OfferingUpdate): Promise<PublicOffering> {
|
||||
const { categoryKey, ...rest } = body;
|
||||
return this.request(`/admin/workspace/offerings/${encodeURIComponent(id)}`, {
|
||||
method: "PATCH",
|
||||
body: { ...rest, ...(categoryKey ? { kind: categoryKey } : {}) },
|
||||
});
|
||||
}
|
||||
listAdminOfferingsCompat(): Promise<PublicOffering[]> {
|
||||
return this.request("/admin/workspace/offerings");
|
||||
}
|
||||
createAdminOfferingCompat(
|
||||
body: OfferingUpdate & { name: string; description: string },
|
||||
): Promise<PublicOffering> {
|
||||
const { categoryKey, bookingEnabled: _bookingEnabled, ...rest } = body;
|
||||
return this.request("/admin/workspace/offerings", {
|
||||
method: "POST",
|
||||
body: { ...rest, kind: categoryKey ?? "service" },
|
||||
});
|
||||
}
|
||||
listAdminTrustContent(): Promise<TrustContent[]> {
|
||||
return this.request("/admin/config/trust-content");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user