@ddd-ts-kit/kernel 0.114.1 → 0.116.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/README.fr.md +74 -60
- package/README.md +68 -55
- package/dist/application/audit/restamped.d.ts +9 -0
- package/dist/application/audit/restamped.d.ts.map +1 -0
- package/dist/application/audit/restamped.js +9 -0
- package/dist/application/audit/restamped.js.map +1 -0
- package/dist/application/audit/stamp-update.d.ts +1 -6
- package/dist/application/audit/stamp-update.d.ts.map +1 -1
- package/dist/application/audit/stamp-update.js +2 -8
- package/dist/application/audit/stamp-update.js.map +1 -1
- package/dist/application/background/enqueued-job.d.ts +1 -1
- package/dist/application/background/enqueued-job.d.ts.map +1 -1
- package/dist/application/error-reporting/report-once.d.ts.map +1 -1
- package/dist/application/error-reporting/report-once.js +2 -6
- package/dist/application/error-reporting/report-once.js.map +1 -1
- package/dist/application/event-sourcing/event-envelope.d.ts +2 -1
- package/dist/application/event-sourcing/event-envelope.d.ts.map +1 -1
- package/dist/application/event-sourcing/event-to-append.d.ts +1 -1
- package/dist/application/event-sourcing/event-to-append.d.ts.map +1 -1
- package/dist/application/execution/with-actor.d.ts +2 -2
- package/dist/application/execution/with-actor.js +3 -3
- package/dist/application/execution/with-actor.js.map +1 -1
- package/dist/application/files/stored-file.d.ts +3 -3
- package/dist/application/files/stored-file.d.ts.map +1 -1
- package/dist/application/hydration/hydration.d.ts.map +1 -1
- package/dist/application/hydration/hydration.js +3 -2
- package/dist/application/hydration/hydration.js.map +1 -1
- package/dist/application/logging/hidden-keys.d.ts +8 -0
- package/dist/application/logging/hidden-keys.d.ts.map +1 -0
- package/dist/application/logging/hidden-keys.js +10 -0
- package/dist/application/logging/hidden-keys.js.map +1 -0
- package/dist/application/logging/index.d.ts +1 -0
- package/dist/application/logging/index.d.ts.map +1 -1
- package/dist/application/logging/index.js +1 -0
- package/dist/application/logging/index.js.map +1 -1
- package/dist/application/observation/safely.d.ts +6 -0
- package/dist/application/observation/safely.d.ts.map +1 -0
- package/dist/application/observation/safely.js +13 -0
- package/dist/application/observation/safely.js.map +1 -0
- package/dist/application/persistence/append-changes.d.ts +1 -0
- package/dist/application/persistence/append-changes.d.ts.map +1 -1
- package/dist/application/persistence/append-changes.js +7 -6
- package/dist/application/persistence/append-changes.js.map +1 -1
- package/dist/application/persistence/optimistic-update.d.ts +6 -2
- package/dist/application/persistence/optimistic-update.d.ts.map +1 -1
- package/dist/application/persistence/optimistic-update.js +11 -3
- package/dist/application/persistence/optimistic-update.js.map +1 -1
- package/dist/application/ports/domain-event-dispatcher.d.ts +1 -1
- package/dist/application/ports/domain-event-dispatcher.js +1 -1
- package/dist/application/ports/logger.d.ts +3 -3
- package/dist/application/ports/unit-of-work.d.ts +1 -1
- package/dist/application/ports/unit-of-work.js +1 -1
- package/dist/application/read-model/stamp-of.d.ts +11 -4
- package/dist/application/read-model/stamp-of.d.ts.map +1 -1
- package/dist/application/read-model/stamp-of.js +10 -8
- package/dist/application/read-model/stamp-of.js.map +1 -1
- package/dist/application/session/anonymous-session.d.ts.map +1 -1
- package/dist/application/session/anonymous-session.js +4 -2
- package/dist/application/session/anonymous-session.js.map +1 -1
- package/dist/application/session/never-issued.d.ts +2 -1
- package/dist/application/session/never-issued.d.ts.map +1 -1
- package/dist/application/session/never-issued.js +4 -1
- package/dist/application/session/never-issued.js.map +1 -1
- package/dist/application/session/system-session.d.ts.map +1 -1
- package/dist/application/session/system-session.js +2 -2
- package/dist/application/session/system-session.js.map +1 -1
- package/dist/application/undecided/index.d.ts +3 -0
- package/dist/application/undecided/index.d.ts.map +1 -0
- package/dist/application/undecided/index.js +3 -0
- package/dist/application/undecided/index.js.map +1 -0
- package/dist/application/undecided/undecided-error.d.ts +12 -0
- package/dist/application/undecided/undecided-error.d.ts.map +1 -0
- package/dist/application/undecided/undecided-error.js +15 -0
- package/dist/application/undecided/undecided-error.js.map +1 -0
- package/dist/application/undecided/undecided.d.ts +7 -0
- package/dist/application/undecided/undecided.d.ts.map +1 -0
- package/dist/application/undecided/undecided.js +9 -0
- package/dist/application/undecided/undecided.js.map +1 -0
- package/dist/domain/aggregate-root.d.ts +6 -13
- package/dist/domain/aggregate-root.d.ts.map +1 -1
- package/dist/domain/aggregate-root.js +10 -16
- package/dist/domain/aggregate-root.js.map +1 -1
- package/dist/domain/aggregate-tracking.d.ts +30 -0
- package/dist/domain/aggregate-tracking.d.ts.map +1 -0
- package/dist/domain/aggregate-tracking.js +48 -0
- package/dist/domain/aggregate-tracking.js.map +1 -0
- package/dist/domain/domain-event.d.ts +4 -0
- package/dist/domain/domain-event.d.ts.map +1 -1
- package/dist/domain/domain-event.js.map +1 -1
- package/dist/domain/errors/domain-error.d.ts.map +1 -1
- package/dist/domain/errors/domain-error.js +2 -1
- package/dist/domain/errors/domain-error.js.map +1 -1
- package/dist/domain/errors/factual-refusal.d.ts.map +1 -1
- package/dist/domain/errors/factual-refusal.js +3 -0
- package/dist/domain/errors/factual-refusal.js.map +1 -1
- package/dist/domain/errors/kit-codes.d.ts +2 -0
- package/dist/domain/errors/kit-codes.d.ts.map +1 -1
- package/dist/domain/errors/kit-codes.js +2 -0
- package/dist/domain/errors/kit-codes.js.map +1 -1
- package/dist/domain/event-id-of.d.ts +8 -0
- package/dist/domain/event-id-of.d.ts.map +1 -0
- package/dist/domain/event-id-of.js +10 -0
- package/dist/domain/event-id-of.js.map +1 -0
- package/dist/domain/event-rank.d.ts +8 -0
- package/dist/domain/event-rank.d.ts.map +1 -0
- package/dist/domain/event-rank.js +8 -0
- package/dist/domain/event-rank.js.map +1 -0
- package/dist/domain/event-sourcing/event-sourced-aggregate.d.ts +0 -1
- package/dist/domain/event-sourcing/event-sourced-aggregate.d.ts.map +1 -1
- package/dist/domain/event-sourcing/event-sourced-aggregate.js +4 -8
- package/dist/domain/event-sourcing/event-sourced-aggregate.js.map +1 -1
- package/dist/domain/named-domain-event.d.ts +11 -4
- package/dist/domain/named-domain-event.d.ts.map +1 -1
- package/dist/domain/named-domain-event.js +14 -3
- package/dist/domain/named-domain-event.js.map +1 -1
- package/dist/domain/rank-of.d.ts +8 -0
- package/dist/domain/rank-of.d.ts.map +1 -0
- package/dist/domain/rank-of.js +14 -0
- package/dist/domain/rank-of.js.map +1 -0
- package/dist/domain/ranked.d.ts +10 -0
- package/dist/domain/ranked.d.ts.map +1 -0
- package/dist/domain/ranked.js +19 -0
- package/dist/domain/ranked.js.map +1 -0
- package/dist/domain/result/unwrap.d.ts +1 -0
- package/dist/domain/result/unwrap.d.ts.map +1 -1
- package/dist/domain/result/unwrap.js +4 -1
- package/dist/domain/result/unwrap.js.map +1 -1
- package/dist/domain/state-machine/state-machine.d.ts +4 -0
- package/dist/domain/state-machine/state-machine.d.ts.map +1 -1
- package/dist/domain/state-machine/state-machine.js +14 -4
- package/dist/domain/state-machine/state-machine.js.map +1 -1
- package/dist/domain/value-object/frozen-copy.d.ts +8 -0
- package/dist/domain/value-object/frozen-copy.d.ts.map +1 -0
- package/dist/domain/value-object/frozen-copy.js +34 -0
- package/dist/domain/value-object/frozen-copy.js.map +1 -0
- package/dist/domain/value-object/index.d.ts +2 -0
- package/dist/domain/value-object/index.d.ts.map +1 -0
- package/dist/domain/value-object/index.js +2 -0
- package/dist/domain/value-object/index.js.map +1 -0
- package/dist/domain/value-object/is-plain-record.d.ts +3 -0
- package/dist/domain/value-object/is-plain-record.d.ts.map +1 -0
- package/dist/domain/value-object/is-plain-record.js +9 -0
- package/dist/domain/value-object/is-plain-record.js.map +1 -0
- package/dist/domain/value-object/same-value.d.ts +8 -0
- package/dist/domain/value-object/same-value.d.ts.map +1 -0
- package/dist/domain/value-object/same-value.js +43 -0
- package/dist/domain/value-object/same-value.js.map +1 -0
- package/dist/domain/value-object/value-object.d.ts +28 -0
- package/dist/domain/value-object/value-object.d.ts.map +1 -0
- package/dist/domain/value-object/value-object.js +24 -0
- package/dist/domain/value-object/value-object.js.map +1 -0
- package/dist/index.d.ts +10 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/aggregates/aggregate-mapper.d.ts +21 -0
- package/dist/infrastructure/aggregates/aggregate-mapper.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/aggregate-mapper.js +18 -0
- package/dist/infrastructure/aggregates/aggregate-mapper.js.map +1 -0
- package/dist/infrastructure/aggregates/aggregate-save.d.ts +22 -0
- package/dist/infrastructure/aggregates/aggregate-save.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/aggregate-save.js +2 -0
- package/dist/infrastructure/aggregates/aggregate-save.js.map +1 -0
- package/dist/infrastructure/aggregates/as-found.d.ts +8 -0
- package/dist/infrastructure/aggregates/as-found.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/as-found.js +2 -0
- package/dist/infrastructure/aggregates/as-found.js.map +1 -0
- package/dist/infrastructure/aggregates/give-back.d.ts +9 -0
- package/dist/infrastructure/aggregates/give-back.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/give-back.js +13 -0
- package/dist/infrastructure/aggregates/give-back.js.map +1 -0
- package/dist/infrastructure/aggregates/index.d.ts +7 -0
- package/dist/infrastructure/aggregates/index.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/index.js +7 -0
- package/dist/infrastructure/aggregates/index.js.map +1 -0
- package/dist/infrastructure/aggregates/loaded-at.d.ts +8 -0
- package/dist/infrastructure/aggregates/loaded-at.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/loaded-at.js +12 -0
- package/dist/infrastructure/aggregates/loaded-at.js.map +1 -0
- package/dist/infrastructure/aggregates/noted-as-found.d.ts +8 -0
- package/dist/infrastructure/aggregates/noted-as-found.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/noted-as-found.js +15 -0
- package/dist/infrastructure/aggregates/noted-as-found.js.map +1 -0
- package/dist/infrastructure/aggregates/recorded-events-of.d.ts +4 -0
- package/dist/infrastructure/aggregates/recorded-events-of.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/recorded-events-of.js +6 -0
- package/dist/infrastructure/aggregates/recorded-events-of.js.map +1 -0
- package/dist/infrastructure/aggregates/save-aggregate-row.d.ts +23 -0
- package/dist/infrastructure/aggregates/save-aggregate-row.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/save-aggregate-row.js +17 -0
- package/dist/infrastructure/aggregates/save-aggregate-row.js.map +1 -0
- package/dist/infrastructure/aggregates/stored-at.d.ts +7 -0
- package/dist/infrastructure/aggregates/stored-at.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/stored-at.js +14 -0
- package/dist/infrastructure/aggregates/stored-at.js.map +1 -0
- package/dist/infrastructure/aggregates/take-recorded-events.d.ts +9 -0
- package/dist/infrastructure/aggregates/take-recorded-events.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/take-recorded-events.js +17 -0
- package/dist/infrastructure/aggregates/take-recorded-events.js.map +1 -0
- package/dist/infrastructure/aggregates/unstored-events-of.d.ts +4 -0
- package/dist/infrastructure/aggregates/unstored-events-of.d.ts.map +1 -0
- package/dist/infrastructure/aggregates/unstored-events-of.js +7 -0
- package/dist/infrastructure/aggregates/unstored-events-of.js.map +1 -0
- package/dist/infrastructure/clock/fixed-clock.d.ts +2 -1
- package/dist/infrastructure/clock/fixed-clock.d.ts.map +1 -1
- package/dist/infrastructure/clock/fixed-clock.js +5 -4
- package/dist/infrastructure/clock/fixed-clock.js.map +1 -1
- package/dist/infrastructure/context/scoped-actor-context.d.ts.map +1 -1
- package/dist/infrastructure/context/scoped-actor-context.js +2 -6
- package/dist/infrastructure/context/scoped-actor-context.js.map +1 -1
- package/dist/infrastructure/domain-events/announce-domain-events.d.ts +1 -1
- package/dist/infrastructure/domain-events/announce-domain-events.js +1 -1
- package/dist/infrastructure/domain-events/dispatching-on-save.d.ts +1 -1
- package/dist/infrastructure/domain-events/dispatching-on-save.d.ts.map +1 -1
- package/dist/infrastructure/domain-events/dispatching-on-save.js +3 -2
- package/dist/infrastructure/domain-events/dispatching-on-save.js.map +1 -1
- package/dist/infrastructure/domain-events/index.d.ts +14 -0
- package/dist/infrastructure/domain-events/index.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/index.js +14 -0
- package/dist/infrastructure/domain-events/index.js.map +1 -0
- package/dist/infrastructure/domain-events/on-rollback.d.ts +10 -0
- package/dist/infrastructure/domain-events/on-rollback.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/on-rollback.js +17 -0
- package/dist/infrastructure/domain-events/on-rollback.js.map +1 -0
- package/dist/infrastructure/domain-events/recorded-aggregates.d.ts +2 -5
- package/dist/infrastructure/domain-events/recorded-aggregates.d.ts.map +1 -1
- package/dist/infrastructure/domain-events/recorded-aggregates.js +3 -5
- package/dist/infrastructure/domain-events/recorded-aggregates.js.map +1 -1
- package/dist/infrastructure/domain-events/unit-of-work-aborted-error.d.ts +10 -0
- package/dist/infrastructure/domain-events/unit-of-work-aborted-error.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/unit-of-work-aborted-error.js +13 -0
- package/dist/infrastructure/domain-events/unit-of-work-aborted-error.js.map +1 -0
- package/dist/infrastructure/domain-events/unit-of-work-over.d.ts +37 -0
- package/dist/infrastructure/domain-events/unit-of-work-over.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/unit-of-work-over.js +146 -0
- package/dist/infrastructure/domain-events/unit-of-work-over.js.map +1 -0
- package/dist/infrastructure/domain-events/unit-of-work-scope.d.ts +11 -1
- package/dist/infrastructure/domain-events/unit-of-work-scope.d.ts.map +1 -1
- package/dist/infrastructure/domain-events/unit-of-work-scope.js.map +1 -1
- package/dist/infrastructure/domain-events/unscoped-unit-of-work-error.d.ts +8 -0
- package/dist/infrastructure/domain-events/unscoped-unit-of-work-error.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/unscoped-unit-of-work-error.js +11 -0
- package/dist/infrastructure/domain-events/unscoped-unit-of-work-error.js.map +1 -0
- package/dist/infrastructure/domain-events/when-committed.d.ts.map +1 -1
- package/dist/infrastructure/domain-events/when-committed.js +2 -9
- package/dist/infrastructure/domain-events/when-committed.js.map +1 -1
- package/dist/infrastructure/event-sourcing/aggregate-id-of.d.ts +4 -0
- package/dist/infrastructure/event-sourcing/aggregate-id-of.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/aggregate-id-of.js +6 -0
- package/dist/infrastructure/event-sourcing/aggregate-id-of.js.map +1 -0
- package/dist/infrastructure/event-sourcing/event-serializer.d.ts +3 -4
- package/dist/infrastructure/event-sourcing/event-serializer.d.ts.map +1 -1
- package/dist/infrastructure/event-sourcing/event-serializer.js +10 -12
- package/dist/infrastructure/event-sourcing/event-serializer.js.map +1 -1
- package/dist/infrastructure/event-sourcing/event-store-personal-data-export.d.ts.map +1 -1
- package/dist/infrastructure/event-sourcing/event-store-personal-data-export.js +1 -5
- package/dist/infrastructure/event-sourcing/event-store-personal-data-export.js.map +1 -1
- package/dist/infrastructure/events/idempotent.d.ts.map +1 -1
- package/dist/infrastructure/events/idempotent.js +9 -3
- package/dist/infrastructure/events/idempotent.js.map +1 -1
- package/dist/infrastructure/in-memory/as-json-carries.d.ts +9 -0
- package/dist/infrastructure/in-memory/as-json-carries.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/as-json-carries.js +12 -0
- package/dist/infrastructure/in-memory/as-json-carries.js.map +1 -0
- package/dist/infrastructure/in-memory/composite-key.d.ts +6 -0
- package/dist/infrastructure/in-memory/composite-key.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/composite-key.js +8 -0
- package/dist/infrastructure/in-memory/composite-key.js.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-cache.d.ts +3 -1
- package/dist/infrastructure/in-memory/in-memory-cache.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-cache.js +7 -3
- package/dist/infrastructure/in-memory/in-memory-cache.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.d.ts +1 -1
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.js +3 -2
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-domain-event-dispatcher.d.ts +0 -1
- package/dist/infrastructure/in-memory/in-memory-domain-event-dispatcher.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-domain-event-dispatcher.js +2 -9
- package/dist/infrastructure/in-memory/in-memory-domain-event-dispatcher.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-event-bus.d.ts +7 -14
- package/dist/infrastructure/in-memory/in-memory-event-bus.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-event-bus.js +17 -9
- package/dist/infrastructure/in-memory/in-memory-event-bus.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-event-store.d.ts +8 -2
- package/dist/infrastructure/in-memory/in-memory-event-store.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-event-store.js +29 -14
- package/dist/infrastructure/in-memory/in-memory-event-store.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-process-store.d.ts +1 -1
- package/dist/infrastructure/in-memory/in-memory-process-store.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-process-store.js +7 -8
- package/dist/infrastructure/in-memory/in-memory-process-store.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-processed-event-store.d.ts +1 -0
- package/dist/infrastructure/in-memory/in-memory-processed-event-store.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-processed-event-store.js +6 -6
- package/dist/infrastructure/in-memory/in-memory-processed-event-store.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-read-model-table.d.ts +2 -1
- package/dist/infrastructure/in-memory/in-memory-read-model-table.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-read-model-table.js +5 -3
- package/dist/infrastructure/in-memory/in-memory-read-model-table.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.d.ts +1 -1
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.js +3 -2
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.js.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-unit-of-work.d.ts +5 -2
- package/dist/infrastructure/in-memory/in-memory-unit-of-work.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-memory-unit-of-work.js +7 -4
- package/dist/infrastructure/in-memory/in-memory-unit-of-work.js.map +1 -1
- package/dist/infrastructure/in-memory/in-process-bus.d.ts +1 -0
- package/dist/infrastructure/in-memory/in-process-bus.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/in-process-bus.js +4 -3
- package/dist/infrastructure/in-memory/in-process-bus.js.map +1 -1
- package/dist/infrastructure/in-memory/rollback-map.d.ts +15 -0
- package/dist/infrastructure/in-memory/rollback-map.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/rollback-map.js +52 -0
- package/dist/infrastructure/in-memory/rollback-map.js.map +1 -0
- package/dist/infrastructure/in-memory/unit-of-work-middleware.d.ts +5 -5
- package/dist/infrastructure/in-memory/unit-of-work-middleware.d.ts.map +1 -1
- package/dist/infrastructure/in-memory/unit-of-work-middleware.js +13 -4
- package/dist/infrastructure/in-memory/unit-of-work-middleware.js.map +1 -1
- package/package.json +1 -1
- package/dist/domain/event-sourcing/unstored-events.d.ts +0 -8
- package/dist/domain/event-sourcing/unstored-events.d.ts.map +0 -1
- package/dist/domain/event-sourcing/unstored-events.js +0 -7
- package/dist/domain/event-sourcing/unstored-events.js.map +0 -1
- package/dist/domain/value-object.d.ts +0 -12
- package/dist/domain/value-object.d.ts.map +0 -1
- package/dist/domain/value-object.js +0 -40
- package/dist/domain/value-object.js.map +0 -1
- package/dist/infrastructure/domain-events/within-unit-of-work.d.ts +0 -25
- package/dist/infrastructure/domain-events/within-unit-of-work.d.ts.map +0 -1
- package/dist/infrastructure/domain-events/within-unit-of-work.js +0 -85
- package/dist/infrastructure/domain-events/within-unit-of-work.js.map +0 -1
- package/dist/infrastructure/event-sourcing/stored-origins.d.ts +0 -5
- package/dist/infrastructure/event-sourcing/stored-origins.d.ts.map +0 -1
- package/dist/infrastructure/event-sourcing/stored-origins.js +0 -3
- package/dist/infrastructure/event-sourcing/stored-origins.js.map +0 -1
- package/dist/infrastructure/event-sourcing/stored-stamp-of.d.ts +0 -11
- package/dist/infrastructure/event-sourcing/stored-stamp-of.d.ts.map +0 -1
- package/dist/infrastructure/event-sourcing/stored-stamp-of.js +0 -15
- package/dist/infrastructure/event-sourcing/stored-stamp-of.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { stampUpdate } from './stamp-update.js';
|
|
2
|
+
/**
|
|
3
|
+
* For an adapter that holds the stored stamp, a document store rewriting the whole record: the
|
|
4
|
+
* stamp whole, updated by the current actor at the current instant, its creation kept as it is.
|
|
5
|
+
*/
|
|
6
|
+
export function restamped(stamp, scope, clock) {
|
|
7
|
+
return { ...stamp, ...stampUpdate(scope, clock) };
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=restamped.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restamped.js","sourceRoot":"","sources":["../../../src/application/audit/restamped.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAiB,EAAE,KAAqB,EAAE,KAAY;IAC9E,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;AACpD,CAAC"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { Clock } from '../ports/clock.js';
|
|
2
2
|
import type { ExecutionScope } from '../ports/execution-scope.js';
|
|
3
|
-
import type { AuditStamp } from './audit-stamp.js';
|
|
4
3
|
import type { UpdateStamp } from './update-stamp.js';
|
|
5
|
-
/**
|
|
6
|
-
* For a repository adapter updating a row. Given the stored stamp, answers it whole with the
|
|
7
|
-
* creation part kept as it is; given none, answers the two columns to set.
|
|
8
|
-
*/
|
|
4
|
+
/** For a repository adapter updating a row: the two columns to set, the current actor and instant. The creation is left alone. */
|
|
9
5
|
export declare function stampUpdate(scope: ExecutionScope, clock: Clock): UpdateStamp;
|
|
10
|
-
export declare function stampUpdate(stamp: AuditStamp, scope: ExecutionScope, clock: Clock): AuditStamp;
|
|
11
6
|
//# sourceMappingURL=stamp-update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stamp-update.d.ts","sourceRoot":"","sources":["../../../src/application/audit/stamp-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"stamp-update.d.ts","sourceRoot":"","sources":["../../../src/application/audit/stamp-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,kIAAkI;AAClI,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAG,WAAW,CAE5E"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return updateStamp(...args);
|
|
4
|
-
}
|
|
5
|
-
const [stamp, scope, clock] = args;
|
|
6
|
-
return { ...stamp, ...updateStamp(scope, clock) };
|
|
7
|
-
}
|
|
8
|
-
function updateStamp(scope, clock) {
|
|
1
|
+
/** For a repository adapter updating a row: the two columns to set, the current actor and instant. The creation is left alone. */
|
|
2
|
+
export function stampUpdate(scope, clock) {
|
|
9
3
|
return { updatedAt: clock.now(), updatedBy: scope.require().actor.id };
|
|
10
4
|
}
|
|
11
5
|
//# sourceMappingURL=stamp-update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stamp-update.js","sourceRoot":"","sources":["../../../src/application/audit/stamp-update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stamp-update.js","sourceRoot":"","sources":["../../../src/application/audit/stamp-update.ts"],"names":[],"mappings":"AAIA,kIAAkI;AAClI,MAAM,UAAU,WAAW,CAAC,KAAqB,EAAE,KAAY;IAC7D,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;AACzE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** What `enqueue` answers. */
|
|
2
2
|
export interface EnqueuedJob {
|
|
3
3
|
readonly id: string;
|
|
4
|
-
/** True when a job of the same name and idempotency key was already there: its id is answered and nothing is added. */
|
|
4
|
+
/** True when a job of the same name and idempotency key, or of the same id, was already there: its id is answered and nothing is added. */
|
|
5
5
|
readonly duplicate: boolean;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=enqueued-job.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enqueued-job.d.ts","sourceRoot":"","sources":["../../../src/application/background/enqueued-job.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"enqueued-job.d.ts","sourceRoot":"","sources":["../../../src/application/background/enqueued-job.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,2IAA2I;IAC3I,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-once.d.ts","sourceRoot":"","sources":["../../../src/application/error-reporting/report-once.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"report-once.d.ts","sourceRoot":"","sources":["../../../src/application/error-reporting/report-once.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKlD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAU7F"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { safely } from '../observation/safely.js';
|
|
1
2
|
const REPORTED = new WeakSet();
|
|
2
3
|
const DEEPEST_CAUSE = 8;
|
|
3
4
|
/**
|
|
@@ -14,12 +15,7 @@ export function reportOnce(reporter, error, report) {
|
|
|
14
15
|
if (typeof error === 'object' && error !== null) {
|
|
15
16
|
REPORTED.add(error);
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
reporter.report(error, report);
|
|
19
|
-
}
|
|
20
|
-
catch {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
18
|
+
safely(() => reporter.report(error, report));
|
|
23
19
|
}
|
|
24
20
|
function wasReported(error, depth) {
|
|
25
21
|
if (typeof error !== 'object' || error === null || depth === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-once.js","sourceRoot":"","sources":["../../../src/application/error-reporting/report-once.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"report-once.js","sourceRoot":"","sources":["../../../src/application/error-reporting/report-once.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAI/C,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAU,CAAC;AACvC,MAA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
|
|
|
1
1
|
/** What a stored event says besides its data, handed to `decode` to build the domain event back. */
|
|
2
2
|
export interface EventEnvelope {
|
|
3
|
+
/** The id the store holds the event under. */
|
|
3
4
|
readonly id: string;
|
|
4
5
|
readonly aggregateId: string;
|
|
5
6
|
readonly occurredAt: Date;
|
|
6
|
-
/** Its rank in its stream
|
|
7
|
+
/** Its rank in its stream, which the event built back is given: `rankOf(event)`. */
|
|
7
8
|
readonly version: number;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=event-envelope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-envelope.d.ts","sourceRoot":"","sources":["../../../src/application/event-sourcing/event-envelope.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"event-envelope.d.ts","sourceRoot":"","sources":["../../../src/application/event-sourcing/event-envelope.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;IAC1B,oFAAoF;IACpF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoredData } from './stored-data.js';
|
|
2
2
|
/** An event as the store is handed it: serialized, not yet placed in its stream. */
|
|
3
3
|
export interface EventToAppend {
|
|
4
|
-
/** Unique in the store
|
|
4
|
+
/** Unique in the store: the identity of the domain event, `eventIdOf(event)`. */
|
|
5
5
|
readonly id: string;
|
|
6
6
|
/** The name the domain event carries, `<context>.<aggregate>.<fact>`. */
|
|
7
7
|
readonly type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-to-append.d.ts","sourceRoot":"","sources":["../../../src/application/event-sourcing/event-to-append.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oFAAoF;AACpF,MAAM,WAAW,aAAa;IAC5B,
|
|
1
|
+
{"version":3,"file":"event-to-append.d.ts","sourceRoot":"","sources":["../../../src/application/event-sourcing/event-to-append.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oFAAoF;AACpF,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qGAAqG;IACrG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Actor } from '../actor/actor.js';
|
|
2
2
|
import type { ExecutionContext } from './execution-context.js';
|
|
3
3
|
/**
|
|
4
|
-
* The same unit of work seen as another actor. The session
|
|
5
|
-
* The tenant follows the new actor when it has one.
|
|
4
|
+
* The same unit of work seen as another actor. The session and the elevation go: they were the
|
|
5
|
+
* previous actor's. The tenant follows the new actor when it has one.
|
|
6
6
|
*/
|
|
7
7
|
export declare function withActor(context: ExecutionContext, actor: Actor): ExecutionContext;
|
|
8
8
|
//# sourceMappingURL=with-actor.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The same unit of work seen as another actor. The session
|
|
3
|
-
* The tenant follows the new actor when it has one.
|
|
2
|
+
* The same unit of work seen as another actor. The session and the elevation go: they were the
|
|
3
|
+
* previous actor's. The tenant follows the new actor when it has one.
|
|
4
4
|
*/
|
|
5
5
|
export function withActor(context, actor) {
|
|
6
6
|
if (context.actor === actor) {
|
|
7
7
|
return context;
|
|
8
8
|
}
|
|
9
|
-
const { session: _session, tenantId: _tenantId, ...rest } = context;
|
|
9
|
+
const { session: _session, elevation: _elevation, tenantId: _tenantId, ...rest } = context;
|
|
10
10
|
const tenantId = actor.tenantId ?? context.tenantId;
|
|
11
11
|
return Object.freeze({ ...rest, actor, ...(tenantId === undefined ? {} : { tenantId }) });
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-actor.js","sourceRoot":"","sources":["../../../src/application/execution/with-actor.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,KAAY;IAC/D,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;QAC5B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"with-actor.js","sourceRoot":"","sources":["../../../src/application/execution/with-actor.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,KAAY;IAC/D,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;QAC5B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IAC3F,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC;IAEpD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The reference to a file that an aggregate keeps, and all it keeps: the content lives in a
|
|
3
3
|
* `FileStorage`, never in the database. It names no provider, no bucket and no URL, so the
|
|
4
|
-
* connector can change without touching a row.
|
|
4
|
+
* connector can change without touching a row. A `type`, so that a value object can hold it.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type StoredFile = {
|
|
7
7
|
/** Generated by the server (`FileKeys`), never taken from the user. */
|
|
8
8
|
readonly key: string;
|
|
9
9
|
/** In bytes. */
|
|
@@ -12,5 +12,5 @@ export interface StoredFile {
|
|
|
12
12
|
readonly mediaType: string;
|
|
13
13
|
/** `sha256:<hex>` of the content, computed while it streamed. */
|
|
14
14
|
readonly checksum: string;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
//# sourceMappingURL=stored-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-file.d.ts","sourceRoot":"","sources":["../../../src/application/files/stored-file.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"stored-file.d.ts","sourceRoot":"","sources":["../../../src/application/files/stored-file.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,uEAAuE;IACvE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qEAAqE;IACrE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,iEA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.parts.policies, failures: new Map(), warnings: [] };
|
|
63
63
|
const extras = await this.parts.complete(items, run);
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
const [firstFailure] = run.failures.values();
|
|
65
|
+
if (run.failures.size > 0) {
|
|
66
|
+
throw firstFailure;
|
|
66
67
|
}
|
|
67
68
|
const hydrated = extras.flatMap((extra, index) => {
|
|
68
69
|
const row = items[index];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydration.js","sourceRoot":"","sources":["../../../src/application/hydration/hydration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC;;;;GAIG;AACH,MAAM,OAAO,SAAS;IAOiB,KAAK;IAJ1C,MAAM,CAAC,EAAE,CAAqB,IAAe;QAC3C,OAAO,IAAI,SAAS,CAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;IACtH,CAAC;IAED,YAAqC,KAAwB;qBAAxB,KAAK;IAAsB,CAAC;IAEjE;;;OAGG;IACH,IAAI,CACF,IAAU,EACV,KAA8C,EAC9C,MAAyE;QAEzE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhD,OAAO,IAAI,SAAS,CAAC;YACnB,IAAI;YACJ,QAAQ;YACR,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;gBAC5B,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CA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,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QAEH,OAAO,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;IAChE,CAAC;CACF;AAED,SAAS,OAAO,CAAC,GAAiB,EAAE,QAAgB;IAClD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QAChC,OAAO;IACT,CAAC;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,YAAY,qBAAqB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,eAAe,CAAC;IAEhH,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC9B,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Whether a field of that name is written as `REDACTED` instead of its value. */
|
|
2
|
+
export type IsHiddenKey = (name: string) => boolean;
|
|
3
|
+
/**
|
|
4
|
+
* The one question a redacting logger asks of a field name, wherever the field comes from: is it
|
|
5
|
+
* one of `CREDENTIAL_KEYS` or of the names a project adds to them, whatever its case.
|
|
6
|
+
*/
|
|
7
|
+
export declare function hiddenKeys(added?: readonly string[]): IsHiddenKey;
|
|
8
|
+
//# sourceMappingURL=hidden-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-keys.d.ts","sourceRoot":"","sources":["../../../src/application/logging/hidden-keys.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,GAAE,SAAS,MAAM,EAAO,GAAG,WAAW,CAIrE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isCredentialKey } from './is-credential-key.js';
|
|
2
|
+
/**
|
|
3
|
+
* The one question a redacting logger asks of a field name, wherever the field comes from: is it
|
|
4
|
+
* one of `CREDENTIAL_KEYS` or of the names a project adds to them, whatever its case.
|
|
5
|
+
*/
|
|
6
|
+
export function hiddenKeys(added = []) {
|
|
7
|
+
const names = new Set(added.map((name) => name.toLowerCase()));
|
|
8
|
+
return (name) => isCredentialKey(name) || names.has(name.toLowerCase());
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=hidden-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-keys.js","sourceRoot":"","sources":["../../../src/application/logging/hidden-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAK,GAAsB,EAAE;IACtD,MAAM,KAAK,GAAwB,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAEpF,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -3,6 +3,7 @@ export * from './describe-error.js';
|
|
|
3
3
|
export * from './describe-error-fields.js';
|
|
4
4
|
export * from './error-description.js';
|
|
5
5
|
export * from './error-identity.js';
|
|
6
|
+
export * from './hidden-keys.js';
|
|
6
7
|
export * from './identify-error.js';
|
|
7
8
|
export * from './is-credential-key.js';
|
|
8
9
|
export * from './log-fields.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/application/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/application/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -3,6 +3,7 @@ export * from './describe-error.js';
|
|
|
3
3
|
export * from './describe-error-fields.js';
|
|
4
4
|
export * from './error-description.js';
|
|
5
5
|
export * from './error-identity.js';
|
|
6
|
+
export * from './hidden-keys.js';
|
|
6
7
|
export * from './identify-error.js';
|
|
7
8
|
export * from './is-credential-key.js';
|
|
8
9
|
export * from './log-fields.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safely.d.ts","sourceRoot":"","sources":["../../../src/application/observation/safely.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI,CAMhD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs what observes (a hook, a logger, a meter) and keeps its failure to itself: observation
|
|
3
|
+
* must never break what it observes.
|
|
4
|
+
*/
|
|
5
|
+
export function safely(observe) {
|
|
6
|
+
try {
|
|
7
|
+
observe();
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=safely.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safely.js","sourceRoot":"","sources":["../../../src/application/observation/safely.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAC,OAAmB;IACxC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC;IACZ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;IACT,CAAC;AACH,CAAC"}
|
|
@@ -13,6 +13,7 @@ export interface StreamChanges {
|
|
|
13
13
|
* rejects (a ConcurrencyError: somebody else appended first), the aggregate is left as it was.
|
|
14
14
|
* An aggregate that recorded nothing still hands its version over, with no event: the store
|
|
15
15
|
* refuses it when the stream moved meanwhile, so a stale copy is never taken for a current one.
|
|
16
|
+
* What is no aggregate of the kit, of whichever copy of the kernel, is refused with a `TypeError`.
|
|
16
17
|
*/
|
|
17
18
|
export declare function appendChanges<E extends DomainEvent, S>(aggregate: EventSourcedAggregate<E, S>, append: (changes: StreamChanges) => Promise<void>): Promise<void>;
|
|
18
19
|
//# sourceMappingURL=append-changes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append-changes.d.ts","sourceRoot":"","sources":["../../../src/application/persistence/append-changes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"append-changes.d.ts","sourceRoot":"","sources":["../../../src/application/persistence/append-changes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAIjG,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;CACzC;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,EAC1D,SAAS,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,EACtC,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC,CAMf"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { storedAt } from '../../infrastructure/aggregates/stored-at.js';
|
|
2
|
+
import { unstoredEventsOf } from '../../infrastructure/aggregates/unstored-events-of.js';
|
|
2
3
|
/**
|
|
3
4
|
* Optimistic concurrency for an event-sourced aggregate: hands what it recorded since it was
|
|
4
5
|
* loaded to `append`, with the version its stream must still have. Once `append` resolves, the
|
|
@@ -6,12 +7,12 @@ import { unstoredEvents } from '../../domain/event-sourcing/unstored-events.js';
|
|
|
6
7
|
* rejects (a ConcurrencyError: somebody else appended first), the aggregate is left as it was.
|
|
7
8
|
* An aggregate that recorded nothing still hands its version over, with no event: the store
|
|
8
9
|
* refuses it when the stream moved meanwhile, so a stale copy is never taken for a current one.
|
|
10
|
+
* What is no aggregate of the kit, of whichever copy of the kernel, is refused with a `TypeError`.
|
|
9
11
|
*/
|
|
10
12
|
export async function appendChanges(aggregate, append) {
|
|
11
|
-
const
|
|
12
|
-
const events =
|
|
13
|
-
await append({ expected
|
|
14
|
-
|
|
15
|
-
aggregate.version += events.length;
|
|
13
|
+
const expected = aggregate.version;
|
|
14
|
+
const events = unstoredEventsOf(aggregate);
|
|
15
|
+
await append({ expected, events });
|
|
16
|
+
storedAt(aggregate, expected + events.length, events.length);
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=append-changes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append-changes.js","sourceRoot":"","sources":["../../../src/application/persistence/append-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"append-changes.js","sourceRoot":"","sources":["../../../src/application/persistence/append-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AAStF;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,SAAsC,EACtC,MAAiD;IAEjD,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC;IACnC,MAAM,MAAM,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAE3C,MAAM,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface VersionStep {
|
|
2
2
|
/** The version the row must still have: 0 means the aggregate was never saved. */
|
|
3
3
|
readonly expected: number;
|
|
4
|
-
/** The version to write. */
|
|
4
|
+
/** The version to write: the rank of the last event the aggregate recorded, one more than `expected` when it recorded none. */
|
|
5
5
|
readonly next: number;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -14,9 +14,13 @@ export interface VersionStep {
|
|
|
14
14
|
* database refuses for a value another row holds under a unique constraint (an email) raises a
|
|
15
15
|
* UniqueViolationError (`CONFLICT`), the error of the driver as its cause: the same save would be
|
|
16
16
|
* refused again. On success the aggregate carries the new version, so it can be saved again.
|
|
17
|
+
* The version moves to the rank of the last event recorded since the row was read, and by one when
|
|
18
|
+
* nothing was recorded: the next event of the aggregate then ranks after every one before it.
|
|
19
|
+
* The aggregate is one of the kit, of whichever copy of the kernel: anything else is refused with
|
|
20
|
+
* a `TypeError` before anything is written.
|
|
17
21
|
*/
|
|
18
22
|
export declare function optimisticUpdate(aggregate: {
|
|
19
23
|
readonly id: string | number;
|
|
20
|
-
version: number;
|
|
24
|
+
readonly version: number;
|
|
21
25
|
}, write: (step: VersionStep) => Promise<number>): Promise<void>;
|
|
22
26
|
//# sourceMappingURL=optimistic-update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimistic-update.d.ts","sourceRoot":"","sources":["../../../src/application/persistence/optimistic-update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"optimistic-update.d.ts","sourceRoot":"","sources":["../../../src/application/persistence/optimistic-update.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW;IAC1B,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,+HAA+H;IAC/H,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EACrE,KAAK,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAcf"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { AggregateTracking } from '../../domain/aggregate-tracking.js';
|
|
1
2
|
import { ConcurrencyError } from '../../domain/errors/concurrency-error.js';
|
|
2
3
|
import { UniqueViolationError } from '../../domain/errors/unique-violation-error.js';
|
|
4
|
+
import { storedAt } from '../../infrastructure/aggregates/stored-at.js';
|
|
5
|
+
import { unstoredEventsOf } from '../../infrastructure/aggregates/unstored-events-of.js';
|
|
3
6
|
import { isUniqueViolation } from '../../infrastructure/persistence/is-unique-violation.js';
|
|
4
7
|
/**
|
|
5
8
|
* Optimistic concurrency on the `version` column of an aggregate table.
|
|
@@ -11,16 +14,21 @@ import { isUniqueViolation } from '../../infrastructure/persistence/is-unique-vi
|
|
|
11
14
|
* database refuses for a value another row holds under a unique constraint (an email) raises a
|
|
12
15
|
* UniqueViolationError (`CONFLICT`), the error of the driver as its cause: the same save would be
|
|
13
16
|
* refused again. On success the aggregate carries the new version, so it can be saved again.
|
|
17
|
+
* The version moves to the rank of the last event recorded since the row was read, and by one when
|
|
18
|
+
* nothing was recorded: the next event of the aggregate then ranks after every one before it.
|
|
19
|
+
* The aggregate is one of the kit, of whichever copy of the kernel: anything else is refused with
|
|
20
|
+
* a `TypeError` before anything is written.
|
|
14
21
|
*/
|
|
15
22
|
export async function optimisticUpdate(aggregate, write) {
|
|
16
|
-
const expected = aggregate.version;
|
|
17
|
-
const
|
|
23
|
+
const expected = AggregateTracking.of(aggregate).version;
|
|
24
|
+
const recorded = unstoredEventsOf(aggregate).length;
|
|
25
|
+
const next = expected + Math.max(recorded, 1);
|
|
18
26
|
const written = await write({ expected, next }).catch((error) => {
|
|
19
27
|
throw isUniqueViolation(error) ? new UniqueViolationError(aggregate.id, { cause: error }) : error;
|
|
20
28
|
});
|
|
21
29
|
if (written !== 1) {
|
|
22
30
|
throw new ConcurrencyError(aggregate.id);
|
|
23
31
|
}
|
|
24
|
-
aggregate
|
|
32
|
+
storedAt(aggregate, next, recorded);
|
|
25
33
|
}
|
|
26
34
|
//# sourceMappingURL=optimistic-update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimistic-update.js","sourceRoot":"","sources":["../../../src/application/persistence/optimistic-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AASzF
|
|
1
|
+
{"version":3,"file":"optimistic-update.js","sourceRoot":"","sources":["../../../src/application/persistence/optimistic-update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subscriptio
|
|
|
5
5
|
/**
|
|
6
6
|
* In-context reactions to what the aggregates recorded. Cross-context reactions use
|
|
7
7
|
* IntegrationEvents. Use cases do not depend on it: the save of a repository hands over what the
|
|
8
|
-
* aggregate recorded, and the unit of work dispatches it at its end (`
|
|
8
|
+
* aggregate recorded, and the unit of work dispatches it at its end (`unitOfWorkOver`).
|
|
9
9
|
*/
|
|
10
10
|
export declare abstract class DomainEventDispatcher {
|
|
11
11
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* In-context reactions to what the aggregates recorded. Cross-context reactions use
|
|
3
3
|
* IntegrationEvents. Use cases do not depend on it: the save of a repository hands over what the
|
|
4
|
-
* aggregate recorded, and the unit of work dispatches it at its end (`
|
|
4
|
+
* aggregate recorded, and the unit of work dispatches it at its end (`unitOfWorkOver`).
|
|
5
5
|
*/
|
|
6
6
|
export class DomainEventDispatcher {
|
|
7
7
|
static {
|
|
@@ -32,9 +32,9 @@ export declare abstract class Logger {
|
|
|
32
32
|
abstract isLevelEnabled(level: LogLevel): boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Resolves once every entry logged so far, through this logger or a child, was handed to its
|
|
35
|
-
* destination. Never rejects
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* destination. Never rejects, and ends nothing: an entry logged afterwards is written like the
|
|
36
|
+
* others, and a later call flushes it in turn. The application calls it when it stops, after
|
|
37
|
+
* the last entry of its modules.
|
|
38
38
|
*/
|
|
39
39
|
abstract flush(): Promise<void>;
|
|
40
40
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Runs `work` atomically. The domain events of the aggregates it saves wait until `work` has
|
|
3
3
|
* returned, then are dispatched inside it, before the commit: what their handlers write, the
|
|
4
4
|
* outbox included, commits or rolls back with it. The handlers of the `after-commit` phase run
|
|
5
|
-
* once it has committed. An implementation gets all of it from `
|
|
5
|
+
* once it has committed. An implementation gets all of it from `unitOfWorkOver`.
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class UnitOfWork {
|
|
8
8
|
abstract run<T>(work: () => Promise<T>): Promise<T>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Runs `work` atomically. The domain events of the aggregates it saves wait until `work` has
|
|
3
3
|
* returned, then are dispatched inside it, before the commit: what their handlers write, the
|
|
4
4
|
* outbox included, commits or rolls back with it. The handlers of the `after-commit` phase run
|
|
5
|
-
* once it has committed. An implementation gets all of it from `
|
|
5
|
+
* once it has committed. An implementation gets all of it from `unitOfWorkOver`.
|
|
6
6
|
*/
|
|
7
7
|
export class UnitOfWork {
|
|
8
8
|
static {
|
|
@@ -2,9 +2,16 @@ import type { DomainEvent } from '../../domain/domain-event.js';
|
|
|
2
2
|
import type { IntegrationEvent } from '../events/integration-event.js';
|
|
3
3
|
import type { EventStamp } from './event-stamp.js';
|
|
4
4
|
/**
|
|
5
|
-
* The stamp of an event, for the row it changes.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* The stamp of an event, for the row it changes.
|
|
6
|
+
*
|
|
7
|
+
* A domain event gives its identity, its instant and, as `version`, its rank in its aggregate: the
|
|
8
|
+
* rows of one aggregate are ordered by its history and not by clocks, whether the event comes from
|
|
9
|
+
* a save or from its stream. A key that the events of several aggregates write has no single
|
|
10
|
+
* history: stamp it `{ eventId: eventIdOf(event), occurredAt: event.occurredAt }`, and the instants decide.
|
|
11
|
+
*
|
|
12
|
+
* An integration event gives its id and its instant; pass the per-key `version` when its payload
|
|
13
|
+
* carries one, and the order no longer relies on clocks either.
|
|
8
14
|
*/
|
|
9
|
-
export declare function stampOf(event:
|
|
15
|
+
export declare function stampOf(event: DomainEvent): EventStamp;
|
|
16
|
+
export declare function stampOf(event: IntegrationEvent, version?: number): EventStamp;
|
|
10
17
|
//# sourceMappingURL=stamp-of.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stamp-of.d.ts","sourceRoot":"","sources":["../../../src/application/read-model/stamp-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"stamp-of.d.ts","sourceRoot":"","sources":["../../../src/application/read-model/stamp-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC;AACxD,wBAAgB,OAAO,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* instant; a domain event, which has no id, is known by its name and aggregate. Pass the
|
|
4
|
-
* per-key `version` when the event carries one: the order then no longer relies on clocks.
|
|
5
|
-
*/
|
|
1
|
+
import { eventIdOf } from '../../domain/event-id-of.js';
|
|
2
|
+
import { rankOf } from '../../domain/rank-of.js';
|
|
6
3
|
export function stampOf(event, version) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
if (isDomainEvent(event)) {
|
|
5
|
+
return { eventId: eventIdOf(event), occurredAt: event.occurredAt, version: rankOf(event) };
|
|
6
|
+
}
|
|
7
|
+
const stamp = { eventId: event.id, occurredAt: new Date(event.occurredAt) };
|
|
10
8
|
return version === undefined ? stamp : { ...stamp, version };
|
|
11
9
|
}
|
|
10
|
+
/** An integration event writes its instant as text, a domain event keeps a `Date`. */
|
|
11
|
+
function isDomainEvent(event) {
|
|
12
|
+
return typeof event.occurredAt !== 'string';
|
|
13
|
+
}
|
|
12
14
|
//# sourceMappingURL=stamp-of.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stamp-of.js","sourceRoot":"","sources":["../../../src/application/read-model/stamp-of.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stamp-of.js","sourceRoot":"","sources":["../../../src/application/read-model/stamp-of.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAkB9C,MAAM,UAAU,OAAO,CAAC,KAAqC,EAAE,OAAgB;IAC7E,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;IAC7F,CAAC;IAED,MAAM,KAAK,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;IAE5E,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC;AAC/D,CAAC;AAED,sFAAsF;AACtF,SAAS,aAAa,CAAC,KAAqC;IAC1D,OAAO,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC;AAC9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous-session.d.ts","sourceRoot":"","sources":["../../../src/application/session/anonymous-session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"anonymous-session.d.ts","sourceRoot":"","sources":["../../../src/application/session/anonymous-session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYzC,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
|