@altostra/core
Version:
Core library for shared types and logic
18 lines (17 loc) • 1.03 kB
TypeScript
import type { Maybe } from "../../../common/Maybe";
import type { ConfigurationSet } from "../../../common/Models/Environment/ConfigurationSet/ConfigurationSet";
import type { EnvironmentId } from "../../../common/Models/Environment/EnvironmentId";
import type { TokenGetter } from "../ServiceClientBase";
import { ServiceClientBase } from "../ServiceClientBase";
import type { Configuration, ConfigurationType } from "./Configurations";
export interface EnvironmentConfigurationsParams {
endpoint: string;
getToken: TokenGetter;
}
export declare class EnvironmentConfigurations extends ServiceClientBase {
#private;
constructor({ endpoint, getToken, }: EnvironmentConfigurationsParams);
getConfiguration(environmentId: EnvironmentId, type: ConfigurationType): Promise<Maybe<ConfigurationSet>>;
setConfiguration(environmentId: EnvironmentId, configuration: Configuration): Promise<void>;
deleteConfiguration(environmentId: EnvironmentId, type: Exclude<ConfigurationType, 'user'>): Promise<void>;
}