(owner: Owner)
| 510 | |
| 511 | type LinearUninstallOptions = { |
| 512 | getChatSdkAccessToken?: (organizationId: string) => Promise<string | null>; |
| 513 | deleteChatSdkInstallation?: (organizationId: string) => Promise<void>; |
| 514 | deleteChatSdkIdentityCache?: (organizationId: string) => Promise<void>; |
| 515 | }; |
| 516 | |
| 517 | export async function uninstallApp(owner: Owner, options: LinearUninstallOptions = {}) { |
| 518 | const integration = await getInstallation(owner); |
| 519 | |
| 520 | if (!integration) { |
| 521 | throw new TRPCError({ |
| 522 | code: 'NOT_FOUND', |
| 523 | message: 'Linear installation not found', |
| 524 | }); |
| 525 | } |
| 526 | |
| 527 | const organizationId = integration.platform_installation_id ?? integration.platform_account_id; |
| 528 | const isActive = integration.integration_status === INTEGRATION_STATUS.ACTIVE; |
nothing calls this directly
no test coverage detected