WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Interface IdGenerationOptions

    Configuration options for ID generation behavior.

    interface IdGenerationOptions {
        maxLength: number;
        preserveWords?: boolean;
        minWordLength?: number;
        maxWords?: number;
        separator?: string;
    }
    Index

    Properties

    maxLength: number

    Maximum length for the generated ID

    preserveWords?: boolean

    Whether to preserve word boundaries when truncating

    minWordLength?: number

    Minimum word length to include (shorter words are skipped)

    maxWords?: number

    Maximum number of words to include

    separator?: string

    Custom separator between words (default: '-')