Saxonberg Server API
    Preparing search index...

    Public method surface — methods only, per the inter-stuff contract. _notifyRules is a public field so the Hydrator can reflect into it, but it is NOT part of the contract surface; external code goes through these methods (or, for resolution, SocialApi).

    interface NotifyPolicy {
        notifyRules(): readonly NotifyRule[];
        removeNotifyRule(groupRef: string): boolean;
        reorderNotifyRule(
            groupRef: string,
            anchor: string,
            where: "above" | "below",
        ): boolean;
        upsertNotifyRule(rule: NotifyRule): void;
        upsertNotifyRuleAt(rule: NotifyRule, position: number): void;
    }
    Index

    Methods

    • Move the rule keyed on groupRef directly above / below anchor. Both must already be stored. Returns true on a successful move.

      Parameters

      • groupRef: string
      • anchor: string
      • where: "above" | "below"

      Returns boolean

    • Like upsertNotifyRule, but a newly-inserted rule lands at position (clamped to the list bounds) rather than at the tail. An existing rule with the same groupRef is still replaced in place and never moved. The caller owns the position semantics (e.g. reserved-rank ordering) — this stays dumb storage.

      Parameters

      Returns void