@tstdl/base 0.93.35 → 0.93.36
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/.eslintrc.json.bak +281 -0
- package/.repomix/bundles.json +100 -0
- package/.repomix/config/all-repomix.config.json +31 -0
- package/.repomix/config/debug-repomix.config.json +31 -0
- package/.repomix/config/dm-repomix.config.json +31 -0
- package/.vscode/launch.json +16 -0
- package/README.md +100 -0
- package/container/postgres/init/bootstrap.sql +8 -0
- package/container/postgres/postgresql.conf +2 -0
- package/deno.json +8 -0
- package/deno.lock +847 -0
- package/dist/ai/ai.service.js +497 -0
- package/dist/ai/types.d.ts +229 -0
- package/dist/audit/schemas.d.ts +6 -0
- package/dist/document-management/server/schemas.d.ts +32 -0
- package/dist/document-management/server/services/document-property.service.d.ts +63 -0
- package/dist/eslint.config.js +86 -0
- package/dist/package.json +190 -0
- package/dist/schema/converters/openapi-converter.js +125 -0
- package/dist/schema/schemas/object.d.ts +95 -0
- package/dist/schema/schemas/object.js +209 -0
- package/dist/schema/schemas/string.d.ts +18 -0
- package/dist/schema/schemas/string.js +45 -0
- package/dist/test1.js +101 -0
- package/dist/tools/fetch-mime-types.js +14 -0
- package/dist/tsconfig.json +50 -0
- package/dist/tsconfig.server.json +6 -0
- package/dist/utils/stream/stream-helper-types.js +1 -0
- package/docker-compose.yml +30 -0
- package/generate-readmes.ts +340 -0
- package/package.json +1 -1
- package/scripts/generate-context7-docs.sh +52 -0
- package/scripts/manage-orm.sh +63 -0
- package/source/ai/README.md +281 -0
- package/source/ai/ai-file.service.ts +292 -0
- package/source/ai/ai-session.ts +63 -0
- package/source/ai/ai.service.ts +626 -0
- package/source/ai/functions.ts +49 -0
- package/source/ai/index.ts +6 -0
- package/source/ai/module.ts +16 -0
- package/source/ai/types.ts +263 -0
- package/source/api/README.md +257 -0
- package/source/api/client/client.ts +221 -0
- package/source/api/client/index.ts +1 -0
- package/source/api/default-error-handlers.ts +37 -0
- package/source/api/index.ts +9 -0
- package/source/api/response.ts +173 -0
- package/source/api/server/api-controller.ts +69 -0
- package/source/api/server/api-request-token.provider.ts +32 -0
- package/source/api/server/error-handler.ts +13 -0
- package/source/api/server/gateway.ts +347 -0
- package/source/api/server/index.ts +5 -0
- package/source/api/server/middlewares/allowed-methods.middleware.ts +19 -0
- package/source/api/server/middlewares/catch-error.middleware.ts +18 -0
- package/source/api/server/middlewares/content-type.middleware.ts +22 -0
- package/source/api/server/middlewares/cors.middleware.ts +73 -0
- package/source/api/server/middlewares/index.ts +5 -0
- package/source/api/server/middlewares/response-time.middleware.ts +12 -0
- package/source/api/server/module.ts +34 -0
- package/source/api/server/tokens.ts +12 -0
- package/source/api/types.ts +195 -0
- package/source/api/utils.ts +27 -0
- package/source/application/README.md +234 -0
- package/source/application/application.ts +173 -0
- package/source/application/index.ts +2 -0
- package/source/application/providers.ts +68 -0
- package/source/audit/README.md +272 -0
- package/source/audit/audit.model.ts +161 -0
- package/source/audit/auditor.ts +309 -0
- package/source/audit/drizzle/0000_bored_stick.sql +26 -0
- package/source/audit/drizzle/meta/0000_snapshot.json +195 -0
- package/source/audit/drizzle/meta/_journal.json +13 -0
- package/source/audit/drizzle.config.ts +13 -0
- package/source/audit/index.ts +5 -0
- package/source/audit/module.ts +40 -0
- package/source/audit/schemas.ts +11 -0
- package/source/audit/types.ts +29 -0
- package/source/authentication/README.md +288 -0
- package/source/authentication/authentication.api.ts +182 -0
- package/source/authentication/client/api.client.ts +36 -0
- package/source/authentication/client/authentication.service.ts +488 -0
- package/source/authentication/client/http-client.middleware.ts +32 -0
- package/source/authentication/client/index.ts +5 -0
- package/source/authentication/client/module.ts +56 -0
- package/source/authentication/client/tokens.ts +17 -0
- package/source/authentication/errors/index.ts +1 -0
- package/source/authentication/errors/secret-requirements.error.ts +9 -0
- package/source/authentication/index.ts +10 -0
- package/source/authentication/models/authentication-credentials.model.ts +24 -0
- package/source/authentication/models/authentication-session.model.ts +30 -0
- package/source/authentication/models/index.ts +6 -0
- package/source/authentication/models/init-secret-reset-data.model.ts +19 -0
- package/source/authentication/models/secret-check-result.model.ts +5 -0
- package/source/authentication/models/token-payload-base.model.ts +48 -0
- package/source/authentication/models/token.model.ts +61 -0
- package/source/authentication/server/authentication-ancillary.service.ts +64 -0
- package/source/authentication/server/authentication-api-request-token.provider.ts +30 -0
- package/source/authentication/server/authentication-secret-requirements.validator.ts +84 -0
- package/source/authentication/server/authentication.api-controller.ts +225 -0
- package/source/authentication/server/authentication.audit.ts +15 -0
- package/source/authentication/server/authentication.service.ts +833 -0
- package/source/authentication/server/drizzle/0000_calm_warlock.sql +28 -0
- package/source/authentication/server/drizzle/meta/0000_snapshot.json +189 -0
- package/source/authentication/server/drizzle/meta/_journal.json +13 -0
- package/source/authentication/server/drizzle.config.ts +13 -0
- package/source/authentication/server/helper.ts +140 -0
- package/source/authentication/server/index.ts +8 -0
- package/source/authentication/server/module.ts +69 -0
- package/source/authentication/server/schemas.ts +7 -0
- package/source/browser/README.md +311 -0
- package/source/browser/browser-context-controller.ts +149 -0
- package/source/browser/browser-controller.ts +118 -0
- package/source/browser/browser.service.ts +115 -0
- package/source/browser/document-controller.ts +114 -0
- package/source/browser/element-controller.ts +348 -0
- package/source/browser/frame-controller.ts +40 -0
- package/source/browser/index.ts +17 -0
- package/source/browser/locator-controller.ts +51 -0
- package/source/browser/module.ts +48 -0
- package/source/browser/page-controller.ts +203 -0
- package/source/browser/pdf-options.ts +68 -0
- package/source/browser/types.ts +21 -0
- package/source/browser/utils.ts +144 -0
- package/source/cancellation/README.md +301 -0
- package/source/cancellation/index.ts +6 -0
- package/source/cancellation/token.ts +339 -0
- package/source/collections/awaitable/awaitable-list.ts +135 -0
- package/source/collections/awaitable/awaitable-map.ts +124 -0
- package/source/collections/awaitable/awaitable-set.ts +113 -0
- package/source/collections/awaitable/index.ts +3 -0
- package/source/collections/collection.ts +10 -0
- package/source/collections/index.ts +12 -0
- package/source/collections/keyed-set.ts +104 -0
- package/source/collections/list.ts +18 -0
- package/source/collections/observable/index.ts +8 -0
- package/source/collections/observable/observable-array.ts +132 -0
- package/source/collections/observable/observable-collection-base.ts +119 -0
- package/source/collections/observable/observable-collection.ts +27 -0
- package/source/collections/observable/observable-list-base.ts +90 -0
- package/source/collections/observable/observable-list.ts +26 -0
- package/source/collections/observable/observable-map.ts +78 -0
- package/source/collections/observable/observable-set.ts +133 -0
- package/source/collections/observable/observable-sorted-array-list.ts +227 -0
- package/source/collections/sorted-array-list.ts +210 -0
- package/source/collections/sorted-list.ts +14 -0
- package/source/collections/sorted-map.ts +105 -0
- package/source/constants.ts +1 -0
- package/source/context/context.ts +92 -0
- package/source/context/index.ts +1 -0
- package/source/cookie/cookie.ts +99 -0
- package/source/cookie/index.ts +7 -0
- package/source/core.ts +34 -0
- package/source/css/css-variables.ts +73 -0
- package/source/css/index.ts +1 -0
- package/source/data-structures/README.md +330 -0
- package/source/data-structures/array-dictionary.ts +121 -0
- package/source/data-structures/array-list.ts +144 -0
- package/source/data-structures/cache.ts +67 -0
- package/source/data-structures/circular-buffer.ts +260 -0
- package/source/data-structures/collection.ts +137 -0
- package/source/data-structures/context-data-map.ts +60 -0
- package/source/data-structures/dictionary.ts +77 -0
- package/source/data-structures/distinct-collection.ts +113 -0
- package/source/data-structures/index-out-of-bounds.error.ts +11 -0
- package/source/data-structures/index.ts +24 -0
- package/source/data-structures/iterable-weak-map.ts +172 -0
- package/source/data-structures/linked-list.ts +478 -0
- package/source/data-structures/list.ts +164 -0
- package/source/data-structures/map-dictionary.ts +77 -0
- package/source/data-structures/multi-key-map.ts +204 -0
- package/source/data-structures/multi-key-set.ts +82 -0
- package/source/data-structures/set-collection.ts +115 -0
- package/source/data-structures/sorted-array-list.ts +172 -0
- package/source/data-structures/weak-ref-map.ts +171 -0
- package/source/decorators/index.ts +7 -0
- package/source/decorators/log.ts +46 -0
- package/source/disposable/disposable.ts +13 -0
- package/source/disposable/index.ts +2 -0
- package/source/disposable/using.ts +17 -0
- package/source/distributed-loop/controller.ts +4 -0
- package/source/distributed-loop/distributed-loop.ts +88 -0
- package/source/distributed-loop/index.ts +9 -0
- package/source/distributed-loop/provider.ts +16 -0
- package/source/document-management/CONCEPT.md +166 -0
- package/source/document-management/README.md +409 -0
- package/source/document-management/api/document-management.api.ts +235 -0
- package/source/document-management/api/index.ts +1 -0
- package/source/document-management/authorization/document-management-authorization.service.ts +99 -0
- package/source/document-management/authorization/index.ts +2 -0
- package/source/document-management/authorization/policies.ts +19 -0
- package/source/document-management/index.ts +5 -0
- package/source/document-management/localizations/english.ts +11 -0
- package/source/document-management/localizations/german.ts +11 -0
- package/source/document-management/localizations/index.ts +12 -0
- package/source/document-management/localizations/localization.ts +9 -0
- package/source/document-management/models/document-assignment-scope.model.ts +27 -0
- package/source/document-management/models/document-assignment-task.model.ts +30 -0
- package/source/document-management/models/document-category.model.ts +20 -0
- package/source/document-management/models/document-collection-assignment.model.ts +25 -0
- package/source/document-management/models/document-collection.model.ts +15 -0
- package/source/document-management/models/document-management-table.ts +6 -0
- package/source/document-management/models/document-property-value.model.ts +41 -0
- package/source/document-management/models/document-property.model.ts +30 -0
- package/source/document-management/models/document-request-collection-assignment.model.ts +24 -0
- package/source/document-management/models/document-request-template.ts +23 -0
- package/source/document-management/models/document-request.model.ts +44 -0
- package/source/document-management/models/document-requests-template.ts +15 -0
- package/source/document-management/models/document-tag-assignment.model.ts +22 -0
- package/source/document-management/models/document-tag.model.ts +15 -0
- package/source/document-management/models/document-type-property.model.ts +19 -0
- package/source/document-management/models/document-type-validation.model.ts +20 -0
- package/source/document-management/models/document-type.model.ts +20 -0
- package/source/document-management/models/document-validation-definition.model.ts +24 -0
- package/source/document-management/models/document-validation-execution-related-document.model.ts +23 -0
- package/source/document-management/models/document-validation-execution.model.ts +57 -0
- package/source/document-management/models/document-workflow.model.ts +68 -0
- package/source/document-management/models/document.model.ts +64 -0
- package/source/document-management/models/index.ts +22 -0
- package/source/document-management/server/api/document-management.api.ts +322 -0
- package/source/document-management/server/api/index.ts +1 -0
- package/source/document-management/server/configure.ts +10 -0
- package/source/document-management/server/drizzle/0000_ordinary_pretty_boy.sql +362 -0
- package/source/document-management/server/drizzle/meta/0000_snapshot.json +2680 -0
- package/source/document-management/server/drizzle/meta/_journal.json +13 -0
- package/source/document-management/server/drizzle.config.ts +13 -0
- package/source/document-management/server/index.ts +5 -0
- package/source/document-management/server/module.ts +30 -0
- package/source/document-management/server/schemas.ts +37 -0
- package/source/document-management/server/services/document-category-type.service.ts +95 -0
- package/source/document-management/server/services/document-collection.service.ts +100 -0
- package/source/document-management/server/services/document-file.service.ts +213 -0
- package/source/document-management/server/services/document-management-ai.service.ts +393 -0
- package/source/document-management/server/services/document-management-ancillary.service.ts +11 -0
- package/source/document-management/server/services/document-management-observation.service.ts +185 -0
- package/source/document-management/server/services/document-management.service.ts +411 -0
- package/source/document-management/server/services/document-property.service.ts +184 -0
- package/source/document-management/server/services/document-request.service.ts +142 -0
- package/source/document-management/server/services/document-tag.service.ts +70 -0
- package/source/document-management/server/services/document-validation.service.ts +187 -0
- package/source/document-management/server/services/document-workflow.service.ts +205 -0
- package/source/document-management/server/services/document.service.ts +197 -0
- package/source/document-management/server/services/enum-type-key.ts +1 -0
- package/source/document-management/server/services/index.ts +15 -0
- package/source/document-management/server/services/singleton.ts +12 -0
- package/source/document-management/server/validators/ai-validation-executor.ts +60 -0
- package/source/document-management/server/validators/index.ts +2 -0
- package/source/document-management/server/validators/single-document-validation-executor.ts +27 -0
- package/source/document-management/server/validators/validator.ts +23 -0
- package/source/document-management/service-models/categories-and-types.view-model.ts +10 -0
- package/source/document-management/service-models/document-collection-metadata.service-model.ts +15 -0
- package/source/document-management/service-models/document-folders.view-model.ts +35 -0
- package/source/document-management/service-models/document-management.view-model.ts +123 -0
- package/source/document-management/service-models/document-requests-template.view-model.ts +12 -0
- package/source/document-management/service-models/document.service-model.ts +157 -0
- package/source/document-management/service-models/enriched/enriched-document-assignment.view.ts +47 -0
- package/source/document-management/service-models/enriched/enriched-document-category.view.ts +75 -0
- package/source/document-management/service-models/enriched/enriched-document-collection.view.ts +72 -0
- package/source/document-management/service-models/enriched/enriched-document-management-data.view.ts +103 -0
- package/source/document-management/service-models/enriched/enriched-document-request.view.ts +48 -0
- package/source/document-management/service-models/enriched/enriched-document-type.view.ts +34 -0
- package/source/document-management/service-models/enriched/enriched-document.view.ts +97 -0
- package/source/document-management/service-models/enriched/enriched-requests-template-data.model.ts +35 -0
- package/source/document-management/service-models/enriched/enriched.ts +64 -0
- package/source/document-management/service-models/enriched/index.ts +9 -0
- package/source/document-management/service-models/index.ts +8 -0
- package/source/document-management/service-models/stats.view-model.ts +21 -0
- package/source/dom/file-download.ts +19 -0
- package/source/dom/file-select-dialog.ts +32 -0
- package/source/dom/index.ts +3 -0
- package/source/dom/observation/index.ts +6 -0
- package/source/dom/observation/intersection-observer.ts +61 -0
- package/source/dom/observation/media-query-observer.ts +19 -0
- package/source/dom/observation/mutation-observer.ts +43 -0
- package/source/dom/observation/performance-observer.ts +56 -0
- package/source/dom/observation/resize-observer.ts +46 -0
- package/source/dom/observation/touch-observer.ts +25 -0
- package/source/enumerable/README.md +192 -0
- package/source/enumerable/async-enumerable.ts +320 -0
- package/source/enumerable/enumerable-methods.ts +47 -0
- package/source/enumerable/enumerable.ts +243 -0
- package/source/enumerable/index.ts +8 -0
- package/source/enumeration/README.md +100 -0
- package/source/enumeration/enumeration.ts +26 -0
- package/source/enumeration/index.ts +1 -0
- package/source/environment.ts +41 -0
- package/source/errors/README.md +156 -0
- package/source/errors/api.error.ts +16 -0
- package/source/errors/assertion.error.ts +9 -0
- package/source/errors/bad-request.error.ts +9 -0
- package/source/errors/custom.error.ts +74 -0
- package/source/errors/details.error.ts +13 -0
- package/source/errors/errors.localization.ts +228 -0
- package/source/errors/forbidden.error.ts +9 -0
- package/source/errors/index.ts +25 -0
- package/source/errors/invalid-credentials.error.ts +9 -0
- package/source/errors/invalid-token.error.ts +9 -0
- package/source/errors/max-bytes-exceeded.error.ts +13 -0
- package/source/errors/method-not-allowed.error.ts +9 -0
- package/source/errors/multi.error.ts +13 -0
- package/source/errors/not-found.error.ts +9 -0
- package/source/errors/not-implemented.error.ts +9 -0
- package/source/errors/not-supported.error.ts +16 -0
- package/source/errors/timeout.error.ts +9 -0
- package/source/errors/unauthorized.error.ts +9 -0
- package/source/errors/unsupported-media-type.error.ts +9 -0
- package/source/errors/utils.ts +13 -0
- package/source/examples/api/authentication.ts +71 -0
- package/source/examples/api/basic-overview.ts +111 -0
- package/source/examples/api/custom-authentication.ts +140 -0
- package/source/examples/api/streaming.ts +127 -0
- package/source/examples/browser/basic.ts +35 -0
- package/source/examples/document-management/categories-and-types.ts +820 -0
- package/source/examples/document-management/main.ts +171 -0
- package/source/examples/http/client.ts +29 -0
- package/source/examples/mail/basic.ts +64 -0
- package/source/examples/mail/templates/hello-name.tsx +30 -0
- package/source/examples/pdf/basic.ts +70 -0
- package/source/examples/pdf/templates/hello-name.hbs +12 -0
- package/source/examples/pdf/templates/hello-name.ts +49 -0
- package/source/examples/reflection/basic.ts +38 -0
- package/source/examples/template/basic.ts +48 -0
- package/source/examples/template/templates/hello-jsx.tsx +17 -0
- package/source/examples/template/templates/hello-name.hbs +12 -0
- package/source/examples/template/templates/hello-name.ts +26 -0
- package/source/file/index.ts +2 -0
- package/source/file/mime-type.ts +21 -0
- package/source/file/mime-types.ts +773 -0
- package/source/file/server/index.ts +1 -0
- package/source/file/server/temporary-file.ts +67 -0
- package/source/formats/formats.ts +192 -0
- package/source/formats/index.ts +1 -0
- package/source/function/index.ts +7 -0
- package/source/function/log.ts +46 -0
- package/source/http/README.md +367 -0
- package/source/http/client/adapters/undici.adapter.ts +143 -0
- package/source/http/client/http-client-options.ts +12 -0
- package/source/http/client/http-client-request.ts +249 -0
- package/source/http/client/http-client-response.ts +58 -0
- package/source/http/client/http-client.adapter.ts +9 -0
- package/source/http/client/http-client.ts +391 -0
- package/source/http/client/index.ts +8 -0
- package/source/http/client/middleware.ts +8 -0
- package/source/http/client/module.ts +39 -0
- package/source/http/client/tokens.ts +4 -0
- package/source/http/cookie-parser.ts +30 -0
- package/source/http/http-body.ts +77 -0
- package/source/http/http-form.ts +27 -0
- package/source/http/http-headers.ts +124 -0
- package/source/http/http-query.ts +26 -0
- package/source/http/http-url-parameters.ts +17 -0
- package/source/http/http-value-map.ts +147 -0
- package/source/http/http.error.ts +89 -0
- package/source/http/index.ts +19 -0
- package/source/http/server/http-server-request.ts +40 -0
- package/source/http/server/http-server-response.ts +75 -0
- package/source/http/server/http-server.ts +18 -0
- package/source/http/server/index.ts +3 -0
- package/source/http/server/node/index.ts +2 -0
- package/source/http/server/node/module.ts +20 -0
- package/source/http/server/node/node-http-server.ts +270 -0
- package/source/http/tokens.ts +5 -0
- package/source/http/types.ts +51 -0
- package/source/http/utils.ts +143 -0
- package/source/image-service/image-service.ts +57 -0
- package/source/image-service/imgproxy/imgproxy-image-service.ts +115 -0
- package/source/image-service/imgproxy/index.ts +1 -0
- package/source/image-service/index.ts +8 -0
- package/source/import.ts +3 -0
- package/source/index.ts +9 -0
- package/source/injector/README.md +389 -0
- package/source/injector/decorators.ts +252 -0
- package/source/injector/index.ts +18 -0
- package/source/injector/inject.ts +181 -0
- package/source/injector/injector.ts +919 -0
- package/source/injector/interfaces.ts +28 -0
- package/source/injector/provider.ts +89 -0
- package/source/injector/registration.error.ts +12 -0
- package/source/injector/resolution.ts +25 -0
- package/source/injector/resolve-chain.ts +166 -0
- package/source/injector/resolve.error.ts +11 -0
- package/source/injector/symbols.ts +3 -0
- package/source/injector/token.ts +54 -0
- package/source/injector/type-info.ts +30 -0
- package/source/injector/types.ts +80 -0
- package/source/interfaces.ts +3 -0
- package/source/intl/index.ts +1 -0
- package/source/intl/number-parser.ts +50 -0
- package/source/json-path/index.ts +7 -0
- package/source/json-path/json-path.ts +226 -0
- package/source/jsx/index.ts +2 -0
- package/source/jsx/is-component-class.ts +9 -0
- package/source/jsx/render-to-string.tsx +23 -0
- package/source/key-value-store/README.md +231 -0
- package/source/key-value-store/index.ts +8 -0
- package/source/key-value-store/key-value-store.provider.ts +6 -0
- package/source/key-value-store/key-value.store.ts +68 -0
- package/source/key-value-store/postgres/drizzle/0000_shocking_slipstream.sql +12 -0
- package/source/key-value-store/postgres/drizzle/meta/0000_snapshot.json +97 -0
- package/source/key-value-store/postgres/drizzle/meta/_journal.json +13 -0
- package/source/key-value-store/postgres/drizzle.config.ts +13 -0
- package/source/key-value-store/postgres/index.ts +2 -0
- package/source/key-value-store/postgres/key-value-store.service.ts +75 -0
- package/source/key-value-store/postgres/models/index.ts +2 -0
- package/source/key-value-store/postgres/models/key-value.model.ts +15 -0
- package/source/key-value-store/postgres/models/schemas.ts +6 -0
- package/source/key-value-store/postgres/module.ts +31 -0
- package/source/lock/README.md +214 -0
- package/source/lock/index.ts +8 -0
- package/source/lock/lock.ts +133 -0
- package/source/lock/postgres/drizzle/0000_busy_tattoo.sql +7 -0
- package/source/lock/postgres/drizzle/meta/0000_snapshot.json +65 -0
- package/source/lock/postgres/drizzle/meta/_journal.json +13 -0
- package/source/lock/postgres/drizzle.config.ts +13 -0
- package/source/lock/postgres/index.ts +2 -0
- package/source/lock/postgres/lock.ts +145 -0
- package/source/lock/postgres/models/index.ts +2 -0
- package/source/lock/postgres/models/lock.model.ts +16 -0
- package/source/lock/postgres/models/schemas.ts +6 -0
- package/source/lock/postgres/module.ts +34 -0
- package/source/lock/postgres/provider.ts +22 -0
- package/source/lock/provider.ts +42 -0
- package/source/lock/web/index.ts +3 -0
- package/source/lock/web/module.ts +13 -0
- package/source/lock/web/web-lock.provider.ts +11 -0
- package/source/lock/web/web-lock.ts +101 -0
- package/source/logger/README.md +257 -0
- package/source/logger/formatter.ts +15 -0
- package/source/logger/formatters/index.ts +2 -0
- package/source/logger/formatters/json.ts +28 -0
- package/source/logger/formatters/pretty-print.ts +58 -0
- package/source/logger/index.ts +14 -0
- package/source/logger/level.ts +12 -0
- package/source/logger/logger.ts +156 -0
- package/source/logger/manager.ts +96 -0
- package/source/logger/tokens.ts +4 -0
- package/source/logger/transport.ts +27 -0
- package/source/logger/transports/console.ts +38 -0
- package/source/logger/transports/index.ts +1 -0
- package/source/mail/README.md +225 -0
- package/source/mail/clients/index.ts +1 -0
- package/source/mail/clients/nodemailer.mail-client.ts +90 -0
- package/source/mail/drizzle/0000_previous_malcolm_colcord.sql +13 -0
- package/source/mail/drizzle/0001_flimsy_bloodscream.sql +5 -0
- package/source/mail/drizzle/meta/0000_snapshot.json +100 -0
- package/source/mail/drizzle/meta/0001_snapshot.json +69 -0
- package/source/mail/drizzle/meta/_journal.json +20 -0
- package/source/mail/drizzle.config.ts +13 -0
- package/source/mail/index.ts +12 -0
- package/source/mail/mail.client.ts +33 -0
- package/source/mail/mail.service.ts +73 -0
- package/source/mail/models/index.ts +7 -0
- package/source/mail/models/mail-address.model.ts +1 -0
- package/source/mail/models/mail-content.model.ts +4 -0
- package/source/mail/models/mail-data.model.ts +24 -0
- package/source/mail/models/mail-log.model.ts +22 -0
- package/source/mail/models/mail-send-result.model.ts +8 -0
- package/source/mail/models/mail-template.model.ts +17 -0
- package/source/mail/models/schemas.ts +6 -0
- package/source/mail/module.ts +45 -0
- package/source/mail/tokens.ts +4 -0
- package/source/memory/finalization.ts +62 -0
- package/source/memory/index.ts +8 -0
- package/source/memory/observable-finalization-registry.ts +14 -0
- package/source/message-bus/README.md +245 -0
- package/source/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.ts +14 -0
- package/source/message-bus/broadcast-channel/broadcast-channel-message-bus.ts +63 -0
- package/source/message-bus/broadcast-channel/index.ts +3 -0
- package/source/message-bus/broadcast-channel/module.ts +13 -0
- package/source/message-bus/index.ts +11 -0
- package/source/message-bus/local/index.ts +3 -0
- package/source/message-bus/local/local-message-bus-provider.ts +27 -0
- package/source/message-bus/local/local-message-bus.ts +43 -0
- package/source/message-bus/local/module.ts +13 -0
- package/source/message-bus/local/types.ts +4 -0
- package/source/message-bus/message-bus-base.ts +65 -0
- package/source/message-bus/message-bus-provider.ts +5 -0
- package/source/message-bus/message-bus.ts +24 -0
- package/source/module/README.md +169 -0
- package/source/module/index.ts +8 -0
- package/source/module/module.ts +64 -0
- package/source/module/modules/function.module.ts +24 -0
- package/source/module/modules/index.ts +2 -0
- package/source/module/modules/web-server.module.ts +64 -0
- package/source/object-storage/README.md +272 -0
- package/source/object-storage/index.ts +10 -0
- package/source/object-storage/object-storage-provider.ts +9 -0
- package/source/object-storage/object-storage.ts +137 -0
- package/source/object-storage/object.ts +23 -0
- package/source/object-storage/s3/index.ts +3 -0
- package/source/object-storage/s3/s3.object-storage-provider.ts +86 -0
- package/source/object-storage/s3/s3.object-storage.ts +253 -0
- package/source/object-storage/s3/s3.object.ts +56 -0
- package/source/openid-connect/cached-oidc-configuration.service.ts +39 -0
- package/source/openid-connect/index.ts +17 -0
- package/source/openid-connect/oidc-configuration.service.ts +47 -0
- package/source/openid-connect/oidc-state.model.ts +27 -0
- package/source/openid-connect/oidc.service-model.ts +57 -0
- package/source/openid-connect/oidc.service.ts +190 -0
- package/source/orm/README.md +385 -0
- package/source/orm/data-types/bytea.ts +21 -0
- package/source/orm/data-types/common.ts +28 -0
- package/source/orm/data-types/index.ts +9 -0
- package/source/orm/data-types/numeric-date.ts +29 -0
- package/source/orm/data-types/timestamp.ts +22 -0
- package/source/orm/data-types/tsvector.ts +16 -0
- package/source/orm/decorators.ts +546 -0
- package/source/orm/entity.ts +84 -0
- package/source/orm/index.ts +13 -0
- package/source/orm/query/base.ts +269 -0
- package/source/orm/query/index.ts +2 -0
- package/source/orm/query/parade.ts +135 -0
- package/source/orm/repository.types.ts +221 -0
- package/source/orm/schemas/index.ts +6 -0
- package/source/orm/schemas/json.ts +38 -0
- package/source/orm/schemas/numeric-date.ts +19 -0
- package/source/orm/schemas/numeric.ts +41 -0
- package/source/orm/schemas/timestamp.ts +29 -0
- package/source/orm/schemas/tsvector.ts +25 -0
- package/source/orm/schemas/uuid.ts +27 -0
- package/source/orm/server/database-schema.ts +65 -0
- package/source/orm/server/database.ts +51 -0
- package/source/orm/server/drizzle/index.ts +1 -0
- package/source/orm/server/drizzle/schema-converter.ts +507 -0
- package/source/orm/server/encryption.ts +65 -0
- package/source/orm/server/index.ts +13 -0
- package/source/orm/server/module.ts +45 -0
- package/source/orm/server/query-converter.ts +567 -0
- package/source/orm/server/repository.ts +1487 -0
- package/source/orm/server/tokens.ts +3 -0
- package/source/orm/server/transaction.ts +117 -0
- package/source/orm/server/transactional.ts +217 -0
- package/source/orm/server/types.ts +58 -0
- package/source/orm/sqls.ts +374 -0
- package/source/orm/types.ts +118 -0
- package/source/orm/utils.ts +25 -0
- package/source/password/README.md +123 -0
- package/source/password/have-i-been-pwned.ts +29 -0
- package/source/password/index.ts +10 -0
- package/source/password/password-check-result.model.ts +32 -0
- package/source/password/password-check.localization.ts +104 -0
- package/source/password/password-check.ts +70 -0
- package/source/pdf/README.md +206 -0
- package/source/pdf/index.ts +2 -0
- package/source/pdf/pdf.service.ts +197 -0
- package/source/pdf/utils.ts +91 -0
- package/source/polyfills.ts +1 -0
- package/source/pool/index.ts +7 -0
- package/source/pool/pool.ts +186 -0
- package/source/process/README.md +162 -0
- package/source/process/index.ts +1 -0
- package/source/process/spawn.ts +131 -0
- package/source/promise/README.md +209 -0
- package/source/promise/cancelable-promise.ts +46 -0
- package/source/promise/custom-promise.ts +21 -0
- package/source/promise/deferred-promise.ts +102 -0
- package/source/promise/index.ts +10 -0
- package/source/promise/lazy-promise.ts +46 -0
- package/source/promise/types.ts +3 -0
- package/source/queue/README.md +235 -0
- package/source/queue/enqueue-batch.ts +36 -0
- package/source/queue/index.ts +3 -0
- package/source/queue/postgres/drizzle/0000_zippy_moondragon.sql +11 -0
- package/source/queue/postgres/drizzle/0001_certain_wild_pack.sql +2 -0
- package/source/queue/postgres/drizzle/0002_dear_meggan.sql +2 -0
- package/source/queue/postgres/drizzle/meta/0000_snapshot.json +90 -0
- package/source/queue/postgres/drizzle/meta/0001_snapshot.json +103 -0
- package/source/queue/postgres/drizzle/meta/0002_snapshot.json +90 -0
- package/source/queue/postgres/drizzle/meta/_journal.json +27 -0
- package/source/queue/postgres/drizzle.config.ts +13 -0
- package/source/queue/postgres/index.ts +4 -0
- package/source/queue/postgres/job.model.ts +29 -0
- package/source/queue/postgres/module.ts +34 -0
- package/source/queue/postgres/queue.provider.ts +15 -0
- package/source/queue/postgres/queue.ts +208 -0
- package/source/queue/postgres/schemas.ts +6 -0
- package/source/queue/provider.ts +6 -0
- package/source/queue/queue.ts +150 -0
- package/source/random/index.ts +2 -0
- package/source/random/number-generator/index.ts +5 -0
- package/source/random/number-generator/mulberry32.ts +48 -0
- package/source/random/number-generator/random-number-generator-function.ts +6 -0
- package/source/random/number-generator/random-number-generator.ts +20 -0
- package/source/random/number-generator/seeded-random-number-generator.ts +17 -0
- package/source/random/number-generator/sfc32.ts +66 -0
- package/source/random/number-generator/utils.ts +10 -0
- package/source/random/series.ts +85 -0
- package/source/reflection/README.md +235 -0
- package/source/reflection/decorator-data.ts +68 -0
- package/source/reflection/decorators.ts +56 -0
- package/source/reflection/index.ts +5 -0
- package/source/reflection/registry.ts +212 -0
- package/source/reflection/types.ts +106 -0
- package/source/reflection/utils.ts +169 -0
- package/source/require.ts +7 -0
- package/source/rpc/README.md +234 -0
- package/source/rpc/adapters/index.ts +1 -0
- package/source/rpc/adapters/readable-stream.adapter.ts +97 -0
- package/source/rpc/endpoints/index.ts +1 -0
- package/source/rpc/endpoints/message-port.rpc-endpoint.ts +185 -0
- package/source/rpc/index.ts +6 -0
- package/source/rpc/model.ts +41 -0
- package/source/rpc/rpc.adapter.ts +14 -0
- package/source/rpc/rpc.endpoint.ts +86 -0
- package/source/rpc/rpc.error.ts +23 -0
- package/source/rpc/rpc.ts +419 -0
- package/source/rxjs-utils/cast.ts +9 -0
- package/source/rxjs-utils/index.ts +9 -0
- package/source/rxjs-utils/noop.ts +9 -0
- package/source/rxjs-utils/reject-error.ts +10 -0
- package/source/rxjs-utils/retry-backoff.ts +42 -0
- package/source/rxjs-utils/slow-array.ts +55 -0
- package/source/rxjs-utils/start-with-provider.ts +7 -0
- package/source/rxjs-utils/teardown.ts +25 -0
- package/source/rxjs-utils/timing.ts +43 -0
- package/source/rxjs-utils/untrack.ts +13 -0
- package/source/schema/README.md +414 -0
- package/source/schema/converters/index.ts +1 -0
- package/source/schema/converters/openapi-converter.ts +150 -0
- package/source/schema/decorators/class.ts +6 -0
- package/source/schema/decorators/description.ts +13 -0
- package/source/schema/decorators/index.ts +3 -0
- package/source/schema/decorators/schema.ts +57 -0
- package/source/schema/decorators/types.ts +28 -0
- package/source/schema/decorators/utils.ts +40 -0
- package/source/schema/index.ts +25 -0
- package/source/schema/schema.error.ts +88 -0
- package/source/schema/schema.ts +153 -0
- package/source/schema/schemas/any.ts +20 -0
- package/source/schema/schemas/array.ts +75 -0
- package/source/schema/schemas/bigint.ts +44 -0
- package/source/schema/schemas/boolean.ts +46 -0
- package/source/schema/schemas/date.ts +38 -0
- package/source/schema/schemas/defaulted.ts +39 -0
- package/source/schema/schemas/deferred.ts +30 -0
- package/source/schema/schemas/enumeration.ts +50 -0
- package/source/schema/schemas/function.ts +94 -0
- package/source/schema/schemas/index.ts +26 -0
- package/source/schema/schemas/instance.ts +46 -0
- package/source/schema/schemas/literal.ts +46 -0
- package/source/schema/schemas/never.ts +18 -0
- package/source/schema/schemas/nullable.ts +40 -0
- package/source/schema/schemas/number.ts +60 -0
- package/source/schema/schemas/object.ts +333 -0
- package/source/schema/schemas/one-or-many.ts +39 -0
- package/source/schema/schemas/optional.ts +43 -0
- package/source/schema/schemas/readable-stream.ts +21 -0
- package/source/schema/schemas/regexp.ts +34 -0
- package/source/schema/schemas/simple.ts +103 -0
- package/source/schema/schemas/string.ts +59 -0
- package/source/schema/schemas/symbol.ts +21 -0
- package/source/schema/schemas/transform.ts +34 -0
- package/source/schema/schemas/uint8-array.ts +38 -0
- package/source/schema/schemas/union.ts +61 -0
- package/source/schema/schemas/unknown.ts +20 -0
- package/source/schema/testable.ts +51 -0
- package/source/schema/types.ts +25 -0
- package/source/serializer/README.md +237 -0
- package/source/serializer/handlers/binary.ts +40 -0
- package/source/serializer/handlers/date.ts +7 -0
- package/source/serializer/handlers/error.ts +13 -0
- package/source/serializer/handlers/index.ts +7 -0
- package/source/serializer/handlers/map.ts +29 -0
- package/source/serializer/handlers/regex.ts +15 -0
- package/source/serializer/handlers/register.ts +44 -0
- package/source/serializer/handlers/set.ts +25 -0
- package/source/serializer/index.ts +4 -0
- package/source/serializer/serializable.ts +94 -0
- package/source/serializer/serializer.ts +396 -0
- package/source/serializer/types.ts +68 -0
- package/source/signals/api.ts +40 -0
- package/source/signals/computed-with-dependencies.ts +17 -0
- package/source/signals/effect-with-dependencies.ts +17 -0
- package/source/signals/implementation/README.md +1 -0
- package/source/signals/implementation/api.ts +29 -0
- package/source/signals/implementation/asserts.ts +24 -0
- package/source/signals/implementation/computed.ts +160 -0
- package/source/signals/implementation/configure.ts +23 -0
- package/source/signals/implementation/effect.ts +181 -0
- package/source/signals/implementation/equality.ts +19 -0
- package/source/signals/implementation/errors.ts +23 -0
- package/source/signals/implementation/graph.ts +500 -0
- package/source/signals/implementation/index.ts +13 -0
- package/source/signals/implementation/signal.ts +93 -0
- package/source/signals/implementation/to-observable.ts +43 -0
- package/source/signals/implementation/to-signal.ts +212 -0
- package/source/signals/implementation/untracked.ts +24 -0
- package/source/signals/implementation/watch.ts +145 -0
- package/source/signals/implementation/writable-signal.ts +79 -0
- package/source/signals/index.ts +9 -0
- package/source/signals/notifier.ts +22 -0
- package/source/signals/operators/combine.ts +16 -0
- package/source/signals/operators/defer.ts +10 -0
- package/source/signals/operators/derive-async.ts +64 -0
- package/source/signals/operators/index.ts +5 -0
- package/source/signals/operators/map.ts +5 -0
- package/source/signals/operators/switchAll.ts +6 -0
- package/source/signals/pipe.ts +41 -0
- package/source/signals/symbol.ts +6 -0
- package/source/signals/to-lazy-signal.ts +24 -0
- package/source/signals/types.ts +4 -0
- package/source/signals/untracked-operator.ts +14 -0
- package/source/sse/README.md +271 -0
- package/source/sse/data-stream-source.ts +99 -0
- package/source/sse/data-stream.ts +27 -0
- package/source/sse/index.ts +5 -0
- package/source/sse/model.ts +28 -0
- package/source/sse/server-sent-events-source.ts +78 -0
- package/source/sse/server-sent-events.ts +126 -0
- package/source/supports.ts +7 -0
- package/source/templates/README.md +261 -0
- package/source/templates/index.ts +9 -0
- package/source/templates/module.ts +41 -0
- package/source/templates/providers/file.template-provider.ts +53 -0
- package/source/templates/providers/index.ts +2 -0
- package/source/templates/providers/memory.template-provider.ts +29 -0
- package/source/templates/renderers/handlebars.template-renderer.ts +154 -0
- package/source/templates/renderers/index.ts +4 -0
- package/source/templates/renderers/jsx.template-renderer.tsx +23 -0
- package/source/templates/renderers/mjml.template-renderer.ts +57 -0
- package/source/templates/renderers/string.template-renderer.ts +27 -0
- package/source/templates/resolvers/file.template-resolver.ts +60 -0
- package/source/templates/resolvers/index.ts +3 -0
- package/source/templates/resolvers/jsx.template-resolver.ts +33 -0
- package/source/templates/resolvers/string.template-resolver.ts +28 -0
- package/source/templates/template-renderer.provider.ts +32 -0
- package/source/templates/template-resolver.provider.ts +32 -0
- package/source/templates/template.model.ts +51 -0
- package/source/templates/template.provider.ts +5 -0
- package/source/templates/template.renderer.ts +36 -0
- package/source/templates/template.resolver.ts +6 -0
- package/source/templates/template.service.ts +50 -0
- package/source/templates/tokens.ts +6 -0
- package/source/templates/types/index.ts +1 -0
- package/source/templates/types/jsx.intrinsic-elements.ts +7 -0
- package/source/test/drizzle/0000_natural_cannonball.sql +9 -0
- package/source/test/drizzle/meta/0000_snapshot.json +118 -0
- package/source/test/drizzle/meta/_journal.json +13 -0
- package/source/test/drizzle.config.ts +13 -0
- package/source/test/index.ts +3 -0
- package/source/test/module.ts +24 -0
- package/source/test/schemas.ts +6 -0
- package/source/test/test.model.ts +327 -0
- package/source/test1.ts +111 -0
- package/source/test2.ts +19 -0
- package/source/test3.ts +58 -0
- package/source/test4.ts +176 -0
- package/source/test5.ts +27 -0
- package/source/test6.ts +36 -0
- package/source/text/README.md +364 -0
- package/source/text/common-localization.ts +71 -0
- package/source/text/dynamic-text.model.ts +59 -0
- package/source/text/index.ts +4 -0
- package/source/text/localizable-text.model.ts +3 -0
- package/source/text/localization.service.ts +348 -0
- package/source/threading/index.ts +2 -0
- package/source/threading/thread-pool.ts +83 -0
- package/source/threading/thread-worker.ts +7 -0
- package/source/tokens.ts +3 -0
- package/source/tools/fetch-mime-types.ts +22 -0
- package/source/types/README.md +216 -0
- package/source/types/geo-json.ts +48 -0
- package/source/types/index.ts +4 -0
- package/source/types/tagged.ts +23 -0
- package/source/types/types.ts +290 -0
- package/source/types/web-types.ts +119 -0
- package/source/utils/README.md +385 -0
- package/source/utils/alphabet.ts +12 -0
- package/source/utils/any-iterable-iterator.ts +10 -0
- package/source/utils/array/array-backtracker.ts +62 -0
- package/source/utils/array/array.ts +114 -0
- package/source/utils/array/index.ts +2 -0
- package/source/utils/async-hook/async-hook.ts +153 -0
- package/source/utils/async-hook/index.ts +1 -0
- package/source/utils/async-iterable-helpers/all.ts +45 -0
- package/source/utils/async-iterable-helpers/any.ts +45 -0
- package/source/utils/async-iterable-helpers/assert.ts +40 -0
- package/source/utils/async-iterable-helpers/batch.ts +43 -0
- package/source/utils/async-iterable-helpers/buffer.ts +68 -0
- package/source/utils/async-iterable-helpers/concat.ts +8 -0
- package/source/utils/async-iterable-helpers/default-if-empty.ts +14 -0
- package/source/utils/async-iterable-helpers/deferred.ts +6 -0
- package/source/utils/async-iterable-helpers/difference.ts +36 -0
- package/source/utils/async-iterable-helpers/distinct.ts +39 -0
- package/source/utils/async-iterable-helpers/drain.ts +7 -0
- package/source/utils/async-iterable-helpers/filter.ts +41 -0
- package/source/utils/async-iterable-helpers/first-or-default.ts +15 -0
- package/source/utils/async-iterable-helpers/first.ts +15 -0
- package/source/utils/async-iterable-helpers/for-each.ts +34 -0
- package/source/utils/async-iterable-helpers/group-single.ts +9 -0
- package/source/utils/async-iterable-helpers/group-to-map.ts +88 -0
- package/source/utils/async-iterable-helpers/group-to-single-map.ts +88 -0
- package/source/utils/async-iterable-helpers/group.ts +9 -0
- package/source/utils/async-iterable-helpers/includes.ts +10 -0
- package/source/utils/async-iterable-helpers/index.ts +48 -0
- package/source/utils/async-iterable-helpers/interrupt.ts +31 -0
- package/source/utils/async-iterable-helpers/is-async-iterable.ts +11 -0
- package/source/utils/async-iterable-helpers/last-or-default.ts +22 -0
- package/source/utils/async-iterable-helpers/last.ts +22 -0
- package/source/utils/async-iterable-helpers/map-many.ts +37 -0
- package/source/utils/async-iterable-helpers/map.ts +37 -0
- package/source/utils/async-iterable-helpers/materialize.ts +34 -0
- package/source/utils/async-iterable-helpers/metadata.ts +58 -0
- package/source/utils/async-iterable-helpers/multiplex.ts +37 -0
- package/source/utils/async-iterable-helpers/observable-iterable.ts +40 -0
- package/source/utils/async-iterable-helpers/pairwise.ts +41 -0
- package/source/utils/async-iterable-helpers/parallel/feed.ts +32 -0
- package/source/utils/async-iterable-helpers/parallel/filter.ts +13 -0
- package/source/utils/async-iterable-helpers/parallel/for-each.ts +32 -0
- package/source/utils/async-iterable-helpers/parallel/group.ts +19 -0
- package/source/utils/async-iterable-helpers/parallel/index.ts +7 -0
- package/source/utils/async-iterable-helpers/parallel/map.ts +10 -0
- package/source/utils/async-iterable-helpers/parallel/tap.ts +10 -0
- package/source/utils/async-iterable-helpers/parallel/types.ts +2 -0
- package/source/utils/async-iterable-helpers/reduce.ts +51 -0
- package/source/utils/async-iterable-helpers/retry.ts +67 -0
- package/source/utils/async-iterable-helpers/single-or-default.ts +28 -0
- package/source/utils/async-iterable-helpers/single.ts +32 -0
- package/source/utils/async-iterable-helpers/skip.ts +6 -0
- package/source/utils/async-iterable-helpers/sort.ts +12 -0
- package/source/utils/async-iterable-helpers/take-until.ts +52 -0
- package/source/utils/async-iterable-helpers/take-while.ts +45 -0
- package/source/utils/async-iterable-helpers/take.ts +38 -0
- package/source/utils/async-iterable-helpers/tap.ts +37 -0
- package/source/utils/async-iterable-helpers/throttle.ts +15 -0
- package/source/utils/async-iterable-helpers/to-array.ts +16 -0
- package/source/utils/async-iterable-helpers/to-async-iterable-iterator.ts +53 -0
- package/source/utils/async-iterable-helpers/to-async-iterator.ts +43 -0
- package/source/utils/async-iterable-helpers/to-set.ts +16 -0
- package/source/utils/async-iterable-helpers/to-sync-iterable.ts +9 -0
- package/source/utils/async-iterable-helpers/types.ts +12 -0
- package/source/utils/async-iterable-helpers/while.ts +45 -0
- package/source/utils/async-iterator-iterable-iterator.ts +58 -0
- package/source/utils/backoff.ts +320 -0
- package/source/utils/base64.ts +207 -0
- package/source/utils/benchmark.ts +164 -0
- package/source/utils/binary-search.ts +114 -0
- package/source/utils/binary.ts +66 -0
- package/source/utils/clone.ts +57 -0
- package/source/utils/comparison.ts +112 -0
- package/source/utils/compression.ts +163 -0
- package/source/utils/config-parser.ts +37 -0
- package/source/utils/crc32.ts +38 -0
- package/source/utils/cryptography.ts +259 -0
- package/source/utils/date-time.ts +196 -0
- package/source/utils/encoding.ts +84 -0
- package/source/utils/enum.ts +54 -0
- package/source/utils/equals.ts +196 -0
- package/source/utils/event-loop.ts +29 -0
- package/source/utils/factory-map.ts +90 -0
- package/source/utils/feedable-async-iterable.ts +60 -0
- package/source/utils/file-reader.ts +27 -0
- package/source/utils/format-error.ts +133 -0
- package/source/utils/format.ts +42 -0
- package/source/utils/function/class.ts +14 -0
- package/source/utils/function/index.ts +3 -0
- package/source/utils/function/memoize.ts +190 -0
- package/source/utils/function/throttle.ts +33 -0
- package/source/utils/helpers.ts +91 -0
- package/source/utils/html-link-utils.ts +20 -0
- package/source/utils/image.ts +94 -0
- package/source/utils/index.ts +60 -0
- package/source/utils/iterable-helpers/all.ts +15 -0
- package/source/utils/iterable-helpers/any.ts +15 -0
- package/source/utils/iterable-helpers/assert.ts +11 -0
- package/source/utils/iterable-helpers/batch.ts +16 -0
- package/source/utils/iterable-helpers/concat.ts +5 -0
- package/source/utils/iterable-helpers/default-if-empty.ts +12 -0
- package/source/utils/iterable-helpers/deferred.ts +3 -0
- package/source/utils/iterable-helpers/difference.ts +32 -0
- package/source/utils/iterable-helpers/distinct.ts +15 -0
- package/source/utils/iterable-helpers/drain.ts +5 -0
- package/source/utils/iterable-helpers/filter.ts +13 -0
- package/source/utils/iterable-helpers/first-or-default.ts +12 -0
- package/source/utils/iterable-helpers/first.ts +12 -0
- package/source/utils/iterable-helpers/for-each.ts +9 -0
- package/source/utils/iterable-helpers/group-single.ts +8 -0
- package/source/utils/iterable-helpers/group-to-map.ts +40 -0
- package/source/utils/iterable-helpers/group-to-single-map.ts +40 -0
- package/source/utils/iterable-helpers/group.ts +8 -0
- package/source/utils/iterable-helpers/includes.ts +5 -0
- package/source/utils/iterable-helpers/index.ts +39 -0
- package/source/utils/iterable-helpers/is-iterable.ts +11 -0
- package/source/utils/iterable-helpers/last-or-default.ts +20 -0
- package/source/utils/iterable-helpers/last.ts +20 -0
- package/source/utils/iterable-helpers/map-many.ts +10 -0
- package/source/utils/iterable-helpers/map.ts +10 -0
- package/source/utils/iterable-helpers/materialize.ts +3 -0
- package/source/utils/iterable-helpers/metadata.ts +25 -0
- package/source/utils/iterable-helpers/pairwise.ts +15 -0
- package/source/utils/iterable-helpers/range.ts +5 -0
- package/source/utils/iterable-helpers/reduce.ts +17 -0
- package/source/utils/iterable-helpers/single-or-default.ts +22 -0
- package/source/utils/iterable-helpers/single.ts +26 -0
- package/source/utils/iterable-helpers/skip.ts +8 -0
- package/source/utils/iterable-helpers/sort.ts +7 -0
- package/source/utils/iterable-helpers/take-until.ts +15 -0
- package/source/utils/iterable-helpers/take-while.ts +16 -0
- package/source/utils/iterable-helpers/take.ts +14 -0
- package/source/utils/iterable-helpers/tap.ts +10 -0
- package/source/utils/iterable-helpers/types.ts +7 -0
- package/source/utils/iterable-helpers/while.ts +15 -0
- package/source/utils/jwt.ts +145 -0
- package/source/utils/map.ts +59 -0
- package/source/utils/math.ts +159 -0
- package/source/utils/merge.ts +89 -0
- package/source/utils/middleware.ts +69 -0
- package/source/utils/moving-metric.ts +222 -0
- package/source/utils/noop.ts +7 -0
- package/source/utils/object/decycle.ts +98 -0
- package/source/utils/object/dereference.ts +133 -0
- package/source/utils/object/forward-ref.ts +105 -0
- package/source/utils/object/index.ts +7 -0
- package/source/utils/object/lazy-property.ts +152 -0
- package/source/utils/object/merge.ts +88 -0
- package/source/utils/object/object.ts +203 -0
- package/source/utils/object/property-name.ts +100 -0
- package/source/utils/ordered-feedable-async-iterable.ts +60 -0
- package/source/utils/patch-worker.ts +109 -0
- package/source/utils/patterns.ts +10 -0
- package/source/utils/periodic-reporter.ts +81 -0
- package/source/utils/periodic-sampler.ts +100 -0
- package/source/utils/provider-function-iterable.ts +40 -0
- package/source/utils/proxy.ts +23 -0
- package/source/utils/random.ts +57 -0
- package/source/utils/reactive-value-to-signal.ts +23 -0
- package/source/utils/reflection.ts +27 -0
- package/source/utils/repl.ts +23 -0
- package/source/utils/set.ts +58 -0
- package/source/utils/singleton.ts +38 -0
- package/source/utils/sort.ts +90 -0
- package/source/utils/stream/finalize-stream.ts +68 -0
- package/source/utils/stream/from-promise.ts +34 -0
- package/source/utils/stream/index.ts +9 -0
- package/source/utils/stream/readable-stream-adapter.ts +46 -0
- package/source/utils/stream/size-limited-stream.ts +18 -0
- package/source/utils/stream/slice.ts +97 -0
- package/source/utils/stream/stream-helper-types.ts +18 -0
- package/source/utils/stream/stream-reader.ts +169 -0
- package/source/utils/stream/to-bytes-stream.ts +97 -0
- package/source/utils/stream/to-readable-stream.ts +8 -0
- package/source/utils/string/casing.ts +21 -0
- package/source/utils/string/hypenate.ts +3 -0
- package/source/utils/string/index.ts +5 -0
- package/source/utils/string/normalize.ts +100 -0
- package/source/utils/string/title-case.ts +10 -0
- package/source/utils/string/trim.ts +13 -0
- package/source/utils/throw.ts +9 -0
- package/source/utils/timer.ts +103 -0
- package/source/utils/timing.ts +70 -0
- package/source/utils/try-chain.ts +51 -0
- package/source/utils/try-ignore.ts +49 -0
- package/source/utils/type/extends.ts +7 -0
- package/source/utils/type/index.ts +1 -0
- package/source/utils/type-guards.ts +431 -0
- package/source/utils/type-of.ts +50 -0
- package/source/utils/units.ts +61 -0
- package/source/utils/url-builder.ts +78 -0
- package/source/utils/value-or-provider.ts +58 -0
- package/source/utils/z-base32.ts +59 -0
- package/tsconfig.base.json +50 -0
- package/tsconfig.dts.json +6 -0
- package/tsconfig.json +17 -46
- package/tstdl-features.xml +1239 -0
- package/typedoc.js +46 -0
- package/ai/ai.service.js +0 -490
- package/ai/types.d.ts +0 -223
- package/audit/schemas.d.ts +0 -6
- package/document-management/server/schemas.d.ts +0 -32
- package/document-management/server/services/document-property.service.d.ts +0 -63
- package/schema/converters/openapi-converter.js +0 -118
- package/schema/schemas/object.d.ts +0 -91
- package/schema/schemas/object.js +0 -198
- package/schema/schemas/string.d.ts +0 -14
- package/schema/schemas/string.js +0 -34
- package/test1.js +0 -90
- /package/{ai → dist/ai}/ai-file.service.d.ts +0 -0
- /package/{ai → dist/ai}/ai-file.service.js +0 -0
- /package/{ai → dist/ai}/ai-session.d.ts +0 -0
- /package/{ai → dist/ai}/ai-session.js +0 -0
- /package/{ai → dist/ai}/ai.service.d.ts +0 -0
- /package/{ai → dist/ai}/functions.d.ts +0 -0
- /package/{ai → dist/ai}/functions.js +0 -0
- /package/{ai → dist/ai}/index.d.ts +0 -0
- /package/{ai → dist/ai}/index.js +0 -0
- /package/{ai → dist/ai}/module.d.ts +0 -0
- /package/{ai → dist/ai}/module.js +0 -0
- /package/{ai → dist/ai}/types.js +0 -0
- /package/{api → dist/api}/client/client.d.ts +0 -0
- /package/{api → dist/api}/client/client.js +0 -0
- /package/{api → dist/api}/client/index.d.ts +0 -0
- /package/{api → dist/api}/client/index.js +0 -0
- /package/{api → dist/api}/default-error-handlers.d.ts +0 -0
- /package/{api → dist/api}/default-error-handlers.js +0 -0
- /package/{api → dist/api}/index.d.ts +0 -0
- /package/{api → dist/api}/index.js +0 -0
- /package/{api → dist/api}/response.d.ts +0 -0
- /package/{api → dist/api}/response.js +0 -0
- /package/{api → dist/api}/server/api-controller.d.ts +0 -0
- /package/{api → dist/api}/server/api-controller.js +0 -0
- /package/{api → dist/api}/server/api-request-token.provider.d.ts +0 -0
- /package/{api → dist/api}/server/api-request-token.provider.js +0 -0
- /package/{api → dist/api}/server/error-handler.d.ts +0 -0
- /package/{api → dist/api}/server/error-handler.js +0 -0
- /package/{api → dist/api}/server/gateway.d.ts +0 -0
- /package/{api → dist/api}/server/gateway.js +0 -0
- /package/{api → dist/api}/server/index.d.ts +0 -0
- /package/{api → dist/api}/server/index.js +0 -0
- /package/{api → dist/api}/server/middlewares/allowed-methods.middleware.d.ts +0 -0
- /package/{api → dist/api}/server/middlewares/allowed-methods.middleware.js +0 -0
- /package/{api → dist/api}/server/middlewares/catch-error.middleware.d.ts +0 -0
- /package/{api → dist/api}/server/middlewares/catch-error.middleware.js +0 -0
- /package/{api → dist/api}/server/middlewares/content-type.middleware.d.ts +0 -0
- /package/{api → dist/api}/server/middlewares/content-type.middleware.js +0 -0
- /package/{api → dist/api}/server/middlewares/cors.middleware.d.ts +0 -0
- /package/{api → dist/api}/server/middlewares/cors.middleware.js +0 -0
- /package/{api → dist/api}/server/middlewares/index.d.ts +0 -0
- /package/{api → dist/api}/server/middlewares/index.js +0 -0
- /package/{api → dist/api}/server/middlewares/response-time.middleware.d.ts +0 -0
- /package/{api → dist/api}/server/middlewares/response-time.middleware.js +0 -0
- /package/{api → dist/api}/server/module.d.ts +0 -0
- /package/{api → dist/api}/server/module.js +0 -0
- /package/{api → dist/api}/server/tokens.d.ts +0 -0
- /package/{api → dist/api}/server/tokens.js +0 -0
- /package/{api → dist/api}/types.d.ts +0 -0
- /package/{api → dist/api}/types.js +0 -0
- /package/{api → dist/api}/utils.d.ts +0 -0
- /package/{api → dist/api}/utils.js +0 -0
- /package/{application → dist/application}/application.d.ts +0 -0
- /package/{application → dist/application}/application.js +0 -0
- /package/{application → dist/application}/index.d.ts +0 -0
- /package/{application → dist/application}/index.js +0 -0
- /package/{application → dist/application}/providers.d.ts +0 -0
- /package/{application → dist/application}/providers.js +0 -0
- /package/{audit → dist/audit}/audit.model.d.ts +0 -0
- /package/{audit → dist/audit}/audit.model.js +0 -0
- /package/{audit → dist/audit}/auditor.d.ts +0 -0
- /package/{audit → dist/audit}/auditor.js +0 -0
- /package/{audit → dist/audit}/drizzle/0000_bored_stick.sql +0 -0
- /package/{audit → dist/audit}/drizzle/meta/0000_snapshot.json +0 -0
- /package/{audit → dist/audit}/drizzle/meta/_journal.json +0 -0
- /package/{audit → dist/audit}/drizzle.config.d.ts +0 -0
- /package/{audit → dist/audit}/drizzle.config.js +0 -0
- /package/{audit → dist/audit}/index.d.ts +0 -0
- /package/{audit → dist/audit}/index.js +0 -0
- /package/{audit → dist/audit}/module.d.ts +0 -0
- /package/{audit → dist/audit}/module.js +0 -0
- /package/{audit → dist/audit}/schemas.js +0 -0
- /package/{audit → dist/audit}/types.d.ts +0 -0
- /package/{audit → dist/audit}/types.js +0 -0
- /package/{authentication → dist/authentication}/authentication.api.d.ts +0 -0
- /package/{authentication → dist/authentication}/authentication.api.js +0 -0
- /package/{authentication → dist/authentication}/client/api.client.d.ts +0 -0
- /package/{authentication → dist/authentication}/client/api.client.js +0 -0
- /package/{authentication → dist/authentication}/client/authentication.service.d.ts +0 -0
- /package/{authentication → dist/authentication}/client/authentication.service.js +0 -0
- /package/{authentication → dist/authentication}/client/http-client.middleware.d.ts +0 -0
- /package/{authentication → dist/authentication}/client/http-client.middleware.js +0 -0
- /package/{authentication → dist/authentication}/client/index.d.ts +0 -0
- /package/{authentication → dist/authentication}/client/index.js +0 -0
- /package/{authentication → dist/authentication}/client/module.d.ts +0 -0
- /package/{authentication → dist/authentication}/client/module.js +0 -0
- /package/{authentication → dist/authentication}/client/tokens.d.ts +0 -0
- /package/{authentication → dist/authentication}/client/tokens.js +0 -0
- /package/{authentication → dist/authentication}/errors/index.d.ts +0 -0
- /package/{authentication → dist/authentication}/errors/index.js +0 -0
- /package/{authentication → dist/authentication}/errors/secret-requirements.error.d.ts +0 -0
- /package/{authentication → dist/authentication}/errors/secret-requirements.error.js +0 -0
- /package/{authentication → dist/authentication}/index.d.ts +0 -0
- /package/{authentication → dist/authentication}/index.js +0 -0
- /package/{authentication → dist/authentication}/models/authentication-credentials.model.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/authentication-credentials.model.js +0 -0
- /package/{authentication → dist/authentication}/models/authentication-session.model.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/authentication-session.model.js +0 -0
- /package/{authentication → dist/authentication}/models/index.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/index.js +0 -0
- /package/{authentication → dist/authentication}/models/init-secret-reset-data.model.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/init-secret-reset-data.model.js +0 -0
- /package/{authentication → dist/authentication}/models/secret-check-result.model.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/secret-check-result.model.js +0 -0
- /package/{authentication → dist/authentication}/models/token-payload-base.model.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/token-payload-base.model.js +0 -0
- /package/{authentication → dist/authentication}/models/token.model.d.ts +0 -0
- /package/{authentication → dist/authentication}/models/token.model.js +0 -0
- /package/{authentication → dist/authentication}/server/authentication-ancillary.service.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/authentication-ancillary.service.js +0 -0
- /package/{authentication → dist/authentication}/server/authentication-api-request-token.provider.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/authentication-api-request-token.provider.js +0 -0
- /package/{authentication → dist/authentication}/server/authentication-secret-requirements.validator.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/authentication-secret-requirements.validator.js +0 -0
- /package/{authentication → dist/authentication}/server/authentication.api-controller.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/authentication.api-controller.js +0 -0
- /package/{authentication → dist/authentication}/server/authentication.audit.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/authentication.audit.js +0 -0
- /package/{authentication → dist/authentication}/server/authentication.service.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/authentication.service.js +0 -0
- /package/{authentication → dist/authentication}/server/drizzle/0000_calm_warlock.sql +0 -0
- /package/{authentication → dist/authentication}/server/drizzle/meta/0000_snapshot.json +0 -0
- /package/{authentication → dist/authentication}/server/drizzle/meta/_journal.json +0 -0
- /package/{authentication → dist/authentication}/server/drizzle.config.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/drizzle.config.js +0 -0
- /package/{authentication → dist/authentication}/server/helper.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/helper.js +0 -0
- /package/{authentication → dist/authentication}/server/index.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/index.js +0 -0
- /package/{authentication → dist/authentication}/server/module.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/module.js +0 -0
- /package/{authentication → dist/authentication}/server/schemas.d.ts +0 -0
- /package/{authentication → dist/authentication}/server/schemas.js +0 -0
- /package/{browser → dist/browser}/browser-context-controller.d.ts +0 -0
- /package/{browser → dist/browser}/browser-context-controller.js +0 -0
- /package/{browser → dist/browser}/browser-controller.d.ts +0 -0
- /package/{browser → dist/browser}/browser-controller.js +0 -0
- /package/{browser → dist/browser}/browser.service.d.ts +0 -0
- /package/{browser → dist/browser}/browser.service.js +0 -0
- /package/{browser → dist/browser}/document-controller.d.ts +0 -0
- /package/{browser → dist/browser}/document-controller.js +0 -0
- /package/{browser → dist/browser}/element-controller.d.ts +0 -0
- /package/{browser → dist/browser}/element-controller.js +0 -0
- /package/{browser → dist/browser}/frame-controller.d.ts +0 -0
- /package/{browser → dist/browser}/frame-controller.js +0 -0
- /package/{browser → dist/browser}/index.d.ts +0 -0
- /package/{browser → dist/browser}/index.js +0 -0
- /package/{browser → dist/browser}/locator-controller.d.ts +0 -0
- /package/{browser → dist/browser}/locator-controller.js +0 -0
- /package/{browser → dist/browser}/module.d.ts +0 -0
- /package/{browser → dist/browser}/module.js +0 -0
- /package/{browser → dist/browser}/page-controller.d.ts +0 -0
- /package/{browser → dist/browser}/page-controller.js +0 -0
- /package/{browser → dist/browser}/pdf-options.d.ts +0 -0
- /package/{browser → dist/browser}/pdf-options.js +0 -0
- /package/{browser → dist/browser}/types.d.ts +0 -0
- /package/{browser → dist/browser}/types.js +0 -0
- /package/{browser → dist/browser}/utils.d.ts +0 -0
- /package/{browser → dist/browser}/utils.js +0 -0
- /package/{cancellation → dist/cancellation}/index.d.ts +0 -0
- /package/{cancellation → dist/cancellation}/index.js +0 -0
- /package/{cancellation → dist/cancellation}/token.d.ts +0 -0
- /package/{cancellation → dist/cancellation}/token.js +0 -0
- /package/{collections → dist/collections}/awaitable/awaitable-list.d.ts +0 -0
- /package/{collections → dist/collections}/awaitable/awaitable-list.js +0 -0
- /package/{collections → dist/collections}/awaitable/awaitable-map.d.ts +0 -0
- /package/{collections → dist/collections}/awaitable/awaitable-map.js +0 -0
- /package/{collections → dist/collections}/awaitable/awaitable-set.d.ts +0 -0
- /package/{collections → dist/collections}/awaitable/awaitable-set.js +0 -0
- /package/{collections → dist/collections}/awaitable/index.d.ts +0 -0
- /package/{collections → dist/collections}/awaitable/index.js +0 -0
- /package/{collections → dist/collections}/collection.d.ts +0 -0
- /package/{collections → dist/collections}/collection.js +0 -0
- /package/{collections → dist/collections}/index.d.ts +0 -0
- /package/{collections → dist/collections}/index.js +0 -0
- /package/{collections → dist/collections}/keyed-set.d.ts +0 -0
- /package/{collections → dist/collections}/keyed-set.js +0 -0
- /package/{collections → dist/collections}/list.d.ts +0 -0
- /package/{collections → dist/collections}/list.js +0 -0
- /package/{collections → dist/collections}/observable/index.d.ts +0 -0
- /package/{collections → dist/collections}/observable/index.js +0 -0
- /package/{collections → dist/collections}/observable/observable-array.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-array.js +0 -0
- /package/{collections → dist/collections}/observable/observable-collection-base.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-collection-base.js +0 -0
- /package/{collections → dist/collections}/observable/observable-collection.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-collection.js +0 -0
- /package/{collections → dist/collections}/observable/observable-list-base.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-list-base.js +0 -0
- /package/{collections → dist/collections}/observable/observable-list.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-list.js +0 -0
- /package/{collections → dist/collections}/observable/observable-map.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-map.js +0 -0
- /package/{collections → dist/collections}/observable/observable-set.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-set.js +0 -0
- /package/{collections → dist/collections}/observable/observable-sorted-array-list.d.ts +0 -0
- /package/{collections → dist/collections}/observable/observable-sorted-array-list.js +0 -0
- /package/{collections → dist/collections}/sorted-array-list.d.ts +0 -0
- /package/{collections → dist/collections}/sorted-array-list.js +0 -0
- /package/{collections → dist/collections}/sorted-list.d.ts +0 -0
- /package/{collections → dist/collections}/sorted-list.js +0 -0
- /package/{collections → dist/collections}/sorted-map.d.ts +0 -0
- /package/{collections → dist/collections}/sorted-map.js +0 -0
- /package/{constants.d.ts → dist/constants.d.ts} +0 -0
- /package/{constants.js → dist/constants.js} +0 -0
- /package/{context → dist/context}/context.d.ts +0 -0
- /package/{context → dist/context}/context.js +0 -0
- /package/{context → dist/context}/index.d.ts +0 -0
- /package/{context → dist/context}/index.js +0 -0
- /package/{cookie → dist/cookie}/cookie.d.ts +0 -0
- /package/{cookie → dist/cookie}/cookie.js +0 -0
- /package/{cookie → dist/cookie}/index.d.ts +0 -0
- /package/{cookie → dist/cookie}/index.js +0 -0
- /package/{core.d.ts → dist/core.d.ts} +0 -0
- /package/{core.js → dist/core.js} +0 -0
- /package/{css → dist/css}/css-variables.d.ts +0 -0
- /package/{css → dist/css}/css-variables.js +0 -0
- /package/{css → dist/css}/index.d.ts +0 -0
- /package/{css → dist/css}/index.js +0 -0
- /package/{data-structures → dist/data-structures}/array-dictionary.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/array-dictionary.js +0 -0
- /package/{data-structures → dist/data-structures}/array-list.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/array-list.js +0 -0
- /package/{data-structures → dist/data-structures}/cache.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/cache.js +0 -0
- /package/{data-structures → dist/data-structures}/circular-buffer.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/circular-buffer.js +0 -0
- /package/{data-structures → dist/data-structures}/collection.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/collection.js +0 -0
- /package/{data-structures → dist/data-structures}/context-data-map.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/context-data-map.js +0 -0
- /package/{data-structures → dist/data-structures}/dictionary.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/dictionary.js +0 -0
- /package/{data-structures → dist/data-structures}/distinct-collection.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/distinct-collection.js +0 -0
- /package/{data-structures → dist/data-structures}/index-out-of-bounds.error.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/index-out-of-bounds.error.js +0 -0
- /package/{data-structures → dist/data-structures}/index.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/index.js +0 -0
- /package/{data-structures → dist/data-structures}/iterable-weak-map.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/iterable-weak-map.js +0 -0
- /package/{data-structures → dist/data-structures}/linked-list.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/linked-list.js +0 -0
- /package/{data-structures → dist/data-structures}/list.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/list.js +0 -0
- /package/{data-structures → dist/data-structures}/map-dictionary.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/map-dictionary.js +0 -0
- /package/{data-structures → dist/data-structures}/multi-key-map.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/multi-key-map.js +0 -0
- /package/{data-structures → dist/data-structures}/multi-key-set.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/multi-key-set.js +0 -0
- /package/{data-structures → dist/data-structures}/set-collection.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/set-collection.js +0 -0
- /package/{data-structures → dist/data-structures}/sorted-array-list.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/sorted-array-list.js +0 -0
- /package/{data-structures → dist/data-structures}/weak-ref-map.d.ts +0 -0
- /package/{data-structures → dist/data-structures}/weak-ref-map.js +0 -0
- /package/{decorators → dist/decorators}/index.d.ts +0 -0
- /package/{decorators → dist/decorators}/index.js +0 -0
- /package/{decorators → dist/decorators}/log.d.ts +0 -0
- /package/{decorators → dist/decorators}/log.js +0 -0
- /package/{disposable → dist/disposable}/disposable.d.ts +0 -0
- /package/{disposable → dist/disposable}/disposable.js +0 -0
- /package/{disposable → dist/disposable}/index.d.ts +0 -0
- /package/{disposable → dist/disposable}/index.js +0 -0
- /package/{disposable → dist/disposable}/using.d.ts +0 -0
- /package/{disposable → dist/disposable}/using.js +0 -0
- /package/{distributed-loop → dist/distributed-loop}/controller.d.ts +0 -0
- /package/{distributed-loop → dist/distributed-loop}/controller.js +0 -0
- /package/{distributed-loop → dist/distributed-loop}/distributed-loop.d.ts +0 -0
- /package/{distributed-loop → dist/distributed-loop}/distributed-loop.js +0 -0
- /package/{distributed-loop → dist/distributed-loop}/index.d.ts +0 -0
- /package/{distributed-loop → dist/distributed-loop}/index.js +0 -0
- /package/{distributed-loop → dist/distributed-loop}/provider.d.ts +0 -0
- /package/{distributed-loop → dist/distributed-loop}/provider.js +0 -0
- /package/{document-management → dist/document-management}/api/document-management.api.d.ts +0 -0
- /package/{document-management → dist/document-management}/api/document-management.api.js +0 -0
- /package/{document-management → dist/document-management}/api/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/api/index.js +0 -0
- /package/{document-management → dist/document-management}/authorization/document-management-authorization.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/authorization/document-management-authorization.service.js +0 -0
- /package/{document-management → dist/document-management}/authorization/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/authorization/index.js +0 -0
- /package/{document-management → dist/document-management}/authorization/policies.d.ts +0 -0
- /package/{document-management → dist/document-management}/authorization/policies.js +0 -0
- /package/{document-management → dist/document-management}/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/index.js +0 -0
- /package/{document-management → dist/document-management}/localizations/english.d.ts +0 -0
- /package/{document-management → dist/document-management}/localizations/english.js +0 -0
- /package/{document-management → dist/document-management}/localizations/german.d.ts +0 -0
- /package/{document-management → dist/document-management}/localizations/german.js +0 -0
- /package/{document-management → dist/document-management}/localizations/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/localizations/index.js +0 -0
- /package/{document-management → dist/document-management}/localizations/localization.d.ts +0 -0
- /package/{document-management → dist/document-management}/localizations/localization.js +0 -0
- /package/{document-management → dist/document-management}/models/document-assignment-scope.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-assignment-scope.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-assignment-task.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-assignment-task.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-category.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-category.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-collection-assignment.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-collection-assignment.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-collection.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-collection.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-management-table.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-management-table.js +0 -0
- /package/{document-management → dist/document-management}/models/document-property-value.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-property-value.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-property.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-property.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-request-collection-assignment.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-request-collection-assignment.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-request-template.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-request-template.js +0 -0
- /package/{document-management → dist/document-management}/models/document-request.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-request.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-requests-template.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-requests-template.js +0 -0
- /package/{document-management → dist/document-management}/models/document-tag-assignment.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-tag-assignment.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-tag.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-tag.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-type-property.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-type-property.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-type-validation.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-type-validation.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-type.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-type.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-validation-definition.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-validation-definition.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-validation-execution-related-document.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-validation-execution-related-document.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-validation-execution.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-validation-execution.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document-workflow.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document-workflow.model.js +0 -0
- /package/{document-management → dist/document-management}/models/document.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/document.model.js +0 -0
- /package/{document-management → dist/document-management}/models/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/models/index.js +0 -0
- /package/{document-management → dist/document-management}/server/api/document-management.api.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/api/document-management.api.js +0 -0
- /package/{document-management → dist/document-management}/server/api/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/api/index.js +0 -0
- /package/{document-management → dist/document-management}/server/configure.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/configure.js +0 -0
- /package/{document-management → dist/document-management}/server/drizzle/0000_ordinary_pretty_boy.sql +0 -0
- /package/{document-management → dist/document-management}/server/drizzle/meta/0000_snapshot.json +0 -0
- /package/{document-management → dist/document-management}/server/drizzle/meta/_journal.json +0 -0
- /package/{document-management → dist/document-management}/server/drizzle.config.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/drizzle.config.js +0 -0
- /package/{document-management → dist/document-management}/server/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/index.js +0 -0
- /package/{document-management → dist/document-management}/server/module.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/module.js +0 -0
- /package/{document-management → dist/document-management}/server/schemas.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-category-type.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-category-type.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-collection.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-collection.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-file.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-file.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management-ai.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management-ai.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management-ancillary.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management-ancillary.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management-observation.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management-observation.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-management.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-property.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-request.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-request.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-tag.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-tag.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-validation.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-validation.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document-workflow.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document-workflow.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/document.service.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/document.service.js +0 -0
- /package/{document-management → dist/document-management}/server/services/enum-type-key.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/enum-type-key.js +0 -0
- /package/{document-management → dist/document-management}/server/services/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/index.js +0 -0
- /package/{document-management → dist/document-management}/server/services/singleton.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/services/singleton.js +0 -0
- /package/{document-management → dist/document-management}/server/validators/ai-validation-executor.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/validators/ai-validation-executor.js +0 -0
- /package/{document-management → dist/document-management}/server/validators/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/validators/index.js +0 -0
- /package/{document-management → dist/document-management}/server/validators/single-document-validation-executor.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/validators/single-document-validation-executor.js +0 -0
- /package/{document-management → dist/document-management}/server/validators/validator.d.ts +0 -0
- /package/{document-management → dist/document-management}/server/validators/validator.js +0 -0
- /package/{document-management → dist/document-management}/service-models/categories-and-types.view-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/categories-and-types.view-model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/document-collection-metadata.service-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/document-collection-metadata.service-model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/document-folders.view-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/document-folders.view-model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/document-management.view-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/document-management.view-model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/document-requests-template.view-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/document-requests-template.view-model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/document.service-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/document.service-model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-assignment.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-assignment.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-category.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-category.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-collection.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-collection.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-management-data.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-management-data.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-request.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-request.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-type.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document-type.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document.view.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-document.view.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-requests-template-data.model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched-requests-template-data.model.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/enriched.js +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/enriched/index.js +0 -0
- /package/{document-management → dist/document-management}/service-models/index.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/index.js +0 -0
- /package/{document-management → dist/document-management}/service-models/stats.view-model.d.ts +0 -0
- /package/{document-management → dist/document-management}/service-models/stats.view-model.js +0 -0
- /package/{dom → dist/dom}/file-download.d.ts +0 -0
- /package/{dom → dist/dom}/file-download.js +0 -0
- /package/{dom → dist/dom}/file-select-dialog.d.ts +0 -0
- /package/{dom → dist/dom}/file-select-dialog.js +0 -0
- /package/{dom → dist/dom}/index.d.ts +0 -0
- /package/{dom → dist/dom}/index.js +0 -0
- /package/{dom → dist/dom}/observation/index.d.ts +0 -0
- /package/{dom → dist/dom}/observation/index.js +0 -0
- /package/{dom → dist/dom}/observation/intersection-observer.d.ts +0 -0
- /package/{dom → dist/dom}/observation/intersection-observer.js +0 -0
- /package/{dom → dist/dom}/observation/media-query-observer.d.ts +0 -0
- /package/{dom → dist/dom}/observation/media-query-observer.js +0 -0
- /package/{dom → dist/dom}/observation/mutation-observer.d.ts +0 -0
- /package/{dom → dist/dom}/observation/mutation-observer.js +0 -0
- /package/{dom → dist/dom}/observation/performance-observer.d.ts +0 -0
- /package/{dom → dist/dom}/observation/performance-observer.js +0 -0
- /package/{dom → dist/dom}/observation/resize-observer.d.ts +0 -0
- /package/{dom → dist/dom}/observation/resize-observer.js +0 -0
- /package/{dom → dist/dom}/observation/touch-observer.d.ts +0 -0
- /package/{dom → dist/dom}/observation/touch-observer.js +0 -0
- /package/{enumerable → dist/enumerable}/async-enumerable.d.ts +0 -0
- /package/{enumerable → dist/enumerable}/async-enumerable.js +0 -0
- /package/{enumerable → dist/enumerable}/enumerable-methods.d.ts +0 -0
- /package/{enumerable → dist/enumerable}/enumerable-methods.js +0 -0
- /package/{enumerable → dist/enumerable}/enumerable.d.ts +0 -0
- /package/{enumerable → dist/enumerable}/enumerable.js +0 -0
- /package/{enumerable → dist/enumerable}/index.d.ts +0 -0
- /package/{enumerable → dist/enumerable}/index.js +0 -0
- /package/{enumeration → dist/enumeration}/enumeration.d.ts +0 -0
- /package/{enumeration → dist/enumeration}/enumeration.js +0 -0
- /package/{enumeration → dist/enumeration}/index.d.ts +0 -0
- /package/{enumeration → dist/enumeration}/index.js +0 -0
- /package/{environment.d.ts → dist/environment.d.ts} +0 -0
- /package/{environment.js → dist/environment.js} +0 -0
- /package/{errors → dist/errors}/api.error.d.ts +0 -0
- /package/{errors → dist/errors}/api.error.js +0 -0
- /package/{errors → dist/errors}/assertion.error.d.ts +0 -0
- /package/{errors → dist/errors}/assertion.error.js +0 -0
- /package/{errors → dist/errors}/bad-request.error.d.ts +0 -0
- /package/{errors → dist/errors}/bad-request.error.js +0 -0
- /package/{errors → dist/errors}/custom.error.d.ts +0 -0
- /package/{errors → dist/errors}/custom.error.js +0 -0
- /package/{errors → dist/errors}/details.error.d.ts +0 -0
- /package/{errors → dist/errors}/details.error.js +0 -0
- /package/{errors → dist/errors}/errors.localization.d.ts +0 -0
- /package/{errors → dist/errors}/errors.localization.js +0 -0
- /package/{errors → dist/errors}/forbidden.error.d.ts +0 -0
- /package/{errors → dist/errors}/forbidden.error.js +0 -0
- /package/{errors → dist/errors}/index.d.ts +0 -0
- /package/{errors → dist/errors}/index.js +0 -0
- /package/{errors → dist/errors}/invalid-credentials.error.d.ts +0 -0
- /package/{errors → dist/errors}/invalid-credentials.error.js +0 -0
- /package/{errors → dist/errors}/invalid-token.error.d.ts +0 -0
- /package/{errors → dist/errors}/invalid-token.error.js +0 -0
- /package/{errors → dist/errors}/max-bytes-exceeded.error.d.ts +0 -0
- /package/{errors → dist/errors}/max-bytes-exceeded.error.js +0 -0
- /package/{errors → dist/errors}/method-not-allowed.error.d.ts +0 -0
- /package/{errors → dist/errors}/method-not-allowed.error.js +0 -0
- /package/{errors → dist/errors}/multi.error.d.ts +0 -0
- /package/{errors → dist/errors}/multi.error.js +0 -0
- /package/{errors → dist/errors}/not-found.error.d.ts +0 -0
- /package/{errors → dist/errors}/not-found.error.js +0 -0
- /package/{errors → dist/errors}/not-implemented.error.d.ts +0 -0
- /package/{errors → dist/errors}/not-implemented.error.js +0 -0
- /package/{errors → dist/errors}/not-supported.error.d.ts +0 -0
- /package/{errors → dist/errors}/not-supported.error.js +0 -0
- /package/{errors → dist/errors}/timeout.error.d.ts +0 -0
- /package/{errors → dist/errors}/timeout.error.js +0 -0
- /package/{errors → dist/errors}/unauthorized.error.d.ts +0 -0
- /package/{errors → dist/errors}/unauthorized.error.js +0 -0
- /package/{errors → dist/errors}/unsupported-media-type.error.d.ts +0 -0
- /package/{errors → dist/errors}/unsupported-media-type.error.js +0 -0
- /package/{errors → dist/errors}/utils.d.ts +0 -0
- /package/{errors → dist/errors}/utils.js +0 -0
- /package/{examples → dist/examples}/api/authentication.d.ts +0 -0
- /package/{examples → dist/examples}/api/authentication.js +0 -0
- /package/{examples → dist/examples}/api/basic-overview.d.ts +0 -0
- /package/{examples → dist/examples}/api/basic-overview.js +0 -0
- /package/{examples → dist/examples}/api/custom-authentication.d.ts +0 -0
- /package/{examples → dist/examples}/api/custom-authentication.js +0 -0
- /package/{examples → dist/examples}/api/streaming.d.ts +0 -0
- /package/{examples → dist/examples}/api/streaming.js +0 -0
- /package/{examples → dist/examples}/browser/basic.d.ts +0 -0
- /package/{examples → dist/examples}/browser/basic.js +0 -0
- /package/{examples → dist/examples}/document-management/categories-and-types.d.ts +0 -0
- /package/{examples → dist/examples}/document-management/categories-and-types.js +0 -0
- /package/{examples → dist/examples}/document-management/main.d.ts +0 -0
- /package/{examples → dist/examples}/document-management/main.js +0 -0
- /package/{examples → dist/examples}/http/client.d.ts +0 -0
- /package/{examples → dist/examples}/http/client.js +0 -0
- /package/{examples → dist/examples}/mail/basic.d.ts +0 -0
- /package/{examples → dist/examples}/mail/basic.js +0 -0
- /package/{examples → dist/examples}/mail/templates/hello-name.d.ts +0 -0
- /package/{examples → dist/examples}/mail/templates/hello-name.js +0 -0
- /package/{examples → dist/examples}/pdf/basic.d.ts +0 -0
- /package/{examples → dist/examples}/pdf/basic.js +0 -0
- /package/{examples → dist/examples}/pdf/templates/hello-name.d.ts +0 -0
- /package/{examples → dist/examples}/pdf/templates/hello-name.js +0 -0
- /package/{examples → dist/examples}/reflection/basic.d.ts +0 -0
- /package/{examples → dist/examples}/reflection/basic.js +0 -0
- /package/{examples → dist/examples}/template/basic.d.ts +0 -0
- /package/{examples → dist/examples}/template/basic.js +0 -0
- /package/{examples → dist/examples}/template/templates/hello-jsx.d.ts +0 -0
- /package/{examples → dist/examples}/template/templates/hello-jsx.js +0 -0
- /package/{examples → dist/examples}/template/templates/hello-name.d.ts +0 -0
- /package/{examples → dist/examples}/template/templates/hello-name.js +0 -0
- /package/{file → dist/file}/index.d.ts +0 -0
- /package/{file → dist/file}/index.js +0 -0
- /package/{file → dist/file}/mime-type.d.ts +0 -0
- /package/{file → dist/file}/mime-type.js +0 -0
- /package/{file → dist/file}/mime-types.d.ts +0 -0
- /package/{file → dist/file}/mime-types.js +0 -0
- /package/{file → dist/file}/server/index.d.ts +0 -0
- /package/{file → dist/file}/server/index.js +0 -0
- /package/{file → dist/file}/server/temporary-file.d.ts +0 -0
- /package/{file → dist/file}/server/temporary-file.js +0 -0
- /package/{formats → dist/formats}/formats.d.ts +0 -0
- /package/{formats → dist/formats}/formats.js +0 -0
- /package/{formats → dist/formats}/index.d.ts +0 -0
- /package/{formats → dist/formats}/index.js +0 -0
- /package/{function → dist/function}/index.d.ts +0 -0
- /package/{function → dist/function}/index.js +0 -0
- /package/{function → dist/function}/log.d.ts +0 -0
- /package/{function → dist/function}/log.js +0 -0
- /package/{http → dist/http}/client/adapters/undici.adapter.d.ts +0 -0
- /package/{http → dist/http}/client/adapters/undici.adapter.js +0 -0
- /package/{http → dist/http}/client/http-client-options.d.ts +0 -0
- /package/{http → dist/http}/client/http-client-options.js +0 -0
- /package/{http → dist/http}/client/http-client-request.d.ts +0 -0
- /package/{http → dist/http}/client/http-client-request.js +0 -0
- /package/{http → dist/http}/client/http-client-response.d.ts +0 -0
- /package/{http → dist/http}/client/http-client-response.js +0 -0
- /package/{http → dist/http}/client/http-client.adapter.d.ts +0 -0
- /package/{http → dist/http}/client/http-client.adapter.js +0 -0
- /package/{http → dist/http}/client/http-client.d.ts +0 -0
- /package/{http → dist/http}/client/http-client.js +0 -0
- /package/{http → dist/http}/client/index.d.ts +0 -0
- /package/{http → dist/http}/client/index.js +0 -0
- /package/{http → dist/http}/client/middleware.d.ts +0 -0
- /package/{http → dist/http}/client/middleware.js +0 -0
- /package/{http → dist/http}/client/module.d.ts +0 -0
- /package/{http → dist/http}/client/module.js +0 -0
- /package/{http → dist/http}/client/tokens.d.ts +0 -0
- /package/{http → dist/http}/client/tokens.js +0 -0
- /package/{http → dist/http}/cookie-parser.d.ts +0 -0
- /package/{http → dist/http}/cookie-parser.js +0 -0
- /package/{http → dist/http}/http-body.d.ts +0 -0
- /package/{http → dist/http}/http-body.js +0 -0
- /package/{http → dist/http}/http-form.d.ts +0 -0
- /package/{http → dist/http}/http-form.js +0 -0
- /package/{http → dist/http}/http-headers.d.ts +0 -0
- /package/{http → dist/http}/http-headers.js +0 -0
- /package/{http → dist/http}/http-query.d.ts +0 -0
- /package/{http → dist/http}/http-query.js +0 -0
- /package/{http → dist/http}/http-url-parameters.d.ts +0 -0
- /package/{http → dist/http}/http-url-parameters.js +0 -0
- /package/{http → dist/http}/http-value-map.d.ts +0 -0
- /package/{http → dist/http}/http-value-map.js +0 -0
- /package/{http → dist/http}/http.error.d.ts +0 -0
- /package/{http → dist/http}/http.error.js +0 -0
- /package/{http → dist/http}/index.d.ts +0 -0
- /package/{http → dist/http}/index.js +0 -0
- /package/{http → dist/http}/server/http-server-request.d.ts +0 -0
- /package/{http → dist/http}/server/http-server-request.js +0 -0
- /package/{http → dist/http}/server/http-server-response.d.ts +0 -0
- /package/{http → dist/http}/server/http-server-response.js +0 -0
- /package/{http → dist/http}/server/http-server.d.ts +0 -0
- /package/{http → dist/http}/server/http-server.js +0 -0
- /package/{http → dist/http}/server/index.d.ts +0 -0
- /package/{http → dist/http}/server/index.js +0 -0
- /package/{http → dist/http}/server/node/index.d.ts +0 -0
- /package/{http → dist/http}/server/node/index.js +0 -0
- /package/{http → dist/http}/server/node/module.d.ts +0 -0
- /package/{http → dist/http}/server/node/module.js +0 -0
- /package/{http → dist/http}/server/node/node-http-server.d.ts +0 -0
- /package/{http → dist/http}/server/node/node-http-server.js +0 -0
- /package/{http → dist/http}/tokens.d.ts +0 -0
- /package/{http → dist/http}/tokens.js +0 -0
- /package/{http → dist/http}/types.d.ts +0 -0
- /package/{http → dist/http}/types.js +0 -0
- /package/{http → dist/http}/utils.d.ts +0 -0
- /package/{http → dist/http}/utils.js +0 -0
- /package/{image-service → dist/image-service}/image-service.d.ts +0 -0
- /package/{image-service → dist/image-service}/image-service.js +0 -0
- /package/{image-service → dist/image-service}/imgproxy/imgproxy-image-service.d.ts +0 -0
- /package/{image-service → dist/image-service}/imgproxy/imgproxy-image-service.js +0 -0
- /package/{image-service → dist/image-service}/imgproxy/index.d.ts +0 -0
- /package/{image-service → dist/image-service}/imgproxy/index.js +0 -0
- /package/{image-service → dist/image-service}/index.d.ts +0 -0
- /package/{image-service → dist/image-service}/index.js +0 -0
- /package/{import.d.ts → dist/import.d.ts} +0 -0
- /package/{import.js → dist/import.js} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{injector → dist/injector}/decorators.d.ts +0 -0
- /package/{injector → dist/injector}/decorators.js +0 -0
- /package/{injector → dist/injector}/index.d.ts +0 -0
- /package/{injector → dist/injector}/index.js +0 -0
- /package/{injector → dist/injector}/inject.d.ts +0 -0
- /package/{injector → dist/injector}/inject.js +0 -0
- /package/{injector → dist/injector}/injector.d.ts +0 -0
- /package/{injector → dist/injector}/injector.js +0 -0
- /package/{injector → dist/injector}/interfaces.d.ts +0 -0
- /package/{injector → dist/injector}/interfaces.js +0 -0
- /package/{injector → dist/injector}/provider.d.ts +0 -0
- /package/{injector → dist/injector}/provider.js +0 -0
- /package/{injector → dist/injector}/registration.error.d.ts +0 -0
- /package/{injector → dist/injector}/registration.error.js +0 -0
- /package/{injector → dist/injector}/resolution.d.ts +0 -0
- /package/{injector → dist/injector}/resolution.js +0 -0
- /package/{injector → dist/injector}/resolve-chain.d.ts +0 -0
- /package/{injector → dist/injector}/resolve-chain.js +0 -0
- /package/{injector → dist/injector}/resolve.error.d.ts +0 -0
- /package/{injector → dist/injector}/resolve.error.js +0 -0
- /package/{injector → dist/injector}/symbols.d.ts +0 -0
- /package/{injector → dist/injector}/symbols.js +0 -0
- /package/{injector → dist/injector}/token.d.ts +0 -0
- /package/{injector → dist/injector}/token.js +0 -0
- /package/{injector → dist/injector}/type-info.d.ts +0 -0
- /package/{injector → dist/injector}/type-info.js +0 -0
- /package/{injector → dist/injector}/types.d.ts +0 -0
- /package/{injector → dist/injector}/types.js +0 -0
- /package/{interfaces.d.ts → dist/interfaces.d.ts} +0 -0
- /package/{interfaces.js → dist/interfaces.js} +0 -0
- /package/{intl → dist/intl}/index.d.ts +0 -0
- /package/{intl → dist/intl}/index.js +0 -0
- /package/{intl → dist/intl}/number-parser.d.ts +0 -0
- /package/{intl → dist/intl}/number-parser.js +0 -0
- /package/{json-path → dist/json-path}/index.d.ts +0 -0
- /package/{json-path → dist/json-path}/index.js +0 -0
- /package/{json-path → dist/json-path}/json-path.d.ts +0 -0
- /package/{json-path → dist/json-path}/json-path.js +0 -0
- /package/{jsx → dist/jsx}/index.d.ts +0 -0
- /package/{jsx → dist/jsx}/index.js +0 -0
- /package/{jsx → dist/jsx}/is-component-class.d.ts +0 -0
- /package/{jsx → dist/jsx}/is-component-class.js +0 -0
- /package/{jsx → dist/jsx}/render-to-string.d.ts +0 -0
- /package/{jsx → dist/jsx}/render-to-string.js +0 -0
- /package/{key-value-store → dist/key-value-store}/index.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/index.js +0 -0
- /package/{key-value-store → dist/key-value-store}/key-value-store.provider.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/key-value-store.provider.js +0 -0
- /package/{key-value-store → dist/key-value-store}/key-value.store.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/key-value.store.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/drizzle/0000_shocking_slipstream.sql +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/drizzle/meta/0000_snapshot.json +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/drizzle/meta/_journal.json +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/drizzle.config.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/drizzle.config.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/index.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/index.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/key-value-store.service.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/key-value-store.service.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/models/index.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/models/index.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/models/key-value.model.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/models/key-value.model.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/models/schemas.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/models/schemas.js +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/module.d.ts +0 -0
- /package/{key-value-store → dist/key-value-store}/postgres/module.js +0 -0
- /package/{lock → dist/lock}/index.d.ts +0 -0
- /package/{lock → dist/lock}/index.js +0 -0
- /package/{lock → dist/lock}/lock.d.ts +0 -0
- /package/{lock → dist/lock}/lock.js +0 -0
- /package/{lock → dist/lock}/postgres/drizzle/0000_busy_tattoo.sql +0 -0
- /package/{lock → dist/lock}/postgres/drizzle/meta/0000_snapshot.json +0 -0
- /package/{lock → dist/lock}/postgres/drizzle/meta/_journal.json +0 -0
- /package/{lock → dist/lock}/postgres/drizzle.config.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/drizzle.config.js +0 -0
- /package/{lock → dist/lock}/postgres/index.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/index.js +0 -0
- /package/{lock → dist/lock}/postgres/lock.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/lock.js +0 -0
- /package/{lock → dist/lock}/postgres/models/index.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/models/index.js +0 -0
- /package/{lock → dist/lock}/postgres/models/lock.model.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/models/lock.model.js +0 -0
- /package/{lock → dist/lock}/postgres/models/schemas.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/models/schemas.js +0 -0
- /package/{lock → dist/lock}/postgres/module.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/module.js +0 -0
- /package/{lock → dist/lock}/postgres/provider.d.ts +0 -0
- /package/{lock → dist/lock}/postgres/provider.js +0 -0
- /package/{lock → dist/lock}/provider.d.ts +0 -0
- /package/{lock → dist/lock}/provider.js +0 -0
- /package/{lock → dist/lock}/web/index.d.ts +0 -0
- /package/{lock → dist/lock}/web/index.js +0 -0
- /package/{lock → dist/lock}/web/module.d.ts +0 -0
- /package/{lock → dist/lock}/web/module.js +0 -0
- /package/{lock → dist/lock}/web/web-lock.d.ts +0 -0
- /package/{lock → dist/lock}/web/web-lock.js +0 -0
- /package/{lock → dist/lock}/web/web-lock.provider.d.ts +0 -0
- /package/{lock → dist/lock}/web/web-lock.provider.js +0 -0
- /package/{logger → dist/logger}/formatter.d.ts +0 -0
- /package/{logger → dist/logger}/formatter.js +0 -0
- /package/{logger → dist/logger}/formatters/index.d.ts +0 -0
- /package/{logger → dist/logger}/formatters/index.js +0 -0
- /package/{logger → dist/logger}/formatters/json.d.ts +0 -0
- /package/{logger → dist/logger}/formatters/json.js +0 -0
- /package/{logger → dist/logger}/formatters/pretty-print.d.ts +0 -0
- /package/{logger → dist/logger}/formatters/pretty-print.js +0 -0
- /package/{logger → dist/logger}/index.d.ts +0 -0
- /package/{logger → dist/logger}/index.js +0 -0
- /package/{logger → dist/logger}/level.d.ts +0 -0
- /package/{logger → dist/logger}/level.js +0 -0
- /package/{logger → dist/logger}/logger.d.ts +0 -0
- /package/{logger → dist/logger}/logger.js +0 -0
- /package/{logger → dist/logger}/manager.d.ts +0 -0
- /package/{logger → dist/logger}/manager.js +0 -0
- /package/{logger → dist/logger}/tokens.d.ts +0 -0
- /package/{logger → dist/logger}/tokens.js +0 -0
- /package/{logger → dist/logger}/transport.d.ts +0 -0
- /package/{logger → dist/logger}/transport.js +0 -0
- /package/{logger → dist/logger}/transports/console.d.ts +0 -0
- /package/{logger → dist/logger}/transports/console.js +0 -0
- /package/{logger → dist/logger}/transports/index.d.ts +0 -0
- /package/{logger → dist/logger}/transports/index.js +0 -0
- /package/{mail → dist/mail}/clients/index.d.ts +0 -0
- /package/{mail → dist/mail}/clients/index.js +0 -0
- /package/{mail → dist/mail}/clients/nodemailer.mail-client.d.ts +0 -0
- /package/{mail → dist/mail}/clients/nodemailer.mail-client.js +0 -0
- /package/{mail → dist/mail}/drizzle/0000_previous_malcolm_colcord.sql +0 -0
- /package/{mail → dist/mail}/drizzle/0001_flimsy_bloodscream.sql +0 -0
- /package/{mail → dist/mail}/drizzle/meta/0000_snapshot.json +0 -0
- /package/{mail → dist/mail}/drizzle/meta/0001_snapshot.json +0 -0
- /package/{mail → dist/mail}/drizzle/meta/_journal.json +0 -0
- /package/{mail → dist/mail}/drizzle.config.d.ts +0 -0
- /package/{mail → dist/mail}/drizzle.config.js +0 -0
- /package/{mail → dist/mail}/index.d.ts +0 -0
- /package/{mail → dist/mail}/index.js +0 -0
- /package/{mail → dist/mail}/mail.client.d.ts +0 -0
- /package/{mail → dist/mail}/mail.client.js +0 -0
- /package/{mail → dist/mail}/mail.service.d.ts +0 -0
- /package/{mail → dist/mail}/mail.service.js +0 -0
- /package/{mail → dist/mail}/models/index.d.ts +0 -0
- /package/{mail → dist/mail}/models/index.js +0 -0
- /package/{mail → dist/mail}/models/mail-address.model.d.ts +0 -0
- /package/{mail → dist/mail}/models/mail-address.model.js +0 -0
- /package/{mail → dist/mail}/models/mail-content.model.d.ts +0 -0
- /package/{mail → dist/mail}/models/mail-content.model.js +0 -0
- /package/{mail → dist/mail}/models/mail-data.model.d.ts +0 -0
- /package/{mail → dist/mail}/models/mail-data.model.js +0 -0
- /package/{mail → dist/mail}/models/mail-log.model.d.ts +0 -0
- /package/{mail → dist/mail}/models/mail-log.model.js +0 -0
- /package/{mail → dist/mail}/models/mail-send-result.model.d.ts +0 -0
- /package/{mail → dist/mail}/models/mail-send-result.model.js +0 -0
- /package/{mail → dist/mail}/models/mail-template.model.d.ts +0 -0
- /package/{mail → dist/mail}/models/mail-template.model.js +0 -0
- /package/{mail → dist/mail}/models/schemas.d.ts +0 -0
- /package/{mail → dist/mail}/models/schemas.js +0 -0
- /package/{mail → dist/mail}/module.d.ts +0 -0
- /package/{mail → dist/mail}/module.js +0 -0
- /package/{mail → dist/mail}/tokens.d.ts +0 -0
- /package/{mail → dist/mail}/tokens.js +0 -0
- /package/{memory → dist/memory}/finalization.d.ts +0 -0
- /package/{memory → dist/memory}/finalization.js +0 -0
- /package/{memory → dist/memory}/index.d.ts +0 -0
- /package/{memory → dist/memory}/index.js +0 -0
- /package/{memory → dist/memory}/observable-finalization-registry.d.ts +0 -0
- /package/{memory → dist/memory}/observable-finalization-registry.js +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/broadcast-channel-message-bus-provider.js +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/broadcast-channel-message-bus.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/broadcast-channel-message-bus.js +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/index.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/index.js +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/module.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/broadcast-channel/module.js +0 -0
- /package/{message-bus → dist/message-bus}/index.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/index.js +0 -0
- /package/{message-bus → dist/message-bus}/local/index.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/local/index.js +0 -0
- /package/{message-bus → dist/message-bus}/local/local-message-bus-provider.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/local/local-message-bus-provider.js +0 -0
- /package/{message-bus → dist/message-bus}/local/local-message-bus.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/local/local-message-bus.js +0 -0
- /package/{message-bus → dist/message-bus}/local/module.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/local/module.js +0 -0
- /package/{message-bus → dist/message-bus}/local/types.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/local/types.js +0 -0
- /package/{message-bus → dist/message-bus}/message-bus-base.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/message-bus-base.js +0 -0
- /package/{message-bus → dist/message-bus}/message-bus-provider.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/message-bus-provider.js +0 -0
- /package/{message-bus → dist/message-bus}/message-bus.d.ts +0 -0
- /package/{message-bus → dist/message-bus}/message-bus.js +0 -0
- /package/{module → dist/module}/index.d.ts +0 -0
- /package/{module → dist/module}/index.js +0 -0
- /package/{module → dist/module}/module.d.ts +0 -0
- /package/{module → dist/module}/module.js +0 -0
- /package/{module → dist/module}/modules/function.module.d.ts +0 -0
- /package/{module → dist/module}/modules/function.module.js +0 -0
- /package/{module → dist/module}/modules/index.d.ts +0 -0
- /package/{module → dist/module}/modules/index.js +0 -0
- /package/{module → dist/module}/modules/web-server.module.d.ts +0 -0
- /package/{module → dist/module}/modules/web-server.module.js +0 -0
- /package/{object-storage → dist/object-storage}/index.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/index.js +0 -0
- /package/{object-storage → dist/object-storage}/object-storage-provider.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/object-storage-provider.js +0 -0
- /package/{object-storage → dist/object-storage}/object-storage.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/object-storage.js +0 -0
- /package/{object-storage → dist/object-storage}/object.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/object.js +0 -0
- /package/{object-storage → dist/object-storage}/s3/index.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/s3/index.js +0 -0
- /package/{object-storage → dist/object-storage}/s3/s3.object-storage-provider.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/s3/s3.object-storage-provider.js +0 -0
- /package/{object-storage → dist/object-storage}/s3/s3.object-storage.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/s3/s3.object-storage.js +0 -0
- /package/{object-storage → dist/object-storage}/s3/s3.object.d.ts +0 -0
- /package/{object-storage → dist/object-storage}/s3/s3.object.js +0 -0
- /package/{openid-connect → dist/openid-connect}/cached-oidc-configuration.service.d.ts +0 -0
- /package/{openid-connect → dist/openid-connect}/cached-oidc-configuration.service.js +0 -0
- /package/{openid-connect → dist/openid-connect}/index.d.ts +0 -0
- /package/{openid-connect → dist/openid-connect}/index.js +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc-configuration.service.d.ts +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc-configuration.service.js +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc-state.model.d.ts +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc-state.model.js +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc.service-model.d.ts +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc.service-model.js +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc.service.d.ts +0 -0
- /package/{openid-connect → dist/openid-connect}/oidc.service.js +0 -0
- /package/{orm → dist/orm}/data-types/bytea.d.ts +0 -0
- /package/{orm → dist/orm}/data-types/bytea.js +0 -0
- /package/{orm → dist/orm}/data-types/common.d.ts +0 -0
- /package/{orm → dist/orm}/data-types/common.js +0 -0
- /package/{orm → dist/orm}/data-types/index.d.ts +0 -0
- /package/{orm → dist/orm}/data-types/index.js +0 -0
- /package/{orm → dist/orm}/data-types/numeric-date.d.ts +0 -0
- /package/{orm → dist/orm}/data-types/numeric-date.js +0 -0
- /package/{orm → dist/orm}/data-types/timestamp.d.ts +0 -0
- /package/{orm → dist/orm}/data-types/timestamp.js +0 -0
- /package/{orm → dist/orm}/data-types/tsvector.d.ts +0 -0
- /package/{orm → dist/orm}/data-types/tsvector.js +0 -0
- /package/{orm → dist/orm}/decorators.d.ts +0 -0
- /package/{orm → dist/orm}/decorators.js +0 -0
- /package/{orm → dist/orm}/entity.d.ts +0 -0
- /package/{orm → dist/orm}/entity.js +0 -0
- /package/{orm → dist/orm}/index.d.ts +0 -0
- /package/{orm → dist/orm}/index.js +0 -0
- /package/{orm → dist/orm}/query/base.d.ts +0 -0
- /package/{orm → dist/orm}/query/base.js +0 -0
- /package/{orm → dist/orm}/query/index.d.ts +0 -0
- /package/{orm → dist/orm}/query/index.js +0 -0
- /package/{orm → dist/orm}/query/parade.d.ts +0 -0
- /package/{orm → dist/orm}/query/parade.js +0 -0
- /package/{orm → dist/orm}/repository.types.d.ts +0 -0
- /package/{orm → dist/orm}/repository.types.js +0 -0
- /package/{orm → dist/orm}/schemas/index.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/index.js +0 -0
- /package/{orm → dist/orm}/schemas/json.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/json.js +0 -0
- /package/{orm → dist/orm}/schemas/numeric-date.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/numeric-date.js +0 -0
- /package/{orm → dist/orm}/schemas/numeric.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/numeric.js +0 -0
- /package/{orm → dist/orm}/schemas/timestamp.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/timestamp.js +0 -0
- /package/{orm → dist/orm}/schemas/tsvector.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/tsvector.js +0 -0
- /package/{orm → dist/orm}/schemas/uuid.d.ts +0 -0
- /package/{orm → dist/orm}/schemas/uuid.js +0 -0
- /package/{orm → dist/orm}/server/database-schema.d.ts +0 -0
- /package/{orm → dist/orm}/server/database-schema.js +0 -0
- /package/{orm → dist/orm}/server/database.d.ts +0 -0
- /package/{orm → dist/orm}/server/database.js +0 -0
- /package/{orm → dist/orm}/server/drizzle/index.d.ts +0 -0
- /package/{orm → dist/orm}/server/drizzle/index.js +0 -0
- /package/{orm → dist/orm}/server/drizzle/schema-converter.d.ts +0 -0
- /package/{orm → dist/orm}/server/drizzle/schema-converter.js +0 -0
- /package/{orm → dist/orm}/server/encryption.d.ts +0 -0
- /package/{orm → dist/orm}/server/encryption.js +0 -0
- /package/{orm → dist/orm}/server/index.d.ts +0 -0
- /package/{orm → dist/orm}/server/index.js +0 -0
- /package/{orm → dist/orm}/server/module.d.ts +0 -0
- /package/{orm → dist/orm}/server/module.js +0 -0
- /package/{orm → dist/orm}/server/query-converter.d.ts +0 -0
- /package/{orm → dist/orm}/server/query-converter.js +0 -0
- /package/{orm → dist/orm}/server/repository.d.ts +0 -0
- /package/{orm → dist/orm}/server/repository.js +0 -0
- /package/{orm → dist/orm}/server/tokens.d.ts +0 -0
- /package/{orm → dist/orm}/server/tokens.js +0 -0
- /package/{orm → dist/orm}/server/transaction.d.ts +0 -0
- /package/{orm → dist/orm}/server/transaction.js +0 -0
- /package/{orm → dist/orm}/server/transactional.d.ts +0 -0
- /package/{orm → dist/orm}/server/transactional.js +0 -0
- /package/{orm → dist/orm}/server/types.d.ts +0 -0
- /package/{orm → dist/orm}/server/types.js +0 -0
- /package/{orm → dist/orm}/sqls.d.ts +0 -0
- /package/{orm → dist/orm}/sqls.js +0 -0
- /package/{orm → dist/orm}/types.d.ts +0 -0
- /package/{orm → dist/orm}/types.js +0 -0
- /package/{orm → dist/orm}/utils.d.ts +0 -0
- /package/{orm → dist/orm}/utils.js +0 -0
- /package/{password → dist/password}/have-i-been-pwned.d.ts +0 -0
- /package/{password → dist/password}/have-i-been-pwned.js +0 -0
- /package/{password → dist/password}/index.d.ts +0 -0
- /package/{password → dist/password}/index.js +0 -0
- /package/{password → dist/password}/password-check-result.model.d.ts +0 -0
- /package/{password → dist/password}/password-check-result.model.js +0 -0
- /package/{password → dist/password}/password-check.d.ts +0 -0
- /package/{password → dist/password}/password-check.js +0 -0
- /package/{password → dist/password}/password-check.localization.d.ts +0 -0
- /package/{password → dist/password}/password-check.localization.js +0 -0
- /package/{pdf → dist/pdf}/index.d.ts +0 -0
- /package/{pdf → dist/pdf}/index.js +0 -0
- /package/{pdf → dist/pdf}/pdf.service.d.ts +0 -0
- /package/{pdf → dist/pdf}/pdf.service.js +0 -0
- /package/{pdf → dist/pdf}/utils.d.ts +0 -0
- /package/{pdf → dist/pdf}/utils.js +0 -0
- /package/{polyfills.d.ts → dist/polyfills.d.ts} +0 -0
- /package/{polyfills.js → dist/polyfills.js} +0 -0
- /package/{pool → dist/pool}/index.d.ts +0 -0
- /package/{pool → dist/pool}/index.js +0 -0
- /package/{pool → dist/pool}/pool.d.ts +0 -0
- /package/{pool → dist/pool}/pool.js +0 -0
- /package/{process → dist/process}/index.d.ts +0 -0
- /package/{process → dist/process}/index.js +0 -0
- /package/{process → dist/process}/spawn.d.ts +0 -0
- /package/{process → dist/process}/spawn.js +0 -0
- /package/{promise → dist/promise}/cancelable-promise.d.ts +0 -0
- /package/{promise → dist/promise}/cancelable-promise.js +0 -0
- /package/{promise → dist/promise}/custom-promise.d.ts +0 -0
- /package/{promise → dist/promise}/custom-promise.js +0 -0
- /package/{promise → dist/promise}/deferred-promise.d.ts +0 -0
- /package/{promise → dist/promise}/deferred-promise.js +0 -0
- /package/{promise → dist/promise}/index.d.ts +0 -0
- /package/{promise → dist/promise}/index.js +0 -0
- /package/{promise → dist/promise}/lazy-promise.d.ts +0 -0
- /package/{promise → dist/promise}/lazy-promise.js +0 -0
- /package/{promise → dist/promise}/types.d.ts +0 -0
- /package/{promise → dist/promise}/types.js +0 -0
- /package/{queue → dist/queue}/enqueue-batch.d.ts +0 -0
- /package/{queue → dist/queue}/enqueue-batch.js +0 -0
- /package/{queue → dist/queue}/index.d.ts +0 -0
- /package/{queue → dist/queue}/index.js +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/0000_zippy_moondragon.sql +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/0001_certain_wild_pack.sql +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/0002_dear_meggan.sql +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/meta/0000_snapshot.json +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/meta/0001_snapshot.json +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/meta/0002_snapshot.json +0 -0
- /package/{queue → dist/queue}/postgres/drizzle/meta/_journal.json +0 -0
- /package/{queue → dist/queue}/postgres/drizzle.config.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/drizzle.config.js +0 -0
- /package/{queue → dist/queue}/postgres/index.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/index.js +0 -0
- /package/{queue → dist/queue}/postgres/job.model.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/job.model.js +0 -0
- /package/{queue → dist/queue}/postgres/module.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/module.js +0 -0
- /package/{queue → dist/queue}/postgres/queue.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/queue.js +0 -0
- /package/{queue → dist/queue}/postgres/queue.provider.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/queue.provider.js +0 -0
- /package/{queue → dist/queue}/postgres/schemas.d.ts +0 -0
- /package/{queue → dist/queue}/postgres/schemas.js +0 -0
- /package/{queue → dist/queue}/provider.d.ts +0 -0
- /package/{queue → dist/queue}/provider.js +0 -0
- /package/{queue → dist/queue}/queue.d.ts +0 -0
- /package/{queue → dist/queue}/queue.js +0 -0
- /package/{random → dist/random}/index.d.ts +0 -0
- /package/{random → dist/random}/index.js +0 -0
- /package/{random → dist/random}/number-generator/index.d.ts +0 -0
- /package/{random → dist/random}/number-generator/index.js +0 -0
- /package/{random → dist/random}/number-generator/mulberry32.d.ts +0 -0
- /package/{random → dist/random}/number-generator/mulberry32.js +0 -0
- /package/{random → dist/random}/number-generator/random-number-generator-function.d.ts +0 -0
- /package/{random → dist/random}/number-generator/random-number-generator-function.js +0 -0
- /package/{random → dist/random}/number-generator/random-number-generator.d.ts +0 -0
- /package/{random → dist/random}/number-generator/random-number-generator.js +0 -0
- /package/{random → dist/random}/number-generator/seeded-random-number-generator.d.ts +0 -0
- /package/{random → dist/random}/number-generator/seeded-random-number-generator.js +0 -0
- /package/{random → dist/random}/number-generator/sfc32.d.ts +0 -0
- /package/{random → dist/random}/number-generator/sfc32.js +0 -0
- /package/{random → dist/random}/number-generator/utils.d.ts +0 -0
- /package/{random → dist/random}/number-generator/utils.js +0 -0
- /package/{random → dist/random}/series.d.ts +0 -0
- /package/{random → dist/random}/series.js +0 -0
- /package/{reflection → dist/reflection}/decorator-data.d.ts +0 -0
- /package/{reflection → dist/reflection}/decorator-data.js +0 -0
- /package/{reflection → dist/reflection}/decorators.d.ts +0 -0
- /package/{reflection → dist/reflection}/decorators.js +0 -0
- /package/{reflection → dist/reflection}/index.d.ts +0 -0
- /package/{reflection → dist/reflection}/index.js +0 -0
- /package/{reflection → dist/reflection}/registry.d.ts +0 -0
- /package/{reflection → dist/reflection}/registry.js +0 -0
- /package/{reflection → dist/reflection}/types.d.ts +0 -0
- /package/{reflection → dist/reflection}/types.js +0 -0
- /package/{reflection → dist/reflection}/utils.d.ts +0 -0
- /package/{reflection → dist/reflection}/utils.js +0 -0
- /package/{require.d.ts → dist/require.d.ts} +0 -0
- /package/{require.js → dist/require.js} +0 -0
- /package/{rpc → dist/rpc}/adapters/index.d.ts +0 -0
- /package/{rpc → dist/rpc}/adapters/index.js +0 -0
- /package/{rpc → dist/rpc}/adapters/readable-stream.adapter.d.ts +0 -0
- /package/{rpc → dist/rpc}/adapters/readable-stream.adapter.js +0 -0
- /package/{rpc → dist/rpc}/endpoints/index.d.ts +0 -0
- /package/{rpc → dist/rpc}/endpoints/index.js +0 -0
- /package/{rpc → dist/rpc}/endpoints/message-port.rpc-endpoint.d.ts +0 -0
- /package/{rpc → dist/rpc}/endpoints/message-port.rpc-endpoint.js +0 -0
- /package/{rpc → dist/rpc}/index.d.ts +0 -0
- /package/{rpc → dist/rpc}/index.js +0 -0
- /package/{rpc → dist/rpc}/model.d.ts +0 -0
- /package/{rpc → dist/rpc}/model.js +0 -0
- /package/{rpc → dist/rpc}/rpc.adapter.d.ts +0 -0
- /package/{rpc → dist/rpc}/rpc.adapter.js +0 -0
- /package/{rpc → dist/rpc}/rpc.d.ts +0 -0
- /package/{rpc → dist/rpc}/rpc.endpoint.d.ts +0 -0
- /package/{rpc → dist/rpc}/rpc.endpoint.js +0 -0
- /package/{rpc → dist/rpc}/rpc.error.d.ts +0 -0
- /package/{rpc → dist/rpc}/rpc.error.js +0 -0
- /package/{rpc → dist/rpc}/rpc.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/cast.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/cast.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/index.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/index.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/noop.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/noop.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/reject-error.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/reject-error.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/retry-backoff.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/retry-backoff.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/slow-array.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/slow-array.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/start-with-provider.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/start-with-provider.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/teardown.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/teardown.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/timing.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/timing.js +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/untrack.d.ts +0 -0
- /package/{rxjs-utils → dist/rxjs-utils}/untrack.js +0 -0
- /package/{schema → dist/schema}/converters/index.d.ts +0 -0
- /package/{schema → dist/schema}/converters/index.js +0 -0
- /package/{schema → dist/schema}/converters/openapi-converter.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/class.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/class.js +0 -0
- /package/{schema → dist/schema}/decorators/description.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/description.js +0 -0
- /package/{schema → dist/schema}/decorators/index.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/index.js +0 -0
- /package/{schema → dist/schema}/decorators/schema.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/schema.js +0 -0
- /package/{schema → dist/schema}/decorators/types.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/types.js +0 -0
- /package/{schema → dist/schema}/decorators/utils.d.ts +0 -0
- /package/{schema → dist/schema}/decorators/utils.js +0 -0
- /package/{schema → dist/schema}/index.d.ts +0 -0
- /package/{schema → dist/schema}/index.js +0 -0
- /package/{schema → dist/schema}/schema.d.ts +0 -0
- /package/{schema → dist/schema}/schema.error.d.ts +0 -0
- /package/{schema → dist/schema}/schema.error.js +0 -0
- /package/{schema → dist/schema}/schema.js +0 -0
- /package/{schema → dist/schema}/schemas/any.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/any.js +0 -0
- /package/{schema → dist/schema}/schemas/array.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/array.js +0 -0
- /package/{schema → dist/schema}/schemas/bigint.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/bigint.js +0 -0
- /package/{schema → dist/schema}/schemas/boolean.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/boolean.js +0 -0
- /package/{schema → dist/schema}/schemas/date.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/date.js +0 -0
- /package/{schema → dist/schema}/schemas/defaulted.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/defaulted.js +0 -0
- /package/{schema → dist/schema}/schemas/deferred.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/deferred.js +0 -0
- /package/{schema → dist/schema}/schemas/enumeration.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/enumeration.js +0 -0
- /package/{schema → dist/schema}/schemas/function.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/function.js +0 -0
- /package/{schema → dist/schema}/schemas/index.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/index.js +0 -0
- /package/{schema → dist/schema}/schemas/instance.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/instance.js +0 -0
- /package/{schema → dist/schema}/schemas/literal.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/literal.js +0 -0
- /package/{schema → dist/schema}/schemas/never.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/never.js +0 -0
- /package/{schema → dist/schema}/schemas/nullable.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/nullable.js +0 -0
- /package/{schema → dist/schema}/schemas/number.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/number.js +0 -0
- /package/{schema → dist/schema}/schemas/one-or-many.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/one-or-many.js +0 -0
- /package/{schema → dist/schema}/schemas/optional.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/optional.js +0 -0
- /package/{schema → dist/schema}/schemas/readable-stream.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/readable-stream.js +0 -0
- /package/{schema → dist/schema}/schemas/regexp.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/regexp.js +0 -0
- /package/{schema → dist/schema}/schemas/simple.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/simple.js +0 -0
- /package/{schema → dist/schema}/schemas/symbol.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/symbol.js +0 -0
- /package/{schema → dist/schema}/schemas/transform.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/transform.js +0 -0
- /package/{schema → dist/schema}/schemas/uint8-array.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/uint8-array.js +0 -0
- /package/{schema → dist/schema}/schemas/union.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/union.js +0 -0
- /package/{schema → dist/schema}/schemas/unknown.d.ts +0 -0
- /package/{schema → dist/schema}/schemas/unknown.js +0 -0
- /package/{schema → dist/schema}/testable.d.ts +0 -0
- /package/{schema → dist/schema}/testable.js +0 -0
- /package/{schema → dist/schema}/types.d.ts +0 -0
- /package/{schema → dist/schema}/types.js +0 -0
- /package/{serializer → dist/serializer}/handlers/binary.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/binary.js +0 -0
- /package/{serializer → dist/serializer}/handlers/date.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/date.js +0 -0
- /package/{serializer → dist/serializer}/handlers/error.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/error.js +0 -0
- /package/{serializer → dist/serializer}/handlers/index.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/index.js +0 -0
- /package/{serializer → dist/serializer}/handlers/map.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/map.js +0 -0
- /package/{serializer → dist/serializer}/handlers/regex.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/regex.js +0 -0
- /package/{serializer → dist/serializer}/handlers/register.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/register.js +0 -0
- /package/{serializer → dist/serializer}/handlers/set.d.ts +0 -0
- /package/{serializer → dist/serializer}/handlers/set.js +0 -0
- /package/{serializer → dist/serializer}/index.d.ts +0 -0
- /package/{serializer → dist/serializer}/index.js +0 -0
- /package/{serializer → dist/serializer}/serializable.d.ts +0 -0
- /package/{serializer → dist/serializer}/serializable.js +0 -0
- /package/{serializer → dist/serializer}/serializer.d.ts +0 -0
- /package/{serializer → dist/serializer}/serializer.js +0 -0
- /package/{serializer → dist/serializer}/types.d.ts +0 -0
- /package/{serializer → dist/serializer}/types.js +0 -0
- /package/{signals → dist/signals}/api.d.ts +0 -0
- /package/{signals → dist/signals}/api.js +0 -0
- /package/{signals → dist/signals}/computed-with-dependencies.d.ts +0 -0
- /package/{signals → dist/signals}/computed-with-dependencies.js +0 -0
- /package/{signals → dist/signals}/effect-with-dependencies.d.ts +0 -0
- /package/{signals → dist/signals}/effect-with-dependencies.js +0 -0
- /package/{signals → dist/signals}/implementation/api.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/api.js +0 -0
- /package/{signals → dist/signals}/implementation/asserts.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/asserts.js +0 -0
- /package/{signals → dist/signals}/implementation/computed.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/computed.js +0 -0
- /package/{signals → dist/signals}/implementation/configure.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/configure.js +0 -0
- /package/{signals → dist/signals}/implementation/effect.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/effect.js +0 -0
- /package/{signals → dist/signals}/implementation/equality.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/equality.js +0 -0
- /package/{signals → dist/signals}/implementation/errors.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/errors.js +0 -0
- /package/{signals → dist/signals}/implementation/graph.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/graph.js +0 -0
- /package/{signals → dist/signals}/implementation/index.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/index.js +0 -0
- /package/{signals → dist/signals}/implementation/signal.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/signal.js +0 -0
- /package/{signals → dist/signals}/implementation/to-observable.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/to-observable.js +0 -0
- /package/{signals → dist/signals}/implementation/to-signal.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/to-signal.js +0 -0
- /package/{signals → dist/signals}/implementation/untracked.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/untracked.js +0 -0
- /package/{signals → dist/signals}/implementation/watch.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/watch.js +0 -0
- /package/{signals → dist/signals}/implementation/writable-signal.d.ts +0 -0
- /package/{signals → dist/signals}/implementation/writable-signal.js +0 -0
- /package/{signals → dist/signals}/index.d.ts +0 -0
- /package/{signals → dist/signals}/index.js +0 -0
- /package/{signals → dist/signals}/notifier.d.ts +0 -0
- /package/{signals → dist/signals}/notifier.js +0 -0
- /package/{signals → dist/signals}/operators/combine.d.ts +0 -0
- /package/{signals → dist/signals}/operators/combine.js +0 -0
- /package/{signals → dist/signals}/operators/defer.d.ts +0 -0
- /package/{signals → dist/signals}/operators/defer.js +0 -0
- /package/{signals → dist/signals}/operators/derive-async.d.ts +0 -0
- /package/{signals → dist/signals}/operators/derive-async.js +0 -0
- /package/{signals → dist/signals}/operators/index.d.ts +0 -0
- /package/{signals → dist/signals}/operators/index.js +0 -0
- /package/{signals → dist/signals}/operators/map.d.ts +0 -0
- /package/{signals → dist/signals}/operators/map.js +0 -0
- /package/{signals → dist/signals}/operators/switchAll.d.ts +0 -0
- /package/{signals → dist/signals}/operators/switchAll.js +0 -0
- /package/{signals → dist/signals}/pipe.d.ts +0 -0
- /package/{signals → dist/signals}/pipe.js +0 -0
- /package/{signals → dist/signals}/symbol.d.ts +0 -0
- /package/{signals → dist/signals}/symbol.js +0 -0
- /package/{signals → dist/signals}/to-lazy-signal.d.ts +0 -0
- /package/{signals → dist/signals}/to-lazy-signal.js +0 -0
- /package/{signals → dist/signals}/types.d.ts +0 -0
- /package/{signals → dist/signals}/types.js +0 -0
- /package/{signals → dist/signals}/untracked-operator.d.ts +0 -0
- /package/{signals → dist/signals}/untracked-operator.js +0 -0
- /package/{sse → dist/sse}/data-stream-source.d.ts +0 -0
- /package/{sse → dist/sse}/data-stream-source.js +0 -0
- /package/{sse → dist/sse}/data-stream.d.ts +0 -0
- /package/{sse → dist/sse}/data-stream.js +0 -0
- /package/{sse → dist/sse}/index.d.ts +0 -0
- /package/{sse → dist/sse}/index.js +0 -0
- /package/{sse → dist/sse}/model.d.ts +0 -0
- /package/{sse → dist/sse}/model.js +0 -0
- /package/{sse → dist/sse}/server-sent-events-source.d.ts +0 -0
- /package/{sse → dist/sse}/server-sent-events-source.js +0 -0
- /package/{sse → dist/sse}/server-sent-events.d.ts +0 -0
- /package/{sse → dist/sse}/server-sent-events.js +0 -0
- /package/{supports.d.ts → dist/supports.d.ts} +0 -0
- /package/{supports.js → dist/supports.js} +0 -0
- /package/{templates → dist/templates}/index.d.ts +0 -0
- /package/{templates → dist/templates}/index.js +0 -0
- /package/{templates → dist/templates}/module.d.ts +0 -0
- /package/{templates → dist/templates}/module.js +0 -0
- /package/{templates → dist/templates}/providers/file.template-provider.d.ts +0 -0
- /package/{templates → dist/templates}/providers/file.template-provider.js +0 -0
- /package/{templates → dist/templates}/providers/index.d.ts +0 -0
- /package/{templates → dist/templates}/providers/index.js +0 -0
- /package/{templates → dist/templates}/providers/memory.template-provider.d.ts +0 -0
- /package/{templates → dist/templates}/providers/memory.template-provider.js +0 -0
- /package/{templates → dist/templates}/renderers/handlebars.template-renderer.d.ts +0 -0
- /package/{templates → dist/templates}/renderers/handlebars.template-renderer.js +0 -0
- /package/{templates → dist/templates}/renderers/index.d.ts +0 -0
- /package/{templates → dist/templates}/renderers/index.js +0 -0
- /package/{templates → dist/templates}/renderers/jsx.template-renderer.d.ts +0 -0
- /package/{templates → dist/templates}/renderers/jsx.template-renderer.js +0 -0
- /package/{templates → dist/templates}/renderers/mjml.template-renderer.d.ts +0 -0
- /package/{templates → dist/templates}/renderers/mjml.template-renderer.js +0 -0
- /package/{templates → dist/templates}/renderers/string.template-renderer.d.ts +0 -0
- /package/{templates → dist/templates}/renderers/string.template-renderer.js +0 -0
- /package/{templates → dist/templates}/resolvers/file.template-resolver.d.ts +0 -0
- /package/{templates → dist/templates}/resolvers/file.template-resolver.js +0 -0
- /package/{templates → dist/templates}/resolvers/index.d.ts +0 -0
- /package/{templates → dist/templates}/resolvers/index.js +0 -0
- /package/{templates → dist/templates}/resolvers/jsx.template-resolver.d.ts +0 -0
- /package/{templates → dist/templates}/resolvers/jsx.template-resolver.js +0 -0
- /package/{templates → dist/templates}/resolvers/string.template-resolver.d.ts +0 -0
- /package/{templates → dist/templates}/resolvers/string.template-resolver.js +0 -0
- /package/{templates → dist/templates}/template-renderer.provider.d.ts +0 -0
- /package/{templates → dist/templates}/template-renderer.provider.js +0 -0
- /package/{templates → dist/templates}/template-resolver.provider.d.ts +0 -0
- /package/{templates → dist/templates}/template-resolver.provider.js +0 -0
- /package/{templates → dist/templates}/template.model.d.ts +0 -0
- /package/{templates → dist/templates}/template.model.js +0 -0
- /package/{templates → dist/templates}/template.provider.d.ts +0 -0
- /package/{templates → dist/templates}/template.provider.js +0 -0
- /package/{templates → dist/templates}/template.renderer.d.ts +0 -0
- /package/{templates → dist/templates}/template.renderer.js +0 -0
- /package/{templates → dist/templates}/template.resolver.d.ts +0 -0
- /package/{templates → dist/templates}/template.resolver.js +0 -0
- /package/{templates → dist/templates}/template.service.d.ts +0 -0
- /package/{templates → dist/templates}/template.service.js +0 -0
- /package/{templates → dist/templates}/tokens.d.ts +0 -0
- /package/{templates → dist/templates}/tokens.js +0 -0
- /package/{templates → dist/templates}/types/index.d.ts +0 -0
- /package/{templates → dist/templates}/types/index.js +0 -0
- /package/{templates → dist/templates}/types/jsx.intrinsic-elements.d.ts +0 -0
- /package/{templates → dist/templates}/types/jsx.intrinsic-elements.js +0 -0
- /package/{test → dist/test}/drizzle/0000_natural_cannonball.sql +0 -0
- /package/{test → dist/test}/drizzle/meta/0000_snapshot.json +0 -0
- /package/{test → dist/test}/drizzle/meta/_journal.json +0 -0
- /package/{test → dist/test}/drizzle.config.d.ts +0 -0
- /package/{test → dist/test}/drizzle.config.js +0 -0
- /package/{test → dist/test}/index.d.ts +0 -0
- /package/{test → dist/test}/index.js +0 -0
- /package/{test → dist/test}/module.d.ts +0 -0
- /package/{test → dist/test}/module.js +0 -0
- /package/{test → dist/test}/schemas.d.ts +0 -0
- /package/{test → dist/test}/schemas.js +0 -0
- /package/{test → dist/test}/test.model.d.ts +0 -0
- /package/{test → dist/test}/test.model.js +0 -0
- /package/{test1.d.ts → dist/test1.d.ts} +0 -0
- /package/{test2.d.ts → dist/test2.d.ts} +0 -0
- /package/{test2.js → dist/test2.js} +0 -0
- /package/{test3.d.ts → dist/test3.d.ts} +0 -0
- /package/{test3.js → dist/test3.js} +0 -0
- /package/{test4.d.ts → dist/test4.d.ts} +0 -0
- /package/{test4.js → dist/test4.js} +0 -0
- /package/{test5.d.ts → dist/test5.d.ts} +0 -0
- /package/{test5.js → dist/test5.js} +0 -0
- /package/{test6.d.ts → dist/test6.d.ts} +0 -0
- /package/{test6.js → dist/test6.js} +0 -0
- /package/{text → dist/text}/common-localization.d.ts +0 -0
- /package/{text → dist/text}/common-localization.js +0 -0
- /package/{text → dist/text}/dynamic-text.model.d.ts +0 -0
- /package/{text → dist/text}/dynamic-text.model.js +0 -0
- /package/{text → dist/text}/index.d.ts +0 -0
- /package/{text → dist/text}/index.js +0 -0
- /package/{text → dist/text}/localizable-text.model.d.ts +0 -0
- /package/{text → dist/text}/localizable-text.model.js +0 -0
- /package/{text → dist/text}/localization.service.d.ts +0 -0
- /package/{text → dist/text}/localization.service.js +0 -0
- /package/{threading → dist/threading}/index.d.ts +0 -0
- /package/{threading → dist/threading}/index.js +0 -0
- /package/{threading → dist/threading}/thread-pool.d.ts +0 -0
- /package/{threading → dist/threading}/thread-pool.js +0 -0
- /package/{threading → dist/threading}/thread-worker.d.ts +0 -0
- /package/{threading → dist/threading}/thread-worker.js +0 -0
- /package/{tokens.d.ts → dist/tokens.d.ts} +0 -0
- /package/{tokens.js → dist/tokens.js} +0 -0
- /package/{types/geo-json.js → dist/tools/fetch-mime-types.d.ts} +0 -0
- /package/{types → dist/types}/geo-json.d.ts +0 -0
- /package/{types/index.js → dist/types/geo-json.js} +0 -0
- /package/{types → dist/types}/index.d.ts +0 -0
- /package/{types/tagged.js → dist/types/index.js} +0 -0
- /package/{types → dist/types}/tagged.d.ts +0 -0
- /package/{types/web-types.js → dist/types/tagged.js} +0 -0
- /package/{types → dist/types}/types.d.ts +0 -0
- /package/{types → dist/types}/types.js +0 -0
- /package/{types → dist/types}/web-types.d.ts +0 -0
- /package/{utils/async-iterable-helpers/parallel/types.js → dist/types/web-types.js} +0 -0
- /package/{utils → dist/utils}/alphabet.d.ts +0 -0
- /package/{utils → dist/utils}/alphabet.js +0 -0
- /package/{utils → dist/utils}/any-iterable-iterator.d.ts +0 -0
- /package/{utils → dist/utils}/any-iterable-iterator.js +0 -0
- /package/{utils → dist/utils}/array/array-backtracker.d.ts +0 -0
- /package/{utils → dist/utils}/array/array-backtracker.js +0 -0
- /package/{utils → dist/utils}/array/array.d.ts +0 -0
- /package/{utils → dist/utils}/array/array.js +0 -0
- /package/{utils → dist/utils}/array/index.d.ts +0 -0
- /package/{utils → dist/utils}/array/index.js +0 -0
- /package/{utils → dist/utils}/async-hook/async-hook.d.ts +0 -0
- /package/{utils → dist/utils}/async-hook/async-hook.js +0 -0
- /package/{utils → dist/utils}/async-hook/index.d.ts +0 -0
- /package/{utils → dist/utils}/async-hook/index.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/all.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/all.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/any.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/any.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/assert.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/assert.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/batch.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/batch.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/buffer.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/buffer.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/concat.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/concat.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/default-if-empty.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/default-if-empty.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/deferred.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/deferred.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/difference.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/difference.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/distinct.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/distinct.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/drain.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/drain.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/filter.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/filter.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/first-or-default.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/first-or-default.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/first.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/first.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/for-each.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/for-each.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group-single.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group-single.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group-to-map.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group-to-map.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group-to-single-map.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group-to-single-map.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/group.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/includes.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/includes.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/index.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/index.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/interrupt.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/interrupt.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/is-async-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/is-async-iterable.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/last-or-default.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/last-or-default.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/last.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/last.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/map-many.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/map-many.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/map.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/map.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/materialize.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/materialize.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/metadata.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/metadata.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/multiplex.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/multiplex.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/observable-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/observable-iterable.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/pairwise.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/pairwise.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/feed.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/feed.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/filter.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/filter.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/for-each.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/for-each.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/group.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/group.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/index.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/index.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/map.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/map.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/tap.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/tap.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/parallel/types.d.ts +0 -0
- /package/{utils/async-iterable-helpers → dist/utils/async-iterable-helpers/parallel}/types.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/reduce.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/reduce.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/retry.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/retry.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/single-or-default.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/single-or-default.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/single.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/single.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/skip.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/skip.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/sort.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/sort.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/take-until.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/take-until.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/take-while.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/take-while.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/take.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/take.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/tap.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/tap.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/throttle.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/throttle.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-array.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-array.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-async-iterable-iterator.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-async-iterable-iterator.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-async-iterator.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-async-iterator.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-set.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-set.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-sync-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/to-sync-iterable.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/types.d.ts +0 -0
- /package/{utils/iterable-helpers → dist/utils/async-iterable-helpers}/types.js +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/while.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterable-helpers/while.js +0 -0
- /package/{utils → dist/utils}/async-iterator-iterable-iterator.d.ts +0 -0
- /package/{utils → dist/utils}/async-iterator-iterable-iterator.js +0 -0
- /package/{utils → dist/utils}/backoff.d.ts +0 -0
- /package/{utils → dist/utils}/backoff.js +0 -0
- /package/{utils → dist/utils}/base64.d.ts +0 -0
- /package/{utils → dist/utils}/base64.js +0 -0
- /package/{utils → dist/utils}/benchmark.d.ts +0 -0
- /package/{utils → dist/utils}/benchmark.js +0 -0
- /package/{utils → dist/utils}/binary-search.d.ts +0 -0
- /package/{utils → dist/utils}/binary-search.js +0 -0
- /package/{utils → dist/utils}/binary.d.ts +0 -0
- /package/{utils → dist/utils}/binary.js +0 -0
- /package/{utils → dist/utils}/clone.d.ts +0 -0
- /package/{utils → dist/utils}/clone.js +0 -0
- /package/{utils → dist/utils}/comparison.d.ts +0 -0
- /package/{utils → dist/utils}/comparison.js +0 -0
- /package/{utils → dist/utils}/compression.d.ts +0 -0
- /package/{utils → dist/utils}/compression.js +0 -0
- /package/{utils → dist/utils}/config-parser.d.ts +0 -0
- /package/{utils → dist/utils}/config-parser.js +0 -0
- /package/{utils → dist/utils}/crc32.d.ts +0 -0
- /package/{utils → dist/utils}/crc32.js +0 -0
- /package/{utils → dist/utils}/cryptography.d.ts +0 -0
- /package/{utils → dist/utils}/cryptography.js +0 -0
- /package/{utils → dist/utils}/date-time.d.ts +0 -0
- /package/{utils → dist/utils}/date-time.js +0 -0
- /package/{utils → dist/utils}/encoding.d.ts +0 -0
- /package/{utils → dist/utils}/encoding.js +0 -0
- /package/{utils → dist/utils}/enum.d.ts +0 -0
- /package/{utils → dist/utils}/enum.js +0 -0
- /package/{utils → dist/utils}/equals.d.ts +0 -0
- /package/{utils → dist/utils}/equals.js +0 -0
- /package/{utils → dist/utils}/event-loop.d.ts +0 -0
- /package/{utils → dist/utils}/event-loop.js +0 -0
- /package/{utils → dist/utils}/factory-map.d.ts +0 -0
- /package/{utils → dist/utils}/factory-map.js +0 -0
- /package/{utils → dist/utils}/feedable-async-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/feedable-async-iterable.js +0 -0
- /package/{utils → dist/utils}/file-reader.d.ts +0 -0
- /package/{utils → dist/utils}/file-reader.js +0 -0
- /package/{utils → dist/utils}/format-error.d.ts +0 -0
- /package/{utils → dist/utils}/format-error.js +0 -0
- /package/{utils → dist/utils}/format.d.ts +0 -0
- /package/{utils → dist/utils}/format.js +0 -0
- /package/{utils → dist/utils}/function/class.d.ts +0 -0
- /package/{utils → dist/utils}/function/class.js +0 -0
- /package/{utils → dist/utils}/function/index.d.ts +0 -0
- /package/{utils → dist/utils}/function/index.js +0 -0
- /package/{utils → dist/utils}/function/memoize.d.ts +0 -0
- /package/{utils → dist/utils}/function/memoize.js +0 -0
- /package/{utils → dist/utils}/function/throttle.d.ts +0 -0
- /package/{utils → dist/utils}/function/throttle.js +0 -0
- /package/{utils → dist/utils}/helpers.d.ts +0 -0
- /package/{utils → dist/utils}/helpers.js +0 -0
- /package/{utils → dist/utils}/html-link-utils.d.ts +0 -0
- /package/{utils → dist/utils}/html-link-utils.js +0 -0
- /package/{utils → dist/utils}/image.d.ts +0 -0
- /package/{utils → dist/utils}/image.js +0 -0
- /package/{utils → dist/utils}/index.d.ts +0 -0
- /package/{utils → dist/utils}/index.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/all.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/all.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/any.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/any.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/assert.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/assert.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/batch.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/batch.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/concat.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/concat.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/default-if-empty.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/default-if-empty.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/deferred.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/deferred.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/difference.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/difference.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/distinct.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/distinct.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/drain.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/drain.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/filter.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/filter.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/first-or-default.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/first-or-default.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/first.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/first.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/for-each.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/for-each.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group-single.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group-single.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group-to-map.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group-to-map.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group-to-single-map.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group-to-single-map.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/group.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/includes.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/includes.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/index.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/index.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/is-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/is-iterable.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/last-or-default.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/last-or-default.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/last.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/last.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/map-many.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/map-many.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/map.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/map.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/materialize.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/materialize.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/metadata.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/metadata.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/pairwise.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/pairwise.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/range.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/range.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/reduce.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/reduce.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/single-or-default.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/single-or-default.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/single.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/single.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/skip.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/skip.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/sort.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/sort.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/take-until.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/take-until.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/take-while.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/take-while.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/take.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/take.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/tap.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/tap.js +0 -0
- /package/{utils → dist/utils}/iterable-helpers/types.d.ts +0 -0
- /package/{utils/stream/stream-helper-types.js → dist/utils/iterable-helpers/types.js} +0 -0
- /package/{utils → dist/utils}/iterable-helpers/while.d.ts +0 -0
- /package/{utils → dist/utils}/iterable-helpers/while.js +0 -0
- /package/{utils → dist/utils}/jwt.d.ts +0 -0
- /package/{utils → dist/utils}/jwt.js +0 -0
- /package/{utils → dist/utils}/map.d.ts +0 -0
- /package/{utils → dist/utils}/map.js +0 -0
- /package/{utils → dist/utils}/math.d.ts +0 -0
- /package/{utils → dist/utils}/math.js +0 -0
- /package/{utils → dist/utils}/merge.d.ts +0 -0
- /package/{utils → dist/utils}/merge.js +0 -0
- /package/{utils → dist/utils}/middleware.d.ts +0 -0
- /package/{utils → dist/utils}/middleware.js +0 -0
- /package/{utils → dist/utils}/moving-metric.d.ts +0 -0
- /package/{utils → dist/utils}/moving-metric.js +0 -0
- /package/{utils → dist/utils}/noop.d.ts +0 -0
- /package/{utils → dist/utils}/noop.js +0 -0
- /package/{utils → dist/utils}/object/decycle.d.ts +0 -0
- /package/{utils → dist/utils}/object/decycle.js +0 -0
- /package/{utils → dist/utils}/object/dereference.d.ts +0 -0
- /package/{utils → dist/utils}/object/dereference.js +0 -0
- /package/{utils → dist/utils}/object/forward-ref.d.ts +0 -0
- /package/{utils → dist/utils}/object/forward-ref.js +0 -0
- /package/{utils → dist/utils}/object/index.d.ts +0 -0
- /package/{utils → dist/utils}/object/index.js +0 -0
- /package/{utils → dist/utils}/object/lazy-property.d.ts +0 -0
- /package/{utils → dist/utils}/object/lazy-property.js +0 -0
- /package/{utils → dist/utils}/object/merge.d.ts +0 -0
- /package/{utils → dist/utils}/object/merge.js +0 -0
- /package/{utils → dist/utils}/object/object.d.ts +0 -0
- /package/{utils → dist/utils}/object/object.js +0 -0
- /package/{utils → dist/utils}/object/property-name.d.ts +0 -0
- /package/{utils → dist/utils}/object/property-name.js +0 -0
- /package/{utils → dist/utils}/ordered-feedable-async-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/ordered-feedable-async-iterable.js +0 -0
- /package/{utils → dist/utils}/patch-worker.d.ts +0 -0
- /package/{utils → dist/utils}/patch-worker.js +0 -0
- /package/{utils → dist/utils}/patterns.d.ts +0 -0
- /package/{utils → dist/utils}/patterns.js +0 -0
- /package/{utils → dist/utils}/periodic-reporter.d.ts +0 -0
- /package/{utils → dist/utils}/periodic-reporter.js +0 -0
- /package/{utils → dist/utils}/periodic-sampler.d.ts +0 -0
- /package/{utils → dist/utils}/periodic-sampler.js +0 -0
- /package/{utils → dist/utils}/provider-function-iterable.d.ts +0 -0
- /package/{utils → dist/utils}/provider-function-iterable.js +0 -0
- /package/{utils → dist/utils}/proxy.d.ts +0 -0
- /package/{utils → dist/utils}/proxy.js +0 -0
- /package/{utils → dist/utils}/random.d.ts +0 -0
- /package/{utils → dist/utils}/random.js +0 -0
- /package/{utils → dist/utils}/reactive-value-to-signal.d.ts +0 -0
- /package/{utils → dist/utils}/reactive-value-to-signal.js +0 -0
- /package/{utils → dist/utils}/reflection.d.ts +0 -0
- /package/{utils → dist/utils}/reflection.js +0 -0
- /package/{utils → dist/utils}/repl.d.ts +0 -0
- /package/{utils → dist/utils}/repl.js +0 -0
- /package/{utils → dist/utils}/set.d.ts +0 -0
- /package/{utils → dist/utils}/set.js +0 -0
- /package/{utils → dist/utils}/singleton.d.ts +0 -0
- /package/{utils → dist/utils}/singleton.js +0 -0
- /package/{utils → dist/utils}/sort.d.ts +0 -0
- /package/{utils → dist/utils}/sort.js +0 -0
- /package/{utils → dist/utils}/stream/finalize-stream.d.ts +0 -0
- /package/{utils → dist/utils}/stream/finalize-stream.js +0 -0
- /package/{utils → dist/utils}/stream/from-promise.d.ts +0 -0
- /package/{utils → dist/utils}/stream/from-promise.js +0 -0
- /package/{utils → dist/utils}/stream/index.d.ts +0 -0
- /package/{utils → dist/utils}/stream/index.js +0 -0
- /package/{utils → dist/utils}/stream/readable-stream-adapter.d.ts +0 -0
- /package/{utils → dist/utils}/stream/readable-stream-adapter.js +0 -0
- /package/{utils → dist/utils}/stream/size-limited-stream.d.ts +0 -0
- /package/{utils → dist/utils}/stream/size-limited-stream.js +0 -0
- /package/{utils → dist/utils}/stream/slice.d.ts +0 -0
- /package/{utils → dist/utils}/stream/slice.js +0 -0
- /package/{utils → dist/utils}/stream/stream-helper-types.d.ts +0 -0
- /package/{utils → dist/utils}/stream/stream-reader.d.ts +0 -0
- /package/{utils → dist/utils}/stream/stream-reader.js +0 -0
- /package/{utils → dist/utils}/stream/to-bytes-stream.d.ts +0 -0
- /package/{utils → dist/utils}/stream/to-bytes-stream.js +0 -0
- /package/{utils → dist/utils}/stream/to-readable-stream.d.ts +0 -0
- /package/{utils → dist/utils}/stream/to-readable-stream.js +0 -0
- /package/{utils → dist/utils}/string/casing.d.ts +0 -0
- /package/{utils → dist/utils}/string/casing.js +0 -0
- /package/{utils → dist/utils}/string/hypenate.d.ts +0 -0
- /package/{utils → dist/utils}/string/hypenate.js +0 -0
- /package/{utils → dist/utils}/string/index.d.ts +0 -0
- /package/{utils → dist/utils}/string/index.js +0 -0
- /package/{utils → dist/utils}/string/normalize.d.ts +0 -0
- /package/{utils → dist/utils}/string/normalize.js +0 -0
- /package/{utils → dist/utils}/string/title-case.d.ts +0 -0
- /package/{utils → dist/utils}/string/title-case.js +0 -0
- /package/{utils → dist/utils}/string/trim.d.ts +0 -0
- /package/{utils → dist/utils}/string/trim.js +0 -0
- /package/{utils → dist/utils}/throw.d.ts +0 -0
- /package/{utils → dist/utils}/throw.js +0 -0
- /package/{utils → dist/utils}/timer.d.ts +0 -0
- /package/{utils → dist/utils}/timer.js +0 -0
- /package/{utils → dist/utils}/timing.d.ts +0 -0
- /package/{utils → dist/utils}/timing.js +0 -0
- /package/{utils → dist/utils}/try-chain.d.ts +0 -0
- /package/{utils → dist/utils}/try-chain.js +0 -0
- /package/{utils → dist/utils}/try-ignore.d.ts +0 -0
- /package/{utils → dist/utils}/try-ignore.js +0 -0
- /package/{utils → dist/utils}/type/extends.d.ts +0 -0
- /package/{utils → dist/utils}/type/extends.js +0 -0
- /package/{utils → dist/utils}/type/index.d.ts +0 -0
- /package/{utils → dist/utils}/type/index.js +0 -0
- /package/{utils → dist/utils}/type-guards.d.ts +0 -0
- /package/{utils → dist/utils}/type-guards.js +0 -0
- /package/{utils → dist/utils}/type-of.d.ts +0 -0
- /package/{utils → dist/utils}/type-of.js +0 -0
- /package/{utils → dist/utils}/units.d.ts +0 -0
- /package/{utils → dist/utils}/units.js +0 -0
- /package/{utils → dist/utils}/url-builder.d.ts +0 -0
- /package/{utils → dist/utils}/url-builder.js +0 -0
- /package/{utils → dist/utils}/value-or-provider.d.ts +0 -0
- /package/{utils → dist/utils}/value-or-provider.js +0 -0
- /package/{utils → dist/utils}/z-base32.d.ts +0 -0
- /package/{utils → dist/utils}/z-base32.js +0 -0
|
@@ -0,0 +1,1487 @@
|
|
|
1
|
+
import { and, asc, count, desc, eq, inArray, isNull as isSqlNull, isSQLWrapper, lte, or, SQL, sql, type SQLWrapper } from 'drizzle-orm';
|
|
2
|
+
import type { PgColumn, PgInsertValue, PgSelectBuilder, PgUpdateSetSource, SelectedFields } from 'drizzle-orm/pg-core';
|
|
3
|
+
import { match, P } from 'ts-pattern';
|
|
4
|
+
|
|
5
|
+
import { CancellationSignal } from '#/cancellation/token.js';
|
|
6
|
+
import { NotFoundError } from '#/errors/not-found.error.js';
|
|
7
|
+
import { Singleton } from '#/injector/decorators.js';
|
|
8
|
+
import { inject, injectArgument } from '#/injector/inject.js';
|
|
9
|
+
import { afterResolve, resolveArgumentType, type Resolvable } from '#/injector/interfaces.js';
|
|
10
|
+
import type { JsonPath } from '#/json-path/index.js';
|
|
11
|
+
import { Schema } from '#/schema/schema.js';
|
|
12
|
+
import type { DeepPartial, Function, OneOrMany, Record, SimplifyObject, Type, TypedOmit } from '#/types/index.js';
|
|
13
|
+
import { distinct, toArray } from '#/utils/array/array.js';
|
|
14
|
+
import { mapAsync } from '#/utils/async-iterable-helpers/map.js';
|
|
15
|
+
import { toArrayAsync } from '#/utils/async-iterable-helpers/to-array.js';
|
|
16
|
+
import { importSymmetricKey } from '#/utils/cryptography.js';
|
|
17
|
+
import { fromDeepObjectEntries, fromEntries, objectEntries } from '#/utils/object/object.js';
|
|
18
|
+
import { toSnakeCase } from '#/utils/string/index.js';
|
|
19
|
+
import { cancelableTimeout } from '#/utils/timing.js';
|
|
20
|
+
import { tryIgnoreAsync } from '#/utils/try-ignore.js';
|
|
21
|
+
import { assertDefined, assertDefinedPass, isArray, isBoolean, isDefined, isFunction, isInstanceOf, isString, isUndefined } from '#/utils/type-guards.js';
|
|
22
|
+
import { typeExtends } from '#/utils/type/index.js';
|
|
23
|
+
import { millisecondsPerSecond } from '#/utils/units.js';
|
|
24
|
+
import { Entity, type BaseEntity, type EntityMetadataAttributes, type EntityType } from '../entity.js';
|
|
25
|
+
import type { ParadeSearchQuery, Query, TrigramSearchQuery, TsVectorSearchQuery } from '../query/index.js';
|
|
26
|
+
import type { EntityMetadataUpdate, EntityUpdate, LoadManyOptions, LoadOptions, NewEntity, Order, ParadeDbHighlightOptions, SearchOptions, SearchResult, TargetColumn, TargetColumnPath } from '../repository.types.js';
|
|
27
|
+
import { distance, isSimilar, isStrictWordSimilar, isWordSimilar, TRANSACTION_TIMESTAMP, tsHeadline, tsRankCd, type TsHeadlineOptions } from '../sqls.js';
|
|
28
|
+
import type { Database } from './database.js';
|
|
29
|
+
import { getColumnDefinitions, getColumnDefinitionsMap, getDrizzleTableFromType } from './drizzle/schema-converter.js';
|
|
30
|
+
import { convertQuery, getTsQuery, getTsVector, resolveTargetColumn } from './query-converter.js';
|
|
31
|
+
import { ENCRYPTION_SECRET } from './tokens.js';
|
|
32
|
+
import type { PgTransaction } from './transaction.js';
|
|
33
|
+
import { getTransactionalContextData, injectTransactional, injectTransactionalAsync, isInTransactionalContext, Transactional } from './transactional.js';
|
|
34
|
+
import type { ColumnDefinition, PgTableFromType, TransformContext } from './types.js';
|
|
35
|
+
|
|
36
|
+
const searchScoreColumn = '__tsl_score';
|
|
37
|
+
const searchDistanceColumn = '__tsl_distance';
|
|
38
|
+
const searchHighlightColumn = '__tsl_highlight';
|
|
39
|
+
const searchHighlightPositionsColumn = '__tsl_highlight_positions';
|
|
40
|
+
|
|
41
|
+
export const repositoryType: unique symbol = Symbol('repositoryType');
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Configuration class for EntityRepository.
|
|
45
|
+
* Specifies the database schema to be used.
|
|
46
|
+
*/
|
|
47
|
+
export class EntityRepositoryConfig {
|
|
48
|
+
/** The name of the database schema. */
|
|
49
|
+
schema: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const entityTypeToken = Symbol('EntityType');
|
|
53
|
+
|
|
54
|
+
type EntityRepositoryContext = {
|
|
55
|
+
type: EntityType,
|
|
56
|
+
table: PgTableFromType,
|
|
57
|
+
columnDefinitions: ColumnDefinition[],
|
|
58
|
+
columnDefinitionsMap: Map<string, ColumnDefinition>,
|
|
59
|
+
encryptionSecret: Uint8Array<ArrayBuffer> | undefined,
|
|
60
|
+
transformContext: TransformContext | Promise<TransformContext> | undefined,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
type InferSelect<T extends BaseEntity = BaseEntity> = PgTableFromType<EntityType<T>>['$inferSelect'];
|
|
64
|
+
|
|
65
|
+
@Singleton()
|
|
66
|
+
export class EntityRepository<T extends BaseEntity = BaseEntity> extends Transactional<EntityRepositoryContext> implements Resolvable<EntityType<T>> {
|
|
67
|
+
readonly #context = isInTransactionalContext() ? getTransactionalContextData(this) : {} as Partial<EntityRepositoryContext>;
|
|
68
|
+
readonly #encryptionSecret = isInTransactionalContext() ? this.#context.encryptionSecret : inject(ENCRYPTION_SECRET, undefined, { optional: true });
|
|
69
|
+
readonly #cancellationSignal = isInTransactionalContext() ? undefined : inject(CancellationSignal);
|
|
70
|
+
|
|
71
|
+
#transformContext: TransformContext | Promise<TransformContext> | undefined = this.#context.transformContext;
|
|
72
|
+
|
|
73
|
+
readonly type = (this.#context.type as EntityType<T> | undefined) ?? injectArgument(this, { optional: true }) ?? assertDefinedPass((this.constructor as Record)[entityTypeToken] as EntityType<T>, 'Missing entity type.');
|
|
74
|
+
readonly typeName = this.type.entityName ?? this.type.name;
|
|
75
|
+
readonly #table = this.#context.table ?? getDrizzleTableFromType(this.type as EntityType, inject(EntityRepositoryConfig, undefined, { optional: true })?.schema);
|
|
76
|
+
readonly #tableWithMetadata = this.#table as PgTableFromType<EntityType<Entity>>;
|
|
77
|
+
readonly #columnDefinitions = this.#context.columnDefinitions ?? getColumnDefinitions(this.#table);
|
|
78
|
+
readonly #columnDefinitionsMap = this.#context.columnDefinitionsMap ?? getColumnDefinitionsMap(this.#table);
|
|
79
|
+
|
|
80
|
+
readonly #upsertManyExcludedMapping = fromEntries(
|
|
81
|
+
this.#columnDefinitions
|
|
82
|
+
.filter((column) => column.name != this.#table.id.name)
|
|
83
|
+
.map((column) => [column.name, sql`excluded.${sql.identifier(this.getColumn(column).name)}`] as const)
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
readonly hasMetadata = typeExtends(this.type, Entity);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Gets the Drizzle table definition for the entity type.
|
|
90
|
+
*/
|
|
91
|
+
get table(): PgTableFromType<EntityType<T>> {
|
|
92
|
+
return this.#table as PgTableFromType<EntityType<T>>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare readonly [resolveArgumentType]: EntityType<T>;
|
|
96
|
+
|
|
97
|
+
[afterResolve](): void {
|
|
98
|
+
if (!this.isInTransaction) {
|
|
99
|
+
void this.expirationLoop();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private async expirationLoop(): Promise<void> {
|
|
104
|
+
const expirationColumns = this.#columnDefinitions.filter((column) => isDefined(column.reflectionData?.expirationField));
|
|
105
|
+
const softExpirationColumns = expirationColumns.filter((column) => column.reflectionData!.expirationField!.mode == 'soft');
|
|
106
|
+
const hardExpirationColumns = expirationColumns.filter((column) => column.reflectionData!.expirationField!.mode == 'hard');
|
|
107
|
+
|
|
108
|
+
if ((softExpirationColumns.length + hardExpirationColumns.length) == 0) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const softDeletionQuery = or(...softExpirationColumns.map((column) => lte(sql`${this.resolveTargetColumn(column)} + INTERVAL '${sql.raw(String(column.reflectionData!.expirationField!.after))} ms'`, TRANSACTION_TIMESTAMP)));
|
|
113
|
+
const hardDeletionQuery = or(...hardExpirationColumns.map((column) => lte(sql`${this.resolveTargetColumn(column)} + INTERVAL '${sql.raw(String(column.reflectionData!.expirationField!.after))} ms'`, TRANSACTION_TIMESTAMP)));
|
|
114
|
+
|
|
115
|
+
assertDefined(this.#cancellationSignal);
|
|
116
|
+
|
|
117
|
+
while (this.#cancellationSignal.isUnset) {
|
|
118
|
+
if (isDefined(softDeletionQuery)) {
|
|
119
|
+
await tryIgnoreAsync(async () => await this.deleteManyByQuery(softDeletionQuery));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (isDefined(hardDeletionQuery)) {
|
|
123
|
+
await tryIgnoreAsync(async () => await this.hardDeleteManyByQuery(hardDeletionQuery));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
await cancelableTimeout(30 * millisecondsPerSecond, this.#cancellationSignal);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
protected override getTransactionalContextData() {
|
|
131
|
+
const context: EntityRepositoryContext = {
|
|
132
|
+
type: this.type,
|
|
133
|
+
table: this.#table,
|
|
134
|
+
columnDefinitions: this.#columnDefinitions,
|
|
135
|
+
columnDefinitionsMap: this.#columnDefinitionsMap,
|
|
136
|
+
encryptionSecret: this.#encryptionSecret,
|
|
137
|
+
transformContext: this.#transformContext,
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
return context;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
protected async tsVectorSearch(options: SearchOptions<T> & { query: TsVectorSearchQuery<T> }): Promise<SearchResult<T>[]> {
|
|
144
|
+
const { query: { $tsvector: tsvectorOptions }, score: scoreOption = true, rank, highlight, filter } = options;
|
|
145
|
+
const { fields, query, language = 'simple', parser = 'raw' } = tsvectorOptions;
|
|
146
|
+
|
|
147
|
+
const fieldsArray = isArray(fields) ? fields : [fields];
|
|
148
|
+
|
|
149
|
+
const convertedFields = fieldsArray.map((target) => {
|
|
150
|
+
const [field, weight] = isArray(target) ? target : [target, undefined];
|
|
151
|
+
const sqlField = resolveTargetColumn(field, this.#table, this.#columnDefinitionsMap);
|
|
152
|
+
|
|
153
|
+
return isDefined(weight) ? [sqlField, weight] as const : sqlField;
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
const languageSql = isString(language) ? language : sql`${language}`;
|
|
157
|
+
const tsquery = getTsQuery(query, languageSql, parser);
|
|
158
|
+
const tsvector = getTsVector(convertedFields, languageSql);
|
|
159
|
+
const rawScore = (scoreOption != false) ? tsRankCd(tsvector, tsquery, isBoolean(rank) ? undefined : rank) : undefined;
|
|
160
|
+
const score = (isFunction(scoreOption) ? scoreOption(rawScore!) : rawScore)?.as(searchScoreColumn);
|
|
161
|
+
const vectorClause = sql`${tsvector} @@ ${tsquery}`;
|
|
162
|
+
|
|
163
|
+
const selection = fromEntries(this.#columnDefinitions.map((column) => [column.name, this.resolveTargetColumn(column)])) as Record<string, SQL | SQL.Aliased>;
|
|
164
|
+
|
|
165
|
+
if (isDefined(score)) {
|
|
166
|
+
selection[searchScoreColumn] = score;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (isDefined(highlight)) {
|
|
170
|
+
const { source, ...headlineOptions } = (isString(highlight) || isInstanceOf(highlight, SQL))
|
|
171
|
+
? { source: highlight }
|
|
172
|
+
: highlight;
|
|
173
|
+
|
|
174
|
+
const document = match(source)
|
|
175
|
+
.with(P.instanceOf(SQL), (s) => s as SQL)
|
|
176
|
+
.otherwise((paths) => {
|
|
177
|
+
const columns = this.getColumns(paths);
|
|
178
|
+
return sql.join(columns, sql` || ' ' || `);
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
selection[searchHighlightColumn] = tsHeadline(languageSql, document, tsquery, (headlineOptions as TsHeadlineOptions)).as(searchHighlightColumn);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const whereClause = isDefined(filter)
|
|
185
|
+
? and(this.convertQuery(filter), vectorClause)!
|
|
186
|
+
: vectorClause;
|
|
187
|
+
|
|
188
|
+
let dbQuery = this
|
|
189
|
+
.applySelect(this.session, selection, options.distinct)
|
|
190
|
+
.from(this.#table)
|
|
191
|
+
.where(whereClause)
|
|
192
|
+
.$dynamic();
|
|
193
|
+
|
|
194
|
+
if (isDefined(options.offset)) {
|
|
195
|
+
dbQuery = dbQuery.offset(options.offset);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (isDefined(options.limit)) {
|
|
199
|
+
dbQuery = dbQuery.limit(options.limit);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const orderByExpressions: (PgColumn | SQL | SQL.Aliased)[] = [];
|
|
203
|
+
|
|
204
|
+
if (isDefined(options.order)) {
|
|
205
|
+
const order = isFunction(options.order)
|
|
206
|
+
? options.order({
|
|
207
|
+
get score() {
|
|
208
|
+
return assertDefinedPass(score, 'Score is disabled.');
|
|
209
|
+
},
|
|
210
|
+
})
|
|
211
|
+
: options.order;
|
|
212
|
+
|
|
213
|
+
orderByExpressions.push(...this.convertOrderBy(order));
|
|
214
|
+
}
|
|
215
|
+
else if (isDefined(score)) {
|
|
216
|
+
orderByExpressions.push(desc(score));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
dbQuery = dbQuery.orderBy(...orderByExpressions);
|
|
220
|
+
|
|
221
|
+
const rows = await dbQuery;
|
|
222
|
+
return await this._mapSearchResults(rows);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
protected async trigramSearch(options: SearchOptions<T> & { query: TrigramSearchQuery<T> }): Promise<SearchResult<T>[]> {
|
|
226
|
+
const { query: { $trigram: trigramOptions }, rank, filter } = options;
|
|
227
|
+
const { fields, query, type = 'phrase', threshold } = trigramOptions;
|
|
228
|
+
|
|
229
|
+
const convertedFields = toArray(fields).map((target) => resolveTargetColumn(target, this.#table, this.#columnDefinitionsMap));
|
|
230
|
+
const searchExpression = sql`(${sql.join(convertedFields, sql` || ' ' || `)})`;
|
|
231
|
+
|
|
232
|
+
// TODO: set similarity_threshold, word_similarity_threshold, strict_word_similarity_threshold
|
|
233
|
+
|
|
234
|
+
const trigramClause = isDefined(threshold)
|
|
235
|
+
? match(type)
|
|
236
|
+
.with('phrase', () => isSimilar(query, searchExpression))
|
|
237
|
+
.with('word', () => isWordSimilar(query, searchExpression))
|
|
238
|
+
.with('strict-word', () => isStrictWordSimilar(query, searchExpression))
|
|
239
|
+
.exhaustive()
|
|
240
|
+
: isSimilar(query, searchExpression);
|
|
241
|
+
|
|
242
|
+
const distanceColumn = distance(query, searchExpression).as(searchDistanceColumn);
|
|
243
|
+
const score = sql<number>`1 - ${distance(query, searchExpression)}`.as(searchScoreColumn);
|
|
244
|
+
|
|
245
|
+
const selection = fromEntries(this.#columnDefinitions.map((column) => [column.name, this.resolveTargetColumn(column)])) as Record<string, SQL | SQL.Aliased>;
|
|
246
|
+
selection[searchDistanceColumn] = distanceColumn;
|
|
247
|
+
selection[searchScoreColumn] = score;
|
|
248
|
+
|
|
249
|
+
const whereClause = isDefined(filter)
|
|
250
|
+
? and(this.convertQuery(filter), trigramClause)!
|
|
251
|
+
: trigramClause;
|
|
252
|
+
|
|
253
|
+
let dbQuery = this
|
|
254
|
+
.applySelect(this.session, selection, options.distinct)
|
|
255
|
+
.from(this.#table)
|
|
256
|
+
.where(whereClause)
|
|
257
|
+
.$dynamic();
|
|
258
|
+
|
|
259
|
+
if (isDefined(options.offset)) {
|
|
260
|
+
dbQuery = dbQuery.offset(options.offset);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (isDefined(options.limit)) {
|
|
264
|
+
dbQuery = dbQuery.limit(options.limit);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const orderByExpressions: (PgColumn | SQL | SQL.Aliased)[] = [];
|
|
268
|
+
|
|
269
|
+
if (isDefined(options.order)) {
|
|
270
|
+
const order = isFunction(options.order) ? options.order({ score }) : options.order;
|
|
271
|
+
orderByExpressions.push(...this.convertOrderBy(order));
|
|
272
|
+
}
|
|
273
|
+
else if (rank != false) {
|
|
274
|
+
orderByExpressions.push(distanceColumn); // order by distance ascending
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
dbQuery = dbQuery.orderBy(...orderByExpressions);
|
|
278
|
+
|
|
279
|
+
const rows = await dbQuery;
|
|
280
|
+
return await this._mapSearchResults(rows, (rawDistance) => 1 - (rawDistance as number));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
protected async paradeDbSearch(options: SimplifyObject<TypedOmit<SearchOptions<T>, 'query'> & { query: ParadeSearchQuery<T> }>): Promise<SearchResult<T>[]> {
|
|
284
|
+
const { query, score: scoreOption = true, highlight, filter } = options;
|
|
285
|
+
const keyField = this.#table.id;
|
|
286
|
+
|
|
287
|
+
const paradeNativeQuery = this.convertQuery(query as Query<T>);
|
|
288
|
+
const selection = fromEntries(this.#columnDefinitions.map((column) => [column.name, this.resolveTargetColumn(column)])) as Record<string, SQL | SQL.Aliased>;
|
|
289
|
+
|
|
290
|
+
let score: SQL.Aliased<number> | undefined;
|
|
291
|
+
if (scoreOption) {
|
|
292
|
+
const rawScore = sql<number>`pdb.score(${keyField})`;
|
|
293
|
+
score = (isFunction(scoreOption) ? scoreOption(rawScore) : rawScore).as(searchScoreColumn);
|
|
294
|
+
selection[searchScoreColumn] = score;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (isDefined(highlight)) {
|
|
298
|
+
const { source, includePositions, ...highlightOptionsAny } = (isString(highlight) || isInstanceOf(highlight, SQL))
|
|
299
|
+
? { source: highlight }
|
|
300
|
+
: highlight;
|
|
301
|
+
|
|
302
|
+
const highlightOptions = highlightOptionsAny as ParadeDbHighlightOptions;
|
|
303
|
+
|
|
304
|
+
const sourceSql = isInstanceOf(source, SQL) ? source : sql`${this.resolveTargetColumn(source)}`;
|
|
305
|
+
|
|
306
|
+
const functionName = (highlightOptions.multiple == true) ? 'snippets' : 'snippet';
|
|
307
|
+
const highlightParts = objectEntries(highlightOptions)
|
|
308
|
+
.filter(([key, value]) => (key != 'multiple') && isDefined(value))
|
|
309
|
+
.map(([key, value]) => sql`${sql.raw(toSnakeCase(key))} => ${sql`${value}`}`);
|
|
310
|
+
|
|
311
|
+
const snippetParameters = sql.join([sourceSql, ...highlightParts], sql.raw(', '));
|
|
312
|
+
const highlightSql = sql`pdb.${sql.raw(functionName)}(${snippetParameters})`;
|
|
313
|
+
selection[searchHighlightColumn] = highlightSql.as(searchHighlightColumn);
|
|
314
|
+
|
|
315
|
+
if (includePositions == true) {
|
|
316
|
+
selection[searchHighlightPositionsColumn] = sql`array_to_json(pdb.snippet_positions(${sourceSql}))`.as(searchHighlightPositionsColumn);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const whereClause = isDefined(filter)
|
|
321
|
+
? and(this.convertQuery(filter), paradeNativeQuery)!
|
|
322
|
+
: paradeNativeQuery;
|
|
323
|
+
|
|
324
|
+
let dbQuery = this
|
|
325
|
+
.applySelect(this.session, selection, options.distinct)
|
|
326
|
+
.from(this.#table)
|
|
327
|
+
.where(whereClause)
|
|
328
|
+
.$dynamic();
|
|
329
|
+
|
|
330
|
+
if (isDefined(options.offset)) {
|
|
331
|
+
dbQuery = dbQuery.offset(options.offset);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (isDefined(options.limit)) {
|
|
335
|
+
dbQuery = dbQuery.limit(options.limit);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
const orderByExpressions: (PgColumn | SQL | SQL.Aliased)[] = [];
|
|
339
|
+
|
|
340
|
+
if (isDefined(options.order)) {
|
|
341
|
+
const order = isFunction(options.order)
|
|
342
|
+
? options.order({
|
|
343
|
+
get score() {
|
|
344
|
+
return assertDefinedPass(score, 'Score is not enabled.');
|
|
345
|
+
},
|
|
346
|
+
})
|
|
347
|
+
: options.order;
|
|
348
|
+
|
|
349
|
+
orderByExpressions.push(...this.convertOrderBy(order));
|
|
350
|
+
}
|
|
351
|
+
else if (isDefined(score)) {
|
|
352
|
+
orderByExpressions.push(desc(score));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
dbQuery = dbQuery.orderBy(...orderByExpressions);
|
|
356
|
+
|
|
357
|
+
const rows = await dbQuery;
|
|
358
|
+
return await this._mapSearchResults(rows);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Performs a full-text search and returns entities ranked by relevance.
|
|
363
|
+
* This method dispatches to the appropriate search implementation based on the `method` option.
|
|
364
|
+
* @param options Search options including method, query text, ranking, and highlighting configuration.
|
|
365
|
+
* @returns A promise that resolves to an array of search results, including the entity, score, and optional highlight.
|
|
366
|
+
*/
|
|
367
|
+
async search(options: SearchOptions<T>): Promise<SearchResult<T>[]> {
|
|
368
|
+
return await match(options.query)
|
|
369
|
+
.with({ $tsvector: P.any }, async () => await this.tsVectorSearch(options as SearchOptions<T> & { query: TsVectorSearchQuery<T> }))
|
|
370
|
+
.with({ $trigram: P.any }, async () => await this.trigramSearch(options as SearchOptions<T> & { query: TrigramSearchQuery<T> }))
|
|
371
|
+
.with({ $parade: P.any }, async () => await this.paradeDbSearch(options as SearchOptions<T> & { query: ParadeSearchQuery<T> }))
|
|
372
|
+
.exhaustive();
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Loads a single entity by its ID.
|
|
377
|
+
* Throws `NotFoundError` if the entity is not found.
|
|
378
|
+
* @param id The ID of the entity to load.
|
|
379
|
+
* @returns A promise that resolves to the loaded entity.
|
|
380
|
+
* @throws {NotFoundError} If the entity with the given ID is not found.
|
|
381
|
+
*/
|
|
382
|
+
async load(id: string): Promise<T> {
|
|
383
|
+
const entity = await this.tryLoad(id);
|
|
384
|
+
|
|
385
|
+
if (isUndefined(entity)) {
|
|
386
|
+
throw new NotFoundError(`${this.typeName} ${id} not found.`);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return entity;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Tries to load a single entity by its ID.
|
|
394
|
+
* Returns `undefined` if the entity is not found.
|
|
395
|
+
* @param id The ID of the entity to load.
|
|
396
|
+
* @returns A promise that resolves to the loaded entity or `undefined` if not found.
|
|
397
|
+
*/
|
|
398
|
+
async tryLoad(id: string): Promise<T | undefined> {
|
|
399
|
+
return await this.tryLoadByQuery(eq(this.#table.id, id));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Loads a single entity based on a query.
|
|
404
|
+
* Throws `NotFoundError` if no entity matches the query.
|
|
405
|
+
* @param query The query to filter entities.
|
|
406
|
+
* @param options Optional loading options (e.g., offset, order).
|
|
407
|
+
* @returns A promise that resolves to the loaded entity.
|
|
408
|
+
* @throws {NotFoundError} If no entity matches the query.
|
|
409
|
+
*/
|
|
410
|
+
async loadByQuery(query: Query<T>, options?: LoadOptions<T>): Promise<T> {
|
|
411
|
+
const entity = await this.tryLoadByQuery(query, options);
|
|
412
|
+
|
|
413
|
+
if (isUndefined(entity)) {
|
|
414
|
+
throw new NotFoundError(`${this.typeName} not found.`);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
return entity;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Tries to load a single entity based on a query.
|
|
422
|
+
* Returns `undefined` if no entity matches the query.
|
|
423
|
+
* @param query The query to filter entities.
|
|
424
|
+
* @param options Optional loading options (e.g., offset, order).
|
|
425
|
+
* @returns A promise that resolves to the loaded entity or `undefined` if not found.
|
|
426
|
+
*/
|
|
427
|
+
async tryLoadByQuery(query: Query<T>, options?: LoadOptions<T>): Promise<T | undefined> {
|
|
428
|
+
const sqlQuery = this.convertQuery(query);
|
|
429
|
+
|
|
430
|
+
let dbQuery = this.session.select()
|
|
431
|
+
.from(this.#table)
|
|
432
|
+
.where(sqlQuery)
|
|
433
|
+
.limit(1)
|
|
434
|
+
.$dynamic();
|
|
435
|
+
|
|
436
|
+
if (isDefined(options?.offset)) {
|
|
437
|
+
dbQuery = dbQuery.offset(options.offset);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
if (isDefined(options?.order)) {
|
|
441
|
+
dbQuery = dbQuery.orderBy(...this.convertOrderBy(options.order));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
const [row] = await dbQuery;
|
|
445
|
+
|
|
446
|
+
if (isUndefined(row)) {
|
|
447
|
+
return undefined;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
return await this.mapToEntity(row);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Loads multiple entities by their IDs.
|
|
455
|
+
* @param ids An array of entity IDs to load.
|
|
456
|
+
* @param options Optional loading options (e.g., offset, limit, order).
|
|
457
|
+
* @returns A promise that resolves to an array of loaded entities.
|
|
458
|
+
*/
|
|
459
|
+
async loadMany(ids: string[], options?: LoadManyOptions<T>): Promise<T[]> {
|
|
460
|
+
if (ids.length === 0) {
|
|
461
|
+
return [];
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return await this.loadManyByQuery(inArray(this.#table.id, ids), options);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Loads multiple entities by their IDs and returns them as an async iterable cursor.
|
|
469
|
+
* @param ids An array of entity IDs to load.
|
|
470
|
+
* @param options Optional loading options (e.g., offset, limit, order).
|
|
471
|
+
* @returns An async iterable iterator of loaded entities.
|
|
472
|
+
*/
|
|
473
|
+
async *loadManyCursor(ids: string[], options?: LoadManyOptions<T>): AsyncIterableIterator<T> {
|
|
474
|
+
const entities = await this.loadMany(ids, options);
|
|
475
|
+
yield* entities;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Loads multiple entities based on a query.
|
|
480
|
+
* @param query The query to filter entities.
|
|
481
|
+
* @param options Optional loading options (e.g., offset, limit, order).
|
|
482
|
+
* @returns A promise that resolves to an array of loaded entities.
|
|
483
|
+
*/
|
|
484
|
+
async loadManyByQuery(query: Query<T>, options?: LoadManyOptions<T>): Promise<T[]> {
|
|
485
|
+
const sqlQuery = this.convertQuery(query);
|
|
486
|
+
|
|
487
|
+
let dbQuery = this.applySelect(this.session, options?.distinct)
|
|
488
|
+
.from(this.#table)
|
|
489
|
+
.where(sqlQuery)
|
|
490
|
+
.$dynamic();
|
|
491
|
+
|
|
492
|
+
if (isDefined(options?.offset)) {
|
|
493
|
+
dbQuery = dbQuery.offset(options.offset);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
if (isDefined(options?.limit)) {
|
|
497
|
+
dbQuery = dbQuery.limit(options.limit);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
if (isDefined(options?.order)) {
|
|
501
|
+
dbQuery = dbQuery.orderBy(...this.convertOrderBy(options.order));
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
const rows = await dbQuery;
|
|
505
|
+
|
|
506
|
+
return await this.mapManyToEntity(rows);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Loads multiple entities based on a query and returns them as an async iterable cursor.
|
|
511
|
+
* @param query The query to filter entities.
|
|
512
|
+
* @param options Optional loading options (e.g., offset, limit, order).
|
|
513
|
+
* @returns An async iterable iterator of loaded entities.
|
|
514
|
+
*/
|
|
515
|
+
async *loadManyByQueryCursor(query: Query<T>, options?: LoadManyOptions<T>): AsyncIterableIterator<T> {
|
|
516
|
+
const entities = await this.loadManyByQuery(query, options);
|
|
517
|
+
yield* entities;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Loads all entities of the repository's type.
|
|
522
|
+
* @param options Optional loading options (e.g., offset, limit, order).
|
|
523
|
+
* @returns A promise that resolves to an array of all entities.
|
|
524
|
+
*/
|
|
525
|
+
async loadAll(options?: LoadManyOptions<T>): Promise<T[]> {
|
|
526
|
+
return await this.loadManyByQuery({}, options);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Loads all entities of the repository's type and returns them as an async iterable cursor.
|
|
531
|
+
* @param options Optional loading options (e.g., offset, limit, order).
|
|
532
|
+
* @returns An async iterable iterator of all entities.
|
|
533
|
+
*/
|
|
534
|
+
async *loadAllCursor(options?: LoadManyOptions<T>): AsyncIterableIterator<T> {
|
|
535
|
+
const entities = await this.loadAll(options);
|
|
536
|
+
yield* entities;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Counts the total number of entities of the repository's type.
|
|
541
|
+
* @returns A promise that resolves to the total count.
|
|
542
|
+
*/
|
|
543
|
+
async count(): Promise<number> {
|
|
544
|
+
const dbQuery = this.session
|
|
545
|
+
.select({ count: count() })
|
|
546
|
+
.from(this.#table);
|
|
547
|
+
|
|
548
|
+
const [result] = await dbQuery;
|
|
549
|
+
return assertDefinedPass(result).count;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Counts the number of entities matching a query.
|
|
554
|
+
* @param query The query to filter entities.
|
|
555
|
+
* @returns A promise that resolves to the count of matching entities.
|
|
556
|
+
*/
|
|
557
|
+
async countByQuery(query: Query<T>): Promise<number> {
|
|
558
|
+
const sqlQuery = this.convertQuery(query);
|
|
559
|
+
|
|
560
|
+
const dbQuery = this.session
|
|
561
|
+
.select({ count: count() })
|
|
562
|
+
.from(this.#table)
|
|
563
|
+
.where(sqlQuery);
|
|
564
|
+
|
|
565
|
+
const [result] = await dbQuery;
|
|
566
|
+
return assertDefinedPass(result).count;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Checks if an entity with the given ID exists.
|
|
571
|
+
* @param id The ID of the entity to check.
|
|
572
|
+
* @returns A promise that resolves to `true` if the entity exists, `false` otherwise.
|
|
573
|
+
*/
|
|
574
|
+
async has(id: string): Promise<boolean> {
|
|
575
|
+
return await this.hasByQuery(eq(this.#table.id, id));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Checks if any entity matches the given query.
|
|
580
|
+
* @param query The query to filter entities.
|
|
581
|
+
* @returns A promise that resolves to `true` if at least one entity matches the query, `false` otherwise.
|
|
582
|
+
*/
|
|
583
|
+
async hasByQuery(query: Query<T>): Promise<boolean> {
|
|
584
|
+
const sqlQuery = this.convertQuery(query);
|
|
585
|
+
|
|
586
|
+
const result = await this.session.execute<{ exists: boolean }>(sql<boolean>`SELECT EXISTS(SELECT 1 FROM ${this.#table} WHERE ${sqlQuery}) AS exists`);
|
|
587
|
+
|
|
588
|
+
console.log(result);
|
|
589
|
+
throw new Error('handle result');
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Checks if all entities with the given IDs exist.
|
|
594
|
+
* @param ids An array of entity IDs to check.
|
|
595
|
+
* @returns A promise that resolves to `true` if all entities exist, `false` otherwise. If `ids` is empty, returns `false`.
|
|
596
|
+
*/
|
|
597
|
+
async hasAll(ids: string[]): Promise<boolean> {
|
|
598
|
+
const uniqueIds = distinct(ids);
|
|
599
|
+
|
|
600
|
+
if (uniqueIds.length === 0) {
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
const result = await this.session
|
|
605
|
+
.select({ count: count() })
|
|
606
|
+
.from(this.#table)
|
|
607
|
+
.where(inArray(this.#table.id, uniqueIds));
|
|
608
|
+
|
|
609
|
+
const foundCount = result[0]?.count ?? 0;
|
|
610
|
+
return foundCount == uniqueIds.length;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Tries to insert using ON CONFLICT DO NOTHING
|
|
615
|
+
* @param entity entity to insert
|
|
616
|
+
* @returns entity if inserted, undefined on conflict
|
|
617
|
+
*/
|
|
618
|
+
async tryInsert(entity: NewEntity<T>): Promise<T | undefined> {
|
|
619
|
+
const columns = await this.mapToInsertColumns(entity);
|
|
620
|
+
|
|
621
|
+
const [row] = await this.session
|
|
622
|
+
.insert(this.#table)
|
|
623
|
+
.values(columns)
|
|
624
|
+
.onConflictDoNothing()
|
|
625
|
+
.returning();
|
|
626
|
+
|
|
627
|
+
if (isUndefined(row)) {
|
|
628
|
+
return undefined;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
return await this.mapToEntity(row);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Inserts a new entity into the database.
|
|
636
|
+
* @param entity The entity to insert.
|
|
637
|
+
* @returns A promise that resolves to the inserted entity.
|
|
638
|
+
*/
|
|
639
|
+
async insert(entity: NewEntity<T>): Promise<T> {
|
|
640
|
+
const columns = await this.mapToInsertColumns(entity);
|
|
641
|
+
|
|
642
|
+
const [row] = await this.session
|
|
643
|
+
.insert(this.#table)
|
|
644
|
+
.values(columns)
|
|
645
|
+
.returning();
|
|
646
|
+
|
|
647
|
+
return await this.mapToEntity(row!);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Inserts multiple new entities into the database.
|
|
652
|
+
* @param entities An array of entities to insert.
|
|
653
|
+
* @returns A promise that resolves to an array of the inserted entities.
|
|
654
|
+
*/
|
|
655
|
+
async insertMany(entities: NewEntity<T>[]): Promise<T[]> {
|
|
656
|
+
if (entities.length === 0) {
|
|
657
|
+
return [];
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
const columns = await this.mapManyToInsertColumns(entities);
|
|
661
|
+
const rows = await this.session.insert(this.#table).values(columns).returning();
|
|
662
|
+
|
|
663
|
+
return await this.mapManyToEntity(rows);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Inserts an entity if it does not already exist based on the target columns.
|
|
668
|
+
* @param target The column(s) to use for conflict detection.
|
|
669
|
+
* @param entity The entity to insert.
|
|
670
|
+
* @returns A promise that resolves to the inserted or existing entity.
|
|
671
|
+
*/
|
|
672
|
+
async insertIfNotExists(target: OneOrMany<TargetColumnPath<T>>, entity: NewEntity<T>): Promise<T | undefined> {
|
|
673
|
+
const targetColumns = toArray(target).map((path) => this.getColumn(path));
|
|
674
|
+
const columns = await this.mapToInsertColumns(entity);
|
|
675
|
+
|
|
676
|
+
const [row] = await this.session
|
|
677
|
+
.insert(this.#table)
|
|
678
|
+
.values(columns)
|
|
679
|
+
.onConflictDoNothing({ target: targetColumns })
|
|
680
|
+
.returning();
|
|
681
|
+
|
|
682
|
+
if (isUndefined(row)) {
|
|
683
|
+
return undefined;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
return await this.mapToEntity(row);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Inserts many entities if they do not already exist based on the target columns.
|
|
691
|
+
* @param target The column(s) to use for conflict detection.
|
|
692
|
+
* @param entities The entities to insert.
|
|
693
|
+
* @returns A promise that resolves to the inserted or existing entities.
|
|
694
|
+
*/
|
|
695
|
+
async insertManyIfNotExists(target: OneOrMany<TargetColumnPath<T>>, entities: NewEntity<T>[]): Promise<T[]> {
|
|
696
|
+
if (entities.length === 0) {
|
|
697
|
+
return [];
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
const targetColumns = toArray(target).map((path) => this.getColumn(path));
|
|
701
|
+
const columns = await this.mapManyToInsertColumns(entities);
|
|
702
|
+
|
|
703
|
+
const rows = await this.session
|
|
704
|
+
.insert(this.#table)
|
|
705
|
+
.values(columns)
|
|
706
|
+
.onConflictDoNothing({ target: targetColumns })
|
|
707
|
+
.returning();
|
|
708
|
+
|
|
709
|
+
return await this.mapManyToEntity(rows);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Inserts an entity or updates it if a conflict occurs based on the target columns.
|
|
714
|
+
* @param target The column(s) to use for conflict detection.
|
|
715
|
+
* @param entity The entity to insert.
|
|
716
|
+
* @param update Optional update to apply if a conflict occurs. Defaults to the inserted entity's values.
|
|
717
|
+
* @returns A promise that resolves to the inserted or updated entity.
|
|
718
|
+
*/
|
|
719
|
+
async upsert(target: OneOrMany<TargetColumnPath<T>>, entity: NewEntity<T>, update?: EntityUpdate<T>): Promise<T> {
|
|
720
|
+
const targetColumns = toArray(target).map((path) => this.getColumn(path));
|
|
721
|
+
|
|
722
|
+
const columns = await this.mapToInsertColumns(entity);
|
|
723
|
+
const mappedUpdate = await this.mapUpdate(update ?? (entity as EntityUpdate<T>));
|
|
724
|
+
|
|
725
|
+
const [row] = await this.session
|
|
726
|
+
.insert(this.#table)
|
|
727
|
+
.values(columns)
|
|
728
|
+
.onConflictDoUpdate({
|
|
729
|
+
target: targetColumns,
|
|
730
|
+
set: mappedUpdate,
|
|
731
|
+
})
|
|
732
|
+
.returning();
|
|
733
|
+
|
|
734
|
+
return await this.mapToEntity(row!);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Inserts multiple entities or updates them if a conflict occurs based on the target columns.
|
|
739
|
+
* @param target The column(s) to use for conflict detection.
|
|
740
|
+
* @param entities An array of entities to insert.
|
|
741
|
+
* @param update Optional update to apply if a conflict occurs. Defaults to the inserted entity's values.
|
|
742
|
+
* @returns A promise that resolves to an array of the inserted or updated entities.
|
|
743
|
+
*/
|
|
744
|
+
async upsertMany(target: OneOrMany<TargetColumnPath<T>>, entities: NewEntity<T>[], update?: EntityUpdate<T>): Promise<T[]> {
|
|
745
|
+
if (entities.length === 0) {
|
|
746
|
+
return [];
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
const targetColumns = toArray(target).map((path) => this.getColumn(path));
|
|
750
|
+
|
|
751
|
+
const columns = await this.mapManyToInsertColumns(entities);
|
|
752
|
+
const mappedUpdate = isDefined(update)
|
|
753
|
+
? await this.mapUpdate(update)
|
|
754
|
+
: {
|
|
755
|
+
...this.#upsertManyExcludedMapping,
|
|
756
|
+
...this._getMetadataUpdate(update),
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
const rows = await this.session
|
|
760
|
+
.insert(this.#table)
|
|
761
|
+
.values(columns)
|
|
762
|
+
.onConflictDoUpdate({
|
|
763
|
+
target: targetColumns,
|
|
764
|
+
set: mappedUpdate,
|
|
765
|
+
})
|
|
766
|
+
.returning();
|
|
767
|
+
|
|
768
|
+
return await this.mapManyToEntity(rows);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Updates an entity by its ID.
|
|
773
|
+
* Throws `NotFoundError` if the entity is not found.
|
|
774
|
+
* @param id The ID of the entity to update.
|
|
775
|
+
* @param update The update to apply to the entity.
|
|
776
|
+
* @returns A promise that resolves to the updated entity.
|
|
777
|
+
* @throws {NotFoundError} If the entity with the given ID is not found.
|
|
778
|
+
*/
|
|
779
|
+
async update(id: string, update: EntityUpdate<T>): Promise<T> {
|
|
780
|
+
const entity = await this.tryUpdate(id, update);
|
|
781
|
+
|
|
782
|
+
if (isUndefined(entity)) {
|
|
783
|
+
throw new NotFoundError(`${this.typeName} ${id} not found.`);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return entity;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Tries to update an entity by its ID.
|
|
791
|
+
* Returns `undefined` if the entity is not found.
|
|
792
|
+
* @param id The ID of the entity to update.
|
|
793
|
+
* @param update The update to apply to the entity.
|
|
794
|
+
* @returns A promise that resolves to the updated entity or `undefined` if not found.
|
|
795
|
+
*/
|
|
796
|
+
async tryUpdate(id: string, update: EntityUpdate<T>): Promise<T | undefined> {
|
|
797
|
+
const sqlQuery = this.convertQuery(eq(this.#table.id, id));
|
|
798
|
+
const mappedUpdate = await this.mapUpdate(update);
|
|
799
|
+
|
|
800
|
+
const [row] = await this.session
|
|
801
|
+
.update(this.#table)
|
|
802
|
+
.set(mappedUpdate)
|
|
803
|
+
.where(sqlQuery)
|
|
804
|
+
.returning();
|
|
805
|
+
|
|
806
|
+
if (isUndefined(row)) {
|
|
807
|
+
return undefined;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return await this.mapToEntity(row);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Updates a single entity matching a query.
|
|
815
|
+
* Throws `NotFoundError` if no entity matches the query.
|
|
816
|
+
* @param query The query to filter entities.
|
|
817
|
+
* @param update The update to apply to the entity.
|
|
818
|
+
* @returns A promise that resolves to the updated entity.
|
|
819
|
+
* @throws {NotFoundError} If no entity matches the query.
|
|
820
|
+
*/
|
|
821
|
+
async updateByQuery(query: Query<T>, update: EntityUpdate<T>): Promise<T> {
|
|
822
|
+
const entity = await this.tryUpdateByQuery(query, update);
|
|
823
|
+
|
|
824
|
+
if (isUndefined(entity)) {
|
|
825
|
+
throw new NotFoundError(`${this.typeName} not found.`);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
return entity;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Tries to update a single entity matching a query.
|
|
833
|
+
* Returns `undefined` if no entity matches the query.
|
|
834
|
+
* @param query The query to filter entities.
|
|
835
|
+
* @param update The update to apply to the entity.
|
|
836
|
+
* @returns A promise that resolves to the updated entity or `undefined` if not found.
|
|
837
|
+
*/
|
|
838
|
+
async tryUpdateByQuery(query: Query<T>, update: EntityUpdate<T>): Promise<T | undefined> {
|
|
839
|
+
const mappedUpdate = await this.mapUpdate(update);
|
|
840
|
+
const idQuery = this.getIdLimitQuery(query).for('update');
|
|
841
|
+
|
|
842
|
+
const [row] = await this.session
|
|
843
|
+
.update(this.#table)
|
|
844
|
+
.set(mappedUpdate)
|
|
845
|
+
.where(inArray(this.#table.id, idQuery))
|
|
846
|
+
.returning();
|
|
847
|
+
|
|
848
|
+
if (isUndefined(row)) {
|
|
849
|
+
return undefined;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
return await this.mapToEntity(row);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Updates multiple entities by their IDs.
|
|
857
|
+
* @param ids An array of entity IDs to update.
|
|
858
|
+
* @param update The update to apply to the entities.
|
|
859
|
+
* @returns A promise that resolves to an array of the updated entities.
|
|
860
|
+
*/
|
|
861
|
+
async updateMany(ids: string[], update: EntityUpdate<T>): Promise<T[]> {
|
|
862
|
+
if (ids.length === 0) {
|
|
863
|
+
return [];
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
return await this.updateManyByQuery(inArray(this.#table.id, ids), update);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Updates multiple entities matching a query.
|
|
871
|
+
* @param query The query to filter entities.
|
|
872
|
+
* @param update The update to apply to the entities.
|
|
873
|
+
* @returns A promise that resolves to an array of the updated entities.
|
|
874
|
+
*/
|
|
875
|
+
async updateManyByQuery(query: Query<T>, update: EntityUpdate<T>): Promise<T[]> {
|
|
876
|
+
const sqlQuery = this.convertQuery(query);
|
|
877
|
+
const mappedUpdate = await this.mapUpdate(update);
|
|
878
|
+
|
|
879
|
+
const rows = await this.session
|
|
880
|
+
.update(this.#table)
|
|
881
|
+
.set(mappedUpdate)
|
|
882
|
+
.where(sqlQuery)
|
|
883
|
+
.returning();
|
|
884
|
+
|
|
885
|
+
return await this.mapManyToEntity(rows);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Deletes an entity by its ID (soft delete if metadata is available).
|
|
890
|
+
* Throws `NotFoundError` if the entity is not found.
|
|
891
|
+
* @param id The ID of the entity to delete.
|
|
892
|
+
* @param metadataUpdate Optional metadata update to apply during soft delete.
|
|
893
|
+
* @returns A promise that resolves to the deleted entity.
|
|
894
|
+
* @throws {NotFoundError} If the entity with the given ID is not found.
|
|
895
|
+
*/
|
|
896
|
+
async delete(id: string, metadataUpdate?: EntityMetadataUpdate): Promise<T> {
|
|
897
|
+
const entity = await this.tryDelete(id, metadataUpdate);
|
|
898
|
+
|
|
899
|
+
if (isUndefined(entity)) {
|
|
900
|
+
throw new NotFoundError(`${this.typeName} ${id} not found.`);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
return entity;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Tries to delete an entity by its ID (soft delete if metadata is available).
|
|
908
|
+
* Returns `undefined` if the entity is not found.
|
|
909
|
+
* @param id The ID of the entity to delete.
|
|
910
|
+
* @param metadataUpdate Optional metadata update to apply during soft delete.
|
|
911
|
+
* @returns A promise that resolves to the deleted entity or `undefined` if not found.
|
|
912
|
+
*/
|
|
913
|
+
async tryDelete(id: string, metadataUpdate?: EntityMetadataUpdate): Promise<T | undefined> {
|
|
914
|
+
if (!this.hasMetadata) {
|
|
915
|
+
return await this.tryHardDelete(id);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
const sqlQuery = and(
|
|
919
|
+
isSqlNull(this.#tableWithMetadata.deleteTimestamp),
|
|
920
|
+
this.convertQuery(eq(this.#table.id, id)),
|
|
921
|
+
);
|
|
922
|
+
|
|
923
|
+
const [row] = await this.session
|
|
924
|
+
.update(this.#tableWithMetadata)
|
|
925
|
+
.set({
|
|
926
|
+
deleteTimestamp: TRANSACTION_TIMESTAMP,
|
|
927
|
+
attributes: this.getAttributesUpdate(metadataUpdate?.attributes),
|
|
928
|
+
})
|
|
929
|
+
.where(sqlQuery)
|
|
930
|
+
.returning();
|
|
931
|
+
|
|
932
|
+
if (isUndefined(row)) {
|
|
933
|
+
return undefined;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
return await this.mapToEntity(row);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Deletes a single entity matching a query (soft delete if metadata is available).
|
|
941
|
+
* Throws `NotFoundError` if no entity matches the query.
|
|
942
|
+
* @param query The query to filter entities.
|
|
943
|
+
* @param metadataUpdate Optional metadata update to apply during soft delete.
|
|
944
|
+
* @returns A promise that resolves to the deleted entity.
|
|
945
|
+
* @throws {NotFoundError} If no entity matches the query.
|
|
946
|
+
*/
|
|
947
|
+
async deleteByQuery(query: Query<T>, metadataUpdate?: EntityMetadataUpdate): Promise<T> {
|
|
948
|
+
const entity = await this.tryDeleteByQuery(query, metadataUpdate);
|
|
949
|
+
|
|
950
|
+
if (isUndefined(entity)) {
|
|
951
|
+
throw new NotFoundError(`${this.typeName} not found.`);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
return entity;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Tries to delete a single entity matching a query (soft delete if metadata is available).
|
|
959
|
+
* Returns `undefined` if no entity matches the query.
|
|
960
|
+
* @param query The query to filter entities.
|
|
961
|
+
* @param metadataUpdate Optional metadata update to apply during soft delete.
|
|
962
|
+
* @returns A promise that resolves to the deleted entity or `undefined` if not found.
|
|
963
|
+
*/
|
|
964
|
+
async tryDeleteByQuery(query: Query<T>, metadataUpdate?: EntityMetadataUpdate): Promise<T | undefined> {
|
|
965
|
+
if (!this.hasMetadata) {
|
|
966
|
+
return await this.tryHardDeleteByQuery(query);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
const idQuery = this.getIdLimitQuery(query).for('update');
|
|
970
|
+
|
|
971
|
+
const sqlQuery = and(
|
|
972
|
+
isSqlNull(this.#tableWithMetadata.deleteTimestamp),
|
|
973
|
+
inArray(this.#table.id, idQuery)
|
|
974
|
+
);
|
|
975
|
+
|
|
976
|
+
const [row] = await this.session
|
|
977
|
+
.update(this.#tableWithMetadata)
|
|
978
|
+
.set({
|
|
979
|
+
deleteTimestamp: TRANSACTION_TIMESTAMP,
|
|
980
|
+
attributes: this.getAttributesUpdate(metadataUpdate?.attributes),
|
|
981
|
+
})
|
|
982
|
+
.where(sqlQuery)
|
|
983
|
+
.returning();
|
|
984
|
+
|
|
985
|
+
if (isUndefined(row)) {
|
|
986
|
+
return undefined;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
return await this.mapToEntity(row);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Deletes multiple entities by their IDs (soft delete if metadata is available).
|
|
994
|
+
* @param ids An array of entity IDs to delete.
|
|
995
|
+
* @param metadataUpdate Optional metadata update to apply during soft delete.
|
|
996
|
+
* @returns A promise that resolves to an array of the deleted entities.
|
|
997
|
+
*/
|
|
998
|
+
async deleteMany(ids: string[], metadataUpdate?: EntityMetadataUpdate): Promise<T[]> {
|
|
999
|
+
if (ids.length === 0) {
|
|
1000
|
+
return [];
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
return await this.deleteManyByQuery(inArray(this.#table.id, ids), metadataUpdate);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Deletes multiple entities matching a query (soft delete if metadata is available). Already deleted entities are ignored.
|
|
1008
|
+
* @param query The query to filter entities.
|
|
1009
|
+
* @param metadataUpdate Optional metadata update to apply during soft delete.
|
|
1010
|
+
* @returns A promise that resolves to an array of the deleted entities.
|
|
1011
|
+
*/
|
|
1012
|
+
async deleteManyByQuery(query: Query<T>, metadataUpdate?: EntityMetadataUpdate): Promise<T[]> {
|
|
1013
|
+
if (!this.hasMetadata) {
|
|
1014
|
+
return await this.hardDeleteManyByQuery(query);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
const sqlQuery = and(
|
|
1018
|
+
isSqlNull(this.#tableWithMetadata.deleteTimestamp),
|
|
1019
|
+
this.convertQuery(query)
|
|
1020
|
+
);
|
|
1021
|
+
|
|
1022
|
+
const rows = await this.session
|
|
1023
|
+
.update(this.#tableWithMetadata)
|
|
1024
|
+
.set({
|
|
1025
|
+
deleteTimestamp: TRANSACTION_TIMESTAMP,
|
|
1026
|
+
attributes: this.getAttributesUpdate(metadataUpdate?.attributes),
|
|
1027
|
+
})
|
|
1028
|
+
.where(sqlQuery)
|
|
1029
|
+
.returning();
|
|
1030
|
+
|
|
1031
|
+
return await this.mapManyToEntity(rows);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Hard deletes an entity by its ID (removes from the database).
|
|
1036
|
+
* Throws `NotFoundError` if the entity is not found.
|
|
1037
|
+
* @param id The ID of the entity to hard delete.
|
|
1038
|
+
* @returns A promise that resolves to the hard deleted entity.
|
|
1039
|
+
* @throws {NotFoundError} If the entity with the given ID is not found.
|
|
1040
|
+
*/
|
|
1041
|
+
async hardDelete(id: string): Promise<T> {
|
|
1042
|
+
const result = await this.tryHardDelete(id);
|
|
1043
|
+
|
|
1044
|
+
if (!result) {
|
|
1045
|
+
throw new NotFoundError(`${this.typeName} ${id} not found.`);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
return result;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Tries to hard delete an entity by its ID (removes from the database).
|
|
1053
|
+
* Returns `undefined` if the entity is not found.
|
|
1054
|
+
* @param id The ID of the entity to hard delete.
|
|
1055
|
+
* @returns A promise that resolves to the hard deleted entity or `undefined` if not found.
|
|
1056
|
+
*/
|
|
1057
|
+
async tryHardDelete(id: string): Promise<T | undefined> {
|
|
1058
|
+
const sqlQuery = this.convertQuery(eq(this.#table.id, id));
|
|
1059
|
+
|
|
1060
|
+
const [row] = await this.session
|
|
1061
|
+
.delete(this.#table)
|
|
1062
|
+
.where(sqlQuery)
|
|
1063
|
+
.returning();
|
|
1064
|
+
|
|
1065
|
+
if (isUndefined(row)) {
|
|
1066
|
+
return undefined;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
return await this.mapToEntity(row);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Hard deletes a single entity matching a query (removes from the database).
|
|
1074
|
+
* Throws `NotFoundError` if no entity matches the query.
|
|
1075
|
+
* @param query The query to filter entities.
|
|
1076
|
+
* @returns A promise that resolves to the hard deleted entity.
|
|
1077
|
+
* @throws {NotFoundError} If no entity matches the query.
|
|
1078
|
+
*/
|
|
1079
|
+
async hardDeleteByQuery(query: Query<T>): Promise<T> {
|
|
1080
|
+
const result = await this.tryHardDeleteByQuery(query);
|
|
1081
|
+
|
|
1082
|
+
if (!result) {
|
|
1083
|
+
throw new NotFoundError(`${this.typeName} not found.`);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
return result;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Tries to hard delete a single entity matching a query (removes from the database).
|
|
1091
|
+
* Returns `undefined` if no entity matches the query.
|
|
1092
|
+
* @param query The query to filter entities.
|
|
1093
|
+
* @returns A promise that resolves to the hard deleted entity or `undefined` if not found.
|
|
1094
|
+
*/
|
|
1095
|
+
async tryHardDeleteByQuery(query: Query<T>): Promise<T | undefined> {
|
|
1096
|
+
const idQuery = this.getIdLimitQuery(query).for('update');
|
|
1097
|
+
const sqlQuery = inArray(this.#table.id, idQuery);
|
|
1098
|
+
|
|
1099
|
+
const [row] = await this.session
|
|
1100
|
+
.delete(this.#table)
|
|
1101
|
+
.where(sqlQuery)
|
|
1102
|
+
.returning();
|
|
1103
|
+
|
|
1104
|
+
if (isUndefined(row)) {
|
|
1105
|
+
return undefined;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
return await this.mapToEntity(row);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Hard deletes multiple entities by their IDs (removes from the database).
|
|
1113
|
+
* @param ids An array of entity IDs to hard delete.
|
|
1114
|
+
* @returns A promise that resolves to an array of the hard deleted entities.
|
|
1115
|
+
*/
|
|
1116
|
+
async hardDeleteMany(ids: string[]): Promise<T[]> {
|
|
1117
|
+
if (ids.length === 0) {
|
|
1118
|
+
return [];
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
return await this.hardDeleteManyByQuery(inArray(this.#table.id, ids));
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Hard deletes multiple entities matching a query (removes from the database).
|
|
1126
|
+
* @param query The query to filter entities.
|
|
1127
|
+
* @returns A promise that resolves to an array of the hard deleted entities.
|
|
1128
|
+
*/
|
|
1129
|
+
async hardDeleteManyByQuery(query: Query<T>): Promise<T[]> {
|
|
1130
|
+
const sqlQuery = this.convertQuery(query);
|
|
1131
|
+
|
|
1132
|
+
const rows = await this.session
|
|
1133
|
+
.delete(this.#table)
|
|
1134
|
+
.where(sqlQuery)
|
|
1135
|
+
.returning();
|
|
1136
|
+
|
|
1137
|
+
return await this.mapManyToEntity(rows);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Resolves a target column from an object path or column definition to a Drizzle SQL wrapper.
|
|
1142
|
+
* @param target The object path or column definition.
|
|
1143
|
+
*/
|
|
1144
|
+
resolveTargetColumn(target: TargetColumn<T> | ColumnDefinition): SQLWrapper {
|
|
1145
|
+
return resolveTargetColumn(target, this.#table, this.#columnDefinitionsMap);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Resolves multiple target columns from object paths or column definitions to Drizzle SQL wrappers.
|
|
1150
|
+
* @param targets The object paths or column definitions.
|
|
1151
|
+
*/
|
|
1152
|
+
resolveTargetColumns(targets: readonly (TargetColumn<T> | ColumnDefinition)[]): SQLWrapper[] {
|
|
1153
|
+
return targets.map((target) => this.resolveTargetColumn(target));
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* Retrieves the Drizzle PgColumn for a given object path or column definition.
|
|
1158
|
+
* @param pathOrColumn The object path or column definition.
|
|
1159
|
+
* @returns The corresponding PgColumn.
|
|
1160
|
+
*/
|
|
1161
|
+
getColumn(pathOrColumn: TargetColumnPath<T> | ColumnDefinition): PgColumn {
|
|
1162
|
+
return this.resolveTargetColumn(pathOrColumn) as PgColumn;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
getColumns(pathOrColumns: readonly (TargetColumnPath<T> | ColumnDefinition)[]): PgColumn[] {
|
|
1166
|
+
return pathOrColumns.map((column) => this.getColumn(column));
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Converts an Order object to an array of Drizzle SQL order expressions.
|
|
1171
|
+
* @param order The order object.
|
|
1172
|
+
* @returns An array of SQL order expressions.
|
|
1173
|
+
*/
|
|
1174
|
+
convertOrderBy(order: Order<T>): SQL[] {
|
|
1175
|
+
if (isArray(order)) {
|
|
1176
|
+
return order.map((item) => {
|
|
1177
|
+
const [target, direction = 'asc'] = isArray(item) ? item : [item];
|
|
1178
|
+
const column = this.resolveTargetColumn(target);
|
|
1179
|
+
|
|
1180
|
+
return direction == 'asc' ? asc(column) : desc(column);
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
if (isSQLWrapper(order) || (order instanceof SQL) || (order instanceof SQL.Aliased)) {
|
|
1185
|
+
return [asc(order)];
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
if (isString(order)) {
|
|
1189
|
+
const column = this.resolveTargetColumn(order);
|
|
1190
|
+
return [asc(column)];
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
return objectEntries(order).map(([path, direction]) => {
|
|
1194
|
+
const column = this.resolveTargetColumn(path);
|
|
1195
|
+
return direction == 'asc' ? asc(column) : desc(column);
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Converts a Query object to a Drizzle SQL where clause.
|
|
1201
|
+
* Automatically filters out soft-deleted entities unless `withDeleted` is true.
|
|
1202
|
+
* @param query The query object.
|
|
1203
|
+
* @param options Optional options, including `withDeleted` to include soft-deleted entities.
|
|
1204
|
+
* @returns A Drizzle SQL condition.
|
|
1205
|
+
*/
|
|
1206
|
+
convertQuery(query: Query<T>, options?: { withDeleted?: boolean }): SQL {
|
|
1207
|
+
let sql = convertQuery(query, this.#table, this.#columnDefinitionsMap);
|
|
1208
|
+
|
|
1209
|
+
if (!this.hasMetadata || (options?.withDeleted == true)) {
|
|
1210
|
+
return sql;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
return and(isSqlNull(this.#tableWithMetadata.deleteTimestamp), sql)!;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Maps multiple database rows to an array of entities.
|
|
1218
|
+
* @param columns An array of database rows.
|
|
1219
|
+
* @returns A promise that resolves to an array of entities.
|
|
1220
|
+
*/
|
|
1221
|
+
async mapManyToEntity(columns: InferSelect[]): Promise<T[]> {
|
|
1222
|
+
const transformContext = await this.getTransformContext();
|
|
1223
|
+
return await this._mapManyToEntity(columns as any as InferSelect[], transformContext);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Maps a single database row to an entity.
|
|
1228
|
+
* @param columns A database row.
|
|
1229
|
+
* @returns A promise that resolves to an entity.
|
|
1230
|
+
*/
|
|
1231
|
+
async mapToEntity(columns: InferSelect): Promise<T> {
|
|
1232
|
+
const transformContext = await this.getTransformContext();
|
|
1233
|
+
return await this._mapToEntity(columns as any as InferSelect, transformContext);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Maps multiple entity-like objects to database column values for insertion or update.
|
|
1238
|
+
* @param objects An array of entity-like objects.
|
|
1239
|
+
* @returns A promise that resolves to an array of database column values.
|
|
1240
|
+
*/
|
|
1241
|
+
async mapManyToColumns(objects: (DeepPartial<T> | NewEntity<T>)[]): Promise<PgInsertValue<PgTableFromType>[]> {
|
|
1242
|
+
const transformContext = await this.getTransformContext();
|
|
1243
|
+
return await this._mapManyToColumns(objects, transformContext);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Maps a single entity-like object to database column values for insertion or update.
|
|
1248
|
+
* @param obj An entity-like object.
|
|
1249
|
+
* @returns A promise that resolves to database column values.
|
|
1250
|
+
*/
|
|
1251
|
+
async mapToColumns(obj: DeepPartial<T> | NewEntity<T>): Promise<PgInsertValue<PgTableFromType>> {
|
|
1252
|
+
const transformContext = await this.getTransformContext();
|
|
1253
|
+
return await this._mapToColumns(obj, transformContext);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Maps multiple new entity objects to database column values for insertion.
|
|
1258
|
+
* @param objects An array of new entity objects.
|
|
1259
|
+
* @returns A promise that resolves to an array of database column values for insertion.
|
|
1260
|
+
*/
|
|
1261
|
+
async mapManyToInsertColumns(objects: (DeepPartial<T> | NewEntity<T>)[]): Promise<PgInsertValue<PgTableFromType>[]> {
|
|
1262
|
+
const transformContext = await this.getTransformContext();
|
|
1263
|
+
return await this._mapManyToInsertColumns(objects, transformContext);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Maps a new entity object to database column values for insertion.
|
|
1268
|
+
* @param obj A new entity object.
|
|
1269
|
+
* @returns A promise that resolves to database column values for insertion.
|
|
1270
|
+
*/
|
|
1271
|
+
async mapToInsertColumns(obj: DeepPartial<T> | NewEntity<T>): Promise<PgInsertValue<PgTableFromType>> {
|
|
1272
|
+
const transformContext = await this.getTransformContext();
|
|
1273
|
+
return await this._mapToInsertColumns(obj, transformContext);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Maps an entity update object to database column values for updating.
|
|
1278
|
+
* @param update The entity update object.
|
|
1279
|
+
* @returns A promise that resolves to database column values for updating.
|
|
1280
|
+
*/
|
|
1281
|
+
async mapUpdate(update: EntityUpdate<T>): Promise<PgUpdateSetSource<PgTableFromType>> {
|
|
1282
|
+
const transformContext = await this.getTransformContext();
|
|
1283
|
+
return await this._mapUpdate(update, transformContext);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Gets a Drizzle select query for the ID of a single entity matching the provided query, limited to 1 result.
|
|
1288
|
+
* Useful for subqueries in update/delete operations targeting a single entity.
|
|
1289
|
+
* @param query The query to filter entities.
|
|
1290
|
+
* @returns A Drizzle select query for the entity ID.
|
|
1291
|
+
*/
|
|
1292
|
+
getIdLimitQuery(query: Query<T>) {
|
|
1293
|
+
const sqlQuery = this.convertQuery(query);
|
|
1294
|
+
|
|
1295
|
+
return this.session.select({ id: this.#table.id })
|
|
1296
|
+
.from(this.#table)
|
|
1297
|
+
.where(sqlQuery)
|
|
1298
|
+
.limit(1);
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
applySelect<TApplyTo extends Record<'select' | 'selectDistinct' | 'selectDistinctOn', Function<any[], PgSelectBuilder<any, any>>>>(applyTo: TApplyTo, distinct?: boolean | TargetColumn<T>[]): PgSelectBuilder<undefined, ReturnType<TApplyTo['selectDistinct']> extends PgSelectBuilder<any, infer TResult> ? TResult : never>;
|
|
1302
|
+
applySelect<TApplyTo extends Record<'select' | 'selectDistinct' | 'selectDistinctOn', Function<any[], PgSelectBuilder<any, any>>>, TSelection extends SelectedFields>(applyTo: TApplyTo, selection: TSelection, distinct?: boolean | TargetColumn<T>[]): PgSelectBuilder<TSelection, ReturnType<TApplyTo['selectDistinct']> extends PgSelectBuilder<any, infer TResult> ? TResult : never>;
|
|
1303
|
+
applySelect<TApplyTo extends Record<'select' | 'selectDistinct' | 'selectDistinctOn', Function<any[], PgSelectBuilder<any, any>>>, TSelection extends SelectedFields>(applyTo: TApplyTo, selectionOrDistinct?: TSelection | boolean | TargetColumn<T>[], distinctOrNothing?: boolean | TargetColumn<T>[]): PgSelectBuilder<undefined, ReturnType<TApplyTo['selectDistinct']> extends PgSelectBuilder<any, infer TResult> ? TResult : never> | PgSelectBuilder<TSelection, ReturnType<TApplyTo['selectDistinct']> extends PgSelectBuilder<any, infer TResult> ? TResult : never> {
|
|
1304
|
+
const firstParameterIsDistinct = isBoolean(selectionOrDistinct) || isArray(selectionOrDistinct);
|
|
1305
|
+
const selection = firstParameterIsDistinct ? undefined : selectionOrDistinct;
|
|
1306
|
+
const distinct = firstParameterIsDistinct ? selectionOrDistinct : distinctOrNothing;
|
|
1307
|
+
|
|
1308
|
+
const selectBuilder = match(distinct ?? false)
|
|
1309
|
+
.with(false, () => applyTo.select(selection!))
|
|
1310
|
+
.with(true, () => applyTo.selectDistinct(selection!))
|
|
1311
|
+
.otherwise((targets) => {
|
|
1312
|
+
const ons = targets.map((target) => resolveTargetColumn(target, this.#table, this.#columnDefinitionsMap));
|
|
1313
|
+
return applyTo.selectDistinctOn(ons, selection!);
|
|
1314
|
+
});
|
|
1315
|
+
|
|
1316
|
+
return selectBuilder as PgSelectBuilder<undefined, ReturnType<TApplyTo['selectDistinct']> extends PgSelectBuilder<any, infer TResult> ? TResult : never> | PgSelectBuilder<TSelection, ReturnType<TApplyTo['selectDistinct']> extends PgSelectBuilder<any, infer TResult> ? TResult : never>;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
protected getAttributesUpdate(attributes: SQL | EntityMetadataAttributes | undefined) {
|
|
1320
|
+
if (isUndefined(attributes)) {
|
|
1321
|
+
return undefined;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
if (attributes instanceof SQL) {
|
|
1325
|
+
return attributes;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
return sql`${this.#tableWithMetadata.attributes} || ${JSON.stringify(attributes)}::jsonb`;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
protected async _mapManyToEntity(columns: InferSelect[], transformContext: TransformContext): Promise<T[]> {
|
|
1332
|
+
return await toArrayAsync(mapAsync(columns, async (column) => await this._mapToEntity(column, transformContext)));
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
protected async _mapToEntity(columns: InferSelect, transformContext: TransformContext): Promise<T> {
|
|
1336
|
+
const entries: [JsonPath, InferSelect[keyof InferSelect]][] = [];
|
|
1337
|
+
|
|
1338
|
+
for (const def of this.#columnDefinitions) {
|
|
1339
|
+
const rawValue = columns[def.name as keyof InferSelect];
|
|
1340
|
+
const transformed = await def.fromDatabase(rawValue, transformContext);
|
|
1341
|
+
|
|
1342
|
+
entries.push([def.objectPath, transformed] as const); // eslint-disable-line @typescript-eslint/no-unsafe-argument
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
const obj = fromDeepObjectEntries(entries);
|
|
1346
|
+
return Schema.parse(this.type, obj);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
protected async _mapManyToColumns(objects: (DeepPartial<T> | NewEntity<T>)[], transformContext: TransformContext): Promise<PgInsertValue<PgTableFromType>[]> {
|
|
1350
|
+
return await toArrayAsync(mapAsync(objects, async (obj) => await this._mapToColumns(obj, transformContext)));
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
protected async _mapToColumns(obj: DeepPartial<T> | NewEntity<T>, transformContext: TransformContext): Promise<PgInsertValue<PgTableFromType>> {
|
|
1354
|
+
const columns: Record = {};
|
|
1355
|
+
|
|
1356
|
+
for (const def of this.#columnDefinitions) {
|
|
1357
|
+
const rawValue = def.dereferenceObjectPath(obj as Record);
|
|
1358
|
+
columns[def.name] = await def.toDatabase(rawValue, transformContext);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
return columns as PgInsertValue<PgTableFromType>;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
protected async _mapManyToInsertColumns(objects: (DeepPartial<T> | NewEntity<T>)[], transformContext: TransformContext): Promise<PgInsertValue<PgTableFromType>[]> {
|
|
1365
|
+
return await toArrayAsync(mapAsync(objects, async (obj) => await this._mapToInsertColumns(obj, transformContext)));
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
protected async _mapToInsertColumns(obj: DeepPartial<T> | NewEntity<T>, transformContext: TransformContext): Promise<PgInsertValue<PgTableFromType>> {
|
|
1369
|
+
const mapped = await this._mapToColumns(obj, transformContext);
|
|
1370
|
+
|
|
1371
|
+
return {
|
|
1372
|
+
...mapped,
|
|
1373
|
+
...(
|
|
1374
|
+
this.hasMetadata
|
|
1375
|
+
? {
|
|
1376
|
+
revision: 1,
|
|
1377
|
+
revisionTimestamp: TRANSACTION_TIMESTAMP,
|
|
1378
|
+
createTimestamp: TRANSACTION_TIMESTAMP,
|
|
1379
|
+
} satisfies PgUpdateSetSource<PgTableFromType<EntityType<Entity>>>
|
|
1380
|
+
: undefined
|
|
1381
|
+
),
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
protected async _mapUpdate(update: EntityUpdate<T>, transformContext: TransformContext): Promise<PgUpdateSetSource<PgTableFromType>> {
|
|
1386
|
+
const mappedUpdate: PgUpdateSetSource<PgTableFromType> = {};
|
|
1387
|
+
|
|
1388
|
+
for (const column of this.#columnDefinitions) {
|
|
1389
|
+
const value = column.dereferenceObjectPath(update as EntityUpdate<Entity>);
|
|
1390
|
+
|
|
1391
|
+
if (isUndefined(value)) {
|
|
1392
|
+
continue;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
mappedUpdate[column.name as keyof PgUpdateSetSource<PgTableFromType>] = await column.toDatabase(value, transformContext);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
return {
|
|
1399
|
+
...mappedUpdate,
|
|
1400
|
+
...this._getMetadataUpdate(update),
|
|
1401
|
+
|
|
1402
|
+
} satisfies PgUpdateSetSource<PgTableFromType>;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
protected _getMetadataUpdate(update?: EntityUpdate<T>): PgUpdateSetSource<PgTableFromType<EntityType<Entity>>> | undefined {
|
|
1406
|
+
return this.hasMetadata
|
|
1407
|
+
? {
|
|
1408
|
+
attributes: this.getAttributesUpdate((update as EntityUpdate<Entity> | undefined)?.metadata?.attributes),
|
|
1409
|
+
revision: sql<number>`${this.#tableWithMetadata.revision} + 1`,
|
|
1410
|
+
revisionTimestamp: TRANSACTION_TIMESTAMP,
|
|
1411
|
+
} satisfies PgUpdateSetSource<PgTableFromType<EntityType<Entity>>>
|
|
1412
|
+
: undefined;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
protected async getTransformContext(): Promise<TransformContext> {
|
|
1416
|
+
if (isUndefined(this.#transformContext)) {
|
|
1417
|
+
if (isUndefined(this.#encryptionSecret)) {
|
|
1418
|
+
this.#transformContext = {};
|
|
1419
|
+
return this.#transformContext;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
this.#transformContext = importSymmetricKey('AES-GCM', 256, this.#encryptionSecret, false).then((encryptionKey) => ({ encryptionKey }));
|
|
1423
|
+
|
|
1424
|
+
const transformContext = await this.#transformContext;
|
|
1425
|
+
this.#transformContext = transformContext;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
return await this.#transformContext;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
protected async _mapSearchResults(rows: Record[], scoreTransformer: (rawScore: any) => number | undefined = (s) => s as number | undefined): Promise<SearchResult<T>[]> {
|
|
1432
|
+
const transformContext = await this.getTransformContext();
|
|
1433
|
+
|
|
1434
|
+
return await toArrayAsync(
|
|
1435
|
+
mapAsync(rows, async (row) => {
|
|
1436
|
+
const { [searchScoreColumn]: rawScore, [searchHighlightColumn]: highlight, [searchHighlightPositionsColumn]: highlightPositions, ...entityRow } = row as Record<string>;
|
|
1437
|
+
|
|
1438
|
+
return {
|
|
1439
|
+
entity: await this._mapToEntity(entityRow as InferSelect, transformContext),
|
|
1440
|
+
score: scoreTransformer(rawScore),
|
|
1441
|
+
highlight: highlight as string | string[] | undefined,
|
|
1442
|
+
highlightPositions,
|
|
1443
|
+
};
|
|
1444
|
+
}),
|
|
1445
|
+
);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Injects an EntityRepository instance for the specified entity type.
|
|
1451
|
+
* @template T The entity type.
|
|
1452
|
+
* @param type The entity type.
|
|
1453
|
+
* @returns An EntityRepository instance for the specified type.
|
|
1454
|
+
*/
|
|
1455
|
+
export function injectRepository<T extends BaseEntity>(type: EntityType<T>, session?: Database | PgTransaction | null): EntityRepository<T> {
|
|
1456
|
+
return injectTransactional(EntityRepository<T>, session, type);
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* Injects an EntityRepository instance for the specified entity type.
|
|
1461
|
+
* @template T The entity type.
|
|
1462
|
+
* @param type The entity type.
|
|
1463
|
+
* @returns An EntityRepository instance for the specified type.
|
|
1464
|
+
*/
|
|
1465
|
+
export async function injectRepositoryAsync<T extends BaseEntity>(type: EntityType<T>, session?: Database | PgTransaction | null): Promise<EntityRepository<T>> {
|
|
1466
|
+
return await injectTransactionalAsync(EntityRepository<T>, session, type);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Gets or creates a singleton EntityRepository class for the specified entity type.
|
|
1471
|
+
* @template T The entity type.
|
|
1472
|
+
* @param type The entity type.
|
|
1473
|
+
* @returns A singleton EntityRepository class for the specified type.
|
|
1474
|
+
*/
|
|
1475
|
+
export function getRepository<T extends BaseEntity>(type: EntityType<T>): Type<EntityRepository<T>> {
|
|
1476
|
+
const className = `${type.name}Repository`;
|
|
1477
|
+
|
|
1478
|
+
const entityRepositoryClass = {
|
|
1479
|
+
[className]: class extends EntityRepository<T> {
|
|
1480
|
+
static [entityTypeToken] = type;
|
|
1481
|
+
},
|
|
1482
|
+
}[className]!;
|
|
1483
|
+
|
|
1484
|
+
Singleton()(entityRepositoryClass);
|
|
1485
|
+
|
|
1486
|
+
return entityRepositoryClass;
|
|
1487
|
+
}
|