mirror of https://github.com/buster-so/buster.git
fix build
This commit is contained in:
parent
3b3a4f5a5a
commit
18e7bd2902
|
@ -16,8 +16,7 @@ export const TextSearchResultSchema = z.object({
|
|||
searchableText: z.string(),
|
||||
});
|
||||
|
||||
// Asset type enum matching the database schema
|
||||
export const AssetTypeSchema = z.enum(assetTypeEnum.enumValues);
|
||||
import { AssetTypeSchema } from '../../schema-types/enums';
|
||||
|
||||
/**
|
||||
* Date range filter schema
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
// Type definitions for database enums
|
||||
import { z } from 'zod';
|
||||
|
||||
export const AssetTypeSchema = z.enum(['chat', 'metric_file', 'dashboard_file', 'report_file', 'collection']);
|
||||
export const AssetTypeSchema = z.enum([
|
||||
'chat',
|
||||
'metric_file',
|
||||
'dashboard_file',
|
||||
'report_file',
|
||||
'collection',
|
||||
]);
|
||||
export type AssetType = z.infer<typeof AssetTypeSchema>;
|
||||
|
||||
export type AssetPermissionRole =
|
||||
|
|
Loading…
Reference in New Issue