Fake Mirrors
    Preparing search index...

    Class LureService

    Represents the lure service.

    • Creates a new lure.

      Parameters

      • data: {
            campaignId: string;
            lockSecret: string;
            lureId: string;
            path: string;
            redirectorId: string;
        }

        The data object.

      Returns Promise<LureModel>

      The created lure model.

    • Deletes the lure by its ID.

      Parameters

      • data: { campaignId: string; lockSecret: string; lureId: string; redirectorId: string }

        The data object.

      Returns Promise<void>

    • Disables the lure, stopping request routing.

      Parameters

      • data: { campaignId: string; lockSecret: string; lureId: string }

        The data object.

      Returns Promise<void>

    • Enables the lure, making it available for request routing.

      Parameters

      • data: { campaignId: string; lockSecret: string; lureId: string }

        The data object.

      Returns Promise<void>

    • Makes the lure URL with optional params.

      Parameters

      • data: {
            campaignId: string;
            lureId: string;
            params: RedirectorParams;
            targetId: string;
        }

        The data object.

      Returns Promise<string>

      The lure URL string.

      ReplServerError If the campaign is not found.

      ReplServerError If the lure is not found.

      ReplServerError If the target is not found.

      ReplServerError If the redirector is not found.

    • Reads the lure by its ID.

      Parameters

      • data: { campaignId: string; lureId: string }

        The data object.

      Returns Promise<LureModel>

      The lure model.

      ReplServerError If the lure is not found.