calmlens 0.38.3

Rust SDK for CalmLens moderation, storage and CDN delivery
Documentation
// Generated by packages/sdk-contract/mockAssetFilters.ts from ASSET_FILTER_FIELDS (packages/shared-backend/src/AssetFilters.ts) and listFilterOperators (PaginationUtils.ts); do not edit.
// A filter may name only these fields, each with only its operators; anything else is
// filter/invalid. A number field's value must be a finite number, and `null` is a
// missing value only on a nullable field.

/// Each field a list filter may name: its kind (`number`, `text` or `list`), whether it is
/// nullable, and the operators it accepts.
pub(crate) const ASSET_FILTER_FIELDS: &[(&str, &str, bool, &[&str])] = &[
    (
        "id",
        "text",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "parentId",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "folderId",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "uploadPresetId",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "createdAt",
        "number",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "updatedAt",
        "number",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "type",
        "text",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "name",
        "text",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "externalId",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "externalUrl",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "authorId",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    ("tags", "list", false, &["=in=", "=out="]),
    (
        "visibility",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "upload.status",
        "text",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "upload.updatedAt",
        "number",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "classification.status",
        "text",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "classification.updatedAt",
        "number",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "classification.completedAt",
        "number",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "classification.moderation.decision",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "content.status",
        "text",
        false,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "content.removalReason",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "content.updatedAt",
        "number",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "content.format",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "content.extension",
        "text",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
    (
        "content.sizeInBytes",
        "number",
        true,
        &["==", "!=", ">", ">=", "<", "<=", "=in=", "=out="],
    ),
];