({ providerProfile, pluginName, marketplaceName = null, marketplacePath = null }: any = {})
| 601 | } |
| 602 | |
| 603 | async installPlugin({ providerProfile, pluginName, marketplaceName = null, marketplacePath = null }: any = {}) { |
| 604 | this.installPluginCalls.push({ providerProfile, pluginName, marketplaceName, marketplacePath }); |
| 605 | const plugin = this.findPluginSummaryByName(pluginName, marketplaceName, marketplacePath); |
| 606 | if (plugin) { |
| 607 | plugin.installed = true; |
| 608 | } |
| 609 | this.recomputePluginEnabledStates(); |
| 610 | const detail = this.pluginDetails.get(pluginName) ?? null; |
| 611 | return { |
| 612 | authPolicy: plugin?.authPolicy ?? 'ON_USE', |
| 613 | appsNeedingAuth: detail?.apps?.filter((entry: any) => entry?.needsAuth) ?? [], |
| 614 | }; |
| 615 | } |
| 616 | |
| 617 | async uninstallPlugin({ providerProfile, pluginId }: any = {}) { |
| 618 | this.uninstallPluginCalls.push({ providerProfile, pluginId }); |
nothing calls this directly
no test coverage detected