template-for-typescript-projects
    Preparing search index...
    • Converts a domain Alert into a transport-friendly response object.

      Parameters

      • alert: Alert

        The domain alert to convert.

      Returns {
          createdAt: string;
          details: {
              detected: number;
              limit: number;
              periodType: string | undefined;
              thresholdName: string;
              utility: string;
          };
          failReason: string
          | null;
          id: string;
          isRead: boolean;
          message: string;
          readAt: string | null;
          sentAt: string | null;
          status: AlertStatus;
      }

      A plain object suitable for JSON responses.