@cpod/sdk - v0.2.7
    Preparing search index...

    Function clearAllNotifications

    • Clear all notifications (inbox, archived, or both)

      Parameters

      • Optionaloptions: ClearAllOptions

        Options specifying which notifications to clear (inbox, archived, or all)

      Returns Promise<SimpleResponse>

      Confirmation of clear operation

      401 - Not authenticated

      import { clearAllNotifications } from "@cpod/sdk";

      // Clear inbox only
      await clearAllNotifications({ type: "inbox" });

      // Clear archived only
      await clearAllNotifications({ type: "archived" });

      // Clear all notifications
      await clearAllNotifications({ type: "all" });