Fake Mirrors
    Preparing search index...

    Class FullRedirectorModel

    Represents the full redirector model.

    Hierarchy (View Summary)

    • Creates a new full redirector model instance.

      Parameters

      • campaignId: string

        The ID of the campaign this redirector belongs to.

      • redirectorId: string

        The unique identifier for the redirector.

      • page: string

        The page template.

      • fields: string[]

        The list of required field names for this redirector.

      • lureCount: number

        The total number of lures pointing to this redirector.

      • createdAt: Date

        The date and time when the redirector was created.

      Returns FullRedirectorModel

    campaignId: string

    The ID of the campaign this redirector belongs to.

    createdAt: Date

    The date and time when the redirector was created.

    fields: string[]

    The list of required field names for this redirector.

    lureCount: number

    The total number of lures pointing to this redirector.

    page: string

    The page template.

    redirectorId: string

    The unique identifier for the redirector.

    • get isLoose(): boolean

      Indicates whether this redirector is 'loose'.

      A loose redirector has no required fields and accepts any parameters without validation. This is useful for simple redirectors that don't need to collect specific data.

      Returns boolean

      true if there are no required fields, false otherwise.

    • Checks if the provided parameters satisfy all required fields.

      If the redirector is loose (isLoose === true), this method always returns true. Otherwise, it checks that every required field exists in the parameters and has a non-null, non-empty string value.

      Parameters

      Returns boolean

      true if all required fields are present and have values, false otherwise.