refactor: trim qa channel helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 20:10:25 +01:00
parent f5f8562384
commit c6cb7b4801
2 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ const QaChannelGroupConfigSchema = z
})
.strict();
export const QaChannelAccountConfigSchema = z
const QaChannelAccountConfigSchema = z
.object({
name: z.string().optional(),
enabled: z.boolean().optional(),
@@ -38,7 +38,7 @@ export const QaChannelAccountConfigSchema = z
})
.strict();
export const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({
const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({
accounts: z.record(z.string(), QaChannelAccountConfigSchema.partial()).optional(),
defaultAccount: z.string().optional(),
}).strict();

View File

@@ -1,4 +1,4 @@
export type QaChannelActionConfig = {
type QaChannelActionConfig = {
messages?: boolean;
reactions?: boolean;
search?: boolean;
@@ -27,7 +27,7 @@ export type QaChannelAccountConfig = {
actions?: QaChannelActionConfig;
};
export type QaChannelConfig = QaChannelAccountConfig & {
type QaChannelConfig = QaChannelAccountConfig & {
accounts?: Record<string, Partial<QaChannelAccountConfig>>;
defaultAccount?: string;
};