@ddd-ts-kit/kernel 0.8.0 → 0.10.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.md +207 -2
- package/dist/application/criteria/index.d.ts +33 -0
- package/dist/application/criteria/index.d.ts.map +1 -0
- package/dist/application/criteria/index.js +33 -0
- package/dist/application/criteria/index.js.map +1 -0
- package/dist/application/event-sourcing/appended.d.ts +8 -0
- package/dist/application/event-sourcing/appended.d.ts.map +1 -0
- package/dist/application/event-sourcing/appended.js +2 -0
- package/dist/application/event-sourcing/appended.js.map +1 -0
- package/dist/application/event-sourcing/define-stored-event.d.ts +10 -0
- package/dist/application/event-sourcing/define-stored-event.d.ts.map +1 -0
- package/dist/application/event-sourcing/define-stored-event.js +22 -0
- package/dist/application/event-sourcing/define-stored-event.js.map +1 -0
- package/dist/application/event-sourcing/erased-personal-data.d.ts +3 -0
- package/dist/application/event-sourcing/erased-personal-data.d.ts.map +1 -0
- package/dist/application/event-sourcing/erased-personal-data.js +3 -0
- package/dist/application/event-sourcing/erased-personal-data.js.map +1 -0
- package/dist/application/event-sourcing/event-envelope.d.ts +9 -0
- package/dist/application/event-sourcing/event-envelope.d.ts.map +1 -0
- package/dist/application/event-sourcing/event-envelope.js +2 -0
- package/dist/application/event-sourcing/event-envelope.js.map +1 -0
- package/dist/application/event-sourcing/event-to-append.d.ts +15 -0
- package/dist/application/event-sourcing/event-to-append.d.ts.map +1 -0
- package/dist/application/event-sourcing/event-to-append.js +2 -0
- package/dist/application/event-sourcing/event-to-append.js.map +1 -0
- package/dist/application/event-sourcing/index.d.ts +21 -0
- package/dist/application/event-sourcing/index.d.ts.map +1 -0
- package/dist/application/event-sourcing/index.js +21 -0
- package/dist/application/event-sourcing/index.js.map +1 -0
- package/dist/application/event-sourcing/is-stored-data.d.ts +5 -0
- package/dist/application/event-sourcing/is-stored-data.d.ts.map +1 -0
- package/dist/application/event-sourcing/is-stored-data.js +5 -0
- package/dist/application/event-sourcing/is-stored-data.js.map +1 -0
- package/dist/application/event-sourcing/is-stored-list.d.ts +4 -0
- package/dist/application/event-sourcing/is-stored-list.d.ts.map +1 -0
- package/dist/application/event-sourcing/is-stored-list.js +5 -0
- package/dist/application/event-sourcing/is-stored-list.js.map +1 -0
- package/dist/application/event-sourcing/personal-data.d.ts +14 -0
- package/dist/application/event-sourcing/personal-data.d.ts.map +1 -0
- package/dist/application/event-sourcing/personal-data.js +9 -0
- package/dist/application/event-sourcing/personal-data.js.map +1 -0
- package/dist/application/event-sourcing/stored-data-of.d.ts +9 -0
- package/dist/application/event-sourcing/stored-data-of.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-data-of.js +40 -0
- package/dist/application/event-sourcing/stored-data-of.js.map +1 -0
- package/dist/application/event-sourcing/stored-data.d.ts +6 -0
- package/dist/application/event-sourcing/stored-data.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-data.js +2 -0
- package/dist/application/event-sourcing/stored-data.js.map +1 -0
- package/dist/application/event-sourcing/stored-event-data.d.ts +25 -0
- package/dist/application/event-sourcing/stored-event-data.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-event-data.js +82 -0
- package/dist/application/event-sourcing/stored-event-data.js.map +1 -0
- package/dist/application/event-sourcing/stored-event-spec.d.ts +20 -0
- package/dist/application/event-sourcing/stored-event-spec.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-event-spec.js +2 -0
- package/dist/application/event-sourcing/stored-event-spec.js.map +1 -0
- package/dist/application/event-sourcing/stored-event-type.d.ts +14 -0
- package/dist/application/event-sourcing/stored-event-type.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-event-type.js +2 -0
- package/dist/application/event-sourcing/stored-event-type.js.map +1 -0
- package/dist/application/event-sourcing/stored-event-types.d.ts +9 -0
- package/dist/application/event-sourcing/stored-event-types.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-event-types.js +2 -0
- package/dist/application/event-sourcing/stored-event-types.js.map +1 -0
- package/dist/application/event-sourcing/stored-event.d.ts +12 -0
- package/dist/application/event-sourcing/stored-event.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-event.js +2 -0
- package/dist/application/event-sourcing/stored-event.js.map +1 -0
- package/dist/application/event-sourcing/stored-json.d.ts +5 -0
- package/dist/application/event-sourcing/stored-json.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-json.js +2 -0
- package/dist/application/event-sourcing/stored-json.js.map +1 -0
- package/dist/application/event-sourcing/stored-snapshot.d.ts +11 -0
- package/dist/application/event-sourcing/stored-snapshot.d.ts.map +1 -0
- package/dist/application/event-sourcing/stored-snapshot.js +2 -0
- package/dist/application/event-sourcing/stored-snapshot.js.map +1 -0
- package/dist/application/event-sourcing/subject-key.d.ts +10 -0
- package/dist/application/event-sourcing/subject-key.d.ts.map +1 -0
- package/dist/application/event-sourcing/subject-key.js +2 -0
- package/dist/application/event-sourcing/subject-key.js.map +1 -0
- package/dist/application/event-sourcing/unreadable-event-error.d.ts +5 -0
- package/dist/application/event-sourcing/unreadable-event-error.d.ts.map +1 -0
- package/dist/application/event-sourcing/unreadable-event-error.js +8 -0
- package/dist/application/event-sourcing/unreadable-event-error.js.map +1 -0
- package/dist/application/event-sourcing/upcaster.d.ts +4 -0
- package/dist/application/event-sourcing/upcaster.d.ts.map +1 -0
- package/dist/application/event-sourcing/upcaster.js +2 -0
- package/dist/application/event-sourcing/upcaster.js.map +1 -0
- package/dist/application/files/accepts-media-type.d.ts +3 -0
- package/dist/application/files/accepts-media-type.d.ts.map +1 -0
- package/dist/application/files/accepts-media-type.js +11 -0
- package/dist/application/files/accepts-media-type.js.map +1 -0
- package/dist/application/files/assert-expiry.d.ts +3 -0
- package/dist/application/files/assert-expiry.d.ts.map +1 -0
- package/dist/application/files/assert-expiry.js +10 -0
- package/dist/application/files/assert-expiry.js.map +1 -0
- package/dist/application/files/assert-file-key.d.ts +3 -0
- package/dist/application/files/assert-file-key.d.ts.map +1 -0
- package/dist/application/files/assert-file-key.js +10 -0
- package/dist/application/files/assert-file-key.js.map +1 -0
- package/dist/application/files/assert-final-key.d.ts +3 -0
- package/dist/application/files/assert-final-key.d.ts.map +1 -0
- package/dist/application/files/assert-final-key.js +11 -0
- package/dist/application/files/assert-final-key.js.map +1 -0
- package/dist/application/files/content-disposition.d.ts +3 -0
- package/dist/application/files/content-disposition.d.ts.map +1 -0
- package/dist/application/files/content-disposition.js +9 -0
- package/dist/application/files/content-disposition.js.map +1 -0
- package/dist/application/files/content-expectation.d.ts +6 -0
- package/dist/application/files/content-expectation.d.ts.map +1 -0
- package/dist/application/files/content-expectation.js +2 -0
- package/dist/application/files/content-expectation.js.map +1 -0
- package/dist/application/files/content-matches.d.ts +7 -0
- package/dist/application/files/content-matches.d.ts.map +1 -0
- package/dist/application/files/content-matches.js +39 -0
- package/dist/application/files/content-matches.js.map +1 -0
- package/dist/application/files/download-url-options.d.ts +7 -0
- package/dist/application/files/download-url-options.d.ts.map +1 -0
- package/dist/application/files/download-url-options.js +2 -0
- package/dist/application/files/download-url-options.js.map +1 -0
- package/dist/application/files/file-content.d.ts +8 -0
- package/dist/application/files/file-content.d.ts.map +1 -0
- package/dist/application/files/file-content.js +2 -0
- package/dist/application/files/file-content.js.map +1 -0
- package/dist/application/files/file-error.d.ts +28 -0
- package/dist/application/files/file-error.d.ts.map +1 -0
- package/dist/application/files/file-error.js +29 -0
- package/dist/application/files/file-error.js.map +1 -0
- package/dist/application/files/file-metadata.d.ts +10 -0
- package/dist/application/files/file-metadata.d.ts.map +1 -0
- package/dist/application/files/file-metadata.js +2 -0
- package/dist/application/files/file-metadata.js.map +1 -0
- package/dist/application/files/file-source.d.ts +4 -0
- package/dist/application/files/file-source.d.ts.map +1 -0
- package/dist/application/files/file-source.js +2 -0
- package/dist/application/files/file-source.js.map +1 -0
- package/dist/application/files/file-upload.d.ts +25 -0
- package/dist/application/files/file-upload.d.ts.map +1 -0
- package/dist/application/files/file-upload.js +36 -0
- package/dist/application/files/file-upload.js.map +1 -0
- package/dist/application/files/index.d.ts +31 -0
- package/dist/application/files/index.d.ts.map +1 -0
- package/dist/application/files/index.js +31 -0
- package/dist/application/files/index.js.map +1 -0
- package/dist/application/files/inspection-limits.d.ts +8 -0
- package/dist/application/files/inspection-limits.d.ts.map +1 -0
- package/dist/application/files/inspection-limits.js +2 -0
- package/dist/application/files/inspection-limits.js.map +1 -0
- package/dist/application/files/is-file-key.d.ts +7 -0
- package/dist/application/files/is-file-key.d.ts.map +1 -0
- package/dist/application/files/is-file-key.js +11 -0
- package/dist/application/files/is-file-key.js.map +1 -0
- package/dist/application/files/listed-file.d.ts +7 -0
- package/dist/application/files/listed-file.d.ts.map +1 -0
- package/dist/application/files/listed-file.js +2 -0
- package/dist/application/files/listed-file.js.map +1 -0
- package/dist/application/files/max-signed-url-seconds.d.ts +3 -0
- package/dist/application/files/max-signed-url-seconds.d.ts.map +1 -0
- package/dist/application/files/max-signed-url-seconds.js +3 -0
- package/dist/application/files/max-signed-url-seconds.js.map +1 -0
- package/dist/application/files/media-type-of.d.ts +3 -0
- package/dist/application/files/media-type-of.d.ts.map +1 -0
- package/dist/application/files/media-type-of.js +5 -0
- package/dist/application/files/media-type-of.js.map +1 -0
- package/dist/application/files/pending-upload-link.d.ts +10 -0
- package/dist/application/files/pending-upload-link.d.ts.map +1 -0
- package/dist/application/files/pending-upload-link.js +2 -0
- package/dist/application/files/pending-upload-link.js.map +1 -0
- package/dist/application/files/pending-upload.d.ts +15 -0
- package/dist/application/files/pending-upload.d.ts.map +1 -0
- package/dist/application/files/pending-upload.js +2 -0
- package/dist/application/files/pending-upload.js.map +1 -0
- package/dist/application/files/put-options.d.ts +7 -0
- package/dist/application/files/put-options.d.ts.map +1 -0
- package/dist/application/files/put-options.js +2 -0
- package/dist/application/files/put-options.js.map +1 -0
- package/dist/application/files/received-file.d.ts +15 -0
- package/dist/application/files/received-file.d.ts.map +1 -0
- package/dist/application/files/received-file.js +2 -0
- package/dist/application/files/received-file.js.map +1 -0
- package/dist/application/files/scan-verdict.d.ts +8 -0
- package/dist/application/files/scan-verdict.d.ts.map +1 -0
- package/dist/application/files/scan-verdict.js +2 -0
- package/dist/application/files/scan-verdict.js.map +1 -0
- package/dist/application/files/signature-of.d.ts +3 -0
- package/dist/application/files/signature-of.d.ts.map +1 -0
- package/dist/application/files/signature-of.js +28 -0
- package/dist/application/files/signature-of.js.map +1 -0
- package/dist/application/files/signed-download.d.ts +6 -0
- package/dist/application/files/signed-download.d.ts.map +1 -0
- package/dist/application/files/signed-download.js +2 -0
- package/dist/application/files/signed-download.js.map +1 -0
- package/dist/application/files/signed-upload.d.ts +9 -0
- package/dist/application/files/signed-upload.d.ts.map +1 -0
- package/dist/application/files/signed-upload.js +2 -0
- package/dist/application/files/signed-upload.js.map +1 -0
- package/dist/application/files/signed-url.d.ts +6 -0
- package/dist/application/files/signed-url.d.ts.map +1 -0
- package/dist/application/files/signed-url.js +2 -0
- package/dist/application/files/signed-url.js.map +1 -0
- package/dist/application/files/staged-key-of.d.ts +5 -0
- package/dist/application/files/staged-key-of.d.ts.map +1 -0
- package/dist/application/files/staged-key-of.js +7 -0
- package/dist/application/files/staged-key-of.js.map +1 -0
- package/dist/application/files/stored-file.d.ts +16 -0
- package/dist/application/files/stored-file.d.ts.map +1 -0
- package/dist/application/files/stored-file.js +2 -0
- package/dist/application/files/stored-file.js.map +1 -0
- package/dist/application/files/upload-url-options.d.ts +12 -0
- package/dist/application/files/upload-url-options.d.ts.map +1 -0
- package/dist/application/files/upload-url-options.js +2 -0
- package/dist/application/files/upload-url-options.js.map +1 -0
- package/dist/application/persistence/append-changes.d.ts +18 -0
- package/dist/application/persistence/append-changes.d.ts.map +1 -0
- package/dist/application/persistence/append-changes.js +17 -0
- package/dist/application/persistence/append-changes.js.map +1 -0
- package/dist/application/ports/checkpoint-store.d.ts +14 -0
- package/dist/application/ports/checkpoint-store.d.ts.map +1 -0
- package/dist/application/ports/checkpoint-store.js +10 -0
- package/dist/application/ports/checkpoint-store.js.map +1 -0
- package/dist/application/ports/event-store.d.ts +24 -0
- package/dist/application/ports/event-store.d.ts.map +1 -0
- package/dist/application/ports/event-store.js +12 -0
- package/dist/application/ports/event-store.js.map +1 -0
- package/dist/application/ports/file-keys.d.ts +9 -0
- package/dist/application/ports/file-keys.d.ts.map +1 -0
- package/dist/application/ports/file-keys.js +10 -0
- package/dist/application/ports/file-keys.js.map +1 -0
- package/dist/application/ports/file-scanner.d.ts +13 -0
- package/dist/application/ports/file-scanner.d.ts.map +1 -0
- package/dist/application/ports/file-scanner.js +12 -0
- package/dist/application/ports/file-scanner.js.map +1 -0
- package/dist/application/ports/file-storage.d.ts +40 -0
- package/dist/application/ports/file-storage.d.ts.map +1 -0
- package/dist/application/ports/file-storage.js +15 -0
- package/dist/application/ports/file-storage.js.map +1 -0
- package/dist/application/ports/served-file-storage.d.ts +16 -0
- package/dist/application/ports/served-file-storage.d.ts.map +1 -0
- package/dist/application/ports/served-file-storage.js +12 -0
- package/dist/application/ports/served-file-storage.js.map +1 -0
- package/dist/application/ports/snapshot-store.d.ts +8 -0
- package/dist/application/ports/snapshot-store.d.ts.map +1 -0
- package/dist/application/ports/snapshot-store.js +7 -0
- package/dist/application/ports/snapshot-store.js.map +1 -0
- package/dist/application/ports/subject-key-store.d.ts +17 -0
- package/dist/application/ports/subject-key-store.d.ts.map +1 -0
- package/dist/application/ports/subject-key-store.js +13 -0
- package/dist/application/ports/subject-key-store.js.map +1 -0
- package/dist/declarations/decorators/projection-options.d.ts +5 -0
- package/dist/declarations/decorators/projection-options.d.ts.map +1 -0
- package/dist/declarations/decorators/projection-options.js +2 -0
- package/dist/declarations/decorators/projection-options.js.map +1 -0
- package/dist/declarations/decorators/projection.d.ts +4 -0
- package/dist/declarations/decorators/projection.d.ts.map +1 -1
- package/dist/declarations/decorators/projection.js +16 -8
- package/dist/declarations/decorators/projection.js.map +1 -1
- package/dist/declarations/model/projection-declaration.d.ts +3 -0
- package/dist/declarations/model/projection-declaration.d.ts.map +1 -1
- package/dist/declarations/model/projection-feed.d.ts +8 -0
- package/dist/declarations/model/projection-feed.d.ts.map +1 -0
- package/dist/declarations/model/projection-feed.js +2 -0
- package/dist/declarations/model/projection-feed.js.map +1 -0
- package/dist/declarations/projection/applying-projection.d.ts +14 -0
- package/dist/declarations/projection/applying-projection.d.ts.map +1 -0
- package/dist/declarations/projection/applying-projection.js +32 -0
- package/dist/declarations/projection/applying-projection.js.map +1 -0
- package/dist/declarations.d.ts +3 -0
- package/dist/declarations.d.ts.map +1 -1
- package/dist/declarations.js +1 -0
- package/dist/declarations.js.map +1 -1
- package/dist/domain/event-sourcing/aggregate-history.d.ts +10 -0
- package/dist/domain/event-sourcing/aggregate-history.d.ts.map +1 -0
- package/dist/domain/event-sourcing/aggregate-history.js +2 -0
- package/dist/domain/event-sourcing/aggregate-history.js.map +1 -0
- package/dist/domain/event-sourcing/aggregate-snapshot.d.ts +6 -0
- package/dist/domain/event-sourcing/aggregate-snapshot.d.ts.map +1 -0
- package/dist/domain/event-sourcing/aggregate-snapshot.js +2 -0
- package/dist/domain/event-sourcing/aggregate-snapshot.js.map +1 -0
- package/dist/domain/event-sourcing/appliers.d.ts +12 -0
- package/dist/domain/event-sourcing/appliers.d.ts.map +1 -0
- package/dist/domain/event-sourcing/appliers.js +2 -0
- package/dist/domain/event-sourcing/appliers.js.map +1 -0
- package/dist/domain/event-sourcing/event-sourced-aggregate.d.ts +28 -0
- package/dist/domain/event-sourcing/event-sourced-aggregate.d.ts.map +1 -0
- package/dist/domain/event-sourcing/event-sourced-aggregate.js +51 -0
- package/dist/domain/event-sourcing/event-sourced-aggregate.js.map +1 -0
- package/dist/domain/event-sourcing/unstored-events.d.ts +8 -0
- package/dist/domain/event-sourcing/unstored-events.d.ts.map +1 -0
- package/dist/domain/event-sourcing/unstored-events.js +7 -0
- package/dist/domain/event-sourcing/unstored-events.js.map +1 -0
- package/dist/index.d.ts +52 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -32
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/domain-events/after-commit.d.ts +10 -0
- package/dist/infrastructure/domain-events/after-commit.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/after-commit.js +19 -0
- package/dist/infrastructure/domain-events/after-commit.js.map +1 -0
- package/dist/infrastructure/domain-events/at-commit.d.ts +11 -0
- package/dist/infrastructure/domain-events/at-commit.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/at-commit.js +19 -0
- package/dist/infrastructure/domain-events/at-commit.js.map +1 -0
- package/dist/infrastructure/domain-events/commit-step.d.ts +10 -0
- package/dist/infrastructure/domain-events/commit-step.d.ts.map +1 -0
- package/dist/infrastructure/domain-events/commit-step.js +2 -0
- package/dist/infrastructure/domain-events/commit-step.js.map +1 -0
- package/dist/infrastructure/domain-events/unit-of-work-scope.d.ts +5 -0
- 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/within-unit-of-work.d.ts +3 -1
- package/dist/infrastructure/domain-events/within-unit-of-work.d.ts.map +1 -1
- package/dist/infrastructure/domain-events/within-unit-of-work.js +32 -5
- package/dist/infrastructure/domain-events/within-unit-of-work.js.map +1 -1
- package/dist/infrastructure/event-sourcing/catch-up-subscription.d.ts +33 -0
- package/dist/infrastructure/event-sourcing/catch-up-subscription.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/catch-up-subscription.js +39 -0
- package/dist/infrastructure/event-sourcing/catch-up-subscription.js.map +1 -0
- package/dist/infrastructure/event-sourcing/event-serializer.d.ts +35 -0
- package/dist/infrastructure/event-sourcing/event-serializer.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/event-serializer.js +104 -0
- package/dist/infrastructure/event-sourcing/event-serializer.js.map +1 -0
- package/dist/infrastructure/event-sourcing/event-sourced-repository.d.ts +32 -0
- package/dist/infrastructure/event-sourcing/event-sourced-repository.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/event-sourced-repository.js +68 -0
- package/dist/infrastructure/event-sourcing/event-sourced-repository.js.map +1 -0
- package/dist/infrastructure/event-sourcing/event-sourcing-stores.d.ts +12 -0
- package/dist/infrastructure/event-sourcing/event-sourcing-stores.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/event-sourcing-stores.js +2 -0
- package/dist/infrastructure/event-sourcing/event-sourcing-stores.js.map +1 -0
- package/dist/infrastructure/event-sourcing/event-store-projection-rebuild.d.ts +34 -0
- package/dist/infrastructure/event-sourcing/event-store-projection-rebuild.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/event-store-projection-rebuild.js +48 -0
- package/dist/infrastructure/event-sourcing/event-store-projection-rebuild.js.map +1 -0
- package/dist/infrastructure/event-sourcing/personal-data-cipher.d.ts +19 -0
- package/dist/infrastructure/event-sourcing/personal-data-cipher.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/personal-data-cipher.js +84 -0
- package/dist/infrastructure/event-sourcing/personal-data-cipher.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-options.d.ts +6 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-options.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-options.js +2 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-options.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-sql.d.ts +9 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-sql.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-sql.js +32 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables-sql.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables.d.ts +9 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables.js +9 -0
- package/dist/infrastructure/event-sourcing/postgres/event-store-tables.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/is-append-conflict.d.ts +3 -0
- package/dist/infrastructure/event-sourcing/postgres/is-append-conflict.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/is-append-conflict.js +22 -0
- package/dist/infrastructure/event-sourcing/postgres/is-append-conflict.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-checkpoint-store.d.ts +12 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-checkpoint-store.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-checkpoint-store.js +26 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-checkpoint-store.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-sourcing.d.ts +6 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-sourcing.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-sourcing.js +14 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-sourcing.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-store.d.ts +31 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-store.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-store.js +120 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-event-store.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-snapshot-store.d.ts +13 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-snapshot-store.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-snapshot-store.js +28 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-snapshot-store.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-subject-key-store.d.ts +21 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-subject-key-store.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-subject-key-store.js +48 -0
- package/dist/infrastructure/event-sourcing/postgres/postgres-subject-key-store.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/qualified-table.d.ts +4 -0
- package/dist/infrastructure/event-sourcing/postgres/qualified-table.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/qualified-table.js +10 -0
- package/dist/infrastructure/event-sourcing/postgres/qualified-table.js.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/stored-data-from.d.ts +4 -0
- package/dist/infrastructure/event-sourcing/postgres/stored-data-from.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/postgres/stored-data-from.js +23 -0
- package/dist/infrastructure/event-sourcing/postgres/stored-data-from.js.map +1 -0
- package/dist/infrastructure/event-sourcing/rewrite-objects.d.ts +8 -0
- package/dist/infrastructure/event-sourcing/rewrite-objects.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/rewrite-objects.js +16 -0
- package/dist/infrastructure/event-sourcing/rewrite-objects.js.map +1 -0
- package/dist/infrastructure/event-sourcing/snapshot-policy.d.ts +14 -0
- package/dist/infrastructure/event-sourcing/snapshot-policy.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/snapshot-policy.js +2 -0
- package/dist/infrastructure/event-sourcing/snapshot-policy.js.map +1 -0
- package/dist/infrastructure/event-sourcing/stored-origins.d.ts +5 -0
- package/dist/infrastructure/event-sourcing/stored-origins.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/stored-origins.js +3 -0
- package/dist/infrastructure/event-sourcing/stored-origins.js.map +1 -0
- package/dist/infrastructure/event-sourcing/stored-stamp-of.d.ts +10 -0
- package/dist/infrastructure/event-sourcing/stored-stamp-of.d.ts.map +1 -0
- package/dist/infrastructure/event-sourcing/stored-stamp-of.js +14 -0
- package/dist/infrastructure/event-sourcing/stored-stamp-of.js.map +1 -0
- package/dist/infrastructure/files/accept-every-file-scanner.d.ts +7 -0
- package/dist/infrastructure/files/accept-every-file-scanner.d.ts.map +1 -0
- package/dist/infrastructure/files/accept-every-file-scanner.js +7 -0
- package/dist/infrastructure/files/accept-every-file-scanner.js.map +1 -0
- package/dist/infrastructure/files/collect.d.ts +4 -0
- package/dist/infrastructure/files/collect.d.ts.map +1 -0
- package/dist/infrastructure/files/collect.js +11 -0
- package/dist/infrastructure/files/collect.js.map +1 -0
- package/dist/infrastructure/files/file-grant.d.ts +11 -0
- package/dist/infrastructure/files/file-grant.d.ts.map +1 -0
- package/dist/infrastructure/files/file-grant.js +2 -0
- package/dist/infrastructure/files/file-grant.js.map +1 -0
- package/dist/infrastructure/files/file-inspection.d.ts +22 -0
- package/dist/infrastructure/files/file-inspection.d.ts.map +1 -0
- package/dist/infrastructure/files/file-inspection.js +66 -0
- package/dist/infrastructure/files/file-inspection.js.map +1 -0
- package/dist/infrastructure/files/file-staging.d.ts +59 -0
- package/dist/infrastructure/files/file-staging.d.ts.map +1 -0
- package/dist/infrastructure/files/file-staging.js +142 -0
- package/dist/infrastructure/files/file-staging.js.map +1 -0
- package/dist/infrastructure/files/file-uploads-middleware.d.ts +11 -0
- package/dist/infrastructure/files/file-uploads-middleware.d.ts.map +1 -0
- package/dist/infrastructure/files/file-uploads-middleware.js +25 -0
- package/dist/infrastructure/files/file-uploads-middleware.js.map +1 -0
- package/dist/infrastructure/files/in-memory-file-storage.d.ts +25 -0
- package/dist/infrastructure/files/in-memory-file-storage.d.ts.map +1 -0
- package/dist/infrastructure/files/in-memory-file-storage.js +73 -0
- package/dist/infrastructure/files/in-memory-file-storage.js.map +1 -0
- package/dist/infrastructure/files/is-file-grant.d.ts +3 -0
- package/dist/infrastructure/files/is-file-grant.d.ts.map +1 -0
- package/dist/infrastructure/files/is-file-grant.js +16 -0
- package/dist/infrastructure/files/is-file-grant.js.map +1 -0
- package/dist/infrastructure/files/is-stored-metadata.d.ts +3 -0
- package/dist/infrastructure/files/is-stored-metadata.d.ts.map +1 -0
- package/dist/infrastructure/files/is-stored-metadata.js +8 -0
- package/dist/infrastructure/files/is-stored-metadata.js.map +1 -0
- package/dist/infrastructure/files/local-file-storage-options.d.ts +6 -0
- package/dist/infrastructure/files/local-file-storage-options.d.ts.map +1 -0
- package/dist/infrastructure/files/local-file-storage-options.js +2 -0
- package/dist/infrastructure/files/local-file-storage-options.js.map +1 -0
- package/dist/infrastructure/files/local-file-storage.d.ts +29 -0
- package/dist/infrastructure/files/local-file-storage.d.ts.map +1 -0
- package/dist/infrastructure/files/local-file-storage.js +103 -0
- package/dist/infrastructure/files/local-file-storage.js.map +1 -0
- package/dist/infrastructure/files/local-paths.d.ts +12 -0
- package/dist/infrastructure/files/local-paths.d.ts.map +1 -0
- package/dist/infrastructure/files/local-paths.js +33 -0
- package/dist/infrastructure/files/local-paths.js.map +1 -0
- package/dist/infrastructure/files/purge-staged-files.d.ts +16 -0
- package/dist/infrastructure/files/purge-staged-files.d.ts.map +1 -0
- package/dist/infrastructure/files/purge-staged-files.js +21 -0
- package/dist/infrastructure/files/purge-staged-files.js.map +1 -0
- package/dist/infrastructure/files/self-signed-file-storage.d.ts +23 -0
- package/dist/infrastructure/files/self-signed-file-storage.d.ts.map +1 -0
- package/dist/infrastructure/files/self-signed-file-storage.js +57 -0
- package/dist/infrastructure/files/self-signed-file-storage.js.map +1 -0
- package/dist/infrastructure/files/signed-file-tokens.d.ts +20 -0
- package/dist/infrastructure/files/signed-file-tokens.d.ts.map +1 -0
- package/dist/infrastructure/files/signed-file-tokens.js +45 -0
- package/dist/infrastructure/files/signed-file-tokens.js.map +1 -0
- package/dist/infrastructure/files/signed-link-options.d.ts +10 -0
- package/dist/infrastructure/files/signed-link-options.d.ts.map +1 -0
- package/dist/infrastructure/files/signed-link-options.js +2 -0
- package/dist/infrastructure/files/signed-link-options.js.map +1 -0
- package/dist/infrastructure/files/stored-metadata.d.ts +6 -0
- package/dist/infrastructure/files/stored-metadata.d.ts.map +1 -0
- package/dist/infrastructure/files/stored-metadata.js +2 -0
- package/dist/infrastructure/files/stored-metadata.js.map +1 -0
- package/dist/infrastructure/files/tenant-file-keys.d.ts +20 -0
- package/dist/infrastructure/files/tenant-file-keys.d.ts.map +1 -0
- package/dist/infrastructure/files/tenant-file-keys.js +27 -0
- package/dist/infrastructure/files/tenant-file-keys.js.map +1 -0
- package/dist/infrastructure/files/upload-desk.d.ts +8 -0
- package/dist/infrastructure/files/upload-desk.d.ts.map +1 -0
- package/dist/infrastructure/files/upload-desk.js +2 -0
- package/dist/infrastructure/files/upload-desk.js.map +1 -0
- package/dist/infrastructure/files/without-trailing-slashes.d.ts +3 -0
- package/dist/infrastructure/files/without-trailing-slashes.d.ts.map +1 -0
- package/dist/infrastructure/files/without-trailing-slashes.js +9 -0
- package/dist/infrastructure/files/without-trailing-slashes.js.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.d.ts +8 -0
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.js +15 -0
- package/dist/infrastructure/in-memory/in-memory-checkpoint-store.js.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-event-store.d.ts +14 -0
- package/dist/infrastructure/in-memory/in-memory-event-store.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-event-store.js +37 -0
- package/dist/infrastructure/in-memory/in-memory-event-store.js.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.d.ts +9 -0
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.js +15 -0
- package/dist/infrastructure/in-memory/in-memory-snapshot-store.js.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-subject-key-store.d.ts +10 -0
- package/dist/infrastructure/in-memory/in-memory-subject-key-store.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-subject-key-store.js +21 -0
- package/dist/infrastructure/in-memory/in-memory-subject-key-store.js.map +1 -0
- package/dist/infrastructure/read-model/shadow-read-model-store.d.ts +20 -0
- package/dist/infrastructure/read-model/shadow-read-model-store.d.ts.map +1 -0
- package/dist/infrastructure/read-model/shadow-read-model-store.js +25 -0
- package/dist/infrastructure/read-model/shadow-read-model-store.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD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1,10 @@
|
|
|
1
1
|
export * from './domain/aggregate-root.js';
|
|
2
2
|
export * from './domain/domain-event.js';
|
|
3
3
|
export * from './domain/entity.js';
|
|
4
|
+
export * from './domain/event-sourcing/aggregate-history.js';
|
|
5
|
+
export * from './domain/event-sourcing/aggregate-snapshot.js';
|
|
6
|
+
export * from './domain/event-sourcing/appliers.js';
|
|
7
|
+
export * from './domain/event-sourcing/event-sourced-aggregate.js';
|
|
4
8
|
export * from './domain/errors/code-of.js';
|
|
5
9
|
export * from './domain/errors/concept-error.js';
|
|
6
10
|
export * from './domain/errors/concurrency-error.js';
|
|
@@ -67,6 +71,7 @@ export * from './application/error-reporting/error-report.js';
|
|
|
67
71
|
export * from './application/error-reporting/error-severity.js';
|
|
68
72
|
export * from './application/error-reporting/is-unexpected-error.js';
|
|
69
73
|
export * from './application/error-reporting/report-once.js';
|
|
74
|
+
export * from './application/event-sourcing/index.js';
|
|
70
75
|
export * from './application/events/after-commit-failure.js';
|
|
71
76
|
export * from './application/events/domain-event-callback.js';
|
|
72
77
|
export * from './application/events/domain-event-phase.js';
|
|
@@ -118,38 +123,8 @@ export * from './application/metrics/counter.js';
|
|
|
118
123
|
export * from './application/metrics/gauge.js';
|
|
119
124
|
export * from './application/metrics/histogram.js';
|
|
120
125
|
export * from './application/metrics/metric-labels.js';
|
|
121
|
-
export * from './application/criteria/
|
|
122
|
-
export * from './application/
|
|
123
|
-
export * from './application/criteria/field-of.js';
|
|
124
|
-
export * from './application/criteria/operator-of.js';
|
|
125
|
-
export * from './application/criteria/operand-of.js';
|
|
126
|
-
export * from './application/criteria/filter-node.js';
|
|
127
|
-
export * from './application/criteria/filters.js';
|
|
128
|
-
export * from './application/criteria/criteria.js';
|
|
129
|
-
export * from './application/criteria/field-type.js';
|
|
130
|
-
export * from './application/criteria/field-type-of.js';
|
|
131
|
-
export * from './application/criteria/field-rule.js';
|
|
132
|
-
export * from './application/criteria/field-declaration.js';
|
|
133
|
-
export * from './application/criteria/criteria-limits.js';
|
|
134
|
-
export * from './application/criteria/criteria-declaration.js';
|
|
135
|
-
export * from './application/criteria/criteria-definition.js';
|
|
136
|
-
export * from './application/criteria/criteria-definition-error.js';
|
|
137
|
-
export * from './application/criteria/define-criteria.js';
|
|
138
|
-
export * from './application/criteria/criteria-violation.js';
|
|
139
|
-
export * from './application/criteria/validate-criteria.js';
|
|
140
|
-
export * from './application/criteria/invalid-criteria-error.js';
|
|
141
|
-
export * from './application/criteria/read-scope.js';
|
|
142
|
-
export * from './application/criteria/read-scope-mapping.js';
|
|
143
|
-
export * from './application/criteria/unmapped-read-scope-error.js';
|
|
144
|
-
export * from './application/criteria/scoped-criteria.js';
|
|
145
|
-
export * from './application/criteria/scoped.js';
|
|
146
|
-
export * from './application/criteria/predicate.js';
|
|
147
|
-
export * from './application/criteria/criteria-plan.js';
|
|
148
|
-
export * from './application/criteria/plan-criteria.js';
|
|
149
|
-
export * from './application/criteria/page-of-plan.js';
|
|
150
|
-
export * from './application/criteria/select-rows.js';
|
|
151
|
-
export * from './application/criteria/evaluate-plan.js';
|
|
152
|
-
export * from './application/criteria/evaluate-criteria.js';
|
|
126
|
+
export * from './application/criteria/index.js';
|
|
127
|
+
export * from './application/files/index.js';
|
|
153
128
|
export * from './application/hydration/hydrate.js';
|
|
154
129
|
export * from './application/hydration/hydration.js';
|
|
155
130
|
export * from './application/hydration/hydrated-page.js';
|
|
@@ -178,19 +153,25 @@ export * from './application/pagination/page-request.js';
|
|
|
178
153
|
export * from './application/pagination/page.js';
|
|
179
154
|
export * from './application/pagination/sort-direction.js';
|
|
180
155
|
export * from './application/pagination/sort.js';
|
|
156
|
+
export * from './application/persistence/append-changes.js';
|
|
181
157
|
export * from './application/persistence/optimistic-update.js';
|
|
182
158
|
export * from './application/persistence/schema-name-of.js';
|
|
183
159
|
export * from './application/ports/actor-context.js';
|
|
184
160
|
export * from './application/ports/audit-reader.js';
|
|
185
161
|
export * from './application/ports/audit-trail.js';
|
|
186
162
|
export * from './application/ports/cache.js';
|
|
163
|
+
export * from './application/ports/checkpoint-store.js';
|
|
187
164
|
export * from './application/ports/clock.js';
|
|
188
165
|
export * from './application/ports/command-bus.js';
|
|
189
166
|
export * from './application/ports/domain-event-dispatcher.js';
|
|
190
167
|
export * from './application/ports/error-reporter.js';
|
|
191
168
|
export * from './application/ports/event-bus.js';
|
|
169
|
+
export * from './application/ports/event-store.js';
|
|
192
170
|
export * from './application/ports/event-subscribers.js';
|
|
193
171
|
export * from './application/ports/execution-scope.js';
|
|
172
|
+
export * from './application/ports/file-keys.js';
|
|
173
|
+
export * from './application/ports/file-scanner.js';
|
|
174
|
+
export * from './application/ports/file-storage.js';
|
|
194
175
|
export * from './application/ports/id-generator.js';
|
|
195
176
|
export * from './application/ports/integration-event-publisher.js';
|
|
196
177
|
export * from './application/ports/integration-event-subscriber.js';
|
|
@@ -205,6 +186,9 @@ export * from './application/ports/read-model-rows.js';
|
|
|
205
186
|
export * from './application/ports/read-model-store.js';
|
|
206
187
|
export * from './application/ports/read-model-table.js';
|
|
207
188
|
export * from './application/ports/repository.js';
|
|
189
|
+
export * from './application/ports/served-file-storage.js';
|
|
190
|
+
export * from './application/ports/snapshot-store.js';
|
|
191
|
+
export * from './application/ports/subject-key-store.js';
|
|
208
192
|
export * from './application/ports/unit-of-work.js';
|
|
209
193
|
export * from './application/ports/tenant-directory.js';
|
|
210
194
|
export * from './application/rate-limit/rate-limit-decision-of.js';
|
|
@@ -268,21 +252,54 @@ export * from './infrastructure/context/scoped-actor-context.js';
|
|
|
268
252
|
export * from './infrastructure/error-reporting/dead-letter-error.js';
|
|
269
253
|
export * from './infrastructure/error-reporting/dead-letter-reports.js';
|
|
270
254
|
export * from './infrastructure/error-reporting/report-process-failures.js';
|
|
255
|
+
export * from './infrastructure/domain-events/after-commit.js';
|
|
256
|
+
export * from './infrastructure/domain-events/at-commit.js';
|
|
257
|
+
export * from './infrastructure/domain-events/commit-step.js';
|
|
271
258
|
export * from './infrastructure/domain-events/announce-domain-events.js';
|
|
272
259
|
export * from './infrastructure/domain-events/dispatching-on-save.js';
|
|
273
260
|
export * from './infrastructure/domain-events/report-after-commit-failures.js';
|
|
274
261
|
export * from './infrastructure/domain-events/save-after-commit-error.js';
|
|
275
262
|
export * from './infrastructure/domain-events/unit-of-work-stage.js';
|
|
276
263
|
export * from './infrastructure/domain-events/within-unit-of-work.js';
|
|
264
|
+
export * from './infrastructure/event-sourcing/catch-up-subscription.js';
|
|
265
|
+
export * from './infrastructure/event-sourcing/event-serializer.js';
|
|
266
|
+
export * from './infrastructure/event-sourcing/event-sourcing-stores.js';
|
|
267
|
+
export * from './infrastructure/event-sourcing/event-sourced-repository.js';
|
|
268
|
+
export * from './infrastructure/event-sourcing/event-store-projection-rebuild.js';
|
|
269
|
+
export * from './infrastructure/event-sourcing/personal-data-cipher.js';
|
|
270
|
+
export * from './infrastructure/event-sourcing/postgres/event-store-tables-sql.js';
|
|
271
|
+
export * from './infrastructure/event-sourcing/postgres/event-store-tables-options.js';
|
|
272
|
+
export * from './infrastructure/event-sourcing/postgres/event-store-tables.js';
|
|
273
|
+
export * from './infrastructure/event-sourcing/postgres/postgres-checkpoint-store.js';
|
|
274
|
+
export * from './infrastructure/event-sourcing/postgres/postgres-event-sourcing.js';
|
|
275
|
+
export * from './infrastructure/event-sourcing/postgres/postgres-event-store.js';
|
|
276
|
+
export * from './infrastructure/event-sourcing/postgres/postgres-snapshot-store.js';
|
|
277
|
+
export * from './infrastructure/event-sourcing/postgres/postgres-subject-key-store.js';
|
|
278
|
+
export * from './infrastructure/event-sourcing/snapshot-policy.js';
|
|
279
|
+
export * from './infrastructure/event-sourcing/stored-stamp-of.js';
|
|
277
280
|
export * from './infrastructure/events/idempotent.js';
|
|
281
|
+
export * from './infrastructure/files/accept-every-file-scanner.js';
|
|
282
|
+
export * from './infrastructure/files/file-inspection.js';
|
|
283
|
+
export * from './infrastructure/files/file-staging.js';
|
|
284
|
+
export * from './infrastructure/files/file-uploads-middleware.js';
|
|
285
|
+
export * from './infrastructure/files/in-memory-file-storage.js';
|
|
286
|
+
export * from './infrastructure/files/local-file-storage.js';
|
|
287
|
+
export * from './infrastructure/files/local-file-storage-options.js';
|
|
288
|
+
export * from './infrastructure/files/purge-staged-files.js';
|
|
289
|
+
export * from './infrastructure/files/self-signed-file-storage.js';
|
|
290
|
+
export * from './infrastructure/files/signed-link-options.js';
|
|
291
|
+
export * from './infrastructure/files/tenant-file-keys.js';
|
|
292
|
+
export * from './infrastructure/files/upload-desk.js';
|
|
278
293
|
export * from './infrastructure/id/sequential-id-generator.js';
|
|
279
294
|
export * from './infrastructure/id/uuid-generator.js';
|
|
280
295
|
export * from './infrastructure/in-memory/error-reporting-middleware.js';
|
|
281
296
|
export * from './infrastructure/in-memory/in-memory-cache.js';
|
|
297
|
+
export * from './infrastructure/in-memory/in-memory-checkpoint-store.js';
|
|
282
298
|
export * from './infrastructure/in-memory/in-memory-command-bus.js';
|
|
283
299
|
export * from './infrastructure/in-memory/in-memory-domain-event-dispatcher.js';
|
|
284
300
|
export * from './infrastructure/in-memory/in-memory-error-reporter.js';
|
|
285
301
|
export * from './infrastructure/in-memory/in-memory-event-bus.js';
|
|
302
|
+
export * from './infrastructure/in-memory/in-memory-event-store.js';
|
|
286
303
|
export * from './infrastructure/in-memory/in-memory-lock.js';
|
|
287
304
|
export * from './infrastructure/in-memory/in-memory-logger.js';
|
|
288
305
|
export * from './infrastructure/in-memory/in-memory-metrics.js';
|
|
@@ -290,6 +307,8 @@ export * from './infrastructure/in-memory/in-memory-processed-event-store.js';
|
|
|
290
307
|
export * from './infrastructure/in-memory/in-memory-query-bus.js';
|
|
291
308
|
export * from './infrastructure/in-memory/in-memory-read-model-store.js';
|
|
292
309
|
export * from './infrastructure/in-memory/in-memory-read-model-table.js';
|
|
310
|
+
export * from './infrastructure/in-memory/in-memory-snapshot-store.js';
|
|
311
|
+
export * from './infrastructure/in-memory/in-memory-subject-key-store.js';
|
|
293
312
|
export * from './infrastructure/in-memory/in-memory-rate-limiter.js';
|
|
294
313
|
export * from './infrastructure/in-memory/in-memory-unit-of-work.js';
|
|
295
314
|
export * from './infrastructure/in-memory/metric-sample.js';
|
|
@@ -297,6 +316,7 @@ export * from './infrastructure/in-memory/unit-of-work-middleware.js';
|
|
|
297
316
|
export * from './infrastructure/in-memory/in-memory-tenant-directory.js';
|
|
298
317
|
export * from './infrastructure/read-model/postgres-read-model-rebuild.js';
|
|
299
318
|
export * from './infrastructure/read-model/projection-rebuild.js';
|
|
319
|
+
export * from './infrastructure/read-model/shadow-read-model-store.js';
|
|
300
320
|
export * from './infrastructure/read-model/sql-run.js';
|
|
301
321
|
export * from './infrastructure/read-model/table-read-model-store.js';
|
|
302
322
|
export * from './infrastructure/read-model/write-if-newer.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,C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E,cAAc,0DAA0D,CAAC;AACzE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,mDAAmD,CAAC;AAClE,cAAc,wDAAwD,CAAC;AACvE,cAAc,wCAAwC,CAAC;AACvD,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs `work` once the unit of work in progress has committed, after its `after-commit`
|
|
3
|
+
* handlers, and never when it rolled back; outside of any unit of work, at once. At most once:
|
|
4
|
+
* a crash between the commit and the work loses it, and a rejection after the commit is dropped
|
|
5
|
+
* (`work` reports its own). So only for work whose loss wastes and never loses what a committed
|
|
6
|
+
* row relies on, such as deleting a file no row references any more. An effect a row relies on
|
|
7
|
+
* goes through `atCommit`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function afterCommit(work: () => Promise<void>): Promise<void>;
|
|
10
|
+
//# sourceMappingURL=after-commit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"after-commit.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/after-commit.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAW1E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { unitOfWorkScope } from './unit-of-work-scope.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs `work` once the unit of work in progress has committed, after its `after-commit`
|
|
4
|
+
* handlers, and never when it rolled back; outside of any unit of work, at once. At most once:
|
|
5
|
+
* a crash between the commit and the work loses it, and a rejection after the commit is dropped
|
|
6
|
+
* (`work` reports its own). So only for work whose loss wastes and never loses what a committed
|
|
7
|
+
* row relies on, such as deleting a file no row references any more. An effect a row relies on
|
|
8
|
+
* goes through `atCommit`.
|
|
9
|
+
*/
|
|
10
|
+
export async function afterCommit(work) {
|
|
11
|
+
const scope = unitOfWorkScope.getStore();
|
|
12
|
+
const open = scope?.kind === 'unit-of-work' && (scope.stage === 'open' || scope.stage === 'before-commit');
|
|
13
|
+
if (open && scope.committed !== undefined) {
|
|
14
|
+
scope.committed.push(work);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
await work();
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=after-commit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"after-commit.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/after-commit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAyB;IACzD,MAAM,KAAK,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,KAAK,EAAE,IAAI,KAAK,cAAc,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,KAAK,KAAK,eAAe,CAAC,CAAC;IAE3G,IAAI,IAAI,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QAC1C,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3B,OAAO;IACT,CAAC;IAED,MAAM,IAAI,EAAE,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommitStep } from './commit-step.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs `step.apply` as the last step of the unit of work in progress: after its work and its
|
|
4
|
+
* `before-commit` handlers, inside the transaction, just before the commit. A step that rejects
|
|
5
|
+
* rolls the whole back, so nothing commits that the effect did not reach. When the transaction
|
|
6
|
+
* rolls back after it applied (a later step, the commit itself), its `undo` runs, newest step
|
|
7
|
+
* first. Outside of any unit of work, `apply` runs at once. For an effect a committed row relies
|
|
8
|
+
* on, such as moving a staged file to the key the row records.
|
|
9
|
+
*/
|
|
10
|
+
export declare function atCommit(step: CommitStep): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=at-commit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"at-commit.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/at-commit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAW9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { unitOfWorkScope } from './unit-of-work-scope.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs `step.apply` as the last step of the unit of work in progress: after its work and its
|
|
4
|
+
* `before-commit` handlers, inside the transaction, just before the commit. A step that rejects
|
|
5
|
+
* rolls the whole back, so nothing commits that the effect did not reach. When the transaction
|
|
6
|
+
* rolls back after it applied (a later step, the commit itself), its `undo` runs, newest step
|
|
7
|
+
* first. Outside of any unit of work, `apply` runs at once. For an effect a committed row relies
|
|
8
|
+
* on, such as moving a staged file to the key the row records.
|
|
9
|
+
*/
|
|
10
|
+
export async function atCommit(step) {
|
|
11
|
+
const scope = unitOfWorkScope.getStore();
|
|
12
|
+
const open = scope?.kind === 'unit-of-work' && (scope.stage === 'open' || scope.stage === 'before-commit');
|
|
13
|
+
if (open && scope.atCommit !== undefined) {
|
|
14
|
+
scope.atCommit.push(step);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
await step.apply();
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=at-commit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"at-commit.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/at-commit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAgB;IAC7C,MAAM,KAAK,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,KAAK,EAAE,IAAI,KAAK,cAAc,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,KAAK,KAAK,eAAe,CAAC,CAAC;IAE3G,IAAI,IAAI,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1B,OAAO;IACT,CAAC;IAED,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An effect outside the database that must land with a commit: `apply` runs inside the
|
|
3
|
+
* transaction, as its last step, and `undo` when the transaction rolls back all the same.
|
|
4
|
+
*/
|
|
5
|
+
export interface CommitStep {
|
|
6
|
+
readonly apply: () => Promise<void>;
|
|
7
|
+
/** Reverses `apply` as far as it can; it reports its own failure, which is dropped. */
|
|
8
|
+
readonly undo: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=commit-step.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-step.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/commit-step.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,uFAAuF;IACvF,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-step.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/commit-step.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
2
|
import type { DomainEventDispatcher } from '../../application/ports/domain-event-dispatcher.js';
|
|
3
3
|
import type { DomainEvent } from '../../domain/domain-event.js';
|
|
4
|
+
import type { CommitStep } from './commit-step.js';
|
|
4
5
|
/** One event waiting for the end of its scope: who dispatches it, and in which asynchronous context. */
|
|
5
6
|
export interface QueuedDomainEvent {
|
|
6
7
|
readonly event: DomainEvent;
|
|
@@ -18,6 +19,10 @@ export interface UnitOfWorkScope {
|
|
|
18
19
|
readonly queue: QueuedDomainEvent[];
|
|
19
20
|
/** Dispatched before the commit, in that order: what the `after-commit` phase is given. */
|
|
20
21
|
readonly dispatched: QueuedDomainEvent[];
|
|
22
|
+
/** What `afterCommit` was handed in a unit of work: run after the `after-commit` handlers, never on a rollback. */
|
|
23
|
+
readonly committed?: (() => Promise<void>)[];
|
|
24
|
+
/** What `atCommit` was handed in a unit of work: applied last, inside the transaction. */
|
|
25
|
+
readonly atCommit?: CommitStep[];
|
|
21
26
|
}
|
|
22
27
|
export declare const unitOfWorkScope: AsyncLocalStorage<UnitOfWorkScope>;
|
|
23
28
|
//# sourceMappingURL=unit-of-work-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-of-work-scope.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/unit-of-work-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"unit-of-work-scope.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/unit-of-work-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,wGAAwG;AACxG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IACvC,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,cAAc,GAAG,QAAQ,CAAC;IAC5D,qDAAqD;IACrD,QAAQ,CAAC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IACpC,2FAA2F;IAC3F,QAAQ,CAAC,UAAU,EAAE,iBAAiB,EAAE,CAAC;IACzC,mHAAmH;IACnH,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;IAC7C,0FAA0F;IAC1F,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CAClC;AAGD,eAAO,MAAM,eAAe,oCAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-of-work-scope.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/unit-of-work-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"unit-of-work-scope.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/unit-of-work-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AA6BrD,kGAAkG;AAClG,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAmB,CAAC"}
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* inside `transaction`: the handlers see every save, and what they save or append to the outbox
|
|
8
8
|
* commits with the rest. A handler that fails, like `work` that fails, rejects the whole: the
|
|
9
9
|
* transaction rolls back, the waiting events are dropped and never come back on the aggregates.
|
|
10
|
-
*
|
|
10
|
+
* The steps handed to `atCommit` are applied last, still inside `transaction`; when it rejects,
|
|
11
|
+
* those applied are undone. Once `transaction` has resolved, and only then, the `after-commit`
|
|
12
|
+
* handlers run, then the work handed to `afterCommit`.
|
|
11
13
|
*
|
|
12
14
|
* Called inside a unit of work already running on the same asynchronous call chain it joins it:
|
|
13
15
|
* `transaction(work)` and nothing else, so one dispatch, at the end of the outermost. Two
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"within-unit-of-work.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/within-unit-of-work.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"within-unit-of-work.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/within-unit-of-work.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACtB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAClD,OAAO,CAAC,CAAC,CAAC,CAsBZ"}
|
|
@@ -10,7 +10,9 @@ import { unitOfWorkScope } from './unit-of-work-scope.js';
|
|
|
10
10
|
* inside `transaction`: the handlers see every save, and what they save or append to the outbox
|
|
11
11
|
* commits with the rest. A handler that fails, like `work` that fails, rejects the whole: the
|
|
12
12
|
* transaction rolls back, the waiting events are dropped and never come back on the aggregates.
|
|
13
|
-
*
|
|
13
|
+
* The steps handed to `atCommit` are applied last, still inside `transaction`; when it rejects,
|
|
14
|
+
* those applied are undone. Once `transaction` has resolved, and only then, the `after-commit`
|
|
15
|
+
* handlers run, then the work handed to `afterCommit`.
|
|
14
16
|
*
|
|
15
17
|
* Called inside a unit of work already running on the same asynchronous call chain it joins it:
|
|
16
18
|
* `transaction(work)` and nothing else, so one dispatch, at the end of the outermost. Two
|
|
@@ -20,22 +22,47 @@ export async function withinUnitOfWork(work, transaction) {
|
|
|
20
22
|
if (isRunning(unitOfWorkScope.getStore())) {
|
|
21
23
|
return transaction(work);
|
|
22
24
|
}
|
|
23
|
-
const scope =
|
|
25
|
+
const scope = openScope();
|
|
26
|
+
const applied = [];
|
|
24
27
|
const result = await unitOfWorkScope
|
|
25
|
-
.run(scope, () => transaction(() => thenDispatched(work, scope)))
|
|
28
|
+
.run(scope, () => transaction(() => thenDispatched(work, scope, applied)))
|
|
29
|
+
.catch(async (error) => {
|
|
30
|
+
await undone(applied);
|
|
31
|
+
throw error;
|
|
32
|
+
})
|
|
26
33
|
.finally(() => {
|
|
27
34
|
scope.stage = 'closed';
|
|
28
35
|
scope.queue.length = 0;
|
|
29
36
|
});
|
|
30
|
-
await
|
|
37
|
+
await afterTheCommit(scope);
|
|
31
38
|
return result;
|
|
32
39
|
}
|
|
33
40
|
function isRunning(scope) {
|
|
34
41
|
return scope?.kind === 'unit-of-work' && (scope.stage === 'open' || scope.stage === 'before-commit');
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function openScope() {
|
|
44
|
+
return { kind: 'unit-of-work', stage: 'open', queue: [], dispatched: [], committed: [], atCommit: [] };
|
|
45
|
+
}
|
|
46
|
+
async function thenDispatched(work, scope, applied) {
|
|
37
47
|
const result = await work();
|
|
38
48
|
await dispatchBeforeCommit(scope);
|
|
49
|
+
for (const step of scope.atCommit ?? []) {
|
|
50
|
+
await step.apply();
|
|
51
|
+
applied.push(step);
|
|
52
|
+
}
|
|
39
53
|
return result;
|
|
40
54
|
}
|
|
55
|
+
/** Newest first; an undo that fails reported itself, and the others still run. */
|
|
56
|
+
async function undone(applied) {
|
|
57
|
+
for (const step of [...applied].reverse()) {
|
|
58
|
+
await step.undo().catch(() => undefined);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/** The `after-commit` handlers, then the work handed to `afterCommit`; a rejection is dropped, the work reported its own. */
|
|
62
|
+
async function afterTheCommit(scope) {
|
|
63
|
+
await dispatchAfterCommit(scope);
|
|
64
|
+
for (const work of scope.committed ?? []) {
|
|
65
|
+
await work().catch(() => undefined);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
41
68
|
//# sourceMappingURL=within-unit-of-work.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"within-unit-of-work.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/within-unit-of-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"within-unit-of-work.js","sourceRoot":"","sources":["../../../src/infrastructure/domain-events/within-unit-of-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAwB,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAA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,MAAM,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;IAE5B,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;QACxC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,kFAAkF;AAClF,KAAK,UAAU,MAAM,CAAC,OAA8B;IAClD,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;QAC1C,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,6HAA6H;AAC7H,KAAK,UAAU,cAAc,CAAC,KAAsB;IAClD,MAAM,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,SAAS,IAAI,EAAE,EAAE,CAAC;QACzC,MAAM,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StoredEvent } from '../../application/event-sourcing/stored-event.js';
|
|
2
|
+
import type { CheckpointStore } from '../../application/ports/checkpoint-store.js';
|
|
3
|
+
import type { EventStore } from '../../application/ports/event-store.js';
|
|
4
|
+
import type { UnitOfWork } from '../../application/ports/unit-of-work.js';
|
|
5
|
+
export interface CatchUpSubscriptionParts {
|
|
6
|
+
/** The subscriber, `<context>.<name>`: the name of the projection it feeds, and of its checkpoint. */
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly store: EventStore;
|
|
9
|
+
readonly checkpoints: CheckpointStore;
|
|
10
|
+
/** The unit of work of the database the subscriber writes to: the checkpoint commits with what was applied. */
|
|
11
|
+
readonly unitOfWork: UnitOfWork;
|
|
12
|
+
/** Applies one event of the store; passes over the events it does not apply. */
|
|
13
|
+
apply(event: StoredEvent): Promise<void>;
|
|
14
|
+
/** Events applied per unit of work. Default 100. */
|
|
15
|
+
readonly batchSize?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Feeds a subscriber from the event store, in the order of the store, from where its checkpoint
|
|
19
|
+
* stands. Each batch is applied and the checkpoint moved in one unit of work: a failure applies
|
|
20
|
+
* none of the batch, which is read again at the next poll. Two runs of the same subscriber
|
|
21
|
+
* never both move the checkpoint: the second one is refused (`ConcurrencyError`) and rolled
|
|
22
|
+
* back. A subscriber started on a store that already holds events catches up from position
|
|
23
|
+
* zero, which is also how a new projection is filled.
|
|
24
|
+
*/
|
|
25
|
+
export declare class CatchUpSubscription {
|
|
26
|
+
private readonly parts;
|
|
27
|
+
constructor(parts: CatchUpSubscriptionParts);
|
|
28
|
+
/** Applies the next batch, if any. Answers how many events were read. */
|
|
29
|
+
poll(): Promise<number>;
|
|
30
|
+
/** Polls until the subscriber has applied the whole store. Answers how many events were read. */
|
|
31
|
+
catchUp(): Promise<number>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=catch-up-subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catch-up-subscription.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/event-sourcing/catch-up-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAE1E,MAAM,WAAW,wBAAwB;IACvC,sGAAsG;IACtG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,+GAA+G;IAC/G,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,gFAAgF;IAChF,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,oDAAoD;IACpD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAlC,YAA6B,KAAK,EAAE,wBAAwB,EAAI;IAEhE,yEAAyE;IACzE,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAkBtB;IAED,iGAAiG;IAC3F,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAQ/B;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feeds a subscriber from the event store, in the order of the store, from where its checkpoint
|
|
3
|
+
* stands. Each batch is applied and the checkpoint moved in one unit of work: a failure applies
|
|
4
|
+
* none of the batch, which is read again at the next poll. Two runs of the same subscriber
|
|
5
|
+
* never both move the checkpoint: the second one is refused (`ConcurrencyError`) and rolled
|
|
6
|
+
* back. A subscriber started on a store that already holds events catches up from position
|
|
7
|
+
* zero, which is also how a new projection is filled.
|
|
8
|
+
*/
|
|
9
|
+
export class CatchUpSubscription {
|
|
10
|
+
parts;
|
|
11
|
+
constructor(parts) {
|
|
12
|
+
this.parts = parts;
|
|
13
|
+
}
|
|
14
|
+
/** Applies the next batch, if any. Answers how many events were read. */
|
|
15
|
+
poll() {
|
|
16
|
+
const { name, store, checkpoints, unitOfWork, batchSize = 100 } = this.parts;
|
|
17
|
+
return unitOfWork.run(async () => {
|
|
18
|
+
const from = await checkpoints.position(name);
|
|
19
|
+
const events = await store.readAll(from, batchSize);
|
|
20
|
+
const last = events.at(-1);
|
|
21
|
+
for (const event of events) {
|
|
22
|
+
await this.parts.apply(event);
|
|
23
|
+
}
|
|
24
|
+
if (last !== undefined) {
|
|
25
|
+
await checkpoints.advance(name, from, last.position);
|
|
26
|
+
}
|
|
27
|
+
return events.length;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/** Polls until the subscriber has applied the whole store. Answers how many events were read. */
|
|
31
|
+
async catchUp() {
|
|
32
|
+
let read = 0;
|
|
33
|
+
for (let batch = await this.poll(); batch > 0; batch = await this.poll()) {
|
|
34
|
+
read += batch;
|
|
35
|
+
}
|
|
36
|
+
return read;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=catch-up-subscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catch-up-subscription.js","sourceRoot":"","sources":["../../../src/infrastructure/event-sourcing/catch-up-subscription.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAmB;IACD,KAAK;IAAlC,YAA6B,KAA+B;qBAA/B,KAAK;IAA6B,CAAC;IAEhE,yEAAyE;IACzE,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE7E,OAAO,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;YAC/B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9C,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;YACpD,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YAE3B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC3B,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC;YAED,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,MAAM,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YACvD,CAAC;YAED,OAAO,MAAM,CAAC,MAAM,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,iGAAiG;IACjG,KAAK,CAAC,OAAO;QACX,IAAI,IAAI,GAAG,CAAC,CAAC;QAEb,KAAK,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;YACzE,IAAI,IAAI,KAAK,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { EventToAppend } from '../../application/event-sourcing/event-to-append.js';
|
|
2
|
+
import type { StoredData } from '../../application/event-sourcing/stored-data.js';
|
|
3
|
+
import type { StoredEventTypes } from '../../application/event-sourcing/stored-event-types.js';
|
|
4
|
+
import type { StoredEvent } from '../../application/event-sourcing/stored-event.js';
|
|
5
|
+
import type { IdGenerator } from '../../application/ports/id-generator.js';
|
|
6
|
+
import type { DomainEvent } from '../../domain/domain-event.js';
|
|
7
|
+
import { PersonalDataCipher } from './personal-data-cipher.js';
|
|
8
|
+
export interface EventSerializerOptions {
|
|
9
|
+
/** Seals and opens the personal values; without one, data holding a personal value is refused. */
|
|
10
|
+
readonly cipher?: PersonalDataCipher;
|
|
11
|
+
/** Gives each stored event its id. Default: a UUID. */
|
|
12
|
+
readonly ids?: IdGenerator;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Turns the domain events of one aggregate into stored events and back, as `defineStoredEvent`
|
|
16
|
+
* declared them: the current version of their shape on the way in, and on the way out the
|
|
17
|
+
* upcasters from the version they were stored with, then `decode`. Stored events are never
|
|
18
|
+
* rewritten. Personal values are sealed on the way in and opened on the way out.
|
|
19
|
+
*/
|
|
20
|
+
export declare class EventSerializer<E extends DomainEvent> {
|
|
21
|
+
private readonly options;
|
|
22
|
+
private readonly types;
|
|
23
|
+
private readonly ids;
|
|
24
|
+
constructor(types: StoredEventTypes<E>, options?: EventSerializerOptions);
|
|
25
|
+
/** Whether events of this name are declared here: what a subscription skips otherwise. */
|
|
26
|
+
declares(type: string): boolean;
|
|
27
|
+
serialize(event: DomainEvent): Promise<EventToAppend>;
|
|
28
|
+
deserialize(stored: StoredEvent): Promise<E>;
|
|
29
|
+
/** Seals the personal values of the data, for an event or a snapshot. */
|
|
30
|
+
seal(data: StoredData): Promise<StoredData>;
|
|
31
|
+
/** Opens the sealed values of the data; an erased one reads `ERASED_PERSONAL_DATA`. */
|
|
32
|
+
open(data: StoredData): Promise<StoredData>;
|
|
33
|
+
private typeOf;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=event-serializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-serializer.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/event-sourcing/event-serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAGlF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AAEpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,MAAM,WAAW,sBAAsB;IACrC,kGAAkG;IAClG,QAAQ,CAAC,MA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