콘텐츠로 이동

@gj-kit/nest-notifications

트랜잭션 알림 relay, dispatch, presentation, Expo push 경계를 위한 NestJS 조합 패키지입니다.

현재 npm 최신판: 0.1.1

제품 이벤트를 delivery 정책을 제품 도메인에 섞지 않고 내구성 있고 dedupe된 알림 작업으로 전환해야 할 때 사용합니다.

제품 문구, 수신자 정책, 사용자 선호 결정을 범용 relay로 옮기지 마세요.

완료 상태: 앱의 store와 push gateway에 연결된 내구성 있는 relay·dispatch runner를 만듭니다.

Terminal window
pnpm add @gj-kit/nest-notifications

2. 앱이 소유할 경계를 정합니다

섹션 제목: “2. 앱이 소유할 경계를 정합니다”

Nest module을 등록하기 전에 제품 정책은 앱 소유 store, presenter, scheduling policy에 둡니다.

먼저 아래 코드를 복사한 뒤, 위에서 언급한 앱 소유 값만 교체하세요.

import { NestNotificationsModule, type NestNotificationsOptions } from '@gj-kit/nest-notifications';
declare const options: NestNotificationsOptions; // App stores, presenter, policy, and push gateway.
export const notifications = NestNotificationsModule.forRoot(options);

엔진: node >=20

Peer 지원 범위 필요한 위치
@nestjs/common `^10
reflect-metadata `^0.1.13
rxjs ^7 패키지 통합
Entry Exported symbols
Root entry 77
./core 78
./expo 11
./testing 14

credential, endpoint 소유권, 사용자 노출 제품 문구는 앱에 둡니다. 원본 provider 실패 대신 typed error와 delivery outcome을 사용하세요.

전체 API reference에는 선언 파일에서 생성한 모든 공개 함수, 클래스, 타입, 상수, 오류 계약이 있습니다. 각 항목은 import path, release signature, package version을 표시합니다.

@gj-kit/nest-operations-jobs, @gj-kit/expo-auth

npm · GitHub