콘텐츠로 이동

NotificationPresentationInput — @gj-kit/nest-notifications

@gj-kit/nest-notifications에서 공개하는 interface입니다. package version 0.1.1의 release declaration을 그대로 표시합니다.

import { NotificationPresentationInput } from '@gj-kit/nest-notifications';
/**
* 표시 포트 — **기본 구현이 없다**(설계 §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;
}

이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.

  • 패키지: @gj-kit/nest-notifications
  • 버전: 0.1.1
  • 공개 entry: .
  • 소스: GitHub

표시 포트 — 기본 구현이 없다(설계 §0.2-② · §3.4.4).

소스는 새 알림 N건을 하드코딩했다. 사용자가 실제로 읽는 문장은 제품 카피이고, 기본값을 주면 영어권 소비자가 남의 언어를 배포하며, 중립 폴백을 주면 5건짜리 배치가 첫 항목의 문장으로 나간다(둘 다 거짓말이다). 필수 옵션이면 컴파일 에러가 결정을 강제한다.