NotificationSchedulingPolicy — @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.
Verified import example
Section titled “Verified import example”import { NotificationSchedulingPolicy } from '@gj-kit/nest-notifications/core';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Pure scheduling decisions. Implement this interface to vary policy per * recipient (their own zone) or per category; {@link createQuietHoursPolicy} is * the built-in single-zone implementation. */interface NotificationSchedulingPolicy { /** True when `at` falls inside the configured quiet window. */ isQuietHours(at: Date): boolean; /** Earliest instant this command may be delivered. Never earlier than `now`. */ resolveDeliveryAt(input: ResolveDeliveryInput): Date; /** Aggregation bucket that contains `at`. */ batchWindow(at: Date): NotificationBatchWindow;}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.
Release context
Section titled “Release context”- Package:
@gj-kit/nest-notifications - Version:
0.1.1 - Public entry:
./core - Source: GitHub