@warlock.js/notifications 5.28.0 → 5.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/cjs/{channel_api-CBB_XoIl.cjs → channel_api-C5ZZDkgQ.cjs} +21 -21
- package/cjs/channel_api-C5ZZDkgQ.cjs.map +1 -0
- package/cjs/index.cjs +22 -22
- package/cjs/index.cjs.map +1 -1
- package/cjs/rabbitmq-driver-BFoWr21L.cjs +3 -0
- package/cjs/{src-B6UVThgW.cjs → src-eu2jxS21.cjs} +173 -135
- package/cjs/src-eu2jxS21.cjs.map +1 -0
- package/esm/channels/database-channel.d.mts +1 -1
- package/esm/channels/database-channel.d.mts.map +1 -1
- package/esm/channels/database-channel.mjs +1 -1
- package/esm/channels/database-channel.mjs.map +1 -1
- package/esm/channels/mail-channel.d.mts +1 -1
- package/esm/channels/mail-channel.d.mts.map +1 -1
- package/esm/channels/mail-channel.mjs +1 -1
- package/esm/channels/mail-channel.mjs.map +1 -1
- package/esm/config.d.mts +1 -1
- package/esm/config.d.mts.map +1 -1
- package/esm/config.mjs +1 -1
- package/esm/config.mjs.map +1 -1
- package/esm/contracts/channel.contract.d.mts +1 -1
- package/esm/contracts/channel.contract.d.mts.map +1 -1
- package/esm/contracts/notification.contract.d.mts +1 -1
- package/esm/contracts/notification.contract.d.mts.map +1 -1
- package/esm/contracts/preference-provider.contract.d.mts +1 -1
- package/esm/contracts/preference-provider.contract.d.mts.map +1 -1
- package/esm/contracts/queue-dispatcher.contract.d.mts +1 -1
- package/esm/contracts/queue-dispatcher.contract.d.mts.map +1 -1
- package/esm/contracts/rate-limiter.contract.d.mts +1 -1
- package/esm/contracts/rate-limiter.contract.d.mts.map +1 -1
- package/esm/dispatch/define-channel.d.mts +1 -1
- package/esm/dispatch/define-channel.d.mts.map +1 -1
- package/esm/dispatch/define-channel.mjs +1 -1
- package/esm/dispatch/define-channel.mjs.map +1 -1
- package/esm/dispatch/define-notification.d.mts +1 -1
- package/esm/dispatch/define-notification.d.mts.map +1 -1
- package/esm/dispatch/define-notification.mjs +1 -1
- package/esm/dispatch/define-notification.mjs.map +1 -1
- package/esm/dispatch/dispatch-id.mjs +1 -1
- package/esm/dispatch/dispatch-id.mjs.map +1 -1
- package/esm/dispatch/dispatcher.mjs +1 -1
- package/esm/dispatch/dispatcher.mjs.map +1 -1
- package/esm/dispatch/notifications-event-bus.d.mts +1 -1
- package/esm/dispatch/notifications-event-bus.d.mts.map +1 -1
- package/esm/dispatch/notifications-event-bus.mjs +1 -1
- package/esm/dispatch/notifications-event-bus.mjs.map +1 -1
- package/esm/dispatch/notify.d.mts +1 -1
- package/esm/dispatch/notify.d.mts.map +1 -1
- package/esm/dispatch/notify.mjs +1 -1
- package/esm/dispatch/notify.mjs.map +1 -1
- package/esm/errors.d.mts +1 -1
- package/esm/errors.d.mts.map +1 -1
- package/esm/errors.mjs +1 -1
- package/esm/errors.mjs.map +1 -1
- package/esm/in-app/base-notifications-repository.d.mts +1 -1
- package/esm/in-app/base-notifications-repository.d.mts.map +1 -1
- package/esm/in-app/base-notifications-repository.mjs +1 -1
- package/esm/in-app/base-notifications-repository.mjs.map +1 -1
- package/esm/in-app/column-map.d.mts +1 -1
- package/esm/in-app/column-map.d.mts.map +1 -1
- package/esm/in-app/column-map.mjs +1 -1
- package/esm/in-app/column-map.mjs.map +1 -1
- package/esm/in-app/database-notification.d.mts +1 -1
- package/esm/in-app/database-notification.d.mts.map +1 -1
- package/esm/in-app/database-notification.mjs +1 -1
- package/esm/in-app/database-notification.mjs.map +1 -1
- package/esm/in-app/in-app.d.mts +1 -1
- package/esm/in-app/in-app.d.mts.map +1 -1
- package/esm/in-app/in-app.mjs +1 -1
- package/esm/in-app/in-app.mjs.map +1 -1
- package/esm/migration/notification-columns.d.mts +1 -1
- package/esm/migration/notification-columns.d.mts.map +1 -1
- package/esm/migration/notification-columns.mjs +1 -1
- package/esm/migration/notification-columns.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs.map +1 -1
- package/esm/node_modules/.pnpm/@mongez_supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs +1 -1
- package/esm/node_modules/.pnpm/@mongez_supportive-is@3.0.0/node_modules/@mongez/supportive-is/esm/index.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/channel_api.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/api_args.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/bitset.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel_model.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/channel_model.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/codec.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/codec.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connect.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connect.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connection.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/connection.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/credentials.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/credentials.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/defs.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/defs.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/error.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/error.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/format.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/format.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/frame.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/frame.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/heartbeat.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/heartbeat.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/mux.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/lib/mux.mjs.map +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/package.mjs +1 -1
- package/esm/node_modules/.pnpm/amqplib@0.10.9/node_modules/amqplib/package.mjs.map +1 -1
- package/esm/node_modules/.pnpm/buffer-more-ints@1.0.0/node_modules/buffer-more-ints/buffer-more-ints.mjs +1 -1
- package/esm/node_modules/.pnpm/buffer-more-ints@1.0.0/node_modules/buffer-more-ints/buffer-more-ints.mjs.map +1 -1
- package/esm/node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.mjs +1 -1
- package/esm/node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.mjs.map +1 -1
- package/esm/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.mjs +1 -1
- package/esm/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.mjs.map +1 -1
- package/esm/node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.mjs +1 -1
- package/esm/node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.mjs.map +1 -1
- package/esm/node_modules/.pnpm/url-parse@1.5.10/node_modules/url-parse/index.mjs +1 -1
- package/esm/node_modules/.pnpm/url-parse@1.5.10/node_modules/url-parse/index.mjs.map +1 -1
- package/esm/{herald → packages/herald}/src/communicators/broker-registry.mjs +1 -1
- package/esm/packages/herald/src/communicators/broker-registry.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/communicators/broker.mjs +1 -1
- package/esm/packages/herald/src/communicators/broker.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/decorators/consumable.mjs +1 -1
- package/esm/packages/herald/src/decorators/consumable.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/drivers/rabbitmq/rabbitmq-channel.mjs +1 -1
- package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/drivers/rabbitmq/rabbitmq-driver.mjs +3 -3
- package/esm/packages/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/message-managers/event-consumer.mjs +1 -1
- package/esm/packages/herald/src/message-managers/event-consumer.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/message-managers/event-message.mjs +1 -1
- package/esm/packages/herald/src/message-managers/event-message.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/message-managers/prepare-consumer-subscription.mjs +1 -1
- package/esm/packages/herald/src/message-managers/prepare-consumer-subscription.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/use-case-broadcast.mjs +1 -1
- package/esm/packages/herald/src/use-case-broadcast.mjs.map +1 -0
- package/esm/{herald → packages/herald}/src/utils/connect-to-broker.mjs +1 -1
- package/esm/packages/herald/src/utils/connect-to-broker.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/config.mjs +1 -1
- package/esm/packages/seal/src/config.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/factory/validate.mjs +12 -4
- package/esm/packages/seal/src/factory/validate.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/factory/validators.mjs +1 -1
- package/esm/packages/seal/src/factory/validators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/helpers/date-helpers.mjs +1 -1
- package/esm/packages/seal/src/helpers/date-helpers.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/helpers/get-field-value.mjs +3 -3
- package/esm/packages/seal/src/helpers/get-field-value.mjs.map +1 -0
- package/esm/packages/seal/src/helpers/is-empty-value.mjs +10 -0
- package/esm/packages/seal/src/helpers/is-empty-value.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/helpers/path-helpers.mjs +1 -1
- package/esm/packages/seal/src/helpers/path-helpers.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/helpers/validation-helpers.mjs +1 -1
- package/esm/packages/seal/src/helpers/validation-helpers.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/array-mutators.mjs +3 -3
- package/esm/packages/seal/src/mutators/array-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/boolean-mutators.mjs +1 -1
- package/esm/packages/seal/src/mutators/boolean-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/date-mutators.mjs +3 -3
- package/esm/packages/seal/src/mutators/date-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/number-mutators.mjs +4 -4
- package/esm/packages/seal/src/mutators/number-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/object-mutators.mjs +4 -4
- package/esm/packages/seal/src/mutators/object-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/scalar-mutators.mjs +1 -1
- package/esm/packages/seal/src/mutators/scalar-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/mutators/string-mutators.mjs +11 -11
- package/esm/packages/seal/src/mutators/string-mutators.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/object.mjs +1 -1
- package/esm/packages/seal/src/object.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/array/array-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/array/array-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/color/color-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/color/color-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/common/enum.mjs +1 -1
- package/esm/packages/seal/src/rules/common/enum.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/common/equals-field-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/common/equals-field-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/common/instanceof.mjs +1 -1
- package/esm/packages/seal/src/rules/common/instanceof.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/common/literal.mjs +1 -1
- package/esm/packages/seal/src/rules/common/literal.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/common/type-rules.mjs +2 -2
- package/esm/packages/seal/src/rules/common/type-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/common/unknown-key.mjs +1 -1
- package/esm/packages/seal/src/rules/common/unknown-key.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/forbidden-if-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/conditional/forbidden-if-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/present-if-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/conditional/present-if-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/present-unless-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/conditional/present-unless-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/present-with-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/conditional/present-with-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/present-without-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/conditional/present-without-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/required-if-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/conditional/required-if-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/required-unless-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/conditional/required-unless-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/required-when-rule.mjs +1 -1
- package/esm/packages/seal/src/rules/conditional/required-when-rule.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/required-with-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/conditional/required-with-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/conditional/required-without-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/conditional/required-without-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/core/equal.mjs +1 -1
- package/esm/packages/seal/src/rules/core/equal.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/core/forbidden.mjs +1 -1
- package/esm/packages/seal/src/rules/core/forbidden.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/core/required.mjs +1 -1
- package/esm/packages/seal/src/rules/core/required.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/core/union.mjs +3 -1
- package/esm/packages/seal/src/rules/core/union.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/core/when.mjs +3 -3
- package/esm/packages/seal/src/rules/core/when.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date-comparison-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/date/date-comparison-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date-day-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/date/date-day-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date-field-comparison-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/date/date-field-comparison-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date-period-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/date/date-period-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date-relative-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/date/date-relative-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date-special-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/date/date-special-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/date/date.mjs +3 -3
- package/esm/packages/seal/src/rules/date/date.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/length/length-rules.mjs +1 -1
- package/esm/packages/seal/src/rules/length/length-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/number/number-rules.mjs +3 -3
- package/esm/packages/seal/src/rules/number/number-rules.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/scalar/accepted-rule.mjs +1 -1
- package/esm/packages/seal/src/rules/scalar/accepted-rule.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/scalar/declined-rule.mjs +1 -1
- package/esm/packages/seal/src/rules/scalar/declined-rule.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/alpha.mjs +1 -1
- package/esm/packages/seal/src/rules/string/alpha.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/credit-card.mjs +1 -1
- package/esm/packages/seal/src/rules/string/credit-card.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/email.mjs +2 -2
- package/esm/packages/seal/src/rules/string/email.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/id-formats.mjs +1 -1
- package/esm/packages/seal/src/rules/string/id-formats.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/ip.mjs +1 -1
- package/esm/packages/seal/src/rules/string/ip.mjs.map +1 -0
- package/esm/packages/seal/src/rules/string/matches.mjs +4 -0
- package/esm/{seal → packages/seal}/src/rules/string/pattern.mjs +1 -1
- package/esm/packages/seal/src/rules/string/pattern.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/string-comparison.mjs +1 -1
- package/esm/packages/seal/src/rules/string/string-comparison.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/strong-password-rule.mjs +1 -1
- package/esm/packages/seal/src/rules/string/strong-password-rule.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/url.mjs +1 -1
- package/esm/packages/seal/src/rules/string/url.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/rules/string/without-whitespace.mjs +1 -1
- package/esm/packages/seal/src/rules/string/without-whitespace.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/standard-schema/json-schema.mjs +1 -1
- package/esm/packages/seal/src/standard-schema/json-schema.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/standard-schema/map-result.mjs +1 -1
- package/esm/packages/seal/src/standard-schema/map-result.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/string.mjs +1 -1
- package/esm/packages/seal/src/string.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/types/date-types.mjs +1 -1
- package/esm/packages/seal/src/types/date-types.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/any-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/any-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/array-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/array-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/base-validator.mjs +25 -6
- package/esm/packages/seal/src/validators/base-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/boolean-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/boolean-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/computed-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/computed-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/date-validator.mjs +3 -3
- package/esm/packages/seal/src/validators/date-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/discriminated-union-validator.mjs +7 -2
- package/esm/packages/seal/src/validators/discriminated-union-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/float-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/float-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/instanceof-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/instanceof-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/int-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/int-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/lazy-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/lazy-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/literal-validator.mjs +5 -2
- package/esm/packages/seal/src/validators/literal-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/managed-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/managed-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/methods/equality-conditional-methods.mjs +1 -1
- package/esm/packages/seal/src/validators/methods/equality-conditional-methods.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/methods/forbidden-methods.mjs +1 -1
- package/esm/packages/seal/src/validators/methods/forbidden-methods.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/methods/present-methods.mjs +1 -1
- package/esm/packages/seal/src/validators/methods/present-methods.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/methods/required-methods.mjs +1 -1
- package/esm/packages/seal/src/validators/methods/required-methods.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/number-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/number-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/numeric-validator.mjs +2 -2
- package/esm/packages/seal/src/validators/numeric-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/object-validator.mjs +8 -6
- package/esm/packages/seal/src/validators/object-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/primitive-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/primitive-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/record-validator.mjs +2 -2
- package/esm/packages/seal/src/validators/record-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/scalar-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/scalar-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/string-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/string-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/tuple-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/tuple-validator.mjs.map +1 -0
- package/esm/{seal → packages/seal}/src/validators/union-validator.mjs +1 -1
- package/esm/packages/seal/src/validators/union-validator.mjs.map +1 -0
- package/esm/queue/bullmq-queue.d.mts +1 -1
- package/esm/queue/bullmq-queue.d.mts.map +1 -1
- package/esm/queue/bullmq-queue.mjs +1 -1
- package/esm/queue/bullmq-queue.mjs.map +1 -1
- package/esm/queue/herald-queue.d.mts +1 -1
- package/esm/queue/herald-queue.d.mts.map +1 -1
- package/esm/queue/herald-queue.mjs +1 -1
- package/esm/queue/herald-queue.mjs.map +1 -1
- package/esm/queue/load-herald.d.mts +1 -1
- package/esm/queue/load-herald.d.mts.map +1 -1
- package/esm/queue/load-herald.mjs +2 -2
- package/esm/queue/load-herald.mjs.map +1 -1
- package/esm/queue/load-queue.d.mts +1 -1
- package/esm/queue/load-queue.d.mts.map +1 -1
- package/esm/queue/load-queue.mjs +1 -1
- package/esm/queue/load-queue.mjs.map +1 -1
- package/esm/queue/notifications-worker.d.mts +1 -1
- package/esm/queue/notifications-worker.d.mts.map +1 -1
- package/esm/queue/notifications-worker.mjs +1 -1
- package/esm/queue/notifications-worker.mjs.map +1 -1
- package/esm/queue/queue-package-not-installed.error.d.mts +1 -1
- package/esm/queue/queue-package-not-installed.error.d.mts.map +1 -1
- package/esm/queue/queue-package-not-installed.error.mjs +1 -1
- package/esm/queue/queue-package-not-installed.error.mjs.map +1 -1
- package/esm/types.d.mts +1 -1
- package/esm/types.d.mts.map +1 -1
- package/llms-full.txt +57 -57
- package/llms.txt +8 -8
- package/package.json +9 -8
- package/skills/configure-notifications/SKILL.md +6 -6
- package/skills/define-channel/SKILL.md +6 -6
- package/skills/define-notification/SKILL.md +5 -5
- package/skills/notifications-basics/SKILL.md +8 -8
- package/skills/observe-notifications/SKILL.md +4 -4
- package/skills/queue-notifications/SKILL.md +5 -5
- package/skills/send-ad-hoc/SKILL.md +8 -8
- package/skills/use-in-app/SKILL.md +8 -8
- package/skills/write-notification-migration/SKILL.md +7 -7
- package/cjs/channel_api-CBB_XoIl.cjs.map +0 -1
- package/cjs/rabbitmq-driver-CYeFwv0w.cjs +0 -3
- package/cjs/src-B6UVThgW.cjs.map +0 -1
- package/esm/herald/src/communicators/broker-registry.mjs.map +0 -1
- package/esm/herald/src/communicators/broker.mjs.map +0 -1
- package/esm/herald/src/decorators/consumable.mjs.map +0 -1
- package/esm/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs.map +0 -1
- package/esm/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs.map +0 -1
- package/esm/herald/src/message-managers/event-consumer.mjs.map +0 -1
- package/esm/herald/src/message-managers/event-message.mjs.map +0 -1
- package/esm/herald/src/message-managers/prepare-consumer-subscription.mjs.map +0 -1
- package/esm/herald/src/use-case-broadcast.mjs.map +0 -1
- package/esm/herald/src/utils/connect-to-broker.mjs.map +0 -1
- package/esm/seal/src/config.mjs.map +0 -1
- package/esm/seal/src/factory/validate.mjs.map +0 -1
- package/esm/seal/src/factory/validators.mjs.map +0 -1
- package/esm/seal/src/helpers/date-helpers.mjs.map +0 -1
- package/esm/seal/src/helpers/get-field-value.mjs.map +0 -1
- package/esm/seal/src/helpers/is-empty-value.mjs +0 -10
- package/esm/seal/src/helpers/is-empty-value.mjs.map +0 -1
- package/esm/seal/src/helpers/path-helpers.mjs.map +0 -1
- package/esm/seal/src/helpers/validation-helpers.mjs.map +0 -1
- package/esm/seal/src/mutators/array-mutators.mjs.map +0 -1
- package/esm/seal/src/mutators/boolean-mutators.mjs.map +0 -1
- package/esm/seal/src/mutators/date-mutators.mjs.map +0 -1
- package/esm/seal/src/mutators/number-mutators.mjs.map +0 -1
- package/esm/seal/src/mutators/object-mutators.mjs.map +0 -1
- package/esm/seal/src/mutators/scalar-mutators.mjs.map +0 -1
- package/esm/seal/src/mutators/string-mutators.mjs.map +0 -1
- package/esm/seal/src/object.mjs.map +0 -1
- package/esm/seal/src/rules/array/array-rules.mjs.map +0 -1
- package/esm/seal/src/rules/color/color-rules.mjs.map +0 -1
- package/esm/seal/src/rules/common/enum.mjs.map +0 -1
- package/esm/seal/src/rules/common/equals-field-rules.mjs.map +0 -1
- package/esm/seal/src/rules/common/instanceof.mjs.map +0 -1
- package/esm/seal/src/rules/common/literal.mjs.map +0 -1
- package/esm/seal/src/rules/common/type-rules.mjs.map +0 -1
- package/esm/seal/src/rules/common/unknown-key.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/forbidden-if-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/present-if-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/present-unless-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/present-with-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/present-without-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/required-if-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/required-unless-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/required-when-rule.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/required-with-rules.mjs.map +0 -1
- package/esm/seal/src/rules/conditional/required-without-rules.mjs.map +0 -1
- package/esm/seal/src/rules/core/equal.mjs.map +0 -1
- package/esm/seal/src/rules/core/forbidden.mjs.map +0 -1
- package/esm/seal/src/rules/core/required.mjs.map +0 -1
- package/esm/seal/src/rules/core/union.mjs.map +0 -1
- package/esm/seal/src/rules/core/when.mjs.map +0 -1
- package/esm/seal/src/rules/date/date-comparison-rules.mjs.map +0 -1
- package/esm/seal/src/rules/date/date-day-rules.mjs.map +0 -1
- package/esm/seal/src/rules/date/date-field-comparison-rules.mjs.map +0 -1
- package/esm/seal/src/rules/date/date-period-rules.mjs.map +0 -1
- package/esm/seal/src/rules/date/date-relative-rules.mjs.map +0 -1
- package/esm/seal/src/rules/date/date-special-rules.mjs.map +0 -1
- package/esm/seal/src/rules/date/date.mjs.map +0 -1
- package/esm/seal/src/rules/length/length-rules.mjs.map +0 -1
- package/esm/seal/src/rules/number/number-rules.mjs.map +0 -1
- package/esm/seal/src/rules/scalar/accepted-rule.mjs.map +0 -1
- package/esm/seal/src/rules/scalar/declined-rule.mjs.map +0 -1
- package/esm/seal/src/rules/string/alpha.mjs.map +0 -1
- package/esm/seal/src/rules/string/credit-card.mjs.map +0 -1
- package/esm/seal/src/rules/string/email.mjs.map +0 -1
- package/esm/seal/src/rules/string/id-formats.mjs.map +0 -1
- package/esm/seal/src/rules/string/ip.mjs.map +0 -1
- package/esm/seal/src/rules/string/matches.mjs +0 -4
- package/esm/seal/src/rules/string/pattern.mjs.map +0 -1
- package/esm/seal/src/rules/string/string-comparison.mjs.map +0 -1
- package/esm/seal/src/rules/string/strong-password-rule.mjs.map +0 -1
- package/esm/seal/src/rules/string/url.mjs.map +0 -1
- package/esm/seal/src/rules/string/without-whitespace.mjs.map +0 -1
- package/esm/seal/src/standard-schema/json-schema.mjs.map +0 -1
- package/esm/seal/src/standard-schema/map-result.mjs.map +0 -1
- package/esm/seal/src/string.mjs.map +0 -1
- package/esm/seal/src/types/date-types.mjs.map +0 -1
- package/esm/seal/src/validators/any-validator.mjs.map +0 -1
- package/esm/seal/src/validators/array-validator.mjs.map +0 -1
- package/esm/seal/src/validators/base-validator.mjs.map +0 -1
- package/esm/seal/src/validators/boolean-validator.mjs.map +0 -1
- package/esm/seal/src/validators/computed-validator.mjs.map +0 -1
- package/esm/seal/src/validators/date-validator.mjs.map +0 -1
- package/esm/seal/src/validators/discriminated-union-validator.mjs.map +0 -1
- package/esm/seal/src/validators/float-validator.mjs.map +0 -1
- package/esm/seal/src/validators/instanceof-validator.mjs.map +0 -1
- package/esm/seal/src/validators/int-validator.mjs.map +0 -1
- package/esm/seal/src/validators/lazy-validator.mjs.map +0 -1
- package/esm/seal/src/validators/literal-validator.mjs.map +0 -1
- package/esm/seal/src/validators/managed-validator.mjs.map +0 -1
- package/esm/seal/src/validators/methods/equality-conditional-methods.mjs.map +0 -1
- package/esm/seal/src/validators/methods/forbidden-methods.mjs.map +0 -1
- package/esm/seal/src/validators/methods/present-methods.mjs.map +0 -1
- package/esm/seal/src/validators/methods/required-methods.mjs.map +0 -1
- package/esm/seal/src/validators/number-validator.mjs.map +0 -1
- package/esm/seal/src/validators/numeric-validator.mjs.map +0 -1
- package/esm/seal/src/validators/object-validator.mjs.map +0 -1
- package/esm/seal/src/validators/primitive-validator.mjs.map +0 -1
- package/esm/seal/src/validators/record-validator.mjs.map +0 -1
- package/esm/seal/src/validators/scalar-validator.mjs.map +0 -1
- package/esm/seal/src/validators/string-validator.mjs.map +0 -1
- package/esm/seal/src/validators/tuple-validator.mjs.map +0 -1
- package/esm/seal/src/validators/union-validator.mjs.map +0 -1
- /package/esm/{herald → packages/herald}/src/communicators/index.mjs +0 -0
- /package/esm/{herald → packages/herald}/src/decorators/index.mjs +0 -0
- /package/esm/{herald → packages/herald}/src/drivers/index.mjs +0 -0
- /package/esm/{herald → packages/herald}/src/drivers/rabbitmq/index.mjs +0 -0
- /package/esm/{herald → packages/herald}/src/index.mjs +0 -0
- /package/esm/{herald → packages/herald}/src/message-managers/index.mjs +0 -0
- /package/esm/{herald → packages/herald}/src/utils/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/factory/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/helpers/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/mutators/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/array/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/color/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/common/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/conditional/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/core/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/date/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/file/dimensions.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/file/file-size.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/file/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/length/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/number/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/scalar/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/rules/string/index.mjs +0 -0
- /package/esm/{seal → packages/seal}/src/validators/index.mjs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: observe-notifications
|
|
3
|
-
description: 'Wire metrics, logging, tracing, and audits via `notifications.on(event, handler)` — four events fire per (channel, recipient): `sending` (gates passed, about to hit the transport), `sent` (succeeded), `failed` (channel threw — carries the Error), `skipped` (a pre-send gate dropped it — carries `reason: "preference" | "rate-limit"`). Every event carries the recipient as `notifiable?` (undefined only for raw-target ad-hoc sends) and a `dispatchId` — `sending` and its terminal `sent`/`failed` share it, so observers can pair them (spans, latency, hung-send detection). `sent`/`failed` also carry `durationMs`. Handler exceptions are logged-and-swallowed so one bad listener can not break the dispatcher. `on(...)` returns an unsubscribe function; `off(event, handler)` exists for symmetry. Triggers: `notifications.on`, `notifications.off`, `"sending"` event, `"sent"` event, `"failed"` event, `"skipped"` event, `dispatchId`, `durationMs`, `NotificationEvents`, "notification metrics", "notification latency", "trace notifications", "notification audit log", "track notification drops"; typical import `import { notifications } from "@warlock.js/notifications"`. Skip: building notifications —
|
|
3
|
+
description: 'Wire metrics, logging, tracing, and audits via `notifications.on(event, handler)` — four events fire per (channel, recipient): `sending` (gates passed, about to hit the transport), `sent` (succeeded), `failed` (channel threw — carries the Error), `skipped` (a pre-send gate dropped it — carries `reason: "preference" | "rate-limit"`). Every event carries the recipient as `notifiable?` (undefined only for raw-target ad-hoc sends) and a `dispatchId` — `sending` and its terminal `sent`/`failed` share it, so observers can pair them (spans, latency, hung-send detection). `sent`/`failed` also carry `durationMs`. Handler exceptions are logged-and-swallowed so one bad listener can not break the dispatcher. `on(...)` returns an unsubscribe function; `off(event, handler)` exists for symmetry. Triggers: `notifications.on`, `notifications.off`, `"sending"` event, `"sent"` event, `"failed"` event, `"skipped"` event, `dispatchId`, `durationMs`, `NotificationEvents`, "notification metrics", "notification latency", "trace notifications", "notification audit log", "track notification drops"; typical import `import { notifications } from "@warlock.js/notifications"`. Skip: building notifications — the `define-notification` topic; configuring the preference/rate-limit gates that produce `skipped` — the `configure-notifications` topic.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Observe notifications
|
|
@@ -61,6 +61,6 @@ A handler that throws is logged and swallowed — the other handlers for the sam
|
|
|
61
61
|
|
|
62
62
|
## See also
|
|
63
63
|
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
64
|
+
- The `notifications-basics` topic — front door + mental model.
|
|
65
|
+
- The `configure-notifications` topic — `preferences` / `rateLimit` slots that emit `skipped`.
|
|
66
|
+
- The `send-ad-hoc` topic — when `notifiable` is undefined in events.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: queue-notifications
|
|
3
|
-
description: "Send notifications asynchronously through the herald backend or the BullMQ driver. Configure a QueueDispatcher in config/notifications.ts, then use notif.queue(to, data, options?) to enqueue rendered jobs. Herald uses heraldQueue() and startNotificationsWorker(); bullmqQueue({ attempts, backoff }) from @warlock.js/notifications uses BullMQ (lazy-loading the optional @warlock.js/queue peer), supports retries, and honours SendOptions.delay. Without a queue configured, .queue() rejects NoQueueDispatcherError. Triggers: heraldQueue, bullmqQueue, startNotificationsWorker, QueueDispatcher, .queue(, async notifications, queue notifications, notification worker, background notifications, notifications.dispatch. Skip: synchronous sends -
|
|
3
|
+
description: "Send notifications asynchronously through the herald backend or the BullMQ driver. Configure a QueueDispatcher in config/notifications.ts, then use notif.queue(to, data, options?) to enqueue rendered jobs. Herald uses heraldQueue() and startNotificationsWorker(); bullmqQueue({ attempts, backoff }) from @warlock.js/notifications uses BullMQ (lazy-loading the optional @warlock.js/queue peer), supports retries, and honours SendOptions.delay. Without a queue configured, .queue() rejects NoQueueDispatcherError. Triggers: heraldQueue, bullmqQueue, startNotificationsWorker, QueueDispatcher, .queue(, async notifications, queue notifications, notification worker, background notifications, notifications.dispatch. Skip: synchronous sends - the `define-notification` topic; herald itself - @warlock.js/herald/*."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Queue notifications (async)
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
inApp,
|
|
18
18
|
mailChannel,
|
|
19
19
|
} from "@warlock.js/notifications";
|
|
20
|
-
import { Notification } from "app/notifications/notification.model";
|
|
20
|
+
import { Notification } from "app/notifications/models/notification/notification.model";
|
|
21
21
|
|
|
22
22
|
const config: NotificationConfig = {
|
|
23
23
|
channels: { mail: mailChannel(), database: inApp.configure({ model: Notification }) },
|
|
@@ -105,6 +105,6 @@ await orderShipped.queue(user, { order }, { idempotencyKey: `ship:${order.id}` }
|
|
|
105
105
|
|
|
106
106
|
## See also
|
|
107
107
|
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
108
|
+
- The `define-notification` topic - `.queue()` on a defined notification.
|
|
109
|
+
- The `configure-notifications` topic - the `queue` config slot.
|
|
110
|
+
- The `herald-basics` topic of the `warlock-js-herald` skill - connecting the broker.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: send-ad-hoc
|
|
3
|
-
description: 'Ad-hoc per-channel send via the `notify.<channel>(to, payload, options?)` Proxy facade. Works for any channel registered in `NotificationChannels` (built-in or custom). `to` accepts a `Notifiable` model OR a raw route string (`"x@y.com"`); `payload` is typed per channel via the registry; `options` is the standard `SendOptions`. `notify.channel(name).send(...)` is the runtime escape when the channel name is not a compile-time literal. Type-based preference gating applies when a type is known — explicit via `options.type` OR auto-detected from a database payload''s `type` field. For multi-channel sends use `defineNotification` instead — there is no inline `notify(to, { via, ... })` form on purpose. Triggers: `notify.<channel>`, `notify.channel(name)`, `notify.mail`, `notify.database`, "send a one-off notification", "ad-hoc notification", "send an email without defining a notification", "raw email target", "dynamic channel name"; typical import `import { notify } from "@warlock.js/notifications"`. Skip: reusable multi-channel notifications —
|
|
3
|
+
description: 'Ad-hoc per-channel send via the `notify.<channel>(to, payload, options?)` Proxy facade. Works for any channel registered in `NotificationChannels` (built-in or custom). `to` accepts a `Notifiable` model OR a raw route string (`"x@y.com"`); `payload` is typed per channel via the registry; `options` is the standard `SendOptions`. `notify.channel(name).send(...)` is the runtime escape when the channel name is not a compile-time literal. Type-based preference gating applies when a type is known — explicit via `options.type` OR auto-detected from a database payload''s `type` field. For multi-channel sends use `defineNotification` instead — there is no inline `notify(to, { via, ... })` form on purpose. Triggers: `notify.<channel>`, `notify.channel(name)`, `notify.mail`, `notify.database`, "send a one-off notification", "ad-hoc notification", "send an email without defining a notification", "raw email target", "dynamic channel name"; typical import `import { notify } from "@warlock.js/notifications"`. Skip: reusable multi-channel notifications — the `define-notification` topic; configuring channels — the `configure-notifications` topic.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `notify.<channel>` — ad-hoc, per-channel sends
|
|
@@ -14,7 +14,7 @@ await notify.mail(user, { subject: "Welcome", html: "<p>Hi!</p>" });
|
|
|
14
14
|
await notify.database(user, { type: "welcome", title: "Welcome!" });
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
For **multi-channel** sends, use
|
|
17
|
+
For **multi-channel** sends, use `defineNotification` (the `define-notification` topic) — that's the reusable pattern and the only mental model for "send through several channels at once" (no inline multi-channel overload).
|
|
18
18
|
|
|
19
19
|
## Shape
|
|
20
20
|
|
|
@@ -46,7 +46,7 @@ const channelName = await chooseChannelForUser(user);
|
|
|
46
46
|
await notify.channel(channelName).send(user, payload);
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
This is the only path with `unknown`-typed payloads — prefer the literal `notify.<channel>` when you can. `to` is still what decides the recipient: even for the `database` channel, a `recipientId`-shaped key on `payload` (or the model's physical recipient column name) is stripped before the row is built, so an untyped payload assembled from request JSON can't redirect the write to another recipient — see
|
|
49
|
+
This is the only path with `unknown`-typed payloads — prefer the literal `notify.<channel>` when you can. `to` is still what decides the recipient: even for the `database` channel, a `recipientId`-shaped key on `payload` (or the model's physical recipient column name) is stripped before the row is built, so an untyped payload assembled from request JSON can't redirect the write to another recipient — see the `createFor` write-side section of the `use-in-app` topic.
|
|
50
50
|
|
|
51
51
|
## Opt into preference/rate-limit gating
|
|
52
52
|
|
|
@@ -65,7 +65,7 @@ await notify.database(user, { type: "welcome", title: "Welcome!" });
|
|
|
65
65
|
|
|
66
66
|
## Custom channels
|
|
67
67
|
|
|
68
|
-
After registering a custom channel (see
|
|
68
|
+
After registering a custom channel (see the `define-channel` topic), it's first-class:
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
71
|
await notify.discord(user, { content: "Build finished 🎉" });
|
|
@@ -89,7 +89,7 @@ await notify.slack(staff, { text: "Deploy starting" });
|
|
|
89
89
|
|
|
90
90
|
## See also
|
|
91
91
|
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
92
|
+
- The `notifications-basics` topic — front door + mental model.
|
|
93
|
+
- The `define-notification` topic — reusable multi-channel.
|
|
94
|
+
- The `define-channel` topic — register a custom channel.
|
|
95
|
+
- The `observe-notifications` topic — `sending` / `sent` / `failed` / `skipped` events.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: use-in-app
|
|
3
|
-
description: 'Use the `inApp` facade for the in-app/database channel''s READ side: `inApp.configure({ model: Notification })` or `{ repository: myRepo }` binds the store AND returns the channel; `inApp.list / listUnread / countUnread / markAsRead / markAsUnread` are RECIPIENT-SCOPED by construction (no IDOR — `markAsRead(user, id)` cannot flip another user''s row even with a foreign id). `countUnread` uses `RepositoryManager.countCached` for the badge fast-path. Triggers: `inApp.configure`, `inApp.list`, `inApp.listUnread`, `inApp.countUnread`, `inApp.markAsRead`, `inApp.markAsUnread`, `BaseNotificationsRepository`, `DatabaseNotification`, `NotificationsFilter`, "in-app notifications", "mark notification as read", "unread count", "notification badge", "IDOR-safe markAsRead"; typical import `import { inApp } from "@warlock.js/notifications"`. Skip: writing notifications (use `defineNotification` or `notify.database`) —
|
|
3
|
+
description: 'Use the `inApp` facade for the in-app/database channel''s READ side: `inApp.configure({ model: Notification })` or `{ repository: myRepo }` binds the store AND returns the channel; `inApp.list / listUnread / countUnread / markAsRead / markAsUnread` are RECIPIENT-SCOPED by construction (no IDOR — `markAsRead(user, id)` cannot flip another user''s row even with a foreign id). `countUnread` uses `RepositoryManager.countCached` for the badge fast-path. Triggers: `inApp.configure`, `inApp.list`, `inApp.listUnread`, `inApp.countUnread`, `inApp.markAsRead`, `inApp.markAsUnread`, `BaseNotificationsRepository`, `DatabaseNotification`, `NotificationsFilter`, "in-app notifications", "mark notification as read", "unread count", "notification badge", "IDOR-safe markAsRead"; typical import `import { inApp } from "@warlock.js/notifications"`. Skip: writing notifications (use `defineNotification` or `notify.database`) — the `define-notification` topic; the migration columns — the `write-notification-migration` topic; wiring it into config — the `configure-notifications` topic.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `inApp` — in-app notification read API
|
|
@@ -112,7 +112,7 @@ the repo; there is no `isRead` filter key to remember.
|
|
|
112
112
|
|
|
113
113
|
## Your model — declare `table`, `schema`, and `columnMap`
|
|
114
114
|
|
|
115
|
-
```ts title="src/app/notifications/notification.model.ts"
|
|
115
|
+
```ts title="src/app/notifications/models/notification/notification.model.ts"
|
|
116
116
|
import { RegisterModel } from "@warlock.js/cascade";
|
|
117
117
|
import { v } from "@warlock.js/seal";
|
|
118
118
|
import { DatabaseNotification, type NotificationColumnMap } from "@warlock.js/notifications";
|
|
@@ -147,9 +147,9 @@ repo filter, and the accessors all follow. For a different driver's naming
|
|
|
147
147
|
|
|
148
148
|
`columnMap` already covers column naming. Subclass only for EXTRA query methods:
|
|
149
149
|
|
|
150
|
-
```ts title="src/app/notifications/notifications.repository.ts"
|
|
150
|
+
```ts title="src/app/notifications/repositories/notifications.repository.ts"
|
|
151
151
|
import { BaseNotificationsRepository } from "@warlock.js/notifications";
|
|
152
|
-
import { Notification } from "
|
|
152
|
+
import { Notification } from "../models/notification/notification.model";
|
|
153
153
|
|
|
154
154
|
export class NotificationsRepository extends BaseNotificationsRepository<Notification> {
|
|
155
155
|
public source = Notification; // its columnMap still drives filter + write mapping
|
|
@@ -166,7 +166,7 @@ database: inApp.configure({ repository: notificationsRepository }),
|
|
|
166
166
|
|
|
167
167
|
## See also
|
|
168
168
|
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
169
|
+
- The `notifications-basics` topic — package front door.
|
|
170
|
+
- The `configure-notifications` topic — wire `inApp.configure` into the config.
|
|
171
|
+
- The `write-notification-migration` topic — `notificationColumns(Notification)`, named from `columnMap`.
|
|
172
|
+
- The `define-notification` topic — create rows via the database channel.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: write-notification-migration
|
|
3
|
-
description: 'Create the notifications table with the `notificationColumns(Notification)` factory + cascade `Migration.create`. Column NAMES come from the model''s `columnMap` (recipient / tenant / readAt / isRead); the fixed columns are `type` / `title` / `body` / `payload` / `idempotency_key`. Set `{ idType: "bigint" }` for integer-key apps; UUID remains the default. Read-state follows columnMap presence: `readAt` → nullable timestamp, `isRead` → indexed boolean, both → both. Defaults to `user_id` + `read_at` when no columnMap. Spread + extend for extras (FK references, composite indexes). Triggers: `notificationColumns`, `Migration.create` for notifications, "create the notifications table", "notification migration", "add organization_id to notifications", `is_read` column, `read_at` column, `idempotency_key` column; typical import `import { Migration } from "@warlock.js/cascade"; import { notificationColumns } from "@warlock.js/notifications"`. Skip: generic cascade migration writing —
|
|
3
|
+
description: 'Create the notifications table with the `notificationColumns(Notification)` factory + cascade `Migration.create`. Column NAMES come from the model''s `columnMap` (recipient / tenant / readAt / isRead); the fixed columns are `type` / `title` / `body` / `payload` / `idempotency_key`. Set `{ idType: "bigint" }` for integer-key apps; UUID remains the default. Read-state follows columnMap presence: `readAt` → nullable timestamp, `isRead` → indexed boolean, both → both. Defaults to `user_id` + `read_at` when no columnMap. Spread + extend for extras (FK references, composite indexes). Triggers: `notificationColumns`, `Migration.create` for notifications, "create the notifications table", "notification migration", "add organization_id to notifications", `is_read` column, `read_at` column, `idempotency_key` column; typical import `import { Migration } from "@warlock.js/cascade"; import { notificationColumns } from "@warlock.js/notifications"`. Skip: generic cascade migration writing — the `write-migration` topic of the `warlock-js-cascade` skill; the model itself — the `use-in-app` topic.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Write the notifications migration
|
|
@@ -11,7 +11,7 @@ The package ships no table or migration (thin eject). You own the migration; the
|
|
|
11
11
|
|
|
12
12
|
## Common case — one line
|
|
13
13
|
|
|
14
|
-
```ts title="src/app/notifications/migrations/01-01-2026_00-00-00-notifications.migration.ts"
|
|
14
|
+
```ts title="src/app/notifications/models/notification/migrations/01-01-2026_00-00-00-notifications.migration.ts"
|
|
15
15
|
import { Migration } from "@warlock.js/cascade";
|
|
16
16
|
import { notificationColumns } from "@warlock.js/notifications";
|
|
17
17
|
import { Notification } from "../notification.model";
|
|
@@ -58,7 +58,7 @@ export default Migration.create(Notification, {
|
|
|
58
58
|
});
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Mirror any extra column in the model `schema`. To make it filterable, add a method to a custom repository (see `use-in-app
|
|
61
|
+
Mirror any extra column in the model `schema`. To make it filterable, add a method to a custom repository (see the `use-in-app` topic).
|
|
62
62
|
|
|
63
63
|
## Column naming follows `columnMap`
|
|
64
64
|
|
|
@@ -71,10 +71,10 @@ class Notification extends DatabaseNotification {
|
|
|
71
71
|
// → notificationColumns(Notification) emits `userId` + `readAt`
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
Without a model passed, defaults to `user_id` + `read_at` (read_at-only). See
|
|
74
|
+
Without a model passed, defaults to `user_id` + `read_at` (read_at-only). See the `use-in-app` topic for the full `columnMap` shape.
|
|
75
75
|
|
|
76
76
|
## See also
|
|
77
77
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
78
|
+
- The `use-in-app` topic — the model + repository the migration backs.
|
|
79
|
+
- The `write-migration` topic of the `warlock-js-cascade` skill — generic Cascade migration form, `Migration.alter`, etc.
|
|
80
|
+
- The `manage-data-sources` topic of the `warlock-js-cascade` skill — multi-data-source setup.
|