@aimee-blue/ab-service-kit
Version:
Aimee Blue Service Template
1 lines • 935 B
Source Map (JSON)
{"version":3,"sources":["../../../src/shared/logging/loggingAuditAction.ts"],"names":["LOGGING_AUDIT","loggingAudit","type","timestamp","onLoggingAudit","pipe"],"mappings":";;;;;;;;AAAA;;AACA;;AACA;;AAEO,MAAMA,aAAa,GAAG,eAAtB;;;AAOA,SAASC,YAAT,GAAwB;AAC7B,SAAO;AACLC,IAAAA,IAAI,EAAEF,aADD;AAELG,IAAAA,SAAS,EAAE;AAFN,GAAP;AAID;;AAEM,MAAMC,cAAc,GAAG,MAC5B,8BAAeC,IAAf,CAAoB,oBAA4BL,aAA5B,CAApB,CADK","sourcesContent":["import { localNow } from '../time';\nimport { fromEventBus } from '../eventBus';\nimport { ofType } from '../ofType';\n\nexport const LOGGING_AUDIT = 'LOGGING/AUDIT';\n\nexport interface ILoggingAuditAction {\n type: typeof LOGGING_AUDIT;\n timestamp: number;\n}\n\nexport function loggingAudit() {\n return {\n type: LOGGING_AUDIT,\n timestamp: localNow(),\n };\n}\n\nexport const onLoggingAudit = () =>\n fromEventBus().pipe(ofType<ILoggingAuditAction>(LOGGING_AUDIT));\n"],"file":"loggingAuditAction.js"}