Initial import of verae-nats-process from zapier monorepo

This commit is contained in:
George Lambert 2026-09-11 15:00:17 -04:00
commit f54265cc18
10 changed files with 199 additions and 0 deletions

13
src/subjects.js Normal file
View file

@ -0,0 +1,13 @@
/**
* Rename `example.process` before production.
* Pattern: verae.<area>.<resource>.<action>
*/
export const AREA = 'example';
export const RESOURCE = 'process';
export const SUBJECTS = Object.freeze({
IN: `verae.${AREA}.${RESOURCE}.in`,
OUT: `verae.${AREA}.${RESOURCE}.out`,
QUEUE: `${AREA}-${RESOURCE}`,
reply: (correlationId) => `verae.${AREA}.${RESOURCE}.reply.${correlationId}`,
});