Skip to content

NotificationPresentationInput — @gj-kit/nest-notifications

A public interface from @gj-kit/nest-notifications/core. The signature below is taken directly from the 0.1.1 release declaration.

import { NotificationPresentationInput } from '@gj-kit/nest-notifications/core';
/**
* 표시 포트 — **기본 구현이 없다**(설계 §0.2-② · §3.4.4).
*
* 소스는 `새 알림 N건`을 하드코딩했다. 사용자가 실제로 읽는 문장은 제품 카피이고,
* 기본값을 주면 영어권 소비자가 남의 언어를 배포하며, 중립 폴백을 주면 5건짜리 배치가
* 첫 항목의 문장으로 나간다(둘 다 거짓말이다). 필수 옵션이면 컴파일 에러가 결정을 강제한다.
*/
interface NotificationPresentationInput {
readonly title: string | null;
readonly body: string;
readonly action: NotificationAction | null;
readonly category: string;
readonly priority: NotificationPriority;
/** How many source commands were merged into this delivery. */
readonly batchCount: number;
/** Sum of the merged commands' item counts. */
readonly batchItemCount: number;
readonly aggregationLabel: string | null;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-notifications
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub