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(),
|
searchableText: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Asset type enum matching the database schema
|
import { AssetTypeSchema } from '../../schema-types/enums';
|
||||||
export const AssetTypeSchema = z.enum(assetTypeEnum.enumValues);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Date range filter schema
|
* Date range filter schema
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
// Type definitions for database enums
|
// Type definitions for database enums
|
||||||
import { z } from 'zod';
|
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 AssetType = z.infer<typeof AssetTypeSchema>;
|
||||||
|
|
||||||
export type AssetPermissionRole =
|
export type AssetPermissionRole =
|
||||||
|
|
|
@ -8,4 +8,4 @@ export type BaseAssetType = z.infer<typeof BaseAssetTypeSchema>;
|
||||||
|
|
||||||
export { AssetTypeSchema };
|
export { AssetTypeSchema };
|
||||||
|
|
||||||
export type { AssetType };
|
export type { AssetType };
|
||||||
|
|
Loading…
Reference in New Issue