remove spaces

This commit is contained in:
2026-03-12 15:45:40 +08:00
parent cb6d3f7ee0
commit 51ccd265ba
12 changed files with 506 additions and 358 deletions

View File

@@ -22,7 +22,6 @@ import type {
CreateDomainParams,
UpdateDomainParams,
TestDomainConnectionParams,
GetSpacesParams,
GetAppsParams,
GetAppDetailParams,
GetFileContentParams,
@@ -237,19 +236,6 @@ function registerTestDomainConnection(): void {
// ==================== Browse IPC Handlers ====================
/**
* Get spaces
*/
function registerGetSpaces(): void {
handleWithParams<
GetSpacesParams,
Awaited<ReturnType<SelfKintoneClient["getSpaces"]>>
>("getSpaces", async (params) => {
const client = await getClient(params.domainId);
return client.getSpaces();
});
}
/**
* Get apps
*/
@@ -259,10 +245,15 @@ function registerGetApps(): void {
Awaited<ReturnType<SelfKintoneClient["getApps"]>>
>("getApps", async (params) => {
const client = await getClient(params.domainId);
return client.getApps(params.spaceId);
return client.getApps({
limit: params.limit,
offset: params.offset,
});
});
}
/**
* Get app detail
*/
@@ -553,7 +544,6 @@ export function registerIpcHandlers(): void {
registerTestDomainConnection();
// Browse
registerGetSpaces();
registerGetApps();
registerGetAppDetail();
registerGetFileContent();