Variable FilterSchemaConst

FilterSchema: ZodObject<{
    id: ZodOptional<ZodNullable<ZodString>>;
    idIn: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
    fulltext: ZodOptional<ZodNullable<ZodString>>;
}, "strip", ZodTypeAny, {
    id?: null | string;
    idIn?: null | string[];
    fulltext?: null | string;
}, {
    id?: null | string;
    idIn?: null | string[];
    fulltext?: null | string;
}> = ...

Base definition of filter schema which should all the Sources implement.

Type declaration

  • id: ZodOptional<ZodNullable<ZodString>>

    Basically any entity should have an ID, thus it's present in the default schema.

  • idIn: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>

    Option to get entities by an array of IDs.

  • fulltext: ZodOptional<ZodNullable<ZodString>>

    Usually it's somehow possible to search for the Entity by some text, thus it's present, but not necessarily required.

Type declaration

  • Optional id?: null | string

    Basically any entity should have an ID, thus it's present in the default schema.

  • Optional idIn?: null | string[]

    Option to get entities by an array of IDs.

  • Optional fulltext?: null | string

    Usually it's somehow possible to search for the Entity by some text, thus it's present, but not necessarily required.

Type declaration

  • Optional id?: null | string

    Basically any entity should have an ID, thus it's present in the default schema.

  • Optional idIn?: null | string[]

    Option to get entities by an array of IDs.

  • Optional fulltext?: null | string

    Usually it's somehow possible to search for the Entity by some text, thus it's present, but not necessarily required.