UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

21 lines (19 loc) 748 B
/** * Copyright IBM Corp. 2024, 2025 */ import { GatewayEndpoints } from "../../gateway/models/gateway-endpoint.model.js"; import { Gateway } from "../../gateway/models/gateway.model.js"; export interface IStudioGatewayIndexedDbHandler { setGatewayInstances(gatewayInstance: Gateway): Promise<void>; getGatewayInstances(): Promise<Gateway[] | void>; getGatewayInstance(name: string): Promise<Gateway | void>; deleteGatewayInstance(name: string): Promise<void>; updateGatewayInstance(name: string, gatewayInstance: Gateway): Promise<void>; setEndpoints( gatewayEndpoint: string[], gatewayName: string, apiName: string, gateWayConfig?: string ): Promise<void>; getEndpoints(): Promise<GatewayEndpoints[] | void>; }