feat: plugins v1.5
This commit is contained in:
@@ -5,12 +5,16 @@ import type {
|
||||
PluginEventDefinitionSummary,
|
||||
PluginRequirementStatus,
|
||||
PluginRequirementSummary,
|
||||
PluginRequirementsSnapshot
|
||||
PluginRequirementsSnapshot,
|
||||
TojuPluginManifest
|
||||
} from '../../../../shared-kernel';
|
||||
|
||||
export interface UpsertPluginRequirementRequest {
|
||||
actorUserId: string;
|
||||
installUrl?: string;
|
||||
manifest?: TojuPluginManifest;
|
||||
reason?: string;
|
||||
sourceUrl?: string;
|
||||
status: PluginRequirementStatus;
|
||||
versionRange?: string;
|
||||
}
|
||||
@@ -44,6 +48,13 @@ export class PluginRequirementService {
|
||||
);
|
||||
}
|
||||
|
||||
deleteRequirement(apiBaseUrl: string, serverId: string, pluginId: string, actorUserId: string): Observable<{ ok: boolean }> {
|
||||
return this.http.delete<{ ok: boolean }>(
|
||||
`${this.apiBase(apiBaseUrl)}/servers/${encodeURIComponent(serverId)}/plugins/${encodeURIComponent(pluginId)}/requirement`,
|
||||
{ body: { actorUserId } }
|
||||
);
|
||||
}
|
||||
|
||||
upsertEventDefinition(
|
||||
apiBaseUrl: string,
|
||||
serverId: string,
|
||||
|
||||
Reference in New Issue
Block a user