@tstdl/base 0.92.123 → 0.92.124
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/ai/ai-file.service.js +23 -18
- package/ai/ai.service.js +79 -147
- package/api/server/gateway.js +6 -6
- package/authentication/authentication.api.js +24 -24
- package/authentication/server/authentication.service.js +20 -20
- package/browser/page-controller.js +1 -1
- package/context/context.js +5 -5
- package/document-management/api/document-management.api.js +32 -68
- package/document-management/models/document-assignment-scope.model.js +38 -0
- package/document-management/models/document-assignment-task.model.js +38 -0
- package/document-management/models/document-category.model.js +7 -1
- package/document-management/models/document-collection-assignment.model.js +39 -0
- package/document-management/models/document-collection.model.js +10 -0
- package/document-management/models/document-property-value.model.js +15 -46
- package/document-management/models/document-property.model.js +2 -2
- package/document-management/models/document-request-submission.model.js +34 -0
- package/document-management/models/document-request-template.js +3 -8
- package/document-management/models/document-request.model.js +22 -12
- package/document-management/models/document-type-validation.model.js +34 -0
- package/document-management/models/document-type.model.js +0 -5
- package/document-management/models/document-validation-definition.model.js +39 -0
- package/document-management/models/document-validation-execution-related-document.model.js +34 -0
- package/document-management/models/document-validation-execution.model.js +72 -0
- package/document-management/models/document-workflow.model.js +70 -0
- package/document-management/models/document.model.js +21 -5
- package/document-management/models/index.js +10 -5
- package/document-management/models/service-models/categories-and-types.view-model.js +2 -21
- package/document-management/models/service-models/document-folders.view-model.js +20 -44
- package/document-management/models/service-models/document-management.view-model.js +127 -0
- package/document-management/models/service-models/document.service-model.js +30 -28
- package/document-management/models/service-models/enriched/enriched-document-assignment.view.js +12 -0
- package/document-management/models/service-models/enriched/enriched-document-category.view.js +47 -0
- package/document-management/models/service-models/enriched/enriched-document-collection.view.js +89 -0
- package/document-management/models/service-models/enriched/enriched-document-file.view.js +16 -0
- package/document-management/models/service-models/enriched/enriched-document-management-data.view.js +130 -0
- package/document-management/models/service-models/enriched/enriched-document-request.view.js +52 -0
- package/document-management/models/service-models/enriched/enriched-document-type.view.js +10 -0
- package/document-management/models/service-models/enriched/enriched-document.view.js +77 -0
- package/document-management/models/service-models/enriched/enriched.js +39 -0
- package/document-management/models/service-models/enriched/index.js +9 -0
- package/document-management/models/service-models/index.js +2 -2
- package/document-management/models/service-models/normalized-requests-template-data.model.js +5 -4
- package/document-management/models/service-models/stats.view-model.js +19 -9
- package/document-management/server/module.js +3 -7
- package/document-management/server/schemas.js +18 -23
- package/document-management/server/services/document-category-type.service.js +66 -0
- package/document-management/server/services/document-collection.service.js +41 -0
- package/document-management/server/services/document-file.service.js +204 -0
- package/document-management/server/services/document-management-ai.service.js +340 -0
- package/document-management/server/services/document-management-ancillary.service.js +24 -0
- package/document-management/server/services/document-management.service.js +106 -888
- package/document-management/server/services/document-property.service.js +87 -0
- package/document-management/server/services/document-request.service.js +138 -0
- package/document-management/server/services/document-validation.service.js +145 -0
- package/document-management/server/services/document-workflow.service.js +132 -0
- package/document-management/server/services/document.service.js +81 -0
- package/document-management/server/services/index.js +9 -0
- package/document-management/server/validators/ai-validation-executor.js +51 -0
- package/document-management/server/validators/index.js +2 -0
- package/document-management/server/validators/single-document-validation-executor.js +20 -0
- package/document-management/server/validators/validator.js +2 -0
- package/eslint.config.js +31 -17
- package/examples/document-management/main.js +28 -12
- package/file/mime-type.js +2 -9
- package/formats.js +32 -23
- package/http/client/http-client.js +1 -1
- package/injector/injector.js +2 -2
- package/object-storage/s3/s3.object-storage.js +1 -1
- package/orm/data-types/bytea.js +8 -0
- package/orm/data-types/index.js +4 -0
- package/orm/data-types/numeric-date.js +9 -0
- package/orm/data-types/timestamp.js +9 -0
- package/orm/decorators.js +50 -0
- package/orm/entity.js +19 -0
- package/orm/index.js +5 -0
- package/orm/query.js +6 -0
- package/orm/server/database-schema.js +29 -0
- package/orm/server/database.js +17 -3
- package/orm/server/drizzle/schema-converter.js +12 -1
- package/orm/server/encryption.js +29 -4
- package/orm/server/index.js +7 -0
- package/orm/server/module.js +9 -0
- package/orm/server/query-converter.js +66 -11
- package/orm/server/repository.js +344 -73
- package/orm/server/transaction.js +5 -5
- package/orm/server/transactional.js +134 -0
- package/orm/sqls.js +60 -0
- package/orm/utils.js +12 -0
- package/package.json +33 -31
- package/password/password-check-result.model.js +8 -8
- package/password/password-check.js +5 -7
- package/password/password-check.localization.js +12 -12
- package/pdf/pdf.service.js +1 -1
- package/pdf/utils.js +19 -2
- package/process/spawn.js +42 -5
- package/queue/postgres/queue.js +5 -5
- package/queue/queue.js +6 -6
- package/schema/schemas/one-or-many.js +1 -1
- package/search-index/elastic/model/index-mapping.js +0 -1
- package/search-index/elastic/search-index.js +3 -3
- package/types/ai/ai-file.service.d.ts +27 -0
- package/types/ai/ai-session.d.ts +11 -0
- package/types/ai/ai.service.d.ts +60 -0
- package/types/ai/functions.d.ts +3 -0
- package/types/ai/types.d.ts +91 -0
- package/types/api/client/client.d.ts +23 -0
- package/types/api/default-error-handlers.d.ts +14 -0
- package/types/api/server/api-controller.d.ts +11 -0
- package/types/api/server/error-handler.d.ts +4 -0
- package/types/api/server/gateway.d.ts +77 -0
- package/types/api/server/middlewares/catch-error.middleware.d.ts +4 -0
- package/types/api/server/middlewares/cors.middleware.d.ts +6 -0
- package/types/api/server/module.d.ts +10 -0
- package/types/api/server/tokens.d.ts +5 -0
- package/types/api/types.d.ts +123 -0
- package/types/application/application.d.ts +34 -0
- package/types/authentication/authentication.api.d.ts +293 -0
- package/types/authentication/client/api.client.d.ts +9 -0
- package/types/authentication/client/authentication.service.d.ts +61 -0
- package/types/authentication/client/http-client.middleware.d.ts +4 -0
- package/types/authentication/client/module.d.ts +10 -0
- package/types/authentication/client/tokens.d.ts +4 -0
- package/types/authentication/errors/secret-requirements.error.d.ts +5 -0
- package/types/authentication/models/authentication-credentials.model.d.ts +7 -0
- package/types/authentication/models/authentication-session.model.d.ts +10 -0
- package/types/authentication/models/schemas.d.ts +5 -0
- package/types/authentication/models/secret-check-result.model.d.ts +3 -0
- package/types/authentication/models/token.model.d.ts +20 -0
- package/types/authentication/server/authentication-ancillary.service.d.ts +27 -0
- package/types/authentication/server/authentication-api-request-token.provider.d.ts +8 -0
- package/types/authentication/server/authentication.api-controller.d.ts +23 -0
- package/types/authentication/server/authentication.service.d.ts +110 -0
- package/types/authentication/server/helper.d.ts +15 -0
- package/types/authentication/server/module.d.ts +14 -0
- package/types/browser/browser-context-controller.d.ts +45 -0
- package/types/browser/browser-controller.d.ts +49 -0
- package/types/browser/browser.service.d.ts +42 -0
- package/types/browser/element-controller.d.ts +104 -0
- package/types/browser/locator-controller.d.ts +16 -0
- package/types/browser/page-controller.d.ts +40 -0
- package/types/browser/types.d.ts +15 -0
- package/types/browser/utils.d.ts +17 -0
- package/types/collections/observable/observable-sorted-array-list.d.ts +36 -0
- package/types/collections/sorted-array-list.d.ts +37 -0
- package/types/context/context.d.ts +10 -0
- package/types/data-structures/array-list.d.ts +30 -0
- package/types/data-structures/circular-buffer.d.ts +56 -0
- package/types/data-structures/collection.d.ts +65 -0
- package/types/data-structures/context-data-map.d.ts +11 -0
- package/types/data-structures/index-out-of-bounds.error.d.ts +8 -0
- package/types/data-structures/linked-list.d.ts +57 -0
- package/types/data-structures/list.d.ts +78 -0
- package/types/data-structures/sorted-array-list.d.ts +49 -0
- package/types/database/module.d.ts +8 -0
- package/types/database/mongo/classes.d.ts +21 -0
- package/types/database/mongo/model/document.d.ts +29 -0
- package/types/database/mongo/mongo-base.repository.d.ts +103 -0
- package/types/database/mongo/mongo-bulk.d.ts +35 -0
- package/types/database/mongo/mongo-entity-repository.d.ts +98 -0
- package/types/database/mongo/operations.d.ts +10 -0
- package/types/database/mongo/query-converter.d.ts +6 -0
- package/types/database/mongo/simple-entity-repository.d.ts +7 -0
- package/types/database/mongo/types.d.ts +50 -0
- package/types/database/query.d.ts +121 -0
- package/types/decorators/log.d.ts +3 -0
- package/types/disposable/async-disposer.d.ts +35 -0
- package/types/distributed-loop/distributed-loop.d.ts +32 -0
- package/types/distributed-loop/provider.d.ts +7 -0
- package/types/document-management/api/document-management.api.d.ts +634 -0
- package/types/document-management/localizations/localization.d.ts +9 -0
- package/types/document-management/models/document-assignment-scope.model.d.ts +11 -0
- package/types/document-management/models/document-assignment-task.model.d.ts +13 -0
- package/types/document-management/models/document-category.model.d.ts +7 -0
- package/types/document-management/models/document-collection-assignment.model.d.ts +7 -0
- package/types/document-management/models/document-collection.model.d.ts +5 -0
- package/types/document-management/models/document-file.model.d.ts +7 -0
- package/types/document-management/models/document-property-value.model.d.ts +12 -0
- package/types/document-management/models/document-property.model.d.ts +16 -0
- package/types/document-management/models/document-request-collection.model.d.ts +7 -0
- package/types/document-management/models/document-request-submission.model.d.ts +7 -0
- package/types/document-management/models/document-request-template.d.ts +8 -0
- package/types/document-management/models/document-request.model.d.ts +18 -0
- package/types/document-management/models/document-requests-template.d.ts +5 -0
- package/types/document-management/models/document-type-property.model.d.ts +6 -0
- package/types/document-management/models/document-type-validation.model.d.ts +6 -0
- package/types/document-management/models/document-type.model.d.ts +7 -0
- package/types/document-management/models/document-validation-definition.model.d.ts +10 -0
- package/types/document-management/models/document-validation-execution-related-document.model.d.ts +7 -0
- package/types/document-management/models/document-validation-execution.model.d.ts +26 -0
- package/types/document-management/models/document-workflow.model.d.ts +35 -0
- package/types/document-management/models/document.model.d.ts +24 -0
- package/types/document-management/models/index.d.ts +22 -0
- package/types/document-management/models/service-models/categories-and-types.view-model.d.ts +6 -0
- package/types/document-management/models/service-models/document-folders.view-model.d.ts +15 -0
- package/types/document-management/models/service-models/document-management.view-model.d.ts +41 -0
- package/types/document-management/models/service-models/document.service-model.d.ts +253 -0
- package/types/document-management/models/service-models/enriched/enriched-document-assignment.view.d.ts +11 -0
- package/types/document-management/models/service-models/enriched/enriched-document-category.view.d.ts +13 -0
- package/types/document-management/models/service-models/enriched/enriched-document-collection.view.d.ts +22 -0
- package/types/document-management/models/service-models/enriched/enriched-document-file.view.d.ts +12 -0
- package/types/document-management/models/service-models/enriched/enriched-document-management-data.view.d.ts +41 -0
- package/types/document-management/models/service-models/enriched/enriched-document-request.view.d.ts +17 -0
- package/types/document-management/models/service-models/enriched/enriched-document-type.view.d.ts +9 -0
- package/types/document-management/models/service-models/enriched/enriched-document.view.d.ts +28 -0
- package/types/document-management/models/service-models/enriched/enriched.d.ts +18 -0
- package/types/document-management/models/service-models/enriched/index.d.ts +9 -0
- package/types/document-management/models/service-models/index.d.ts +8 -0
- package/types/document-management/models/service-models/normalized-requests-template-data.model.d.ts +18 -0
- package/types/document-management/models/service-models/stats.view-model.d.ts +8 -0
- package/types/document-management/server/module.d.ts +12 -0
- package/types/document-management/server/schemas.d.ts +31 -0
- package/types/document-management/server/services/document-category-type.service.d.ts +25 -0
- package/types/document-management/server/services/document-collection.service.d.ts +13 -0
- package/types/document-management/server/services/document-file.service.d.ts +17 -0
- package/types/document-management/server/services/document-management-ai.service.d.ts +22 -0
- package/types/document-management/server/services/document-management-ancillary.service.d.ts +128 -0
- package/types/document-management/server/services/document-management.service.d.ts +13 -0
- package/types/document-management/server/services/document-property.service.d.ts +84 -0
- package/types/document-management/server/services/document-request.service.d.ts +30 -0
- package/types/document-management/server/services/document-validation.service.d.ts +20 -0
- package/types/document-management/server/services/document-workflow.service.d.ts +20 -0
- package/types/document-management/server/services/document.service.d.ts +16 -0
- package/types/document-management/server/services/index.d.ts +11 -0
- package/types/document-management/server/validators/ai-validation-executor.d.ts +19 -0
- package/types/document-management/server/validators/index.d.ts +2 -0
- package/types/document-management/server/validators/single-document-validation-executor.d.ts +16 -0
- package/types/document-management/server/validators/validator.d.ts +21 -0
- package/types/dom/file-select-dialog.d.ts +7 -0
- package/types/dom/observation/intersection-observer.d.ts +4 -0
- package/types/dom/observation/media-query-observer.d.ts +12 -0
- package/types/dom/observation/resize-observer.d.ts +4 -0
- package/types/enumerable/async-enumerable.d.ts +78 -0
- package/types/enumerable/enumerable.d.ts +63 -0
- package/types/enumeration/enumeration.d.ts +5 -0
- package/types/errors/errors.localization.d.ts +53 -0
- package/types/errors/not-supported.error.d.ts +7 -0
- package/types/examples/api/authentication.d.ts +1 -0
- package/types/examples/api/basic-overview.d.ts +1 -0
- package/types/examples/api/custom-authentication.d.ts +1 -0
- package/types/examples/api/streaming.d.ts +1 -0
- package/types/examples/browser/basic.d.ts +1 -0
- package/types/examples/document-management/main.d.ts +21 -0
- package/types/examples/http/client.d.ts +1 -0
- package/types/examples/mail/templates/hello-name.d.ts +5 -0
- package/types/examples/orm/schemas.d.ts +3 -0
- package/types/examples/orm/user.model.d.ts +13 -0
- package/types/examples/pdf/templates/hello-name.d.ts +2 -0
- package/types/examples/reflection/basic.d.ts +11 -0
- package/types/examples/template/templates/hello-jsx.d.ts +4 -0
- package/types/examples/template/templates/hello-name.d.ts +4 -0
- package/types/formats.d.ts +51 -0
- package/types/function/log.d.ts +8 -0
- package/types/http/client/adapters/undici.adapter.d.ts +20 -0
- package/types/http/client/http-client-request.d.ts +122 -0
- package/types/http/client/http-client-response.d.ts +28 -0
- package/types/http/client/http-client.d.ts +56 -0
- package/types/http/client/middleware.d.ts +10 -0
- package/types/http/client/module.d.ts +12 -0
- package/types/http/client/tokens.d.ts +2 -0
- package/types/http/http-body.d.ts +21 -0
- package/types/http/http-value-map.d.ts +36 -0
- package/types/http/http.error.d.ts +28 -0
- package/types/http/server/http-server-request.d.ts +23 -0
- package/types/http/server/http-server-response.d.ts +38 -0
- package/types/http/server/http-server.d.ts +16 -0
- package/types/http/server/node/node-http-server.d.ts +22 -0
- package/types/http/types.d.ts +10 -0
- package/types/http/utils.d.ts +18 -0
- package/types/image-service/imgproxy/imgproxy-image-service.d.ts +24 -0
- package/types/index.d.ts +8 -2
- package/types/injector/decorators.d.ts +82 -0
- package/types/injector/injector.d.ts +113 -0
- package/types/injector/interfaces.d.ts +17 -0
- package/types/injector/provider.d.ts +57 -0
- package/types/injector/resolution.d.ts +15 -0
- package/types/injector/resolve-chain.d.ts +34 -0
- package/types/injector/resolve.error.d.ts +5 -0
- package/types/injector/token.d.ts +25 -0
- package/types/injector/type-info.d.ts +22 -0
- package/types/injector/types.d.ts +64 -0
- package/types/key-value-store/key-value.store.d.ts +23 -0
- package/types/key-value-store/mongo/module.d.ts +8 -0
- package/types/key-value-store/mongo/mongo-key-value-store.provider.d.ts +8 -0
- package/types/key-value-store/mongo/mongo-key-value.model.d.ts +7 -0
- package/types/key-value-store/mongo/mongo-key-value.repository.d.ts +10 -0
- package/types/key-value-store/mongo/mongo-key-value.store.d.ts +14 -0
- package/types/key-value-store/mongo/tokens.d.ts +3 -0
- package/types/lock/lock.d.ts +48 -0
- package/types/lock/mongo/lock.d.ts +14 -0
- package/types/lock/mongo/model.d.ts +6 -0
- package/types/lock/mongo/module.d.ts +12 -0
- package/types/lock/mongo/mongo-lock-repository.d.ts +14 -0
- package/types/lock/mongo/provider.d.ts +8 -0
- package/types/lock/provider.d.ts +10 -0
- package/types/lock/web/web-lock.provider.d.ts +8 -0
- package/types/logger/logger.d.ts +41 -0
- package/types/logger/tokens.d.ts +2 -0
- package/types/mail/clients/nodemailer.mail-client.d.ts +13 -0
- package/types/mail/mail.client.d.ts +17 -0
- package/types/mail/mail.service.d.ts +10 -0
- package/types/mail/models/mail-data.model.d.ts +21 -0
- package/types/mail/models/mail-log.model.d.ts +10 -0
- package/types/mail/models/mail-template.model.d.ts +14 -0
- package/types/mail/models/schemas.d.ts +3 -0
- package/types/mail/module.d.ts +15 -0
- package/types/mail/tokens.d.ts +1 -0
- package/types/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +8 -0
- package/types/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +19 -0
- package/types/message-bus/local/local-message-bus-provider.d.ts +9 -0
- package/types/message-bus/local/local-message-bus.d.ts +14 -0
- package/types/message-bus/message-bus-base.d.ts +26 -0
- package/types/message-bus/message-bus.d.ts +15 -0
- package/types/migration/migration-state-repository.d.ts +4 -0
- package/types/migration/migration-state.d.ts +6 -0
- package/types/migration/mongo/migration-state-repository.d.ts +11 -0
- package/types/migration/mongo/module.d.ts +12 -0
- package/types/module/module-base.d.ts +18 -0
- package/types/module/module-metric-reporter.d.ts +29 -0
- package/types/module/module.d.ts +23 -0
- package/types/module/modules/function.module.d.ts +10 -0
- package/types/module/modules/web-server.module.d.ts +27 -0
- package/types/module/utils.d.ts +4 -0
- package/types/object-storage/object-storage.d.ts +75 -0
- package/types/object-storage/object.d.ts +12 -0
- package/types/object-storage/s3/s3.object-storage-provider.d.ts +41 -0
- package/types/object-storage/s3/s3.object-storage.d.ts +28 -0
- package/types/object-storage/s3/s3.object.d.ts +16 -0
- package/types/openid-connect/cached-oidc-configuration.service.d.ts +9 -0
- package/types/openid-connect/mongo-oidc-state.repository.d.ts +21 -0
- package/types/openid-connect/oidc-configuration.service.d.ts +13 -0
- package/types/openid-connect/oidc-state.model.d.ts +11 -0
- package/types/openid-connect/oidc-state.repository.d.ts +4 -0
- package/types/openid-connect/oidc.service.d.ts +20 -0
- package/types/orm/data-types/bytea.d.ts +18 -0
- package/types/orm/data-types/index.d.ts +7 -0
- package/types/orm/data-types/numeric-date.d.ts +19 -0
- package/types/orm/data-types/timestamp.d.ts +19 -0
- package/types/orm/decorators.d.ts +212 -0
- package/types/orm/entity.d.ts +41 -0
- package/types/orm/index.d.ts +12 -0
- package/types/orm/query.d.ts +164 -0
- package/types/orm/repository.types.d.ts +84 -0
- package/types/orm/schemas/json.d.ts +9 -0
- package/types/orm/schemas/numeric-date.d.ts +8 -0
- package/types/orm/schemas/timestamp.d.ts +10 -0
- package/types/orm/schemas/uuid.d.ts +11 -0
- package/types/orm/server/database-schema.d.ts +45 -0
- package/types/orm/server/database.d.ts +27 -0
- package/types/orm/server/drizzle/schema-converter.d.ts +15 -0
- package/types/orm/server/encryption.d.ts +18 -0
- package/types/orm/server/index.d.ts +13 -0
- package/types/orm/server/module.d.ts +32 -0
- package/types/orm/server/query-converter.d.ts +21 -0
- package/types/orm/server/repository.d.ts +487 -0
- package/types/orm/server/tokens.d.ts +1 -0
- package/types/orm/server/transaction.d.ts +29 -0
- package/types/orm/server/transactional.d.ts +75 -0
- package/types/orm/server/types.d.ts +47 -0
- package/types/orm/sqls.d.ts +71 -0
- package/types/orm/types.d.ts +93 -0
- package/types/orm/utils.d.ts +19 -0
- package/types/password/password-check-result.model.d.ts +19 -0
- package/types/password/password-check.localization.d.ts +20 -0
- package/types/pdf/pdf.service.d.ts +101 -0
- package/types/pdf/utils.d.ts +12 -0
- package/types/pool/pool.d.ts +49 -0
- package/types/process/spawn.d.ts +22 -0
- package/types/process-shutdown.d.ts +9 -0
- package/types/promise/cancelable-promise.d.ts +15 -0
- package/types/queue/mongo/job.d.ts +12 -0
- package/types/queue/mongo/mongo-job.repository.d.ts +13 -0
- package/types/queue/mongo/queue.d.ts +38 -0
- package/types/queue/mongo/queue.provider.d.ts +22 -0
- package/types/queue/postgres/job.model.d.ts +13 -0
- package/types/queue/postgres/module.d.ts +9 -0
- package/types/queue/postgres/queue.d.ts +31 -0
- package/types/queue/postgres/queue.provider.d.ts +7 -0
- package/types/queue/postgres/schemas.d.ts +3 -0
- package/types/queue/provider.d.ts +5 -0
- package/types/queue/queue.d.ts +91 -0
- package/types/reflection/decorators.d.ts +15 -0
- package/types/reflection/registry.d.ts +61 -0
- package/types/reflection/types.d.ts +90 -0
- package/types/reflection/utils.d.ts +33 -0
- package/types/rpc/model.d.ts +64 -0
- package/types/rpc/rpc.adapter.d.ts +19 -0
- package/types/rpc/rpc.d.ts +21 -0
- package/types/rpc/rpc.error.d.ts +8 -0
- package/types/rxjs-utils/retry-backoff.d.ts +4 -0
- package/types/schema/converters/openapi-converter.d.ts +3 -0
- package/types/schema/decorators/class.d.ts +3 -0
- package/types/schema/decorators/description.d.ts +3 -0
- package/types/schema/decorators/schema.d.ts +21 -0
- package/types/schema/decorators/types.d.ts +24 -0
- package/types/schema/decorators/utils.d.ts +7 -0
- package/types/schema/schema.d.ts +99 -0
- package/types/schema/schema.error.d.ts +25 -0
- package/types/schema/schemas/array.d.ts +20 -0
- package/types/schema/schemas/defaulted.d.ts +13 -0
- package/types/schema/schemas/deferred.d.ts +12 -0
- package/types/schema/schemas/enumeration.d.ts +13 -0
- package/types/schema/schemas/function.d.ts +23 -0
- package/types/schema/schemas/instance.d.ts +13 -0
- package/types/schema/schemas/literal.d.ts +12 -0
- package/types/schema/schemas/never.d.ts +8 -0
- package/types/schema/schemas/nullable.d.ts +12 -0
- package/types/schema/schemas/number.d.ts +19 -0
- package/types/schema/schemas/object.d.ts +91 -0
- package/types/schema/schemas/one-or-many.d.ts +15 -0
- package/types/schema/schemas/optional.d.ts +13 -0
- package/types/schema/schemas/simple.d.ts +27 -0
- package/types/schema/schemas/transform.d.ts +10 -0
- package/types/schema/schemas/union.d.ts +15 -0
- package/types/search-index/elastic/config.d.ts +8 -0
- package/types/search-index/elastic/model/index-mapping.d.ts +26 -0
- package/types/search-index/elastic/model/sort.d.ts +8 -0
- package/types/search-index/elastic/module.d.ts +10 -0
- package/types/search-index/elastic/query-converter.d.ts +9 -0
- package/types/search-index/elastic/search-index.d.ts +30 -0
- package/types/search-index/elastic/sort-converter.d.ts +4 -0
- package/types/search-index/error.d.ts +10 -0
- package/types/search-index/memory/memory-search-index.d.ts +19 -0
- package/types/search-index/search-index.d.ts +46 -0
- package/types/search-index/search-result.d.ts +12 -0
- package/types/serializer/handlers/binary.d.ts +12 -0
- package/types/serializer/serializable.d.ts +33 -0
- package/types/serializer/serializer.d.ts +20 -0
- package/types/serializer/types.d.ts +65 -0
- package/types/sse/server-sent-events-source.d.ts +12 -0
- package/types/templates/module.d.ts +14 -0
- package/types/templates/providers/file.template-provider.d.ts +15 -0
- package/types/templates/renderers/handlebars.template-renderer.d.ts +43 -0
- package/types/templates/renderers/jsx.template-renderer.d.ts +10 -0
- package/types/templates/renderers/mjml.template-renderer.d.ts +16 -0
- package/types/templates/renderers/string.template-renderer.d.ts +10 -0
- package/types/templates/resolvers/file.template-resolver.d.ts +22 -0
- package/types/templates/resolvers/jsx.template-resolver.d.ts +17 -0
- package/types/templates/resolvers/string.template-resolver.d.ts +13 -0
- package/types/templates/template.model.d.ts +25 -0
- package/types/templates/template.renderer.d.ts +20 -0
- package/types/templates/template.service.d.ts +18 -0
- package/types/templates/tokens.d.ts +4 -0
- package/types/test.d.ts +1 -0
- package/types/test2.d.ts +1 -0
- package/types/test3.d.ts +1 -0
- package/types/test4.d.ts +21 -0
- package/types/test5.d.ts +1 -0
- package/types/test6.d.ts +1 -0
- package/types/text/dynamic-text.model.d.ts +15 -0
- package/types/text/localization.service.d.ts +92 -0
- package/types/theme/adapters/tailwind-adapter.d.ts +18 -0
- package/types/theme/theme-service.d.ts +43 -0
- package/types/threading/thread-pool.d.ts +20 -0
- package/types/tools/fetch-mime-types.d.ts +1 -0
- package/types/types/geo-json.d.ts +36 -0
- package/types/types/index.d.ts +2 -0
- package/types/types/tagged.d.ts +16 -0
- package/types/types.d.ts +215 -0
- package/types/utils/async-hook/async-hook.d.ts +9 -0
- package/types/utils/async-hook/index.d.ts +1 -0
- package/types/utils/async-iterable-helpers/take-until.d.ts +3 -0
- package/types/utils/backoff.d.ts +77 -0
- package/types/utils/binary.d.ts +16 -0
- package/types/utils/cryptography.d.ts +122 -0
- package/types/utils/encoding.d.ts +36 -0
- package/types/utils/enum.d.ts +9 -0
- package/types/utils/equals.d.ts +30 -0
- package/types/utils/event-loop.d.ts +4 -0
- package/types/utils/format-error.d.ts +24 -0
- package/types/utils/function/class.d.ts +6 -0
- package/types/utils/function/index.d.ts +3 -0
- package/types/utils/function/memoize.d.ts +36 -0
- package/types/utils/iterable-helpers/take-until.d.ts +2 -0
- package/types/utils/jwt.d.ts +32 -0
- package/types/utils/math.d.ts +93 -0
- package/types/utils/merge.d.ts +19 -0
- package/types/utils/object/decycle.d.ts +16 -0
- package/types/utils/object/dereference.d.ts +34 -0
- package/types/utils/object/forward-ref.d.ts +21 -0
- package/types/utils/object/lazy-property.d.ts +49 -0
- package/types/utils/object/object.d.ts +30 -0
- package/types/utils/object/property-name.d.ts +61 -0
- package/types/utils/patch-worker.d.ts +25 -0
- package/types/utils/reactive-value-to-signal.d.ts +20 -0
- package/types/utils/reflection.d.ts +8 -0
- package/types/utils/repl.d.ts +9 -0
- package/types/utils/singleton.d.ts +7 -0
- package/types/utils/stream/from-promise.d.ts +3 -0
- package/types/utils/stream/index.d.ts +9 -0
- package/types/utils/stream/size-limited-stream.d.ts +2 -0
- package/types/utils/timing.d.ts +20 -0
- package/types/utils/try-ignore.d.ts +9 -0
- package/types/utils/type/extends.d.ts +3 -0
- package/types/utils/type-guards.d.ts +259 -0
- package/types/utils/z-base32.d.ts +3 -0
- package/utils/async-hook/async-hook.js +21 -0
- package/utils/async-hook/index.js +1 -0
- package/utils/compression.js +1 -1
- package/utils/function/class.js +9 -0
- package/utils/function/index.js +1 -0
- package/utils/function/memoize.js +41 -2
- package/utils/jwt.js +5 -5
- package/utils/object/forward-ref.js +12 -12
- package/utils/object/lazy-property.js +2 -2
- package/utils/proxy.js +1 -1
- package/utils/stream/from-promise.js +27 -0
- package/utils/stream/index.js +1 -1
- package/utils/stream/stream-reader.js +71 -31
- package/ai/ai-file.service.d.ts +0 -27
- package/ai/ai-session.d.ts +0 -11
- package/ai/ai.service.d.ts +0 -68
- package/ai/functions.d.ts +0 -3
- package/ai/types.d.ts +0 -89
- package/api/client/client.d.ts +0 -23
- package/api/default-error-handlers.d.ts +0 -14
- package/api/server/api-controller.d.ts +0 -11
- package/api/server/error-handler.d.ts +0 -4
- package/api/server/gateway.d.ts +0 -77
- package/api/server/middlewares/catch-error.middleware.d.ts +0 -4
- package/api/server/middlewares/cors.middleware.d.ts +0 -6
- package/api/server/module.d.ts +0 -10
- package/api/server/tokens.d.ts +0 -5
- package/api/types.d.ts +0 -123
- package/application/application.d.ts +0 -34
- package/authentication/authentication.api.d.ts +0 -293
- package/authentication/client/api.client.d.ts +0 -9
- package/authentication/client/authentication.service.d.ts +0 -61
- package/authentication/client/http-client.middleware.d.ts +0 -4
- package/authentication/client/module.d.ts +0 -10
- package/authentication/client/tokens.d.ts +0 -4
- package/authentication/errors/secret-requirements.error.d.ts +0 -5
- package/authentication/models/authentication-credentials.model.d.ts +0 -7
- package/authentication/models/authentication-session.model.d.ts +0 -10
- package/authentication/models/schemas.d.ts +0 -5
- package/authentication/models/secret-check-result.model.d.ts +0 -3
- package/authentication/models/token.model.d.ts +0 -20
- package/authentication/server/authentication-ancillary.service.d.ts +0 -27
- package/authentication/server/authentication-api-request-token.provider.d.ts +0 -8
- package/authentication/server/authentication.api-controller.d.ts +0 -23
- package/authentication/server/authentication.service.d.ts +0 -110
- package/authentication/server/helper.d.ts +0 -15
- package/authentication/server/module.d.ts +0 -14
- package/browser/browser-context-controller.d.ts +0 -45
- package/browser/browser-controller.d.ts +0 -49
- package/browser/browser.service.d.ts +0 -42
- package/browser/element-controller.d.ts +0 -104
- package/browser/locator-controller.d.ts +0 -16
- package/browser/page-controller.d.ts +0 -40
- package/browser/types.d.ts +0 -15
- package/browser/utils.d.ts +0 -17
- package/collections/observable/observable-sorted-array-list.d.ts +0 -36
- package/collections/sorted-array-list.d.ts +0 -37
- package/context/context.d.ts +0 -10
- package/data-structures/array-list.d.ts +0 -30
- package/data-structures/circular-buffer.d.ts +0 -56
- package/data-structures/collection.d.ts +0 -65
- package/data-structures/context-data-map.d.ts +0 -11
- package/data-structures/index-out-of-bounds.error.d.ts +0 -8
- package/data-structures/linked-list.d.ts +0 -57
- package/data-structures/list.d.ts +0 -78
- package/data-structures/sorted-array-list.d.ts +0 -49
- package/database/module.d.ts +0 -8
- package/database/mongo/classes.d.ts +0 -21
- package/database/mongo/model/document.d.ts +0 -29
- package/database/mongo/mongo-base.repository.d.ts +0 -103
- package/database/mongo/mongo-bulk.d.ts +0 -35
- package/database/mongo/mongo-entity-repository.d.ts +0 -98
- package/database/mongo/operations.d.ts +0 -10
- package/database/mongo/query-converter.d.ts +0 -6
- package/database/mongo/simple-entity-repository.d.ts +0 -7
- package/database/mongo/types.d.ts +0 -50
- package/database/query.d.ts +0 -121
- package/decorators/log.d.ts +0 -3
- package/disposable/async-disposer.d.ts +0 -35
- package/distributed-loop/distributed-loop.d.ts +0 -32
- package/distributed-loop/provider.d.ts +0 -7
- package/document-management/api/document-management.api.d.ts +0 -789
- package/document-management/localizations/localization.d.ts +0 -9
- package/document-management/models/document-category.model.d.ts +0 -5
- package/document-management/models/document-collection-document.model.d.ts +0 -7
- package/document-management/models/document-collection-document.model.js +0 -39
- package/document-management/models/document-collection.model.d.ts +0 -3
- package/document-management/models/document-file.model.d.ts +0 -7
- package/document-management/models/document-property-value.model.d.ts +0 -20
- package/document-management/models/document-property.model.d.ts +0 -15
- package/document-management/models/document-request-assignment-task-collection.model.d.ts +0 -7
- package/document-management/models/document-request-assignment-task-collection.model.js +0 -34
- package/document-management/models/document-request-assignment-task.model.d.ts +0 -14
- package/document-management/models/document-request-assignment-task.model.js +0 -77
- package/document-management/models/document-request-collection.model.d.ts +0 -7
- package/document-management/models/document-request-file.model.d.ts +0 -16
- package/document-management/models/document-request-file.model.js +0 -86
- package/document-management/models/document-request-template.d.ts +0 -10
- package/document-management/models/document-request.model.d.ts +0 -10
- package/document-management/models/document-requests-template.d.ts +0 -5
- package/document-management/models/document-type-property.model.d.ts +0 -6
- package/document-management/models/document-type.model.d.ts +0 -8
- package/document-management/models/document.model.d.ts +0 -13
- package/document-management/models/index.d.ts +0 -17
- package/document-management/models/service-models/categories-and-types.view-model.d.ts +0 -6
- package/document-management/models/service-models/document-folders.view-model.d.ts +0 -22
- package/document-management/models/service-models/document.service-model.d.ts +0 -283
- package/document-management/models/service-models/document.view-model.d.ts +0 -41
- package/document-management/models/service-models/document.view-model.js +0 -110
- package/document-management/models/service-models/index.d.ts +0 -8
- package/document-management/models/service-models/normalized-document-collection-view.model.d.ts +0 -73
- package/document-management/models/service-models/normalized-document-collection-view.model.js +0 -110
- package/document-management/models/service-models/normalized-requests-template-data.model.d.ts +0 -16
- package/document-management/models/service-models/stats.view-model.d.ts +0 -6
- package/document-management/server/module.d.ts +0 -12
- package/document-management/server/schemas.d.ts +0 -36
- package/document-management/server/services/document-management-ancillary.service.d.ts +0 -4
- package/document-management/server/services/document-management.service.d.ts +0 -125
- package/document-management/server/services/index.d.ts +0 -2
- package/dom/file-select-dialog.d.ts +0 -7
- package/dom/observation/intersection-observer.d.ts +0 -4
- package/dom/observation/media-query-observer.d.ts +0 -12
- package/dom/observation/resize-observer.d.ts +0 -4
- package/enumerable/async-enumerable.d.ts +0 -78
- package/enumerable/enumerable.d.ts +0 -63
- package/enumeration/enumeration.d.ts +0 -5
- package/errors/errors.localization.d.ts +0 -53
- package/errors/not-supported.error.d.ts +0 -7
- package/examples/api/authentication.d.ts +0 -1
- package/examples/api/basic-overview.d.ts +0 -1
- package/examples/api/custom-authentication.d.ts +0 -1
- package/examples/api/streaming.d.ts +0 -1
- package/examples/browser/basic.d.ts +0 -1
- package/examples/document-management/main.d.ts +0 -6
- package/examples/http/client.d.ts +0 -1
- package/examples/mail/templates/hello-name.d.ts +0 -5
- package/examples/orm/schemas.d.ts +0 -3
- package/examples/orm/user.model.d.ts +0 -13
- package/examples/pdf/templates/hello-name.d.ts +0 -2
- package/examples/reflection/basic.d.ts +0 -11
- package/examples/template/templates/hello-jsx.d.ts +0 -4
- package/examples/template/templates/hello-name.d.ts +0 -4
- package/formats.d.ts +0 -48
- package/function/log.d.ts +0 -8
- package/http/client/adapters/undici.adapter.d.ts +0 -20
- package/http/client/http-client-request.d.ts +0 -122
- package/http/client/http-client-response.d.ts +0 -28
- package/http/client/http-client.d.ts +0 -56
- package/http/client/middleware.d.ts +0 -10
- package/http/client/module.d.ts +0 -12
- package/http/client/tokens.d.ts +0 -2
- package/http/http-body.d.ts +0 -21
- package/http/http-value-map.d.ts +0 -36
- package/http/http.error.d.ts +0 -28
- package/http/server/http-server-request.d.ts +0 -23
- package/http/server/http-server-response.d.ts +0 -38
- package/http/server/http-server.d.ts +0 -16
- package/http/server/node/node-http-server.d.ts +0 -22
- package/http/types.d.ts +0 -10
- package/http/utils.d.ts +0 -18
- package/image-service/imgproxy/imgproxy-image-service.d.ts +0 -24
- package/index.d.ts +0 -8
- package/injector/decorators.d.ts +0 -82
- package/injector/injector.d.ts +0 -113
- package/injector/interfaces.d.ts +0 -17
- package/injector/provider.d.ts +0 -57
- package/injector/resolution.d.ts +0 -15
- package/injector/resolve-chain.d.ts +0 -34
- package/injector/resolve.error.d.ts +0 -5
- package/injector/token.d.ts +0 -25
- package/injector/type-info.d.ts +0 -22
- package/injector/types.d.ts +0 -64
- package/key-value-store/key-value.store.d.ts +0 -23
- package/key-value-store/mongo/module.d.ts +0 -8
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +0 -8
- package/key-value-store/mongo/mongo-key-value.model.d.ts +0 -7
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +0 -10
- package/key-value-store/mongo/mongo-key-value.store.d.ts +0 -14
- package/key-value-store/mongo/tokens.d.ts +0 -3
- package/lock/lock.d.ts +0 -48
- package/lock/mongo/lock.d.ts +0 -14
- package/lock/mongo/model.d.ts +0 -6
- package/lock/mongo/module.d.ts +0 -12
- package/lock/mongo/mongo-lock-repository.d.ts +0 -14
- package/lock/mongo/provider.d.ts +0 -8
- package/lock/provider.d.ts +0 -10
- package/lock/web/web-lock.provider.d.ts +0 -8
- package/logger/logger.d.ts +0 -41
- package/logger/tokens.d.ts +0 -2
- package/mail/clients/nodemailer.mail-client.d.ts +0 -13
- package/mail/mail.client.d.ts +0 -17
- package/mail/mail.service.d.ts +0 -10
- package/mail/models/mail-data.model.d.ts +0 -21
- package/mail/models/mail-log.model.d.ts +0 -10
- package/mail/models/mail-template.model.d.ts +0 -14
- package/mail/models/schemas.d.ts +0 -3
- package/mail/module.d.ts +0 -15
- package/mail/tokens.d.ts +0 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +0 -8
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +0 -19
- package/message-bus/local/local-message-bus-provider.d.ts +0 -9
- package/message-bus/local/local-message-bus.d.ts +0 -14
- package/message-bus/message-bus-base.d.ts +0 -26
- package/message-bus/message-bus.d.ts +0 -15
- package/migration/migration-state-repository.d.ts +0 -4
- package/migration/migration-state.d.ts +0 -6
- package/migration/mongo/migration-state-repository.d.ts +0 -11
- package/migration/mongo/module.d.ts +0 -12
- package/module/module-base.d.ts +0 -18
- package/module/module-metric-reporter.d.ts +0 -29
- package/module/module.d.ts +0 -23
- package/module/modules/function.module.d.ts +0 -10
- package/module/modules/web-server.module.d.ts +0 -27
- package/module/utils.d.ts +0 -4
- package/object-storage/object-storage.d.ts +0 -75
- package/object-storage/object.d.ts +0 -12
- package/object-storage/s3/s3.object-storage-provider.d.ts +0 -41
- package/object-storage/s3/s3.object-storage.d.ts +0 -28
- package/object-storage/s3/s3.object.d.ts +0 -16
- package/openid-connect/cached-oidc-configuration.service.d.ts +0 -9
- package/openid-connect/mongo-oidc-state.repository.d.ts +0 -21
- package/openid-connect/oidc-configuration.service.d.ts +0 -13
- package/openid-connect/oidc-state.model.d.ts +0 -11
- package/openid-connect/oidc-state.repository.d.ts +0 -4
- package/openid-connect/oidc.service.d.ts +0 -20
- package/orm/data-types/bytea.d.ts +0 -10
- package/orm/data-types/index.d.ts +0 -3
- package/orm/data-types/numeric-date.d.ts +0 -10
- package/orm/data-types/timestamp.d.ts +0 -10
- package/orm/decorators.d.ts +0 -78
- package/orm/entity.d.ts +0 -22
- package/orm/index.d.ts +0 -7
- package/orm/query.d.ts +0 -113
- package/orm/repository.types.d.ts +0 -32
- package/orm/schemas/json.d.ts +0 -9
- package/orm/schemas/numeric-date.d.ts +0 -8
- package/orm/schemas/timestamp.d.ts +0 -10
- package/orm/schemas/uuid.d.ts +0 -11
- package/orm/server/database-schema.d.ts +0 -11
- package/orm/server/database.d.ts +0 -9
- package/orm/server/drizzle/schema-converter.d.ts +0 -14
- package/orm/server/encryption.d.ts +0 -2
- package/orm/server/index.d.ts +0 -6
- package/orm/server/module.d.ts +0 -12
- package/orm/server/query-converter.d.ts +0 -4
- package/orm/server/repository.d.ts +0 -181
- package/orm/server/tokens.d.ts +0 -1
- package/orm/server/transaction.d.ts +0 -29
- package/orm/server/types.d.ts +0 -46
- package/orm/sqls.d.ts +0 -16
- package/orm/types.d.ts +0 -30
- package/orm/utils.d.ts +0 -3
- package/password/password-check-result.model.d.ts +0 -17
- package/password/password-check.localization.d.ts +0 -20
- package/pdf/pdf.service.d.ts +0 -101
- package/pdf/utils.d.ts +0 -3
- package/pool/pool.d.ts +0 -49
- package/process/spawn.d.ts +0 -15
- package/process-shutdown.d.ts +0 -9
- package/promise/cancelable-promise.d.ts +0 -15
- package/queue/mongo/job.d.ts +0 -12
- package/queue/mongo/mongo-job.repository.d.ts +0 -13
- package/queue/mongo/queue.d.ts +0 -38
- package/queue/mongo/queue.provider.d.ts +0 -22
- package/queue/postgres/job.model.d.ts +0 -13
- package/queue/postgres/module.d.ts +0 -9
- package/queue/postgres/queue.d.ts +0 -31
- package/queue/postgres/queue.provider.d.ts +0 -7
- package/queue/postgres/schemas.d.ts +0 -3
- package/queue/provider.d.ts +0 -5
- package/queue/queue.d.ts +0 -89
- package/reflection/decorators.d.ts +0 -15
- package/reflection/registry.d.ts +0 -61
- package/reflection/types.d.ts +0 -90
- package/reflection/utils.d.ts +0 -33
- package/rpc/model.d.ts +0 -64
- package/rpc/rpc.adapter.d.ts +0 -19
- package/rpc/rpc.d.ts +0 -21
- package/rpc/rpc.error.d.ts +0 -8
- package/rxjs-utils/retry-backoff.d.ts +0 -4
- package/schema/converters/openapi-converter.d.ts +0 -3
- package/schema/decorators/class.d.ts +0 -3
- package/schema/decorators/description.d.ts +0 -3
- package/schema/decorators/schema.d.ts +0 -21
- package/schema/decorators/types.d.ts +0 -24
- package/schema/decorators/utils.d.ts +0 -7
- package/schema/schema.d.ts +0 -99
- package/schema/schema.error.d.ts +0 -25
- package/schema/schemas/array.d.ts +0 -20
- package/schema/schemas/defaulted.d.ts +0 -13
- package/schema/schemas/deferred.d.ts +0 -12
- package/schema/schemas/enumeration.d.ts +0 -13
- package/schema/schemas/function.d.ts +0 -23
- package/schema/schemas/instance.d.ts +0 -13
- package/schema/schemas/literal.d.ts +0 -12
- package/schema/schemas/never.d.ts +0 -8
- package/schema/schemas/nullable.d.ts +0 -12
- package/schema/schemas/number.d.ts +0 -19
- package/schema/schemas/object.d.ts +0 -91
- package/schema/schemas/one-or-many.d.ts +0 -14
- package/schema/schemas/optional.d.ts +0 -13
- package/schema/schemas/simple.d.ts +0 -27
- package/schema/schemas/transform.d.ts +0 -10
- package/schema/schemas/union.d.ts +0 -15
- package/search-index/elastic/config.d.ts +0 -8
- package/search-index/elastic/model/index-mapping.d.ts +0 -26
- package/search-index/elastic/model/sort.d.ts +0 -8
- package/search-index/elastic/module.d.ts +0 -10
- package/search-index/elastic/query-converter.d.ts +0 -9
- package/search-index/elastic/search-index.d.ts +0 -31
- package/search-index/elastic/sort-converter.d.ts +0 -4
- package/search-index/error.d.ts +0 -10
- package/search-index/memory/memory-search-index.d.ts +0 -19
- package/search-index/search-index.d.ts +0 -46
- package/search-index/search-result.d.ts +0 -12
- package/serializer/handlers/binary.d.ts +0 -12
- package/serializer/serializable.d.ts +0 -33
- package/serializer/serializer.d.ts +0 -20
- package/serializer/types.d.ts +0 -65
- package/sse/server-sent-events-source.d.ts +0 -12
- package/templates/module.d.ts +0 -14
- package/templates/providers/file.template-provider.d.ts +0 -15
- package/templates/renderers/handlebars.template-renderer.d.ts +0 -43
- package/templates/renderers/jsx.template-renderer.d.ts +0 -10
- package/templates/renderers/mjml.template-renderer.d.ts +0 -16
- package/templates/renderers/string.template-renderer.d.ts +0 -10
- package/templates/resolvers/file.template-resolver.d.ts +0 -22
- package/templates/resolvers/jsx.template-resolver.d.ts +0 -17
- package/templates/resolvers/string.template-resolver.d.ts +0 -13
- package/templates/template.model.d.ts +0 -25
- package/templates/template.renderer.d.ts +0 -20
- package/templates/template.service.d.ts +0 -18
- package/templates/tokens.d.ts +0 -4
- package/text/dynamic-text.model.d.ts +0 -15
- package/text/localization.service.d.ts +0 -92
- package/theme/adapters/tailwind-adapter.d.ts +0 -18
- package/theme/theme-service.d.ts +0 -43
- package/threading/thread-pool.d.ts +0 -20
- package/types/geo-json.d.ts +0 -36
- package/types/tagged.d.ts +0 -16
- package/types.d.ts +0 -214
- package/utils/async-iterable-helpers/take-until.d.ts +0 -3
- package/utils/backoff.d.ts +0 -77
- package/utils/binary.d.ts +0 -16
- package/utils/cryptography.d.ts +0 -122
- package/utils/encoding.d.ts +0 -36
- package/utils/enum.d.ts +0 -9
- package/utils/equals.d.ts +0 -30
- package/utils/event-loop.d.ts +0 -4
- package/utils/format-error.d.ts +0 -24
- package/utils/function/index.d.ts +0 -2
- package/utils/function/memoize.d.ts +0 -18
- package/utils/iterable-helpers/take-until.d.ts +0 -2
- package/utils/jwt.d.ts +0 -32
- package/utils/math.d.ts +0 -93
- package/utils/merge.d.ts +0 -19
- package/utils/object/decycle.d.ts +0 -16
- package/utils/object/dereference.d.ts +0 -34
- package/utils/object/forward-ref.d.ts +0 -20
- package/utils/object/lazy-property.d.ts +0 -49
- package/utils/object/object.d.ts +0 -30
- package/utils/object/property-name.d.ts +0 -61
- package/utils/patch-worker.d.ts +0 -25
- package/utils/reactive-value-to-signal.d.ts +0 -20
- package/utils/reflection.d.ts +0 -8
- package/utils/repl.d.ts +0 -9
- package/utils/singleton.d.ts +0 -7
- package/utils/stream/index.d.ts +0 -9
- package/utils/stream/readable-stream-from-promise.d.ts +0 -2
- package/utils/stream/readable-stream-from-promise.js +0 -8
- package/utils/stream/size-limited-stream.d.ts +0 -2
- package/utils/timing.d.ts +0 -20
- package/utils/try-ignore.d.ts +0 -9
- package/utils/type/extends.d.ts +0 -3
- package/utils/type-guards.d.ts +0 -259
- package/utils/z-base32.d.ts +0 -3
- /package/{ai → types/ai}/index.d.ts +0 -0
- /package/{ai → types/ai}/module.d.ts +0 -0
- /package/{api → types/api}/client/index.d.ts +0 -0
- /package/{api → types/api}/index.d.ts +0 -0
- /package/{api → types/api}/response.d.ts +0 -0
- /package/{api → types/api}/server/api-request-token.provider.d.ts +0 -0
- /package/{api → types/api}/server/index.d.ts +0 -0
- /package/{api → types/api}/server/middlewares/allowed-methods.middleware.d.ts +0 -0
- /package/{api → types/api}/server/middlewares/content-type.middleware.d.ts +0 -0
- /package/{api → types/api}/server/middlewares/index.d.ts +0 -0
- /package/{api → types/api}/server/middlewares/response-time.middleware.d.ts +0 -0
- /package/{api → types/api}/utils.d.ts +0 -0
- /package/{application → types/application}/index.d.ts +0 -0
- /package/{authentication → types/authentication}/client/index.d.ts +0 -0
- /package/{authentication → types/authentication}/errors/index.d.ts +0 -0
- /package/{authentication → types/authentication}/index.d.ts +0 -0
- /package/{authentication → types/authentication}/models/index.d.ts +0 -0
- /package/{authentication → types/authentication}/models/init-secret-reset-data.model.d.ts +0 -0
- /package/{authentication → types/authentication}/models/token-payload-base.model.d.ts +0 -0
- /package/{authentication → types/authentication}/server/authentication-secret-requirements.validator.d.ts +0 -0
- /package/{authentication → types/authentication}/server/drizzle.config.d.ts +0 -0
- /package/{authentication → types/authentication}/server/index.d.ts +0 -0
- /package/{browser → types/browser}/document-controller.d.ts +0 -0
- /package/{browser → types/browser}/frame-controller.d.ts +0 -0
- /package/{browser → types/browser}/index.d.ts +0 -0
- /package/{browser → types/browser}/module.d.ts +0 -0
- /package/{browser → types/browser}/pdf-options.d.ts +0 -0
- /package/{cancellation → types/cancellation}/index.d.ts +0 -0
- /package/{cancellation → types/cancellation}/token.d.ts +0 -0
- /package/{collections → types/collections}/awaitable/awaitable-list.d.ts +0 -0
- /package/{collections → types/collections}/awaitable/awaitable-map.d.ts +0 -0
- /package/{collections → types/collections}/awaitable/awaitable-set.d.ts +0 -0
- /package/{collections → types/collections}/awaitable/index.d.ts +0 -0
- /package/{collections → types/collections}/collection.d.ts +0 -0
- /package/{collections → types/collections}/index.d.ts +0 -0
- /package/{collections → types/collections}/keyed-set.d.ts +0 -0
- /package/{collections → types/collections}/list.d.ts +0 -0
- /package/{collections → types/collections}/observable/index.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-array.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-collection-base.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-collection.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-list-base.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-list.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-map.d.ts +0 -0
- /package/{collections → types/collections}/observable/observable-set.d.ts +0 -0
- /package/{collections → types/collections}/sorted-list.d.ts +0 -0
- /package/{collections → types/collections}/sorted-map.d.ts +0 -0
- /package/{context → types/context}/index.d.ts +0 -0
- /package/{cookie → types/cookie}/cookie.d.ts +0 -0
- /package/{cookie → types/cookie}/index.d.ts +0 -0
- /package/{core.d.ts → types/core.d.ts} +0 -0
- /package/{data-structures → types/data-structures}/array-dictionary.d.ts +0 -0
- /package/{data-structures → types/data-structures}/cache.d.ts +0 -0
- /package/{data-structures → types/data-structures}/dictionary.d.ts +0 -0
- /package/{data-structures → types/data-structures}/distinct-collection.d.ts +0 -0
- /package/{data-structures → types/data-structures}/index.d.ts +0 -0
- /package/{data-structures → types/data-structures}/iterable-weak-map.d.ts +0 -0
- /package/{data-structures → types/data-structures}/map-dictionary.d.ts +0 -0
- /package/{data-structures → types/data-structures}/multi-key-map.d.ts +0 -0
- /package/{data-structures → types/data-structures}/multi-key-set.d.ts +0 -0
- /package/{data-structures → types/data-structures}/set-collection.d.ts +0 -0
- /package/{data-structures → types/data-structures}/weak-ref-map.d.ts +0 -0
- /package/{database → types/database}/entity-repository.d.ts +0 -0
- /package/{database → types/database}/entity.d.ts +0 -0
- /package/{database → types/database}/id.d.ts +0 -0
- /package/{database → types/database}/index.d.ts +0 -0
- /package/{database → types/database}/mongo/index.d.ts +0 -0
- /package/{database → types/database}/mongo/model/index.d.ts +0 -0
- /package/{database → types/database}/mongo/module.d.ts +0 -0
- /package/{database → types/database}/utils.d.ts +0 -0
- /package/{decorators → types/decorators}/index.d.ts +0 -0
- /package/{disposable → types/disposable}/disposable.d.ts +0 -0
- /package/{disposable → types/disposable}/index.d.ts +0 -0
- /package/{disposable → types/disposable}/using.d.ts +0 -0
- /package/{distributed-loop → types/distributed-loop}/controller.d.ts +0 -0
- /package/{distributed-loop → types/distributed-loop}/index.d.ts +0 -0
- /package/{document-management → types/document-management}/api/index.d.ts +0 -0
- /package/{document-management → types/document-management}/index.d.ts +0 -0
- /package/{document-management → types/document-management}/localizations/english.d.ts +0 -0
- /package/{document-management → types/document-management}/localizations/german.d.ts +0 -0
- /package/{document-management → types/document-management}/localizations/index.d.ts +0 -0
- /package/{document-management → types/document-management}/models/document-management-table.d.ts +0 -0
- /package/{document-management → types/document-management}/models/service-models/document-requests-template.view-model.d.ts +0 -0
- /package/{document-management → types/document-management}/server/drizzle.config.d.ts +0 -0
- /package/{document-management → types/document-management}/server/index.d.ts +0 -0
- /package/{dom → types/dom}/file-download.d.ts +0 -0
- /package/{dom → types/dom}/index.d.ts +0 -0
- /package/{dom → types/dom}/observation/index.d.ts +0 -0
- /package/{dom → types/dom}/observation/mutation-observer.d.ts +0 -0
- /package/{dom → types/dom}/observation/performance-observer.d.ts +0 -0
- /package/{dom → types/dom}/observation/touch-observer.d.ts +0 -0
- /package/{enumerable → types/enumerable}/enumerable-methods.d.ts +0 -0
- /package/{enumerable → types/enumerable}/index.d.ts +0 -0
- /package/{enumeration → types/enumeration}/index.d.ts +0 -0
- /package/{environment.d.ts → types/environment.d.ts} +0 -0
- /package/{errors → types/errors}/api.error.d.ts +0 -0
- /package/{errors → types/errors}/assertion.error.d.ts +0 -0
- /package/{errors → types/errors}/bad-request.error.d.ts +0 -0
- /package/{errors → types/errors}/custom.error.d.ts +0 -0
- /package/{errors → types/errors}/details.error.d.ts +0 -0
- /package/{errors → types/errors}/forbidden.error.d.ts +0 -0
- /package/{errors → types/errors}/index.d.ts +0 -0
- /package/{errors → types/errors}/invalid-credentials.error.d.ts +0 -0
- /package/{errors → types/errors}/invalid-token.error.d.ts +0 -0
- /package/{errors → types/errors}/max-bytes-exceeded.error.d.ts +0 -0
- /package/{errors → types/errors}/method-not-allowed.error.d.ts +0 -0
- /package/{errors → types/errors}/multi.error.d.ts +0 -0
- /package/{errors → types/errors}/not-found.error.d.ts +0 -0
- /package/{errors → types/errors}/not-implemented.error.d.ts +0 -0
- /package/{errors → types/errors}/timeout.error.d.ts +0 -0
- /package/{errors → types/errors}/unauthorized.error.d.ts +0 -0
- /package/{errors → types/errors}/unsupported-media-type.error.d.ts +0 -0
- /package/{errors → types/errors}/utils.d.ts +0 -0
- /package/{examples → types/examples}/mail/basic.d.ts +0 -0
- /package/{examples → types/examples}/orm/drizzle.config.d.ts +0 -0
- /package/{examples → types/examples}/orm/test.d.ts +0 -0
- /package/{examples → types/examples}/pdf/basic.d.ts +0 -0
- /package/{examples → types/examples}/template/basic.d.ts +0 -0
- /package/{file → types/file}/index.d.ts +0 -0
- /package/{file → types/file}/mime-type.d.ts +0 -0
- /package/{file → types/file}/mime-types.d.ts +0 -0
- /package/{file → types/file}/server/index.d.ts +0 -0
- /package/{file → types/file}/server/temporary-file.d.ts +0 -0
- /package/{function → types/function}/index.d.ts +0 -0
- /package/{http → types/http}/client/http-client-options.d.ts +0 -0
- /package/{http → types/http}/client/http-client.adapter.d.ts +0 -0
- /package/{http → types/http}/client/index.d.ts +0 -0
- /package/{http → types/http}/cookie-parser.d.ts +0 -0
- /package/{http → types/http}/http-form.d.ts +0 -0
- /package/{http → types/http}/http-headers.d.ts +0 -0
- /package/{http → types/http}/http-query.d.ts +0 -0
- /package/{http → types/http}/http-url-parameters.d.ts +0 -0
- /package/{http → types/http}/index.d.ts +0 -0
- /package/{http → types/http}/server/index.d.ts +0 -0
- /package/{http → types/http}/server/node/index.d.ts +0 -0
- /package/{http → types/http}/server/node/module.d.ts +0 -0
- /package/{image-service → types/image-service}/image-service.d.ts +0 -0
- /package/{image-service → types/image-service}/imgproxy/index.d.ts +0 -0
- /package/{image-service → types/image-service}/index.d.ts +0 -0
- /package/{import.d.ts → types/import.d.ts} +0 -0
- /package/{injector → types/injector}/index.d.ts +0 -0
- /package/{injector → types/injector}/inject.d.ts +0 -0
- /package/{injector → types/injector}/symbols.d.ts +0 -0
- /package/{interfaces.d.ts → types/interfaces.d.ts} +0 -0
- /package/{intl → types/intl}/index.d.ts +0 -0
- /package/{intl → types/intl}/number-parser.d.ts +0 -0
- /package/{json-path → types/json-path}/index.d.ts +0 -0
- /package/{json-path → types/json-path}/json-path.d.ts +0 -0
- /package/{jsx → types/jsx}/index.d.ts +0 -0
- /package/{jsx → types/jsx}/is-component-class.d.ts +0 -0
- /package/{jsx → types/jsx}/render-to-string.d.ts +0 -0
- /package/{key-value-store → types/key-value-store}/index.d.ts +0 -0
- /package/{key-value-store → types/key-value-store}/key-value-store.provider.d.ts +0 -0
- /package/{key-value-store → types/key-value-store}/mongo/index.d.ts +0 -0
- /package/{lock → types/lock}/index.d.ts +0 -0
- /package/{lock → types/lock}/mongo/index.d.ts +0 -0
- /package/{lock → types/lock}/web/index.d.ts +0 -0
- /package/{lock → types/lock}/web/module.d.ts +0 -0
- /package/{lock → types/lock}/web/web-lock.d.ts +0 -0
- /package/{logger → types/logger}/console/index.d.ts +0 -0
- /package/{logger → types/logger}/console/logger.d.ts +0 -0
- /package/{logger → types/logger}/index.d.ts +0 -0
- /package/{logger → types/logger}/level.d.ts +0 -0
- /package/{logger → types/logger}/noop/index.d.ts +0 -0
- /package/{logger → types/logger}/noop/logger.d.ts +0 -0
- /package/{mail → types/mail}/clients/index.d.ts +0 -0
- /package/{mail → types/mail}/drizzle.config.d.ts +0 -0
- /package/{mail → types/mail}/index.d.ts +0 -0
- /package/{mail → types/mail}/models/index.d.ts +0 -0
- /package/{mail → types/mail}/models/mail-address.model.d.ts +0 -0
- /package/{mail → types/mail}/models/mail-content.model.d.ts +0 -0
- /package/{mail → types/mail}/models/mail-send-result.model.d.ts +0 -0
- /package/{memory → types/memory}/finalization.d.ts +0 -0
- /package/{memory → types/memory}/index.d.ts +0 -0
- /package/{memory → types/memory}/observable-finalization-registry.d.ts +0 -0
- /package/{message-bus → types/message-bus}/broadcast-channel/index.d.ts +0 -0
- /package/{message-bus → types/message-bus}/broadcast-channel/module.d.ts +0 -0
- /package/{message-bus → types/message-bus}/index.d.ts +0 -0
- /package/{message-bus → types/message-bus}/local/index.d.ts +0 -0
- /package/{message-bus → types/message-bus}/local/module.d.ts +0 -0
- /package/{message-bus → types/message-bus}/local/types.d.ts +0 -0
- /package/{message-bus → types/message-bus}/message-bus-provider.d.ts +0 -0
- /package/{migration → types/migration}/index.d.ts +0 -0
- /package/{migration → types/migration}/migrator.d.ts +0 -0
- /package/{migration → types/migration}/mongo/index.d.ts +0 -0
- /package/{module → types/module}/index.d.ts +0 -0
- /package/{module → types/module}/modules/index.d.ts +0 -0
- /package/{object-storage → types/object-storage}/index.d.ts +0 -0
- /package/{object-storage → types/object-storage}/object-storage-provider.d.ts +0 -0
- /package/{object-storage → types/object-storage}/s3/index.d.ts +0 -0
- /package/{openid-connect → types/openid-connect}/index.d.ts +0 -0
- /package/{openid-connect → types/openid-connect}/oidc.service-model.d.ts +0 -0
- /package/{orm → types/orm}/schemas/index.d.ts +0 -0
- /package/{orm → types/orm}/server/drizzle/index.d.ts +0 -0
- /package/{password → types/password}/have-i-been-pwned.d.ts +0 -0
- /package/{password → types/password}/index.d.ts +0 -0
- /package/{password → types/password}/password-check.d.ts +0 -0
- /package/{pdf → types/pdf}/index.d.ts +0 -0
- /package/{polyfills.d.ts → types/polyfills.d.ts} +0 -0
- /package/{pool → types/pool}/index.d.ts +0 -0
- /package/{process → types/process}/index.d.ts +0 -0
- /package/{promise → types/promise}/custom-promise.d.ts +0 -0
- /package/{promise → types/promise}/deferred-promise.d.ts +0 -0
- /package/{promise → types/promise}/index.d.ts +0 -0
- /package/{promise → types/promise}/lazy-promise.d.ts +0 -0
- /package/{promise → types/promise}/types.d.ts +0 -0
- /package/{queue → types/queue}/enqueue-batch.d.ts +0 -0
- /package/{queue → types/queue}/index.d.ts +0 -0
- /package/{queue → types/queue}/mongo/index.d.ts +0 -0
- /package/{queue → types/queue}/postgres/drizzle.config.d.ts +0 -0
- /package/{queue → types/queue}/postgres/index.d.ts +0 -0
- /package/{random → types/random}/index.d.ts +0 -0
- /package/{random → types/random}/number-generator/index.d.ts +0 -0
- /package/{random → types/random}/number-generator/mulberry32.d.ts +0 -0
- /package/{random → types/random}/number-generator/random-number-generator-function.d.ts +0 -0
- /package/{random → types/random}/number-generator/random-number-generator.d.ts +0 -0
- /package/{random → types/random}/number-generator/seeded-random-number-generator.d.ts +0 -0
- /package/{random → types/random}/number-generator/sfc32.d.ts +0 -0
- /package/{random → types/random}/number-generator/utils.d.ts +0 -0
- /package/{random → types/random}/series.d.ts +0 -0
- /package/{reflection → types/reflection}/decorator-data.d.ts +0 -0
- /package/{reflection → types/reflection}/index.d.ts +0 -0
- /package/{require.d.ts → types/require.d.ts} +0 -0
- /package/{rpc → types/rpc}/adapters/index.d.ts +0 -0
- /package/{rpc → types/rpc}/adapters/readable-stream.adapter.d.ts +0 -0
- /package/{rpc → types/rpc}/endpoints/index.d.ts +0 -0
- /package/{rpc → types/rpc}/endpoints/message-port.rpc-endpoint.d.ts +0 -0
- /package/{rpc → types/rpc}/index.d.ts +0 -0
- /package/{rpc → types/rpc}/rpc.endpoint.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/cast.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/index.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/noop.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/reject-error.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/slow-array.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/start-with-provider.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/teardown.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/timing.d.ts +0 -0
- /package/{rxjs-utils → types/rxjs-utils}/untrack.d.ts +0 -0
- /package/{schema → types/schema}/converters/index.d.ts +0 -0
- /package/{schema → types/schema}/decorators/index.d.ts +0 -0
- /package/{schema → types/schema}/index.d.ts +0 -0
- /package/{schema → types/schema}/schemas/any.d.ts +0 -0
- /package/{schema → types/schema}/schemas/bigint.d.ts +0 -0
- /package/{schema → types/schema}/schemas/boolean.d.ts +0 -0
- /package/{schema → types/schema}/schemas/date.d.ts +0 -0
- /package/{schema → types/schema}/schemas/index.d.ts +0 -0
- /package/{schema → types/schema}/schemas/readable-stream.d.ts +0 -0
- /package/{schema → types/schema}/schemas/regexp.d.ts +0 -0
- /package/{schema → types/schema}/schemas/string.d.ts +0 -0
- /package/{schema → types/schema}/schemas/symbol.d.ts +0 -0
- /package/{schema → types/schema}/schemas/uint8-array.d.ts +0 -0
- /package/{schema → types/schema}/schemas/unknown.d.ts +0 -0
- /package/{schema → types/schema}/testable.d.ts +0 -0
- /package/{schema → types/schema}/types.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/index.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/keyword-rewriter.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/model/elastic-query.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/model/index.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/query-builder/boolean-query-builder.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/query-builder/index.d.ts +0 -0
- /package/{search-index → types/search-index}/elastic/types.d.ts +0 -0
- /package/{search-index → types/search-index}/index.d.ts +0 -0
- /package/{search-index → types/search-index}/memory/index.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/date.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/error.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/index.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/map.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/regex.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/register.d.ts +0 -0
- /package/{serializer → types/serializer}/handlers/set.d.ts +0 -0
- /package/{serializer → types/serializer}/index.d.ts +0 -0
- /package/{signals → types/signals}/api.d.ts +0 -0
- /package/{signals → types/signals}/computed-with-dependencies.d.ts +0 -0
- /package/{signals → types/signals}/effect-with-dependencies.d.ts +0 -0
- /package/{signals → types/signals}/implementation/api.d.ts +0 -0
- /package/{signals → types/signals}/implementation/asserts.d.ts +0 -0
- /package/{signals → types/signals}/implementation/computed.d.ts +0 -0
- /package/{signals → types/signals}/implementation/configure.d.ts +0 -0
- /package/{signals → types/signals}/implementation/effect.d.ts +0 -0
- /package/{signals → types/signals}/implementation/equality.d.ts +0 -0
- /package/{signals → types/signals}/implementation/errors.d.ts +0 -0
- /package/{signals → types/signals}/implementation/graph.d.ts +0 -0
- /package/{signals → types/signals}/implementation/index.d.ts +0 -0
- /package/{signals → types/signals}/implementation/signal.d.ts +0 -0
- /package/{signals → types/signals}/implementation/to-observable.d.ts +0 -0
- /package/{signals → types/signals}/implementation/to-signal.d.ts +0 -0
- /package/{signals → types/signals}/implementation/untracked.d.ts +0 -0
- /package/{signals → types/signals}/implementation/watch.d.ts +0 -0
- /package/{signals → types/signals}/implementation/writable-signal.d.ts +0 -0
- /package/{signals → types/signals}/index.d.ts +0 -0
- /package/{signals → types/signals}/notifier.d.ts +0 -0
- /package/{signals → types/signals}/operators/combine.d.ts +0 -0
- /package/{signals → types/signals}/operators/defer.d.ts +0 -0
- /package/{signals → types/signals}/operators/derive-async.d.ts +0 -0
- /package/{signals → types/signals}/operators/index.d.ts +0 -0
- /package/{signals → types/signals}/operators/map.d.ts +0 -0
- /package/{signals → types/signals}/operators/switchAll.d.ts +0 -0
- /package/{signals → types/signals}/pipe.d.ts +0 -0
- /package/{signals → types/signals}/symbol.d.ts +0 -0
- /package/{signals → types/signals}/to-lazy-signal.d.ts +0 -0
- /package/{signals → types/signals}/types.d.ts +0 -0
- /package/{signals → types/signals}/untracked-operator.d.ts +0 -0
- /package/{sse → types/sse}/index.d.ts +0 -0
- /package/{sse → types/sse}/model.d.ts +0 -0
- /package/{sse → types/sse}/server-sent-events.d.ts +0 -0
- /package/{supports.d.ts → types/supports.d.ts} +0 -0
- /package/{templates → types/templates}/index.d.ts +0 -0
- /package/{templates → types/templates}/providers/index.d.ts +0 -0
- /package/{templates → types/templates}/providers/memory.template-provider.d.ts +0 -0
- /package/{templates → types/templates}/renderers/index.d.ts +0 -0
- /package/{templates → types/templates}/resolvers/index.d.ts +0 -0
- /package/{templates → types/templates}/template-renderer.provider.d.ts +0 -0
- /package/{templates → types/templates}/template-resolver.provider.d.ts +0 -0
- /package/{templates → types/templates}/template.provider.d.ts +0 -0
- /package/{templates → types/templates}/template.resolver.d.ts +0 -0
- /package/{templates → types/templates}/types/index.d.ts +0 -0
- /package/{templates → types/templates}/types/jsx.intrinsic-elements.d.ts +0 -0
- /package/{text → types/text}/common-localization.d.ts +0 -0
- /package/{text → types/text}/index.d.ts +0 -0
- /package/{text → types/text}/localizable-text.model.d.ts +0 -0
- /package/{theme → types/theme}/adapters/css-adapter.d.ts +0 -0
- /package/{theme → types/theme}/adapters/index.d.ts +0 -0
- /package/{theme → types/theme}/index.d.ts +0 -0
- /package/{threading → types/threading}/index.d.ts +0 -0
- /package/{threading → types/threading}/thread-worker.d.ts +0 -0
- /package/{tokens.d.ts → types/tokens.d.ts} +0 -0
- /package/{utils → types/utils}/alphabet.d.ts +0 -0
- /package/{utils → types/utils}/any-iterable-iterator.d.ts +0 -0
- /package/{utils → types/utils}/array/array-backtracker.d.ts +0 -0
- /package/{utils → types/utils}/array/array.d.ts +0 -0
- /package/{utils → types/utils}/array/index.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/all.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/any.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/assert.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/batch.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/buffer.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/concat.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/default-if-empty.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/deferred.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/difference.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/distinct.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/drain.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/filter.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/first-or-default.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/first.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/for-each.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/group-single.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/group-to-map.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/group-to-single-map.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/group.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/includes.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/index.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/interrupt.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/is-async-iterable.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/last-or-default.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/last.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/map-many.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/map.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/materialize.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/metadata.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/multiplex.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/observable-iterable.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/pairwise.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/feed.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/filter.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/for-each.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/group.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/index.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/map.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/tap.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/parallel/types.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/reduce.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/retry.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/single-or-default.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/single.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/skip.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/sort.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/take-while.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/take.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/tap.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/throttle.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/to-array.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/to-async-iterable-iterator.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/to-async-iterator.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/to-set.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/to-sync-iterable.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/types.d.ts +0 -0
- /package/{utils → types/utils}/async-iterable-helpers/while.d.ts +0 -0
- /package/{utils → types/utils}/async-iterator-iterable-iterator.d.ts +0 -0
- /package/{utils → types/utils}/base64.d.ts +0 -0
- /package/{utils → types/utils}/benchmark.d.ts +0 -0
- /package/{utils → types/utils}/binary-search.d.ts +0 -0
- /package/{utils → types/utils}/clone.d.ts +0 -0
- /package/{utils → types/utils}/comparison.d.ts +0 -0
- /package/{utils → types/utils}/compression.d.ts +0 -0
- /package/{utils → types/utils}/config-parser.d.ts +0 -0
- /package/{utils → types/utils}/crc32.d.ts +0 -0
- /package/{utils → types/utils}/date-time.d.ts +0 -0
- /package/{utils → types/utils}/factory-map.d.ts +0 -0
- /package/{utils → types/utils}/feedable-async-iterable.d.ts +0 -0
- /package/{utils → types/utils}/file-reader.d.ts +0 -0
- /package/{utils → types/utils}/format.d.ts +0 -0
- /package/{utils → types/utils}/function/throttle.d.ts +0 -0
- /package/{utils → types/utils}/helpers.d.ts +0 -0
- /package/{utils → types/utils}/html-link-utils.d.ts +0 -0
- /package/{utils → types/utils}/image.d.ts +0 -0
- /package/{utils → types/utils}/index.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/all.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/any.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/assert.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/batch.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/concat.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/default-if-empty.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/deferred.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/difference.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/distinct.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/drain.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/filter.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/first-or-default.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/first.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/for-each.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/group-single.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/group-to-map.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/group-to-single-map.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/group.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/includes.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/index.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/is-iterable.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/last-or-default.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/last.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/map-many.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/map.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/materialize.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/metadata.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/pairwise.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/range.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/reduce.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/single-or-default.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/single.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/skip.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/sort.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/take-while.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/take.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/tap.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/types.d.ts +0 -0
- /package/{utils → types/utils}/iterable-helpers/while.d.ts +0 -0
- /package/{utils → types/utils}/map.d.ts +0 -0
- /package/{utils → types/utils}/middleware.d.ts +0 -0
- /package/{utils → types/utils}/moving-metric.d.ts +0 -0
- /package/{utils → types/utils}/noop.d.ts +0 -0
- /package/{utils → types/utils}/object/index.d.ts +0 -0
- /package/{utils → types/utils}/object/merge.d.ts +0 -0
- /package/{utils → types/utils}/ordered-feedable-async-iterable.d.ts +0 -0
- /package/{utils → types/utils}/patterns.d.ts +0 -0
- /package/{utils → types/utils}/periodic-reporter.d.ts +0 -0
- /package/{utils → types/utils}/periodic-sampler.d.ts +0 -0
- /package/{utils → types/utils}/provider-function-iterable.d.ts +0 -0
- /package/{utils → types/utils}/proxy.d.ts +0 -0
- /package/{utils → types/utils}/random.d.ts +0 -0
- /package/{utils → types/utils}/set.d.ts +0 -0
- /package/{utils → types/utils}/sort.d.ts +0 -0
- /package/{utils → types/utils}/stream/finalize-stream.d.ts +0 -0
- /package/{utils → types/utils}/stream/readable-stream-adapter.d.ts +0 -0
- /package/{utils → types/utils}/stream/slice.d.ts +0 -0
- /package/{utils → types/utils}/stream/stream-helper-types.d.ts +0 -0
- /package/{utils → types/utils}/stream/stream-reader.d.ts +0 -0
- /package/{utils → types/utils}/stream/to-bytes-stream.d.ts +0 -0
- /package/{utils → types/utils}/stream/to-readable-stream.d.ts +0 -0
- /package/{utils → types/utils}/string/hypenate.d.ts +0 -0
- /package/{utils → types/utils}/string/index.d.ts +0 -0
- /package/{utils → types/utils}/string/normalize.d.ts +0 -0
- /package/{utils → types/utils}/string/snake-case.d.ts +0 -0
- /package/{utils → types/utils}/string/title-case.d.ts +0 -0
- /package/{utils → types/utils}/string/trim.d.ts +0 -0
- /package/{utils → types/utils}/throw.d.ts +0 -0
- /package/{utils → types/utils}/timer.d.ts +0 -0
- /package/{utils → types/utils}/type/index.d.ts +0 -0
- /package/{utils → types/utils}/type-of.d.ts +0 -0
- /package/{utils → types/utils}/units.d.ts +0 -0
- /package/{utils → types/utils}/url-builder.d.ts +0 -0
- /package/{utils → types/utils}/value-or-provider.d.ts +0 -0
- /package/{web-types.d.ts → types/web-types.d.ts} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PgTransaction as DrizzlePgTransaction, PgQueryResultHKT, PgTransactionConfig } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { DeferredPromise } from '../../../promise/deferred-promise.js';
|
|
3
|
+
import type { Record } from '../../../types.js';
|
|
4
|
+
import type { Database } from './database.js';
|
|
5
|
+
export type PgTransaction = DrizzlePgTransaction<PgQueryResultHKT, Record, Record>;
|
|
6
|
+
export type TransactionConfig = PgTransactionConfig;
|
|
7
|
+
export declare abstract class Transaction {
|
|
8
|
+
#private;
|
|
9
|
+
readonly afterCommit$: import("rxjs").Observable<void>;
|
|
10
|
+
manualCommit: boolean;
|
|
11
|
+
withManualCommit(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Enters automatic transaction handling. Transaction will be commited when all use-calls are done or rolled back when one throws.
|
|
14
|
+
*/
|
|
15
|
+
use<T>(handler: () => Promise<T>): Promise<T>;
|
|
16
|
+
commit(): Promise<void>;
|
|
17
|
+
rollback(): void;
|
|
18
|
+
protected abstract _commit(): Promise<void>;
|
|
19
|
+
protected abstract _rollback(): void;
|
|
20
|
+
}
|
|
21
|
+
export declare class DrizzleTransaction extends Transaction {
|
|
22
|
+
readonly pgTransaction: PgTransaction;
|
|
23
|
+
readonly deferPromise: DeferredPromise<void>;
|
|
24
|
+
readonly pgTransactionPromise: Promise<void>;
|
|
25
|
+
constructor(pgTransaction: PgTransaction, pgTransactionPromise: Promise<void>);
|
|
26
|
+
static create(session: Database | PgTransaction, config?: TransactionConfig): Promise<DrizzleTransaction>;
|
|
27
|
+
protected _commit(): Promise<void>;
|
|
28
|
+
protected _rollback(): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Database } from './database.js';
|
|
2
|
+
import { type PgTransaction, type Transaction, type TransactionConfig } from './transaction.js';
|
|
3
|
+
export type TransactionInitOptions = TransactionConfig & {
|
|
4
|
+
/**
|
|
5
|
+
* Indicates that an existing transaction should be used if available instead of creating a new one.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
useExisting?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type TransactionHandler<R> = (transaction: Transaction) => Promise<R>;
|
|
11
|
+
type TransactionalContext<ContextData = unknown> = {
|
|
12
|
+
session: Database | PgTransaction;
|
|
13
|
+
cache: WeakMap<Database | PgTransaction, any>;
|
|
14
|
+
data: ContextData;
|
|
15
|
+
};
|
|
16
|
+
declare const getCurrentTransactionalContext: {
|
|
17
|
+
(required: true, debugFn: import("../../../types.js").Function): TransactionalContext<unknown>;
|
|
18
|
+
(required?: false, debugFn?: import("../../../types.js").Function): TransactionalContext<unknown> | null;
|
|
19
|
+
(required: boolean, debugFn: import("../../../types.js").Function): TransactionalContext<unknown> | null;
|
|
20
|
+
}, runInTransactionalContext: <ReturnT>(context: TransactionalContext<unknown>, fn: () => ReturnT) => ReturnT, isInTransactionalContext: () => boolean;
|
|
21
|
+
export { getCurrentTransactionalContext, isInTransactionalContext, runInTransactionalContext };
|
|
22
|
+
export declare abstract class Transactional<ContextData = unknown> {
|
|
23
|
+
#private;
|
|
24
|
+
readonly session: PgTransaction | Database;
|
|
25
|
+
readonly isInTransaction: boolean;
|
|
26
|
+
constructor();
|
|
27
|
+
/**
|
|
28
|
+
* Starts a new database transaction.
|
|
29
|
+
* @param config Optional transaction configuration.
|
|
30
|
+
* @returns A promise that resolves to the new Transaction instance.
|
|
31
|
+
*/
|
|
32
|
+
startTransaction(config?: TransactionInitOptions): Promise<Transaction>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns a new instance of the repository bound to the provided session.
|
|
35
|
+
* Useful for performing multiple operations within a single database session.
|
|
36
|
+
* @param session The session to bind to.
|
|
37
|
+
* @returns A new repository instance bound to the session.
|
|
38
|
+
*/
|
|
39
|
+
withSession(session: Database | PgTransaction): this;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a new instance of the repository bound to the provided transaction, if a transaction is provided.
|
|
42
|
+
* Otherwise, returns the current instance.
|
|
43
|
+
* @param transaction The transaction to bind to (optional).
|
|
44
|
+
* @returns A repository instance bound to the transaction or the current instance.
|
|
45
|
+
*/
|
|
46
|
+
withOptionalTransaction(transaction: Transaction | undefined): this;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a new instance of the repository bound to the provided transaction.
|
|
49
|
+
* Useful for performing multiple operations within a single database transaction.
|
|
50
|
+
* @param transaction The transaction to bind to.
|
|
51
|
+
* @returns A new repository instance bound to the transaction.
|
|
52
|
+
*/
|
|
53
|
+
withTransaction(transaction: Transaction): this;
|
|
54
|
+
/**
|
|
55
|
+
* Executes a handler function within the provided transaction. If no transaction is provided,
|
|
56
|
+
* it starts a new transaction, executes the handler, and commits or rolls back based on the outcome.
|
|
57
|
+
* @template R The return type of the handler.
|
|
58
|
+
* @param existingTransaction The transaction to use (optional). Creates a new one otherwise.
|
|
59
|
+
* @param handler The function to execute within the transaction.
|
|
60
|
+
* @returns A promise that resolves to the result of the handler function.
|
|
61
|
+
*/
|
|
62
|
+
useTransaction<R>(existingTransaction: Transaction | undefined, handler: TransactionHandler<R>): Promise<R>;
|
|
63
|
+
/**
|
|
64
|
+
* Starts a new transaction, executes the provided handler function within it,
|
|
65
|
+
* and automatically commits the transaction if the handler succeeds or rolls it back if it throws an error.
|
|
66
|
+
* @template R The return type of the handler.
|
|
67
|
+
* @param handler The function to execute within the transaction.
|
|
68
|
+
* @param config Optional transaction configuration.
|
|
69
|
+
* @returns A promise that resolves to the result of the handler function.
|
|
70
|
+
*/
|
|
71
|
+
transaction<R>(handler: TransactionHandler<R>, config?: TransactionInitOptions): Promise<R>;
|
|
72
|
+
protected getTransactionalContextData(): ContextData;
|
|
73
|
+
}
|
|
74
|
+
export declare function tryGetTransactionalContextData<T>(_instance?: Transactional<T>): T | undefined;
|
|
75
|
+
export declare function getTransactionalContextData<T>(_instance?: Transactional<T>): T;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BuildColumns, NotNull } from 'drizzle-orm';
|
|
2
|
+
import type { PgColumnBuilder, PgTableWithColumns } from 'drizzle-orm/pg-core';
|
|
3
|
+
import type { CamelCase, ConditionalPick, SnakeCase } from 'type-fest';
|
|
4
|
+
import type { JsonPath } from '../../../json-path/json-path.js';
|
|
5
|
+
import type { Record } from '../../../schema/index.js';
|
|
6
|
+
import type { UnionToIntersection } from '../../../types.js';
|
|
7
|
+
import type { Tagged } from '../../../types/index.js';
|
|
8
|
+
import type { OrmColumnReflectionData } from '../decorators.js';
|
|
9
|
+
import type { EntityType } from '../entity.js';
|
|
10
|
+
import type { ColumnBuilder, EmbeddedConfigTag } from '../types.js';
|
|
11
|
+
export type BuildTypeOptions = {
|
|
12
|
+
skipPrimaryKey?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ColumnDefinition = {
|
|
15
|
+
name: string;
|
|
16
|
+
objectPath: JsonPath;
|
|
17
|
+
reflectionData: OrmColumnReflectionData | undefined;
|
|
18
|
+
buildType: (options: BuildTypeOptions) => PgColumnBuilder<any, any, any, any>;
|
|
19
|
+
dereferenceObjectPath: (obj: Record) => any;
|
|
20
|
+
toDatabase: (value: unknown, context: TransformContext) => any;
|
|
21
|
+
fromDatabase: (value: unknown, context: TransformContext) => any;
|
|
22
|
+
};
|
|
23
|
+
export type ColumnDefinitionsMap = Map<string, ColumnDefinition>;
|
|
24
|
+
export type TransformContext = {
|
|
25
|
+
encryptionKey?: CryptoKey;
|
|
26
|
+
};
|
|
27
|
+
type Column<Name extends string, T> = null extends T ? ColumnBuilder<Exclude<T, null>, Name> : NotNull<ColumnBuilder<T, Name>>;
|
|
28
|
+
export type ColumnPrefix<T> = T extends Tagged<unknown, EmbeddedConfigTag, {
|
|
29
|
+
prefix: infer Prefix;
|
|
30
|
+
}> ? Prefix extends string ? Prefix : '' : '';
|
|
31
|
+
export type PgTableFromType<T extends EntityType = EntityType, S extends string = string, TableName extends string = T extends Required<EntityType> ? SnakeCase<T['entityName']> : string> = PgTableWithColumns<{
|
|
32
|
+
name: TableName;
|
|
33
|
+
schema: S;
|
|
34
|
+
columns: BuildColumns<TableName, {
|
|
35
|
+
[P in Exclude<keyof InstanceType<T>, keyof EmbeddedProperties<InstanceType<T>>>]: Column<CamelCase<Extract<P, string>>, InstanceType<T>[P]>;
|
|
36
|
+
} & UnionToIntersection<{
|
|
37
|
+
[P in keyof EmbeddedProperties<InstanceType<T>>]: EmbeddedColumns<InstanceType<T>[P], ColumnPrefix<InstanceType<T>[P]>>;
|
|
38
|
+
}[keyof EmbeddedProperties<InstanceType<T>>]>, 'pg'>;
|
|
39
|
+
dialect: 'pg';
|
|
40
|
+
}>;
|
|
41
|
+
export type EmbeddedProperties<T> = ConditionalPick<T, Tagged<unknown, EmbeddedConfigTag, {
|
|
42
|
+
prefix: any;
|
|
43
|
+
}>>;
|
|
44
|
+
export type EmbeddedColumns<T, Prefix extends string> = {
|
|
45
|
+
[P in keyof T as CamelCase<`${Prefix}${Extract<P, string>}`>]: Column<CamelCase<`${Prefix}${Extract<P, string>}`>, T[P]>;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* Provides utility SQL functions and constants for use with Drizzle ORM,
|
|
4
|
+
* simplifying common SQL operations like generating UUIDs, working with intervals,
|
|
5
|
+
* and aggregating data.
|
|
6
|
+
*/
|
|
7
|
+
import { type Column, type SQL } from 'drizzle-orm';
|
|
8
|
+
import type { GetSelectTableSelection, SelectResultField, TableLike } from 'drizzle-orm/query-builders/select.types';
|
|
9
|
+
import type { Uuid } from './types.js';
|
|
10
|
+
/** Drizzle SQL helper for getting the current transaction's timestamp. Returns a Date object. */
|
|
11
|
+
export declare const TRANSACTION_TIMESTAMP: SQL<Date>;
|
|
12
|
+
/** Drizzle SQL helper for generating a random UUID (v4). Returns a Uuid string. */
|
|
13
|
+
export declare const RANDOM_UUID: SQL<Uuid>;
|
|
14
|
+
/** Represents valid units for PostgreSQL interval values. */
|
|
15
|
+
export type IntervalUnit = 'millennium' | 'millenniums' | 'millennia' | 'century' | 'centuries' | 'decade' | 'decades' | 'year' | 'years' | 'day' | 'days' | 'hour' | 'hours' | 'minute' | 'minutes' | 'second' | 'seconds' | 'millisecond' | 'milliseconds' | 'microsecond' | 'microseconds';
|
|
16
|
+
/**
|
|
17
|
+
* Creates a Drizzle SQL interval expression.
|
|
18
|
+
* @param value - The numeric value of the interval.
|
|
19
|
+
* @param unit - The unit of the interval (e.g., 'day', 'hour').
|
|
20
|
+
* @returns A Drizzle SQL object representing the interval.
|
|
21
|
+
*/
|
|
22
|
+
export declare function interval(value: number, unit: IntervalUnit): SQL;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a Drizzle SQL `array_agg` aggregate function call.
|
|
25
|
+
* Aggregates values from a column into a PostgreSQL array.
|
|
26
|
+
* @template T - The Drizzle column type.
|
|
27
|
+
* @param column - The column to aggregate.
|
|
28
|
+
* @returns A Drizzle SQL object representing the aggregated array.
|
|
29
|
+
*/
|
|
30
|
+
export declare function arrayAgg<T extends Column>(column: T): SQL<SelectResultField<T>[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a Drizzle SQL `json_agg` aggregate function call.
|
|
33
|
+
* Aggregates rows or column values into a JSON array.
|
|
34
|
+
* @template T - The Drizzle table or column type.
|
|
35
|
+
* @param tableOrColumn - The table or column to aggregate into JSON.
|
|
36
|
+
* @returns A Drizzle SQL object representing the JSON aggregated array.
|
|
37
|
+
*/
|
|
38
|
+
export declare function jsonAgg<T extends TableLike>(tableOrColumn: T): SQL<SelectResultField<GetSelectTableSelection<T>>[]>;
|
|
39
|
+
export declare namespace jsonAgg {
|
|
40
|
+
var withNull: <T extends TableLike>(tableOrColumn: T) => SQL<(SelectResultField<GetSelectTableSelection<T>> | null)[]>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Creates a Drizzle SQL `coalesce` function call.
|
|
44
|
+
* Returns the first non-null value from the provided list of columns or SQL expressions.
|
|
45
|
+
* @template T - An array type of Drizzle Columns or SQL expressions.
|
|
46
|
+
* @param columns - The columns or SQL expressions to check.
|
|
47
|
+
* @returns A Drizzle SQL object representing the coalesced value.
|
|
48
|
+
*/
|
|
49
|
+
export declare function coalesce<T extends (Column | SQL)[]>(...columns: T): SQL<SelectResultField<T>[number]>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a Drizzle SQL `to_jsonb` function call.
|
|
52
|
+
* Converts the input column or SQL expression to a JSONB value.
|
|
53
|
+
* @template T - The Drizzle column or SQL expression type.
|
|
54
|
+
* @param column - The column or SQL expression to convert.
|
|
55
|
+
* @returns A Drizzle SQL object representing the value as JSONB.
|
|
56
|
+
*/
|
|
57
|
+
export declare function toJsonb<T extends (Column | SQL)>(column: T): SQL<SelectResultField<T>>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a Drizzle SQL `num_nulls` function call.
|
|
60
|
+
* Counts the number of null arguments.
|
|
61
|
+
* @param columns - The columns to check for nulls.
|
|
62
|
+
* @returns A Drizzle SQL object representing the count of nulls.
|
|
63
|
+
*/
|
|
64
|
+
export declare function numNulls(...columns: Column[]): SQL<number>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a Drizzle SQL `num_nonnulls` function call.
|
|
67
|
+
* Counts the number of non-null arguments.
|
|
68
|
+
* @param columns - The columns to check for non-nulls.
|
|
69
|
+
* @returns A Drizzle SQL object representing the count of non-nulls.
|
|
70
|
+
*/
|
|
71
|
+
export declare function numNonNulls(...columns: Column[]): SQL<number>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* Defines core ORM types, including tagged types for representing database column types
|
|
4
|
+
* (like Uuid, Timestamp, Json, etc.) and helper types for working with Drizzle ORM features
|
|
5
|
+
* like primary keys and default values. It also re-exports common decorators and schemas.
|
|
6
|
+
*/
|
|
7
|
+
import type { $Type, HasDefault as DrizzleHasDefault, IsPrimaryKey as DrizzleIsPrimaryKey } from 'drizzle-orm';
|
|
8
|
+
import type { boolean, doublePrecision, integer, jsonb, PgColumnBuilder, PgColumnBuilderBase, PgEnumColumnBuilderInitial, text, uuid } from 'drizzle-orm/pg-core';
|
|
9
|
+
import { Array, Integer } from '../../schema/index.js';
|
|
10
|
+
import type { AbstractConstructor, EnumerationObject, EnumerationValue, ObjectLiteral, UnionToTuple } from '../../types.js';
|
|
11
|
+
import type { GetTagMetadata, HasTag, Tagged, UnwrapTagged } from '../../types/index.js';
|
|
12
|
+
import type { bytea, numericDate, timestamp } from './data-types/index.js';
|
|
13
|
+
import { Check, Column, Embedded, Encrypted, Index, PrimaryKey, References, Table, Unique } from './decorators.js';
|
|
14
|
+
import { Json, NumericDate, Timestamp, Uuid } from './schemas/index.js';
|
|
15
|
+
/** Tag identifier for column type information. */
|
|
16
|
+
export type ColumnTypeTag = 'column';
|
|
17
|
+
/** Tag identifier for embedded type configuration. */
|
|
18
|
+
export type EmbeddedConfigTag = 'embedded';
|
|
19
|
+
/**
|
|
20
|
+
* Helper type to tag a column type as being a primary key.
|
|
21
|
+
* It wraps the original type `T` and associates Drizzle's `IsPrimaryKey` marker
|
|
22
|
+
* with the underlying Drizzle column builder type stored in the tag metadata.
|
|
23
|
+
* @template T - The original column type (e.g., Uuid, Integer).
|
|
24
|
+
*/
|
|
25
|
+
export type IsPrimaryKey<T> = T extends Tagged<unknown, ColumnTypeTag, PgColumnBuilderBase> ? Tagged<UnwrapTagged<T>, ColumnTypeTag, DrizzleIsPrimaryKey<GetTagMetadata<T, ColumnTypeTag>>> : Tagged<T, ColumnTypeTag, DrizzleIsPrimaryKey<ColumnBuilder<T>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Helper type to tag a column type as having a default value.
|
|
28
|
+
* It wraps the original type `T` and associates Drizzle's `HasDefault` marker
|
|
29
|
+
* with the underlying Drizzle column builder type stored in the tag metadata.
|
|
30
|
+
* @template T - The original column type (e.g., Uuid, Timestamp).
|
|
31
|
+
*/
|
|
32
|
+
export type HasDefault<T> = T extends Tagged<unknown, ColumnTypeTag, PgColumnBuilderBase> ? Tagged<UnwrapTagged<T>, ColumnTypeTag, DrizzleHasDefault<GetTagMetadata<T, ColumnTypeTag>>> : Tagged<T, ColumnTypeTag, DrizzleHasDefault<ColumnBuilder<T>>>;
|
|
33
|
+
type EnumColumn<T extends string | number, ColumnName extends string = ''> = PgEnumColumnBuilderInitial<ColumnName, UnionToTuple<`${T}`> extends [string, ...string[]] ? UnionToTuple<`${T}`> : ['NO_VALUES_PROVIDED']>;
|
|
34
|
+
type TextTuple<T extends string> = UnionToTuple<`${T}`> extends [string, ...string[]] ? UnionToTuple<`${T}`> : [string];
|
|
35
|
+
type HandledColumnName<T extends string = never> = [T] extends [never] ? '' : T;
|
|
36
|
+
/**
|
|
37
|
+
* Utility type to infer the Drizzle column builder type based on a TypeScript type `T`.
|
|
38
|
+
* Handles primitive types (string, number, boolean), arrays, enums, Uint8Array,
|
|
39
|
+
* and existing tagged column types.
|
|
40
|
+
* @template T - The TypeScript type to map to a column builder.
|
|
41
|
+
* @template ColumnName - Optional column name for context.
|
|
42
|
+
*/
|
|
43
|
+
export type ColumnBuilder<T, ColumnName extends string = never> = HasTag<T> extends true ? T extends Tagged<unknown, ColumnTypeTag, any> ? GetTagMetadata<T, ColumnTypeTag> : never : T extends string ? ReturnType<typeof text<HandledColumnName<ColumnName>, string, TextTuple<T>>> : T extends number ? ReturnType<typeof doublePrecision<HandledColumnName<ColumnName>>> : T extends boolean ? ReturnType<typeof boolean<HandledColumnName<ColumnName>>> : T extends Uint8Array ? ReturnType<typeof bytea<HandledColumnName<ColumnName>>> : T extends EnumerationObject ? EnumColumn<EnumerationValue<T>, HandledColumnName<ColumnName>> : T extends (infer U)[] ? ReturnType<ColumnBuilder<U, HandledColumnName<ColumnName>>['array']> : never;
|
|
44
|
+
/**
|
|
45
|
+
* Tagged type representing an embedded class configuration.
|
|
46
|
+
* Stores the embedded type `T` and an optional column name prefix `P`.
|
|
47
|
+
* @template T - The constructor of the class being embedded.
|
|
48
|
+
* @template P - An optional prefix for the column names generated from the embedded class properties.
|
|
49
|
+
*/
|
|
50
|
+
export type Embedded<T = AbstractConstructor, P extends string = ''> = Tagged<T, EmbeddedConfigTag, {
|
|
51
|
+
prefix: P;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Tagged type representing a PostgreSQL array column.
|
|
55
|
+
* Wraps an existing tagged column type `T` and derives the Drizzle array column builder.
|
|
56
|
+
* @template T - The tagged type of the array elements.
|
|
57
|
+
*/
|
|
58
|
+
export type Array<T extends Tagged<ObjectLiteral, ColumnTypeTag, PgColumnBuilder<any>>> = Tagged<UnwrapTagged<T>[], ColumnTypeTag, ReturnType<GetTagMetadata<T, ColumnTypeTag>['array']>>;
|
|
59
|
+
/**
|
|
60
|
+
* Tagged type representing a JSONB column.
|
|
61
|
+
* Stores the TypeScript type `T` that the JSONB data represents.
|
|
62
|
+
* @template T - The TypeScript type of the data stored in the JSONB column.
|
|
63
|
+
*/
|
|
64
|
+
export type Json<T> = Tagged<T, ColumnTypeTag, $Type<ReturnType<typeof jsonb>, T>>;
|
|
65
|
+
/**
|
|
66
|
+
* Tagged type representing a PostgreSQL enum column.
|
|
67
|
+
* Derives the enum values and the Drizzle enum column builder from the provided enum object `T`.
|
|
68
|
+
* @template T - The enumeration object type.
|
|
69
|
+
*/
|
|
70
|
+
export type Enum<T extends string | number> = Tagged<T, ColumnTypeTag, EnumColumn<T>>;
|
|
71
|
+
/** Tagged type representing a `text` column. */
|
|
72
|
+
export type Text<T extends string = string> = Tagged<string, ColumnTypeTag, ReturnType<typeof text<string, TextTuple<T>>>>;
|
|
73
|
+
/** Tagged type representing a `uuid` column. Stores the UUID as a string. */
|
|
74
|
+
export type Uuid = Tagged<string, ColumnTypeTag, ReturnType<typeof uuid>>;
|
|
75
|
+
/** Tagged type representing an `integer` column. */
|
|
76
|
+
export type Integer = Tagged<number, ColumnTypeTag, ReturnType<typeof integer>>;
|
|
77
|
+
/** Tagged type representing a `double precision` column. */
|
|
78
|
+
export type DoublePrecision = Tagged<number, ColumnTypeTag, ReturnType<typeof doublePrecision>>;
|
|
79
|
+
/** Tagged type representing a `boolean` column. */
|
|
80
|
+
export type Boolean = Tagged<number, ColumnTypeTag, ReturnType<typeof boolean>>;
|
|
81
|
+
/** Tagged type representing a custom `numericDate` column (stores date as number YYYYMMDD). */
|
|
82
|
+
export type NumericDate = Tagged<number, ColumnTypeTag, ReturnType<typeof numericDate>>;
|
|
83
|
+
/** Tagged type representing a `timestamp` column (stores timestamp as number - milliseconds since epoch). */
|
|
84
|
+
export type Timestamp = Tagged<number, ColumnTypeTag, ReturnType<typeof timestamp>>;
|
|
85
|
+
/** Tagged type representing a `bytea` (byte array) column. */
|
|
86
|
+
export type Bytea = Tagged<Uint8Array, ColumnTypeTag, ReturnType<typeof bytea>>;
|
|
87
|
+
/**
|
|
88
|
+
* Tagged type representing an encrypted column.
|
|
89
|
+
* Stores the original TypeScript type `T`, but the underlying database type is `bytea`.
|
|
90
|
+
* @template T - The original (unencrypted) type of the data.
|
|
91
|
+
*/
|
|
92
|
+
export type Encrypted<T> = Tagged<T, ColumnTypeTag, ReturnType<typeof bytea>>;
|
|
93
|
+
export { Array, Check, Column, Embedded, Encrypted, Index, Integer, Json, NumericDate, PrimaryKey, References, Table, Timestamp, Unique, Uuid };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* Provides utility functions for working with ORM entities.
|
|
4
|
+
*/
|
|
5
|
+
import type { Entity, EntityWithoutMetadata } from './entity.js';
|
|
6
|
+
/**
|
|
7
|
+
* Converts an array of entities into a Map keyed by entity ID.
|
|
8
|
+
* @template T - The entity type, must extend `Entity` (i.e., have an `id` property).
|
|
9
|
+
* @param entities - An array of entities.
|
|
10
|
+
* @returns A Map where keys are entity IDs and values are the corresponding entities.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getEntityMap<T extends Entity | EntityWithoutMetadata>(entities: T[]): Map<string, T>;
|
|
13
|
+
/**
|
|
14
|
+
* Extracts the IDs from an array of entities.
|
|
15
|
+
* @template T - The entity type, must extend `Entity` (i.e., have an `id` property).
|
|
16
|
+
* @param entities - An array of entities.
|
|
17
|
+
* @returns An array containing the IDs of the entities.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getEntityIds(entities: (Entity | EntityWithoutMetadata)[]): string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
|
+
export declare const PasswordStrength: {
|
|
3
|
+
readonly VeryWeak: 0;
|
|
4
|
+
readonly Weak: 1;
|
|
5
|
+
readonly Medium: 2;
|
|
6
|
+
readonly Strong: 3;
|
|
7
|
+
readonly VeryStrong: 4;
|
|
8
|
+
};
|
|
9
|
+
export type PasswordStrength = EnumType<typeof PasswordStrength>;
|
|
10
|
+
export declare class PasswordCheckResult {
|
|
11
|
+
strength: PasswordStrength;
|
|
12
|
+
/**
|
|
13
|
+
* Count of how many times it appears in the data set from https://haveibeenpwned.com/
|
|
14
|
+
* Undefined if disabled in options or error occured (either timeout or api error)
|
|
15
|
+
*/
|
|
16
|
+
pwned?: number;
|
|
17
|
+
warnings: string[];
|
|
18
|
+
suggestions: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Localization, LocalizeItem } from '../../text/localization.service.js';
|
|
2
|
+
import type zxcvbnTranslationKeys from '@zxcvbn-ts/core/dist/data/translationKeys.js';
|
|
3
|
+
export type PasswordCheckLocalization = Localization<{
|
|
4
|
+
tstdl: {
|
|
5
|
+
passwordCheck: {
|
|
6
|
+
warnings: Record<keyof typeof zxcvbnTranslationKeys['default']['warnings'], LocalizeItem>;
|
|
7
|
+
suggestions: Record<keyof typeof zxcvbnTranslationKeys['default']['suggestions'], LocalizeItem>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export declare const passwordCheckLocalizationKeys: import("../../text/localization.service.js").ProxyLocalizationKeys<{
|
|
12
|
+
tstdl: {
|
|
13
|
+
passwordCheck: {
|
|
14
|
+
warnings: Record<keyof (typeof zxcvbnTranslationKeys)["default"]["warnings"], LocalizeItem>;
|
|
15
|
+
suggestions: Record<keyof (typeof zxcvbnTranslationKeys)["default"]["suggestions"], LocalizeItem>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
export declare const germanPasswordCheckLocalization: PasswordCheckLocalization;
|
|
20
|
+
export declare const englishPasswordCheckLocalization: PasswordCheckLocalization;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PDF generation
|
|
3
|
+
*
|
|
4
|
+
* @module PDF
|
|
5
|
+
*/
|
|
6
|
+
import { BrowserContextController } from '../../browser/browser-context-controller.js';
|
|
7
|
+
import type { BrowserControllerArgument } from '../../browser/browser-controller.js';
|
|
8
|
+
import { PdfRenderOptions } from '../../browser/pdf-options.js';
|
|
9
|
+
import type { Resolvable } from '../../injector/index.js';
|
|
10
|
+
import { resolveArgumentType } from '../../injector/index.js';
|
|
11
|
+
import { LogLevel } from '../../logger/level.js';
|
|
12
|
+
import type { TemplateField } from '../../templates/index.js';
|
|
13
|
+
import { Template } from '../../templates/index.js';
|
|
14
|
+
export declare class PdfServiceRenderOptions extends PdfRenderOptions {
|
|
15
|
+
browserContext?: BrowserContextController;
|
|
16
|
+
locale?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
waitForNetworkIdle?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Delay pdf creation to ensure content has finished rendering
|
|
23
|
+
* @default 50
|
|
24
|
+
*/
|
|
25
|
+
delay?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
log?: boolean | LogLevel;
|
|
30
|
+
}
|
|
31
|
+
export type PdfTemplateOptions = PdfRenderOptions;
|
|
32
|
+
export declare class PdfTemplate<Context extends object = any> extends Template<{
|
|
33
|
+
header: false;
|
|
34
|
+
body: true;
|
|
35
|
+
footer: false;
|
|
36
|
+
}, PdfRenderOptions, Context> {
|
|
37
|
+
options?: PdfTemplateOptions;
|
|
38
|
+
}
|
|
39
|
+
export type PdfServiceOptions = {
|
|
40
|
+
locale?: string;
|
|
41
|
+
};
|
|
42
|
+
export type PdfServiceArgument = PdfServiceOptions & {
|
|
43
|
+
browserControllerArgument: BrowserControllerArgument;
|
|
44
|
+
};
|
|
45
|
+
export declare class PdfService implements Resolvable<PdfServiceArgument> {
|
|
46
|
+
private readonly templateService;
|
|
47
|
+
private readonly browserController;
|
|
48
|
+
private readonly logger;
|
|
49
|
+
private readonly defaultLocale;
|
|
50
|
+
readonly [resolveArgumentType]: PdfServiceArgument;
|
|
51
|
+
/**
|
|
52
|
+
* Renders HTML to pdf stream
|
|
53
|
+
* @param html html to render
|
|
54
|
+
* @param options render options
|
|
55
|
+
* @returns pdf stream
|
|
56
|
+
*/
|
|
57
|
+
renderHtmlStream(html: string, options?: PdfServiceRenderOptions): ReadableStream<Uint8Array>;
|
|
58
|
+
/**
|
|
59
|
+
* Renders HTML to pdf
|
|
60
|
+
* @param html html to render
|
|
61
|
+
* @param options render options
|
|
62
|
+
* @returns pdf bytes
|
|
63
|
+
*/
|
|
64
|
+
renderHtml(html: string, options?: PdfServiceRenderOptions): Promise<Uint8Array>;
|
|
65
|
+
/**
|
|
66
|
+
* Renders an url to pdf stream
|
|
67
|
+
* @param url url to load and render
|
|
68
|
+
* @param options render options
|
|
69
|
+
* @returns pdf stream
|
|
70
|
+
*/
|
|
71
|
+
renderUrlStream(url: string, options?: PdfServiceRenderOptions): ReadableStream<Uint8Array>;
|
|
72
|
+
/**
|
|
73
|
+
* Renders an url to pdf
|
|
74
|
+
* @param url url to load and render
|
|
75
|
+
* @param options render options
|
|
76
|
+
* @returns pdf bytes
|
|
77
|
+
*/
|
|
78
|
+
renderUrl(url: string, options?: PdfServiceRenderOptions): Promise<Uint8Array>;
|
|
79
|
+
/**
|
|
80
|
+
* Renders a template to pdf
|
|
81
|
+
* @param key template key
|
|
82
|
+
* @param templateContext context for template rendering
|
|
83
|
+
* @param options additional options, overwrites options specified in template
|
|
84
|
+
* @returns pdf bytes
|
|
85
|
+
*/
|
|
86
|
+
renderTemplateStream<Context extends object>(keyOrTemplate: string | PdfTemplate<Context>, templateContext?: Context, options?: PdfServiceRenderOptions): ReadableStream<Uint8Array>;
|
|
87
|
+
/**
|
|
88
|
+
* Renders a template to pdf
|
|
89
|
+
* @param key template key
|
|
90
|
+
* @param templateContext context for template rendering
|
|
91
|
+
* @param options additional options, overwrites options specified in template
|
|
92
|
+
* @returns pdf bytes
|
|
93
|
+
*/
|
|
94
|
+
renderTemplate(keyOrTemplate: string | PdfTemplate, templateContext?: object, options?: PdfServiceRenderOptions): Promise<Uint8Array>;
|
|
95
|
+
private renderStream;
|
|
96
|
+
}
|
|
97
|
+
export declare function pdfTemplate(name: string, fields: {
|
|
98
|
+
body: TemplateField;
|
|
99
|
+
header?: TemplateField;
|
|
100
|
+
footer?: TemplateField;
|
|
101
|
+
}, options?: PdfTemplateOptions): PdfTemplate;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function getPdfPageCount(file: string | Uint8Array | ReadableStream<Uint8Array>): Promise<number>;
|
|
2
|
+
export declare function mergePdfs(pdfs: (string | Uint8Array | ReadableStream<Uint8Array>)[]): Promise<Uint8Array>;
|
|
3
|
+
export declare function mergePdfsStream(pdfs: (string | Uint8Array | ReadableStream<Uint8Array>)[]): Promise<ReadableStream<Uint8Array>>;
|
|
4
|
+
/**
|
|
5
|
+
* Convert a PDF page to an image.
|
|
6
|
+
* @param file The PDF file to convert.
|
|
7
|
+
* @param page The page number to convert.
|
|
8
|
+
* @param size The size of the output image.
|
|
9
|
+
* @param format The format of the output image.
|
|
10
|
+
* @returns The converted image as a byte array.
|
|
11
|
+
*/
|
|
12
|
+
export declare function pdfToImage(file: string | Uint8Array | ReadableStream<Uint8Array>, page: number, size: number, format: 'png' | 'jpeg' | 'tiff' | 'ps' | 'eps' | 'pdf' | 'svg'): Promise<Uint8Array>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { AsyncDisposable } from '../../disposable/disposable.js';
|
|
2
|
+
import { disposeAsync } from '../../disposable/disposable.js';
|
|
3
|
+
import type { Logger } from '../../logger/index.js';
|
|
4
|
+
export type PoolOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* Maximum number of instances
|
|
7
|
+
* @default number of cpu cores
|
|
8
|
+
*/
|
|
9
|
+
size?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Dipose used instance on error instead of reusing it.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
disposeOnError?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type PoolUseOptions = {
|
|
17
|
+
/**
|
|
18
|
+
* Dipose used instance on error instead of reusing it. Overwrites pool instance option
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disposeOnError?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type PoolInstanceFactory<T> = () => T | Promise<T>;
|
|
24
|
+
export type PoolInstanceDisposer<T> = (instance: T) => any | Promise<any>;
|
|
25
|
+
export declare class Pool<T extends object> implements AsyncDisposable {
|
|
26
|
+
private readonly size;
|
|
27
|
+
private readonly disposeOnError;
|
|
28
|
+
private readonly freeInstances;
|
|
29
|
+
private readonly usedInstances;
|
|
30
|
+
private readonly factory;
|
|
31
|
+
private readonly disposer;
|
|
32
|
+
private readonly logger;
|
|
33
|
+
private placeholderInstances;
|
|
34
|
+
private disposed;
|
|
35
|
+
get length(): number;
|
|
36
|
+
constructor(factory: PoolInstanceFactory<T>, disposer: PoolInstanceDisposer<T>, logger: Logger, options?: PoolOptions);
|
|
37
|
+
owns(instance: T): boolean;
|
|
38
|
+
get(): Promise<T>;
|
|
39
|
+
release(instance: T): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Get an instance from the pool and use it
|
|
42
|
+
* @param handler consumer of instance
|
|
43
|
+
* @returns instance
|
|
44
|
+
*/
|
|
45
|
+
use<R>(handler: (instance: T) => R | Promise<R>, options?: PoolUseOptions): Promise<R>;
|
|
46
|
+
disposeInstance(instance: T): Promise<void>;
|
|
47
|
+
dispose(): Promise<void>;
|
|
48
|
+
[disposeAsync](): Promise<void>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChildProcessWithoutNullStreams } from 'node:child_process';
|
|
2
|
+
type WaitOptions = {
|
|
3
|
+
throwOnNonZeroExitCode?: boolean;
|
|
4
|
+
};
|
|
5
|
+
type ProcessResult = {
|
|
6
|
+
code: number | null;
|
|
7
|
+
signal: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type SpawnCommandResult = TransformStream<Uint8Array, Uint8Array> & {
|
|
10
|
+
process: ChildProcessWithoutNullStreams;
|
|
11
|
+
stderr: ReadableStream<Uint8Array>;
|
|
12
|
+
write(chunk: ReadableStream<Uint8Array> | Uint8Array | string, options?: StreamPipeOptions): Promise<void>;
|
|
13
|
+
autoWrite(chunk: ReadableStream<Uint8Array> | Uint8Array | string, options?: StreamPipeOptions): void;
|
|
14
|
+
readOutputBytes(): Promise<Uint8Array>;
|
|
15
|
+
readOutput(): Promise<string>;
|
|
16
|
+
readErrorBytes(): Promise<Uint8Array>;
|
|
17
|
+
readError(): Promise<string>;
|
|
18
|
+
handleNonZeroExitCode(): void;
|
|
19
|
+
wait(options?: WaitOptions): Promise<ProcessResult>;
|
|
20
|
+
};
|
|
21
|
+
export declare function spawnCommand(command: string, args?: string[]): Promise<SpawnCommandResult>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CancellationSignal } from '../cancellation/index.js';
|
|
2
|
+
import { CancellationToken } from '../cancellation/index.js';
|
|
3
|
+
import type { Logger } from '../logger/index.js';
|
|
4
|
+
export declare function getShutdownToken(): CancellationToken;
|
|
5
|
+
export declare function getShutdownSignal(): CancellationSignal;
|
|
6
|
+
export declare function setProcessShutdownLogger(shutdownLogger: Logger): void;
|
|
7
|
+
export declare function requestShutdown(exitCode?: number): void;
|
|
8
|
+
export declare function forceShutdown(exitCode?: number): void;
|
|
9
|
+
export declare function initializeSignals(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type CancellationSignal } from '../../cancellation/token.js';
|
|
2
|
+
import { CustomPromise } from './custom-promise.js';
|
|
3
|
+
export type CancelablePromiseExecutor<T> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, cancellationSignal: CancellationSignal) => void;
|
|
4
|
+
export type CancelablePromiseResult<T, R> = {
|
|
5
|
+
canceled: true;
|
|
6
|
+
reason: R;
|
|
7
|
+
} | {
|
|
8
|
+
canceled: false;
|
|
9
|
+
value: T;
|
|
10
|
+
};
|
|
11
|
+
export declare class CancelablePromise<T, R = void> extends CustomPromise<CancelablePromiseResult<T, R>> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(executor: CancelablePromiseExecutor<T>);
|
|
14
|
+
cancel(reason: R): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Entity, NewEntity } from '../../../database/index.js';
|
|
2
|
+
import type { Job } from '../../../queue/index.js';
|
|
3
|
+
import type { TypedOmit } from '../../../types.js';
|
|
4
|
+
export type MongoJob<T = unknown> = Entity & TypedOmit<Job<T>, 'id'> & {
|
|
5
|
+
queue: string;
|
|
6
|
+
jobId: string;
|
|
7
|
+
enqueueTimestamp: number;
|
|
8
|
+
tries: number;
|
|
9
|
+
lastDequeueTimestamp: number;
|
|
10
|
+
batch: null | string;
|
|
11
|
+
};
|
|
12
|
+
export type NewMongoJob<T> = NewEntity<MongoJob<T>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CollectionArgument } from '../../../database/mongo/index.js';
|
|
2
|
+
import { Collection, MongoEntityRepository } from '../../../database/mongo/index.js';
|
|
3
|
+
import type { Resolvable } from '../../../injector/index.js';
|
|
4
|
+
import { resolveArgumentType } from '../../../injector/index.js';
|
|
5
|
+
import { Logger } from '../../../logger/index.js';
|
|
6
|
+
import { UniqueTagStrategy } from '../../../queue/index.js';
|
|
7
|
+
import type { MongoJob, NewMongoJob } from './job.js';
|
|
8
|
+
export declare class MongoJobRepository<T> extends MongoEntityRepository<MongoJob<T>> implements Resolvable<CollectionArgument<MongoJob<T>>> {
|
|
9
|
+
readonly [resolveArgumentType]: CollectionArgument<MongoJob<T>>;
|
|
10
|
+
constructor(collection: Collection<MongoJob<T>>, logger: Logger);
|
|
11
|
+
insertWithUniqueTagStrategy(newJob: NewMongoJob<T>, uniqueTagStrategy: UniqueTagStrategy): Promise<MongoJob<T>>;
|
|
12
|
+
bulkInsertWithUniqueTagStrategy(newJobs: NewMongoJob<T>[], uniqueTagStrategy: UniqueTagStrategy): Promise<void>;
|
|
13
|
+
}
|