mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
feat(core): remove mode and pages field from Collection (#4817)
This commit is contained in:
3
packages/common/env/src/filter.ts
vendored
3
packages/common/env/src/filter.ts
vendored
@@ -51,11 +51,8 @@ export type Filter = z.input<typeof filterSchema>;
|
||||
export const collectionSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
mode: z.union([z.literal('page'), z.literal('rule')]),
|
||||
filterList: z.array(filterSchema),
|
||||
allowList: z.array(z.string()),
|
||||
// page id list
|
||||
pages: z.array(z.string()),
|
||||
});
|
||||
export const deletedCollectionSchema = z.object({
|
||||
userId: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user