Fake Mirrors
    Preparing search index...

    Class FullCampaignModel

    Represents the full campaign model.

    Hierarchy (View Summary)

    • Creates a new full campaign model instance.

      Parameters

      • campaignId: string

        The unique identifier for the campaign.

      • mirrorDomain: string

        The public-facing mirror domain for the campaign.

      • description: string

        The human-readable description for the campaign.

      • cryptSecret: string

        The secret used for encrypting session data.

      • upgradeSessionPath: string

        The URL path that triggers a session upgrade.

      • sessionCookieName: string

        The name of the cookie used to track authorized sessions.

      • sessionCookieNames: string[]

        The names of the cookies used by all campaigns.

      • sessionExpire: number

        The TTL for an authorized session in milliseconds.

      • newSessionExpire: number

        The TTL for a not-yet-authorized session in milliseconds.

      • messageExpire: number

        The TTL for a message in milliseconds.

      • isLocked: boolean

        The flag indicating if the campaign is blocked.

      • flags: string[]

        The list of flags associated to the campaign.

      • proxyIndex: number

        The cardinality of proxy index related to this campaign.

      • targetIndex: number

        The cardinality of target index related to this campaign.

      • redirectorIndex: number

        The cardinality of redirector index related to this campaign.

      • lureIndex: number

        The cardinality of lure index related to this campaign.

      • sessionCount: number

        The total number of sessions processed through this campaign.

      • sessionHistory: number

        The cardinality of session history related to this campaign.

      • messageCount: number

        The total number of messages processed through this campaign.

      • messageHistory: number

        The cardinality of message history related to this campaign.

      • createdAt: Date

        The date and time when the campaign was created.

      Returns FullCampaignModel

    campaignId: string

    The unique identifier for the campaign.

    createdAt: Date

    The date and time when the campaign was created.

    cryptSecret: string

    The secret used for encrypting session data.

    description: string

    The human-readable description for the campaign.

    flags: string[]

    The list of flags associated to the campaign.

    isLocked: boolean

    The flag indicating if the campaign is blocked.

    lureIndex: number

    The cardinality of lure index related to this campaign.

    messageCount: number

    The total number of messages processed through this campaign.

    messageExpire: number

    The TTL for a message in milliseconds.

    messageHistory: number

    The cardinality of message history related to this campaign.

    mirrorDomain: string

    The public-facing mirror domain for the campaign.

    newSessionExpire: number

    The TTL for a not-yet-authorized session in milliseconds.

    proxyIndex: number

    The cardinality of proxy index related to this campaign.

    redirectorIndex: number

    The cardinality of redirector index related to this campaign.

    sessionCookieName: string

    The name of the cookie used to track authorized sessions.

    sessionCookieNames: string[]

    The names of the cookies used by all campaigns.

    sessionCount: number

    The total number of sessions processed through this campaign.

    sessionExpire: number

    The TTL for an authorized session in milliseconds.

    sessionHistory: number

    The cardinality of session history related to this campaign.

    targetIndex: number

    The cardinality of target index related to this campaign.

    upgradeSessionPath: string

    The URL path that triggers a session upgrade.

    • Checks if the campaign has a specific flag.

      Parameters

      • flag: string

        The flag to check.

      Returns boolean

      true if the flag exists, false otherwise.

    • Type guard to filter out null models from a list.

      Type Parameters

      Parameters

      • model: T | null

        The model to check.

      Returns model is T

      true if the model is not null, false otherwise.