Fix breaking change in install app command (#20825)

add backward compatibility for twenty-sdk install command
This commit is contained in:
martmull
2026-05-21 22:58:34 +02:00
committed by GitHub
parent c721fa8502
commit 9a7f50fcb7
17 changed files with 207 additions and 99 deletions
@@ -139,8 +139,8 @@ export class FileApi {
}): Promise<ApiResponse<boolean>> {
try {
const mutation = `
mutation InstallMarketplaceApp($universalIdentifier: String!) {
installMarketplaceApp(universalIdentifier: $universalIdentifier) {
mutation InstallApplication($universalIdentifier: String!) {
installApplication(universalIdentifier: $universalIdentifier) {
id
}
}
@@ -169,7 +169,7 @@ export class FileApi {
return {
success: true,
data: response.data.data.installMarketplaceApp,
data: response.data.data.installApplication,
};
} catch (error) {
if (axios.isAxiosError(error) && error.response) {