@ddd-ts-kit/kernel 0.7.0 → 0.9.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 +111 -9
- package/dist/application/audit/tenant-scope-of.d.ts +4 -1
- package/dist/application/audit/tenant-scope-of.d.ts.map +1 -1
- package/dist/application/audit/tenant-scope-of.js +6 -2
- package/dist/application/audit/tenant-scope-of.js.map +1 -1
- package/dist/application/cache/tenant-cache-key.d.ts +5 -0
- package/dist/application/cache/tenant-cache-key.d.ts.map +1 -0
- package/dist/application/cache/tenant-cache-key.js +7 -0
- package/dist/application/cache/tenant-cache-key.js.map +1 -0
- package/dist/application/events/execution-context-of-event.d.ts +2 -1
- package/dist/application/events/execution-context-of-event.d.ts.map +1 -1
- package/dist/application/events/execution-context-of-event.js +3 -1
- package/dist/application/events/execution-context-of-event.js.map +1 -1
- package/dist/application/events/integration-event.d.ts +6 -0
- package/dist/application/events/integration-event.d.ts.map +1 -1
- package/dist/application/events/scoped-publisher.d.ts +4 -3
- package/dist/application/events/scoped-publisher.d.ts.map +1 -1
- package/dist/application/events/scoped-publisher.js +11 -5
- package/dist/application/events/scoped-publisher.js.map +1 -1
- package/dist/application/execution/execution-context.d.ts +7 -1
- package/dist/application/execution/execution-context.d.ts.map +1 -1
- package/dist/application/execution/execution-context.js +7 -2
- package/dist/application/execution/execution-context.js.map +1 -1
- package/dist/application/execution/log-fields-of.d.ts.map +1 -1
- package/dist/application/execution/log-fields-of.js +1 -0
- package/dist/application/execution/log-fields-of.js.map +1 -1
- 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/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/tenant-directory.d.ts +8 -0
- package/dist/application/ports/tenant-directory.d.ts.map +1 -0
- package/dist/application/ports/tenant-directory.js +10 -0
- package/dist/application/ports/tenant-directory.js.map +1 -0
- package/dist/application/scheduling/execution-context-of-job.d.ts +3 -1
- package/dist/application/scheduling/execution-context-of-job.d.ts.map +1 -1
- package/dist/application/scheduling/execution-context-of-job.js +1 -1
- package/dist/application/scheduling/execution-context-of-job.js.map +1 -1
- package/dist/application/scheduling/job-execution.d.ts +2 -0
- package/dist/application/scheduling/job-execution.d.ts.map +1 -1
- package/dist/application/scheduling/job-options.d.ts +6 -0
- package/dist/application/scheduling/job-options.d.ts.map +1 -1
- package/dist/application/scheduling/job-policy.d.ts.map +1 -1
- package/dist/application/scheduling/job-policy.js +4 -2
- package/dist/application/scheduling/job-policy.js.map +1 -1
- package/dist/application/session/has-scope.d.ts +5 -0
- package/dist/application/session/has-scope.d.ts.map +1 -0
- package/dist/application/session/has-scope.js +5 -0
- package/dist/application/session/has-scope.js.map +1 -0
- package/dist/application/session/session-scope.d.ts +4 -0
- package/dist/application/session/session-scope.d.ts.map +1 -0
- package/dist/application/session/session-scope.js +2 -0
- package/dist/application/session/session-scope.js.map +1 -0
- package/dist/application/session/session-scopes.d.ts +11 -0
- package/dist/application/session/session-scopes.d.ts.map +1 -0
- package/dist/application/session/session-scopes.js +2 -0
- package/dist/application/session/session-scopes.js.map +1 -0
- package/dist/application/session/session.d.ts +6 -0
- package/dist/application/session/session.d.ts.map +1 -1
- package/dist/application/tenancy/across-tenants.d.ts +12 -0
- package/dist/application/tenancy/across-tenants.d.ts.map +1 -0
- package/dist/application/tenancy/across-tenants.js +47 -0
- package/dist/application/tenancy/across-tenants.js.map +1 -0
- package/dist/application/tenancy/assert-tenant-id.d.ts +3 -0
- package/dist/application/tenancy/assert-tenant-id.d.ts.map +1 -0
- package/dist/application/tenancy/assert-tenant-id.js +10 -0
- package/dist/application/tenancy/assert-tenant-id.js.map +1 -0
- package/dist/application/tenancy/elevation-options.d.ts +12 -0
- package/dist/application/tenancy/elevation-options.d.ts.map +1 -0
- package/dist/application/tenancy/elevation-options.js +2 -0
- package/dist/application/tenancy/elevation-options.js.map +1 -0
- package/dist/application/tenancy/invalid-tenant-elevation-error.d.ts +5 -0
- package/dist/application/tenancy/invalid-tenant-elevation-error.d.ts.map +1 -0
- package/dist/application/tenancy/invalid-tenant-elevation-error.js +8 -0
- package/dist/application/tenancy/invalid-tenant-elevation-error.js.map +1 -0
- package/dist/application/tenancy/invalid-tenant-id-error.d.ts +6 -0
- package/dist/application/tenancy/invalid-tenant-id-error.d.ts.map +1 -0
- package/dist/application/tenancy/invalid-tenant-id-error.js +10 -0
- package/dist/application/tenancy/invalid-tenant-id-error.js.map +1 -0
- package/dist/application/tenancy/is-tenant-id.d.ts +3 -0
- package/dist/application/tenancy/is-tenant-id.d.ts.map +1 -0
- package/dist/application/tenancy/is-tenant-id.js +12 -0
- package/dist/application/tenancy/is-tenant-id.js.map +1 -0
- package/dist/application/tenancy/is-tenant-member.d.ts +4 -0
- package/dist/application/tenancy/is-tenant-member.d.ts.map +1 -0
- package/dist/application/tenancy/is-tenant-member.js +6 -0
- package/dist/application/tenancy/is-tenant-member.js.map +1 -0
- package/dist/application/tenancy/tenant-elevation.d.ts +11 -0
- package/dist/application/tenancy/tenant-elevation.d.ts.map +1 -0
- package/dist/application/tenancy/tenant-elevation.js +2 -0
- package/dist/application/tenancy/tenant-elevation.js.map +1 -0
- package/dist/application/tenancy/tenant-key.d.ts +9 -0
- package/dist/application/tenancy/tenant-key.d.ts.map +1 -0
- package/dist/application/tenancy/tenant-key.js +11 -0
- package/dist/application/tenancy/tenant-key.js.map +1 -0
- package/dist/application/tenancy/tenant-reach-of.d.ts +9 -0
- package/dist/application/tenancy/tenant-reach-of.d.ts.map +1 -0
- package/dist/application/tenancy/tenant-reach-of.js +18 -0
- package/dist/application/tenancy/tenant-reach-of.js.map +1 -0
- package/dist/application/tenancy/tenant-reach.d.ts +12 -0
- package/dist/application/tenancy/tenant-reach.d.ts.map +1 -0
- package/dist/application/tenancy/tenant-reach.js +2 -0
- package/dist/application/tenancy/tenant-reach.js.map +1 -0
- package/dist/application/tenancy/tenants-of.d.ts +8 -0
- package/dist/application/tenancy/tenants-of.d.ts.map +1 -0
- package/dist/application/tenancy/tenants-of.js +14 -0
- package/dist/application/tenancy/tenants-of.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -0
- 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/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-tenant-directory.d.ts +8 -0
- package/dist/infrastructure/in-memory/in-memory-tenant-directory.d.ts.map +1 -0
- package/dist/infrastructure/in-memory/in-memory-tenant-directory.js +12 -0
- package/dist/infrastructure/in-memory/in-memory-tenant-directory.js.map +1 -0
- package/dist/infrastructure/tenancy/tenant-isolation-policies.d.ts +13 -0
- package/dist/infrastructure/tenancy/tenant-isolation-policies.d.ts.map +1 -0
- package/dist/infrastructure/tenancy/tenant-isolation-policies.js +13 -0
- package/dist/infrastructure/tenancy/tenant-isolation-policies.js.map +1 -0
- package/dist/infrastructure/tenancy/tenant-policy-expressions.d.ts +11 -0
- package/dist/infrastructure/tenancy/tenant-policy-expressions.d.ts.map +1 -0
- package/dist/infrastructure/tenancy/tenant-policy-expressions.js +15 -0
- package/dist/infrastructure/tenancy/tenant-policy-expressions.js.map +1 -0
- package/dist/infrastructure/tenancy/tenant-setting-values.d.ts +13 -0
- package/dist/infrastructure/tenancy/tenant-setting-values.d.ts.map +1 -0
- package/dist/infrastructure/tenancy/tenant-setting-values.js +19 -0
- package/dist/infrastructure/tenancy/tenant-setting-values.js.map +1 -0
- package/dist/infrastructure/tenancy/tenant-settings.d.ts +13 -0
- package/dist/infrastructure/tenancy/tenant-settings.d.ts.map +1 -0
- package/dist/infrastructure/tenancy/tenant-settings.js +13 -0
- package/dist/infrastructure/tenancy/tenant-settings.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { InvalidTenantElevationError } from './invalid-tenant-elevation-error.js';
|
|
2
|
+
import { isTenantId } from './is-tenant-id.js';
|
|
3
|
+
/** The action of the audit entry an elevation writes. */
|
|
4
|
+
export const TENANT_ELEVATION_ACTION = 'tenancy:elevate';
|
|
5
|
+
/**
|
|
6
|
+
* Runs `work` with reads widened to the tenants of `elevation`, for platform staff. Never
|
|
7
|
+
* implicit: the platform calls it after the permission to elevate was decided, and the
|
|
8
|
+
* elevation is written to the audit trail before the work starts; a trail that fails refuses
|
|
9
|
+
* the elevation. Writes still name one tenant (`tenantScopeOf`).
|
|
10
|
+
*/
|
|
11
|
+
export async function acrossTenants(options, elevation, work) {
|
|
12
|
+
assertValid(elevation);
|
|
13
|
+
const context = options.scope.require();
|
|
14
|
+
await options.trail.record(elevationRecord(options, context, elevation));
|
|
15
|
+
return options.scope.run(Object.freeze({ ...context, elevation }), work);
|
|
16
|
+
}
|
|
17
|
+
function assertValid({ reason, tenants }) {
|
|
18
|
+
if (reason.trim() === '') {
|
|
19
|
+
throw new InvalidTenantElevationError('it names no reason');
|
|
20
|
+
}
|
|
21
|
+
if (tenants !== 'all' && tenants.length === 0) {
|
|
22
|
+
throw new InvalidTenantElevationError('it names no tenant');
|
|
23
|
+
}
|
|
24
|
+
if (tenants !== 'all' && !tenants.every(isTenantId)) {
|
|
25
|
+
throw new InvalidTenantElevationError('it names a tenant id outside the grammar of isTenantId');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function elevationRecord(options, context, elevation) {
|
|
29
|
+
const { tenantId, session } = context;
|
|
30
|
+
return {
|
|
31
|
+
id: options.ids.next(),
|
|
32
|
+
occurredAt: options.clock.now(),
|
|
33
|
+
category: 'authorization',
|
|
34
|
+
action: TENANT_ELEVATION_ACTION,
|
|
35
|
+
outcome: 'allowed',
|
|
36
|
+
reason: elevation.reason,
|
|
37
|
+
actor: { id: context.actor.id, type: context.actor.type },
|
|
38
|
+
resource: { type: 'tenants', id: elevation.tenants === 'all' ? '*' : elevation.tenants.join(',') },
|
|
39
|
+
correlationId: context.correlationId,
|
|
40
|
+
origin: context.origin,
|
|
41
|
+
...(tenantId === undefined ? {} : { tenantId }),
|
|
42
|
+
...(session === undefined ? {} : { sessionId: session.id }),
|
|
43
|
+
...(session?.impersonatedBy === undefined ? {} : { impersonatedBy: session.impersonatedBy }),
|
|
44
|
+
...(context.causationId === undefined ? {} : { causationId: context.causationId }),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=across-tenants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"across-tenants.js","sourceRoot":"","sources":["../../../src/application/tenancy/across-tenants.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,yDAAyD;AACzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAAyB,EACzB,SAA0B,EAC1B,IAAsB;IAEtB,WAAW,CAAC,SAAS,CAAC,CAAC;IAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAExC,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EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAClG,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;QAC/C,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC;QAC3D,GAAG,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC;QAC5F,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;KACnF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-tenant-id.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/assert-tenant-id.ts"],"names":[],"mappings":"AAGA,oHAAoH;AACpH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMvD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InvalidTenantIdError } from './invalid-tenant-id-error.js';
|
|
2
|
+
import { isTenantId } from './is-tenant-id.js';
|
|
3
|
+
/** The tenant id as it came in, refused (`InvalidTenantIdError`) when it is outside the grammar of `isTenantId`. */
|
|
4
|
+
export function assertTenantId(tenantId) {
|
|
5
|
+
if (!isTenantId(tenantId)) {
|
|
6
|
+
throw new InvalidTenantIdError(tenantId);
|
|
7
|
+
}
|
|
8
|
+
return tenantId;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=assert-tenant-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-tenant-id.js","sourceRoot":"","sources":["../../../src/application/tenancy/assert-tenant-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,oHAAoH;AACpH,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC7C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AuditTrail } from '../ports/audit-trail.js';
|
|
2
|
+
import type { Clock } from '../ports/clock.js';
|
|
3
|
+
import type { ExecutionScope } from '../ports/execution-scope.js';
|
|
4
|
+
import type { IdGenerator } from '../ports/id-generator.js';
|
|
5
|
+
/** What `acrossTenants` needs: the scope it widens, and the trail it records the elevation in. */
|
|
6
|
+
export interface ElevationOptions {
|
|
7
|
+
readonly scope: ExecutionScope;
|
|
8
|
+
readonly trail: AuditTrail;
|
|
9
|
+
readonly clock: Clock;
|
|
10
|
+
readonly ids: IdGenerator;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=elevation-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation-options.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/elevation-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,kGAAkG;AAClG,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation-options.js","sourceRoot":"","sources":["../../../src/application/tenancy/elevation-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-tenant-elevation-error.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/invalid-tenant-elevation-error.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,qBAAa,2BAA4B,SAAQ,KAAK;IACpD,YAAY,MAAM,EAAE,MAAM,EAGzB;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** An elevation that names no reason or no tenant: refused before anything is recorded or run. */
|
|
2
|
+
export class InvalidTenantElevationError extends Error {
|
|
3
|
+
constructor(detail) {
|
|
4
|
+
super(`Invalid tenant elevation: ${detail}`);
|
|
5
|
+
this.name = 'InvalidTenantElevationError';
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=invalid-tenant-elevation-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-tenant-elevation-error.js","sourceRoot":"","sources":["../../../src/application/tenancy/invalid-tenant-elevation-error.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IACpD,YAAY,MAAc;QACxB,KAAK,CAAC,6BAA6B,MAAM,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** A tenant id outside the grammar of `isTenantId`: refused where it comes in, never altered. */
|
|
2
|
+
export declare class InvalidTenantIdError extends Error {
|
|
3
|
+
readonly tenantId: string;
|
|
4
|
+
constructor(tenantId: string);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=invalid-tenant-id-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-tenant-id-error.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/invalid-tenant-id-error.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,qBAAa,oBAAqB,SAAQ,KAAK;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAArC,YAAqB,QAAQ,EAAE,MAAM,EAGpC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** A tenant id outside the grammar of `isTenantId`: refused where it comes in, never altered. */
|
|
2
|
+
export class InvalidTenantIdError extends Error {
|
|
3
|
+
tenantId;
|
|
4
|
+
constructor(tenantId) {
|
|
5
|
+
super(`Invalid tenant id ${JSON.stringify(tenantId.slice(0, 80))}: only letters, digits, "_" and "-", at most 63`);
|
|
6
|
+
this.tenantId = tenantId;
|
|
7
|
+
this.name = 'InvalidTenantIdError';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=invalid-tenant-id-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-tenant-id-error.js","sourceRoot":"","sources":["../../../src/application/tenancy/invalid-tenant-id-error.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IACxB,QAAQ;IAA7B,YAAqB,QAAgB;QACnC,KAAK,CAAC,qBAAqB,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,iDAAiD,CAAC,CAAC;wBADhG,QAAQ;QAE3B,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-tenant-id.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/is-tenant-id.ts"],"names":[],"mappings":"AAQA,sDAAsD;AACtD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE1D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one grammar of a tenant id, wherever a tenant comes in: letters, digits, `_` and `-`, at
|
|
3
|
+
* most 63 characters (what a slug or a UUID is made of). Nothing in it can be read as a list,
|
|
4
|
+
* a wildcard, a key separator or a part of an SQL identifier, so no tenant id can ever widen
|
|
5
|
+
* what another tenant reaches.
|
|
6
|
+
*/
|
|
7
|
+
const TENANT_ID = /^[A-Za-z0-9_-]{1,63}$/;
|
|
8
|
+
/** Whether a value is a tenant id of that grammar. */
|
|
9
|
+
export function isTenantId(value) {
|
|
10
|
+
return typeof value === 'string' && TENANT_ID.test(value);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=is-tenant-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-tenant-id.js","sourceRoot":"","sources":["../../../src/application/tenancy/is-tenant-id.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAE1C,sDAAsD;AACtD,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Actor } from '../actor/actor.js';
|
|
2
|
+
/** Whether the actor belongs to the tenant, as its credential says: `tenantId` or the `tenants` attribute. */
|
|
3
|
+
export declare function isTenantMember(actor: Actor, tenantId: string): boolean;
|
|
4
|
+
//# sourceMappingURL=is-tenant-member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-tenant-member.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/is-tenant-member.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEtE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { tenantsOf } from './tenants-of.js';
|
|
2
|
+
/** Whether the actor belongs to the tenant, as its credential says: `tenantId` or the `tenants` attribute. */
|
|
3
|
+
export function isTenantMember(actor, tenantId) {
|
|
4
|
+
return tenantsOf(actor).includes(tenantId);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=is-tenant-member.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-tenant-member.js","sourceRoot":"","sources":["../../../src/application/tenancy/is-tenant-member.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,8GAA8G;AAC9G,MAAM,UAAU,cAAc,CAAC,KAAY,EAAE,QAAgB;IAC3D,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform staff reaching tenants that are not theirs: said, never implied. Opened by
|
|
3
|
+
* `acrossTenants`, which records it in the audit trail before any work runs.
|
|
4
|
+
*/
|
|
5
|
+
export interface TenantElevation {
|
|
6
|
+
/** A stable code naming why (`SUPPORT_TICKET`, `BILLING_RECONCILIATION`), never a sentence: it is audited. */
|
|
7
|
+
readonly reason: string;
|
|
8
|
+
/** The tenants the work may read: `all`, or the list. */
|
|
9
|
+
readonly tenants: 'all' | readonly string[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=tenant-elevation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-elevation.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-elevation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,8GAA8G;IAC9G,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-elevation.js","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-elevation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExecutionScope } from '../ports/execution-scope.js';
|
|
2
|
+
/**
|
|
3
|
+
* A key of a shared store (a rate limit, a lock, a counter) confined to the tenant of the work
|
|
4
|
+
* in progress: `tenant:<id>:<segments>`, each segment percent-encoded so that no segment holds a
|
|
5
|
+
* `:` (`['a:b']` and `['a', 'b']` are two keys). Two tenants never share an entry, and work that
|
|
6
|
+
* names no tenant is refused instead of reaching a global entry by omission.
|
|
7
|
+
*/
|
|
8
|
+
export declare function tenantKey(scope: ExecutionScope, ...segments: readonly string[]): string;
|
|
9
|
+
//# sourceMappingURL=tenant-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-key.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEvF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { tenantScopeOf } from '../audit/tenant-scope-of.js';
|
|
2
|
+
/**
|
|
3
|
+
* A key of a shared store (a rate limit, a lock, a counter) confined to the tenant of the work
|
|
4
|
+
* in progress: `tenant:<id>:<segments>`, each segment percent-encoded so that no segment holds a
|
|
5
|
+
* `:` (`['a:b']` and `['a', 'b']` are two keys). Two tenants never share an entry, and work that
|
|
6
|
+
* names no tenant is refused instead of reaching a global entry by omission.
|
|
7
|
+
*/
|
|
8
|
+
export function tenantKey(scope, ...segments) {
|
|
9
|
+
return ['tenant', tenantScopeOf(scope).tenantId, ...segments.map(encodeURIComponent)].join(':');
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=tenant-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-key.js","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-key.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,KAAqB,EAAE,GAAG,QAA2B;IAC7E,OAAO,CAAC,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExecutionScope } from '../ports/execution-scope.js';
|
|
2
|
+
import type { TenantReach } from './tenant-reach.js';
|
|
3
|
+
/**
|
|
4
|
+
* For an adapter scoping a read: the tenants it may see. An elevation opened by `acrossTenants`
|
|
5
|
+
* widens it; otherwise it is the tenant of the work, and work that names none is refused, so
|
|
6
|
+
* that no read runs unscoped by omission. Writes keep `tenantScopeOf`: one tenant, always.
|
|
7
|
+
*/
|
|
8
|
+
export declare function tenantReachOf(scope: ExecutionScope): TenantReach;
|
|
9
|
+
//# sourceMappingURL=tenant-reach-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-reach-of.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-reach-of.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,GAAG,WAAW,CAYhE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NoCurrentTenantError } from '../audit/no-current-tenant-error.js';
|
|
2
|
+
import { assertTenantId } from './assert-tenant-id.js';
|
|
3
|
+
/**
|
|
4
|
+
* For an adapter scoping a read: the tenants it may see. An elevation opened by `acrossTenants`
|
|
5
|
+
* widens it; otherwise it is the tenant of the work, and work that names none is refused, so
|
|
6
|
+
* that no read runs unscoped by omission. Writes keep `tenantScopeOf`: one tenant, always.
|
|
7
|
+
*/
|
|
8
|
+
export function tenantReachOf(scope) {
|
|
9
|
+
const { tenantId, elevation } = scope.require();
|
|
10
|
+
if (elevation !== undefined) {
|
|
11
|
+
return { kind: 'elevated', tenants: elevation.tenants === 'all' ? 'all' : elevation.tenants.map(assertTenantId) };
|
|
12
|
+
}
|
|
13
|
+
if (tenantId === undefined) {
|
|
14
|
+
throw new NoCurrentTenantError();
|
|
15
|
+
}
|
|
16
|
+
return { kind: 'tenant', tenantId: assertTenantId(tenantId) };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=tenant-reach-of.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-reach-of.js","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-reach-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,KAAqB;IACjD,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;IAEhD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;IACpH,CAAC;IAED,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a read may see: the one tenant of the work in progress, or, under an elevation, the
|
|
3
|
+
* tenants it names (`all` for every one).
|
|
4
|
+
*/
|
|
5
|
+
export type TenantReach = {
|
|
6
|
+
readonly kind: 'tenant';
|
|
7
|
+
readonly tenantId: string;
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: 'elevated';
|
|
10
|
+
readonly tenants: 'all' | readonly string[];
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=tenant-reach.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-reach.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-reach.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-reach.js","sourceRoot":"","sources":["../../../src/application/tenancy/tenant-reach.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Actor } from '../actor/actor.js';
|
|
2
|
+
/**
|
|
3
|
+
* The tenants an actor belongs to: its `tenantId`, and the `tenants` attribute for an actor
|
|
4
|
+
* that belongs to several (a consultant of two clinics). The authenticator fills both from
|
|
5
|
+
* the credential; nothing else may.
|
|
6
|
+
*/
|
|
7
|
+
export declare function tenantsOf(actor: Actor): readonly string[];
|
|
8
|
+
//# sourceMappingURL=tenants-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenants-of.d.ts","sourceRoot":"","sources":["../../../src/application/tenancy/tenants-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE,CAKzD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tenants an actor belongs to: its `tenantId`, and the `tenants` attribute for an actor
|
|
3
|
+
* that belongs to several (a consultant of two clinics). The authenticator fills both from
|
|
4
|
+
* the credential; nothing else may.
|
|
5
|
+
*/
|
|
6
|
+
export function tenantsOf(actor) {
|
|
7
|
+
const listed = actor.attributes['tenants'];
|
|
8
|
+
const others = isTextList(listed) ? listed : [];
|
|
9
|
+
return [...new Set([...(actor.tenantId === undefined ? [] : [actor.tenantId]), ...others])];
|
|
10
|
+
}
|
|
11
|
+
function isTextList(value) {
|
|
12
|
+
return Array.isArray(value) && value.every((item) => typeof item === 'string');
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=tenants-of.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenants-of.js","sourceRoot":"","sources":["../../../src/application/tenancy/tenants-of.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,KAAY;IACpC,MAAM,MAAM,GAAY,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAC9F,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC;AACjF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from './application/audit/tenant-scope-of.js';
|
|
|
57
57
|
export * from './application/audit/tenant-scoped.js';
|
|
58
58
|
export * from './application/audit/update-stamp.js';
|
|
59
59
|
export * from './application/cache/cache-key.js';
|
|
60
|
+
export * from './application/cache/tenant-cache-key.js';
|
|
60
61
|
export * from './application/dependency-kind.js';
|
|
61
62
|
export * from './application/error-reporting/error-origin.js';
|
|
62
63
|
export * from './application/error-reporting/error-report-extension-values.js';
|
|
@@ -149,6 +150,7 @@ export * from './application/criteria/page-of-plan.js';
|
|
|
149
150
|
export * from './application/criteria/select-rows.js';
|
|
150
151
|
export * from './application/criteria/evaluate-plan.js';
|
|
151
152
|
export * from './application/criteria/evaluate-criteria.js';
|
|
153
|
+
export * from './application/files/index.js';
|
|
152
154
|
export * from './application/hydration/hydrate.js';
|
|
153
155
|
export * from './application/hydration/hydration.js';
|
|
154
156
|
export * from './application/hydration/hydrated-page.js';
|
|
@@ -190,6 +192,9 @@ export * from './application/ports/error-reporter.js';
|
|
|
190
192
|
export * from './application/ports/event-bus.js';
|
|
191
193
|
export * from './application/ports/event-subscribers.js';
|
|
192
194
|
export * from './application/ports/execution-scope.js';
|
|
195
|
+
export * from './application/ports/file-keys.js';
|
|
196
|
+
export * from './application/ports/file-scanner.js';
|
|
197
|
+
export * from './application/ports/file-storage.js';
|
|
193
198
|
export * from './application/ports/id-generator.js';
|
|
194
199
|
export * from './application/ports/integration-event-publisher.js';
|
|
195
200
|
export * from './application/ports/integration-event-subscriber.js';
|
|
@@ -204,7 +209,9 @@ export * from './application/ports/read-model-rows.js';
|
|
|
204
209
|
export * from './application/ports/read-model-store.js';
|
|
205
210
|
export * from './application/ports/read-model-table.js';
|
|
206
211
|
export * from './application/ports/repository.js';
|
|
212
|
+
export * from './application/ports/served-file-storage.js';
|
|
207
213
|
export * from './application/ports/unit-of-work.js';
|
|
214
|
+
export * from './application/ports/tenant-directory.js';
|
|
208
215
|
export * from './application/rate-limit/rate-limit-decision-of.js';
|
|
209
216
|
export * from './application/rate-limit/rate-limit-decision.js';
|
|
210
217
|
export * from './application/rate-limit/rate-limit.js';
|
|
@@ -239,7 +246,22 @@ export * from './application/session/session-client.js';
|
|
|
239
246
|
export * from './application/session/session-extension-values.js';
|
|
240
247
|
export * from './application/session/session-extensions.js';
|
|
241
248
|
export * from './application/session/session.js';
|
|
249
|
+
export * from './application/session/session-scope.js';
|
|
250
|
+
export * from './application/session/session-scopes.js';
|
|
251
|
+
export * from './application/session/has-scope.js';
|
|
242
252
|
export * from './application/session/system-session.js';
|
|
253
|
+
export * from './application/tenancy/across-tenants.js';
|
|
254
|
+
export * from './application/tenancy/assert-tenant-id.js';
|
|
255
|
+
export * from './application/tenancy/elevation-options.js';
|
|
256
|
+
export * from './application/tenancy/invalid-tenant-elevation-error.js';
|
|
257
|
+
export * from './application/tenancy/invalid-tenant-id-error.js';
|
|
258
|
+
export * from './application/tenancy/is-tenant-id.js';
|
|
259
|
+
export * from './application/tenancy/is-tenant-member.js';
|
|
260
|
+
export * from './application/tenancy/tenant-elevation.js';
|
|
261
|
+
export * from './application/tenancy/tenant-key.js';
|
|
262
|
+
export * from './application/tenancy/tenant-reach-of.js';
|
|
263
|
+
export * from './application/tenancy/tenant-reach.js';
|
|
264
|
+
export * from './application/tenancy/tenants-of.js';
|
|
243
265
|
export * from './application/use-case.js';
|
|
244
266
|
export * from './infrastructure/clock/fixed-clock.js';
|
|
245
267
|
export * from './infrastructure/clock/system-clock.js';
|
|
@@ -251,6 +273,9 @@ export * from './infrastructure/context/scoped-actor-context.js';
|
|
|
251
273
|
export * from './infrastructure/error-reporting/dead-letter-error.js';
|
|
252
274
|
export * from './infrastructure/error-reporting/dead-letter-reports.js';
|
|
253
275
|
export * from './infrastructure/error-reporting/report-process-failures.js';
|
|
276
|
+
export * from './infrastructure/domain-events/after-commit.js';
|
|
277
|
+
export * from './infrastructure/domain-events/at-commit.js';
|
|
278
|
+
export * from './infrastructure/domain-events/commit-step.js';
|
|
254
279
|
export * from './infrastructure/domain-events/announce-domain-events.js';
|
|
255
280
|
export * from './infrastructure/domain-events/dispatching-on-save.js';
|
|
256
281
|
export * from './infrastructure/domain-events/report-after-commit-failures.js';
|
|
@@ -258,6 +283,18 @@ export * from './infrastructure/domain-events/save-after-commit-error.js';
|
|
|
258
283
|
export * from './infrastructure/domain-events/unit-of-work-stage.js';
|
|
259
284
|
export * from './infrastructure/domain-events/within-unit-of-work.js';
|
|
260
285
|
export * from './infrastructure/events/idempotent.js';
|
|
286
|
+
export * from './infrastructure/files/accept-every-file-scanner.js';
|
|
287
|
+
export * from './infrastructure/files/file-inspection.js';
|
|
288
|
+
export * from './infrastructure/files/file-staging.js';
|
|
289
|
+
export * from './infrastructure/files/file-uploads-middleware.js';
|
|
290
|
+
export * from './infrastructure/files/in-memory-file-storage.js';
|
|
291
|
+
export * from './infrastructure/files/local-file-storage.js';
|
|
292
|
+
export * from './infrastructure/files/local-file-storage-options.js';
|
|
293
|
+
export * from './infrastructure/files/purge-staged-files.js';
|
|
294
|
+
export * from './infrastructure/files/self-signed-file-storage.js';
|
|
295
|
+
export * from './infrastructure/files/signed-link-options.js';
|
|
296
|
+
export * from './infrastructure/files/tenant-file-keys.js';
|
|
297
|
+
export * from './infrastructure/files/upload-desk.js';
|
|
261
298
|
export * from './infrastructure/id/sequential-id-generator.js';
|
|
262
299
|
export * from './infrastructure/id/uuid-generator.js';
|
|
263
300
|
export * from './infrastructure/in-memory/error-reporting-middleware.js';
|
|
@@ -277,6 +314,7 @@ export * from './infrastructure/in-memory/in-memory-rate-limiter.js';
|
|
|
277
314
|
export * from './infrastructure/in-memory/in-memory-unit-of-work.js';
|
|
278
315
|
export * from './infrastructure/in-memory/metric-sample.js';
|
|
279
316
|
export * from './infrastructure/in-memory/unit-of-work-middleware.js';
|
|
317
|
+
export * from './infrastructure/in-memory/in-memory-tenant-directory.js';
|
|
280
318
|
export * from './infrastructure/read-model/postgres-read-model-rebuild.js';
|
|
281
319
|
export * from './infrastructure/read-model/projection-rebuild.js';
|
|
282
320
|
export * from './infrastructure/read-model/sql-run.js';
|
|
@@ -285,4 +323,8 @@ export * from './infrastructure/read-model/write-if-newer.js';
|
|
|
285
323
|
export * from './infrastructure/noop/noop-error-reporter.js';
|
|
286
324
|
export * from './infrastructure/noop/noop-logger.js';
|
|
287
325
|
export * from './infrastructure/noop/noop-metrics.js';
|
|
326
|
+
export * from './infrastructure/tenancy/tenant-settings.js';
|
|
327
|
+
export * from './infrastructure/tenancy/tenant-setting-values.js';
|
|
328
|
+
export * from './infrastructure/tenancy/tenant-isolation-policies.js';
|
|
329
|
+
export * from './infrastructure/tenancy/tenant-policy-expressions.js';
|
|
288
330
|
//# sourceMappingURL=index.d.ts.map
|
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,cAA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AAc,0DAA0D,CAAC;AACzE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,iEAAiE,CAAC;AAChF,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC;AACzE,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,mDAAmD,CAAC;AAClE,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"}
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,7 @@ export * from './application/audit/tenant-scope-of.js';
|
|
|
57
57
|
export * from './application/audit/tenant-scoped.js';
|
|
58
58
|
export * from './application/audit/update-stamp.js';
|
|
59
59
|
export * from './application/cache/cache-key.js';
|
|
60
|
+
export * from './application/cache/tenant-cache-key.js';
|
|
60
61
|
export * from './application/dependency-kind.js';
|
|
61
62
|
export * from './application/error-reporting/error-origin.js';
|
|
62
63
|
export * from './application/error-reporting/error-report-extension-values.js';
|
|
@@ -149,6 +150,7 @@ export * from './application/criteria/page-of-plan.js';
|
|
|
149
150
|
export * from './application/criteria/select-rows.js';
|
|
150
151
|
export * from './application/criteria/evaluate-plan.js';
|
|
151
152
|
export * from './application/criteria/evaluate-criteria.js';
|
|
153
|
+
export * from './application/files/index.js';
|
|
152
154
|
export * from './application/hydration/hydrate.js';
|
|
153
155
|
export * from './application/hydration/hydration.js';
|
|
154
156
|
export * from './application/hydration/hydrated-page.js';
|
|
@@ -190,6 +192,9 @@ export * from './application/ports/error-reporter.js';
|
|
|
190
192
|
export * from './application/ports/event-bus.js';
|
|
191
193
|
export * from './application/ports/event-subscribers.js';
|
|
192
194
|
export * from './application/ports/execution-scope.js';
|
|
195
|
+
export * from './application/ports/file-keys.js';
|
|
196
|
+
export * from './application/ports/file-scanner.js';
|
|
197
|
+
export * from './application/ports/file-storage.js';
|
|
193
198
|
export * from './application/ports/id-generator.js';
|
|
194
199
|
export * from './application/ports/integration-event-publisher.js';
|
|
195
200
|
export * from './application/ports/integration-event-subscriber.js';
|
|
@@ -204,7 +209,9 @@ export * from './application/ports/read-model-rows.js';
|
|
|
204
209
|
export * from './application/ports/read-model-store.js';
|
|
205
210
|
export * from './application/ports/read-model-table.js';
|
|
206
211
|
export * from './application/ports/repository.js';
|
|
212
|
+
export * from './application/ports/served-file-storage.js';
|
|
207
213
|
export * from './application/ports/unit-of-work.js';
|
|
214
|
+
export * from './application/ports/tenant-directory.js';
|
|
208
215
|
export * from './application/rate-limit/rate-limit-decision-of.js';
|
|
209
216
|
export * from './application/rate-limit/rate-limit-decision.js';
|
|
210
217
|
export * from './application/rate-limit/rate-limit.js';
|
|
@@ -239,7 +246,22 @@ export * from './application/session/session-client.js';
|
|
|
239
246
|
export * from './application/session/session-extension-values.js';
|
|
240
247
|
export * from './application/session/session-extensions.js';
|
|
241
248
|
export * from './application/session/session.js';
|
|
249
|
+
export * from './application/session/session-scope.js';
|
|
250
|
+
export * from './application/session/session-scopes.js';
|
|
251
|
+
export * from './application/session/has-scope.js';
|
|
242
252
|
export * from './application/session/system-session.js';
|
|
253
|
+
export * from './application/tenancy/across-tenants.js';
|
|
254
|
+
export * from './application/tenancy/assert-tenant-id.js';
|
|
255
|
+
export * from './application/tenancy/elevation-options.js';
|
|
256
|
+
export * from './application/tenancy/invalid-tenant-elevation-error.js';
|
|
257
|
+
export * from './application/tenancy/invalid-tenant-id-error.js';
|
|
258
|
+
export * from './application/tenancy/is-tenant-id.js';
|
|
259
|
+
export * from './application/tenancy/is-tenant-member.js';
|
|
260
|
+
export * from './application/tenancy/tenant-elevation.js';
|
|
261
|
+
export * from './application/tenancy/tenant-key.js';
|
|
262
|
+
export * from './application/tenancy/tenant-reach-of.js';
|
|
263
|
+
export * from './application/tenancy/tenant-reach.js';
|
|
264
|
+
export * from './application/tenancy/tenants-of.js';
|
|
243
265
|
export * from './application/use-case.js';
|
|
244
266
|
export * from './infrastructure/clock/fixed-clock.js';
|
|
245
267
|
export * from './infrastructure/clock/system-clock.js';
|
|
@@ -251,6 +273,9 @@ export * from './infrastructure/context/scoped-actor-context.js';
|
|
|
251
273
|
export * from './infrastructure/error-reporting/dead-letter-error.js';
|
|
252
274
|
export * from './infrastructure/error-reporting/dead-letter-reports.js';
|
|
253
275
|
export * from './infrastructure/error-reporting/report-process-failures.js';
|
|
276
|
+
export * from './infrastructure/domain-events/after-commit.js';
|
|
277
|
+
export * from './infrastructure/domain-events/at-commit.js';
|
|
278
|
+
export * from './infrastructure/domain-events/commit-step.js';
|
|
254
279
|
export * from './infrastructure/domain-events/announce-domain-events.js';
|
|
255
280
|
export * from './infrastructure/domain-events/dispatching-on-save.js';
|
|
256
281
|
export * from './infrastructure/domain-events/report-after-commit-failures.js';
|
|
@@ -258,6 +283,18 @@ export * from './infrastructure/domain-events/save-after-commit-error.js';
|
|
|
258
283
|
export * from './infrastructure/domain-events/unit-of-work-stage.js';
|
|
259
284
|
export * from './infrastructure/domain-events/within-unit-of-work.js';
|
|
260
285
|
export * from './infrastructure/events/idempotent.js';
|
|
286
|
+
export * from './infrastructure/files/accept-every-file-scanner.js';
|
|
287
|
+
export * from './infrastructure/files/file-inspection.js';
|
|
288
|
+
export * from './infrastructure/files/file-staging.js';
|
|
289
|
+
export * from './infrastructure/files/file-uploads-middleware.js';
|
|
290
|
+
export * from './infrastructure/files/in-memory-file-storage.js';
|
|
291
|
+
export * from './infrastructure/files/local-file-storage.js';
|
|
292
|
+
export * from './infrastructure/files/local-file-storage-options.js';
|
|
293
|
+
export * from './infrastructure/files/purge-staged-files.js';
|
|
294
|
+
export * from './infrastructure/files/self-signed-file-storage.js';
|
|
295
|
+
export * from './infrastructure/files/signed-link-options.js';
|
|
296
|
+
export * from './infrastructure/files/tenant-file-keys.js';
|
|
297
|
+
export * from './infrastructure/files/upload-desk.js';
|
|
261
298
|
export * from './infrastructure/id/sequential-id-generator.js';
|
|
262
299
|
export * from './infrastructure/id/uuid-generator.js';
|
|
263
300
|
export * from './infrastructure/in-memory/error-reporting-middleware.js';
|
|
@@ -277,6 +314,7 @@ export * from './infrastructure/in-memory/in-memory-rate-limiter.js';
|
|
|
277
314
|
export * from './infrastructure/in-memory/in-memory-unit-of-work.js';
|
|
278
315
|
export * from './infrastructure/in-memory/metric-sample.js';
|
|
279
316
|
export * from './infrastructure/in-memory/unit-of-work-middleware.js';
|
|
317
|
+
export * from './infrastructure/in-memory/in-memory-tenant-directory.js';
|
|
280
318
|
export * from './infrastructure/read-model/postgres-read-model-rebuild.js';
|
|
281
319
|
export * from './infrastructure/read-model/projection-rebuild.js';
|
|
282
320
|
export * from './infrastructure/read-model/sql-run.js';
|
|
@@ -285,4 +323,8 @@ export * from './infrastructure/read-model/write-if-newer.js';
|
|
|
285
323
|
export * from './infrastructure/noop/noop-error-reporter.js';
|
|
286
324
|
export * from './infrastructure/noop/noop-logger.js';
|
|
287
325
|
export * from './infrastructure/noop/noop-metrics.js';
|
|
326
|
+
export * from './infrastructure/tenancy/tenant-settings.js';
|
|
327
|
+
export * from './infrastructure/tenancy/tenant-setting-values.js';
|
|
328
|
+
export * from './infrastructure/tenancy/tenant-isolation-policies.js';
|
|
329
|
+
export * from './infrastructure/tenancy/tenant-policy-expressions.js';
|
|
288
330
|
//# sourceMappingURL=index.js.map
|