Skip to content

MemoryNotificationSnapshot — @gj-kit/nest-notifications

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

import { MemoryNotificationSnapshot } from '@gj-kit/nest-notifications/testing';
/** A read-only view of everything the in-memory suite holds. */
interface MemoryNotificationSnapshot {
readonly outbox: readonly Readonly<OutboxRow>[];
readonly deliveries: readonly Readonly<DeliveryRow>[];
readonly items: readonly Readonly<ItemRow>[];
readonly messages: readonly Readonly<MessageRow>[];
readonly endpoints: readonly Readonly<EndpointRow>[];
readonly preferences: readonly {
readonly applicationKey: string;
readonly recipientRef: string;
readonly category: string;
readonly enabled: boolean;
}[];
/** Opaque recipient keys, as `notificationRecipientKey` computes them. */
readonly tombstones: readonly string[];
}

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