Skip to content

NotificationsErrorCode — @gj-kit/nest-notifications

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

import { NotificationsErrorCode } from '@gj-kit/nest-notifications';
/**
* 타입드 에러와 에러 코드 축약.
*
* 소스는 `new Error(문자열)`과 Nest 예외를 섞어 던졌다(설계 §0.2-⑧). AGENTS.md §2가
* 요구하는 것은 안정적인 code 유니언과 type guard이고, 이 파일이 그 둘을 소유한다.
*/
/** Stable, closed set of error codes this package throws. */
type NotificationsErrorCode = 'ERR_NOTIFICATION_COMMAND_INVALID' | 'ERR_NOTIFICATION_APPLICATION_KEY_INVALID' | 'ERR_NOTIFICATION_RECIPIENT_KEY_INPUT' | 'ERR_NOTIFICATION_POLICY_INVALID' | 'ERR_NOTIFICATION_TIMEZONE_INVALID' | 'ERR_NOTIFICATION_PRIORITY_UNSUPPORTED' | 'ERR_NOTIFICATION_PUSH_HANDOFF_REJECTED' | 'ERR_NOTIFICATION_MESSAGE_NOT_VISIBLE' | 'ERR_NOTIFICATION_CONFIG_INVALID';

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: .
  • Source: GitHub