mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
26 lines
744 B
TypeScript
26 lines
744 B
TypeScript
|
import ConfigsTI from "app/common/Config-ti";
|
||
|
import { CheckerT, createCheckers } from "ts-interface-checker";
|
||
|
|
||
|
export type ConfigKey = "audit_log_streaming_destinations";
|
||
|
|
||
|
export type ConfigValue = AuditLogStreamingDestinations;
|
||
|
|
||
|
export type AuditLogStreamingDestinations = AuditLogStreamingDestination[];
|
||
|
|
||
|
export interface AuditLogStreamingDestination {
|
||
|
id: string;
|
||
|
name: "splunk";
|
||
|
url: string;
|
||
|
token?: string;
|
||
|
}
|
||
|
|
||
|
export const ConfigKeyChecker = createCheckers(ConfigsTI)
|
||
|
.ConfigKey as CheckerT<ConfigKey>;
|
||
|
|
||
|
const { AuditLogStreamingDestinations } = createCheckers(ConfigsTI);
|
||
|
|
||
|
export const ConfigValueCheckers = {
|
||
|
audit_log_streaming_destinations:
|
||
|
AuditLogStreamingDestinations as CheckerT<AuditLogStreamingDestinations>,
|
||
|
};
|