@aerokit/sdk 12.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +277 -0
- package/README.md +170 -0
- package/dist/cjs/bpm/deployer.js +57 -0
- package/dist/cjs/bpm/index.js +35 -0
- package/dist/cjs/bpm/process.js +636 -0
- package/dist/cjs/bpm/tasks.js +973 -0
- package/dist/cjs/bpm/values.js +82 -0
- package/dist/cjs/cache/cache.js +64 -0
- package/dist/cjs/cache/index.js +26 -0
- package/dist/cjs/cms/cmis.js +689 -0
- package/dist/cjs/cms/index.js +26 -0
- package/dist/cjs/component/decorators.js +126 -0
- package/dist/cjs/component/index.js +36 -0
- package/dist/cjs/core/configurations.js +110 -0
- package/dist/cjs/core/context.js +47 -0
- package/dist/cjs/core/env.js +45 -0
- package/dist/cjs/core/globals.js +54 -0
- package/dist/cjs/core/index.js +35 -0
- package/dist/cjs/db/dao.js +795 -0
- package/dist/cjs/db/database.js +904 -0
- package/dist/cjs/db/decorators.js +167 -0
- package/dist/cjs/db/index.js +72 -0
- package/dist/cjs/db/insert.js +51 -0
- package/dist/cjs/db/orm.js +245 -0
- package/dist/cjs/db/ormstatements.js +243 -0
- package/dist/cjs/db/procedure.js +112 -0
- package/dist/cjs/db/query.js +57 -0
- package/dist/cjs/db/repository.js +148 -0
- package/dist/cjs/db/sequence.js +59 -0
- package/dist/cjs/db/sql.js +516 -0
- package/dist/cjs/db/store.js +172 -0
- package/dist/cjs/db/translator.js +100 -0
- package/dist/cjs/db/update.js +43 -0
- package/dist/cjs/etcd/client.js +174 -0
- package/dist/cjs/etcd/index.js +26 -0
- package/dist/cjs/extensions/decorators.js +40 -0
- package/dist/cjs/extensions/extensions.js +108 -0
- package/dist/cjs/extensions/index.js +39 -0
- package/dist/cjs/git/client.js +277 -0
- package/dist/cjs/git/index.js +26 -0
- package/dist/cjs/http/client-async.js +224 -0
- package/dist/cjs/http/client.js +145 -0
- package/dist/cjs/http/decorators.js +76 -0
- package/dist/cjs/http/errors/ForbiddenError.js +41 -0
- package/dist/cjs/http/errors/ValidationError.js +41 -0
- package/dist/cjs/http/errors.js +26 -0
- package/dist/cjs/http/index.js +59 -0
- package/dist/cjs/http/request.js +281 -0
- package/dist/cjs/http/response.js +452 -0
- package/dist/cjs/http/rs/resource-common.js +32 -0
- package/dist/cjs/http/rs/resource-http-controller.js +306 -0
- package/dist/cjs/http/rs/resource-mappings.js +130 -0
- package/dist/cjs/http/rs/resource-method.js +218 -0
- package/dist/cjs/http/rs/resource.js +232 -0
- package/dist/cjs/http/rs.js +31 -0
- package/dist/cjs/http/session.js +124 -0
- package/dist/cjs/http/upload.js +144 -0
- package/dist/cjs/http/utils.js +106 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/indexing/index.js +29 -0
- package/dist/cjs/indexing/searcher.js +70 -0
- package/dist/cjs/indexing/writer.js +45 -0
- package/dist/cjs/integrations/index.js +26 -0
- package/dist/cjs/integrations/integrations.js +55 -0
- package/dist/cjs/io/bytes.js +101 -0
- package/dist/cjs/io/files.js +344 -0
- package/dist/cjs/io/image.js +43 -0
- package/dist/cjs/io/index.js +38 -0
- package/dist/cjs/io/streams.js +243 -0
- package/dist/cjs/io/zip.js +251 -0
- package/dist/cjs/job/decorators.js +40 -0
- package/dist/cjs/job/index.js +39 -0
- package/dist/cjs/job/scheduler.js +347 -0
- package/dist/cjs/junit/index.js +18 -0
- package/dist/cjs/junit/junit.js +67 -0
- package/dist/cjs/kafka/consumer.js +70 -0
- package/dist/cjs/kafka/index.js +29 -0
- package/dist/cjs/kafka/producer.js +70 -0
- package/dist/cjs/log/index.js +26 -0
- package/dist/cjs/log/logging.js +174 -0
- package/dist/cjs/mail/client.js +153 -0
- package/dist/cjs/mail/index.js +26 -0
- package/dist/cjs/messaging/consumer.js +83 -0
- package/dist/cjs/messaging/decorators.js +40 -0
- package/dist/cjs/messaging/index.js +42 -0
- package/dist/cjs/messaging/producer.js +81 -0
- package/dist/cjs/mongodb/client.js +627 -0
- package/dist/cjs/mongodb/dao.js +390 -0
- package/dist/cjs/mongodb/index.js +36 -0
- package/dist/cjs/net/decorators.js +40 -0
- package/dist/cjs/net/index.js +42 -0
- package/dist/cjs/net/soap.js +228 -0
- package/dist/cjs/net/websockets.js +151 -0
- package/dist/cjs/net/wrappers/onClose.js +2 -0
- package/dist/cjs/net/wrappers/onError.js +2 -0
- package/dist/cjs/net/wrappers/onMessage.js +2 -0
- package/dist/cjs/net/wrappers/onOpen.js +2 -0
- package/dist/cjs/pdf/index.js +26 -0
- package/dist/cjs/pdf/pdf.js +160 -0
- package/dist/cjs/platform/command.js +47 -0
- package/dist/cjs/platform/engines.js +70 -0
- package/dist/cjs/platform/index.js +47 -0
- package/dist/cjs/platform/lifecycle.js +49 -0
- package/dist/cjs/platform/os.js +51 -0
- package/dist/cjs/platform/problems.js +127 -0
- package/dist/cjs/platform/registry.js +319 -0
- package/dist/cjs/platform/repository.js +498 -0
- package/dist/cjs/platform/workspace.js +574 -0
- package/dist/cjs/qldb/index.js +26 -0
- package/dist/cjs/qldb/qldb.js +24 -0
- package/dist/cjs/rabbitmq/consumer.js +50 -0
- package/dist/cjs/rabbitmq/index.js +29 -0
- package/dist/cjs/rabbitmq/producer.js +38 -0
- package/dist/cjs/redis/client.js +190 -0
- package/dist/cjs/redis/index.js +26 -0
- package/dist/cjs/security/decorators.js +48 -0
- package/dist/cjs/security/index.js +40 -0
- package/dist/cjs/security/oauth.js +75 -0
- package/dist/cjs/security/user.js +88 -0
- package/dist/cjs/template/engines.js +139 -0
- package/dist/cjs/template/index.js +26 -0
- package/dist/cjs/utils/alphanumeric.js +107 -0
- package/dist/cjs/utils/base64.js +104 -0
- package/dist/cjs/utils/converter.js +78 -0
- package/dist/cjs/utils/digest.js +167 -0
- package/dist/cjs/utils/escape.js +160 -0
- package/dist/cjs/utils/hex.js +104 -0
- package/dist/cjs/utils/index.js +68 -0
- package/dist/cjs/utils/jsonpath.js +489 -0
- package/dist/cjs/utils/qrcode.js +41 -0
- package/dist/cjs/utils/url.js +82 -0
- package/dist/cjs/utils/utf8.js +61 -0
- package/dist/cjs/utils/uuid.js +48 -0
- package/dist/cjs/utils/xml.js +57 -0
- package/dist/dts/bpm/deployer.d.ts +29 -0
- package/dist/dts/bpm/index.d.ts +8 -0
- package/dist/dts/bpm/process.d.ts +433 -0
- package/dist/dts/bpm/tasks.d.ts +2022 -0
- package/dist/dts/bpm/values.d.ts +38 -0
- package/dist/dts/cache/cache.d.ts +30 -0
- package/dist/dts/cache/index.d.ts +2 -0
- package/dist/dts/cms/cmis.d.ts +413 -0
- package/dist/dts/cms/index.d.ts +2 -0
- package/dist/dts/component/decorators.d.ts +52 -0
- package/dist/dts/component/index.d.ts +2 -0
- package/dist/dts/core/configurations.d.ts +65 -0
- package/dist/dts/core/context.d.ts +19 -0
- package/dist/dts/core/env.d.ts +23 -0
- package/dist/dts/core/globals.d.ts +30 -0
- package/dist/dts/core/index.d.ts +8 -0
- package/dist/dts/db/dao.d.ts +8 -0
- package/dist/dts/db/database.d.ts +507 -0
- package/dist/dts/db/decorators.d.ts +89 -0
- package/dist/dts/db/index.d.ts +25 -0
- package/dist/dts/db/insert.d.ts +32 -0
- package/dist/dts/db/orm.d.ts +44 -0
- package/dist/dts/db/ormstatements.d.ts +4 -0
- package/dist/dts/db/procedure.d.ts +25 -0
- package/dist/dts/db/query.d.ts +48 -0
- package/dist/dts/db/repository.d.ts +64 -0
- package/dist/dts/db/sequence.d.ts +34 -0
- package/dist/dts/db/sql.d.ts +267 -0
- package/dist/dts/db/store.d.ts +138 -0
- package/dist/dts/db/translator.d.ts +26 -0
- package/dist/dts/db/update.d.ts +21 -0
- package/dist/dts/etcd/client.d.ts +92 -0
- package/dist/dts/etcd/index.d.ts +2 -0
- package/dist/dts/extensions/decorators.d.ts +11 -0
- package/dist/dts/extensions/extensions.d.ts +41 -0
- package/dist/dts/extensions/index.d.ts +4 -0
- package/dist/dts/git/client.d.ts +478 -0
- package/dist/dts/git/index.d.ts +2 -0
- package/dist/dts/http/client-async.d.ts +158 -0
- package/dist/dts/http/client.d.ts +180 -0
- package/dist/dts/http/decorators.d.ts +11 -0
- package/dist/dts/http/errors/ForbiddenError.d.ts +20 -0
- package/dist/dts/http/errors/ValidationError.d.ts +20 -0
- package/dist/dts/http/errors.d.ts +2 -0
- package/dist/dts/http/index.d.ts +16 -0
- package/dist/dts/http/request.d.ts +158 -0
- package/dist/dts/http/response.d.ts +281 -0
- package/dist/dts/http/rs/resource-common.d.ts +11 -0
- package/dist/dts/http/rs/resource-http-controller.d.ts +43 -0
- package/dist/dts/http/rs/resource-mappings.d.ts +70 -0
- package/dist/dts/http/rs/resource-method.d.ts +206 -0
- package/dist/dts/http/rs/resource.d.ts +126 -0
- package/dist/dts/http/rs.d.ts +4 -0
- package/dist/dts/http/session.d.ts +81 -0
- package/dist/dts/http/upload.d.ts +100 -0
- package/dist/dts/http/utils.d.ts +54 -0
- package/dist/dts/index.d.ts +0 -0
- package/dist/dts/indexing/index.d.ts +4 -0
- package/dist/dts/indexing/searcher.d.ts +47 -0
- package/dist/dts/indexing/writer.d.ts +22 -0
- package/dist/dts/integrations/index.d.ts +2 -0
- package/dist/dts/integrations/integrations.d.ts +118 -0
- package/dist/dts/io/bytes.d.ts +56 -0
- package/dist/dts/io/files.d.ts +261 -0
- package/dist/dts/io/image.d.ts +22 -0
- package/dist/dts/io/index.d.ts +10 -0
- package/dist/dts/io/streams.d.ts +172 -0
- package/dist/dts/io/zip.d.ts +178 -0
- package/dist/dts/job/decorators.d.ts +11 -0
- package/dist/dts/job/index.d.ts +4 -0
- package/dist/dts/job/scheduler.d.ts +250 -0
- package/dist/dts/junit/index.d.ts +1 -0
- package/dist/dts/junit/junit.d.ts +50 -0
- package/dist/dts/kafka/consumer.d.ts +48 -0
- package/dist/dts/kafka/index.d.ts +4 -0
- package/dist/dts/kafka/producer.d.ts +50 -0
- package/dist/dts/log/index.d.ts +2 -0
- package/dist/dts/log/logging.d.ts +102 -0
- package/dist/dts/mail/client.d.ts +90 -0
- package/dist/dts/mail/index.d.ts +2 -0
- package/dist/dts/messaging/consumer.d.ts +61 -0
- package/dist/dts/messaging/decorators.d.ts +11 -0
- package/dist/dts/messaging/index.d.ts +6 -0
- package/dist/dts/messaging/producer.d.ts +59 -0
- package/dist/dts/mongodb/client.d.ts +367 -0
- package/dist/dts/mongodb/dao.d.ts +24 -0
- package/dist/dts/mongodb/index.d.ts +2 -0
- package/dist/dts/net/decorators.d.ts +11 -0
- package/dist/dts/net/index.d.ts +6 -0
- package/dist/dts/net/soap.d.ts +115 -0
- package/dist/dts/net/websockets.d.ts +100 -0
- package/dist/dts/net/wrappers/onClose.d.ts +0 -0
- package/dist/dts/net/wrappers/onError.d.ts +0 -0
- package/dist/dts/net/wrappers/onMessage.d.ts +0 -0
- package/dist/dts/net/wrappers/onOpen.d.ts +0 -0
- package/dist/dts/pdf/index.d.ts +2 -0
- package/dist/dts/pdf/pdf.d.ts +72 -0
- package/dist/dts/platform/command.d.ts +41 -0
- package/dist/dts/platform/engines.d.ts +35 -0
- package/dist/dts/platform/index.d.ts +16 -0
- package/dist/dts/platform/lifecycle.d.ts +22 -0
- package/dist/dts/platform/os.d.ts +23 -0
- package/dist/dts/platform/problems.d.ts +114 -0
- package/dist/dts/platform/registry.d.ts +227 -0
- package/dist/dts/platform/repository.d.ts +354 -0
- package/dist/dts/platform/workspace.d.ts +421 -0
- package/dist/dts/qldb/index.d.ts +2 -0
- package/dist/dts/qldb/qldb.d.ts +1 -0
- package/dist/dts/rabbitmq/consumer.d.ts +25 -0
- package/dist/dts/rabbitmq/index.d.ts +4 -0
- package/dist/dts/rabbitmq/producer.d.ts +15 -0
- package/dist/dts/redis/client.d.ts +134 -0
- package/dist/dts/redis/index.d.ts +2 -0
- package/dist/dts/security/decorators.d.ts +4 -0
- package/dist/dts/security/index.d.ts +5 -0
- package/dist/dts/security/oauth.d.ts +39 -0
- package/dist/dts/security/user.d.ts +51 -0
- package/dist/dts/template/engines.d.ts +98 -0
- package/dist/dts/template/index.d.ts +2 -0
- package/dist/dts/utils/alphanumeric.d.ts +39 -0
- package/dist/dts/utils/base64.d.ts +48 -0
- package/dist/dts/utils/converter.d.ts +44 -0
- package/dist/dts/utils/digest.d.ts +50 -0
- package/dist/dts/utils/escape.d.ts +110 -0
- package/dist/dts/utils/hex.d.ts +48 -0
- package/dist/dts/utils/index.d.ts +23 -0
- package/dist/dts/utils/jsonpath.d.ts +22 -0
- package/dist/dts/utils/qrcode.d.ts +16 -0
- package/dist/dts/utils/url.d.ts +50 -0
- package/dist/dts/utils/utf8.d.ts +33 -0
- package/dist/dts/utils/uuid.d.ts +21 -0
- package/dist/dts/utils/xml.d.ts +22 -0
- package/dist/esm/bpm/deployer.mjs +38 -0
- package/dist/esm/bpm/index.mjs +15 -0
- package/dist/esm/bpm/process.mjs +617 -0
- package/dist/esm/bpm/tasks.mjs +954 -0
- package/dist/esm/bpm/values.mjs +63 -0
- package/dist/esm/cache/cache.mjs +45 -0
- package/dist/esm/cache/index.mjs +6 -0
- package/dist/esm/cms/cmis.mjs +660 -0
- package/dist/esm/cms/index.mjs +6 -0
- package/dist/esm/component/decorators.mjs +107 -0
- package/dist/esm/component/index.mjs +6 -0
- package/dist/esm/core/configurations.mjs +91 -0
- package/dist/esm/core/context.mjs +28 -0
- package/dist/esm/core/env.mjs +26 -0
- package/dist/esm/core/globals.mjs +35 -0
- package/dist/esm/core/index.mjs +15 -0
- package/dist/esm/db/dao.mjs +775 -0
- package/dist/esm/db/database.mjs +885 -0
- package/dist/esm/db/decorators.mjs +148 -0
- package/dist/esm/db/index.mjs +42 -0
- package/dist/esm/db/insert.mjs +32 -0
- package/dist/esm/db/orm.mjs +225 -0
- package/dist/esm/db/ormstatements.mjs +223 -0
- package/dist/esm/db/procedure.mjs +93 -0
- package/dist/esm/db/query.mjs +38 -0
- package/dist/esm/db/repository.mjs +129 -0
- package/dist/esm/db/sequence.mjs +40 -0
- package/dist/esm/db/sql.mjs +497 -0
- package/dist/esm/db/store.mjs +153 -0
- package/dist/esm/db/translator.mjs +81 -0
- package/dist/esm/db/update.mjs +24 -0
- package/dist/esm/etcd/client.mjs +155 -0
- package/dist/esm/etcd/index.mjs +6 -0
- package/dist/esm/extensions/decorators.mjs +21 -0
- package/dist/esm/extensions/extensions.mjs +89 -0
- package/dist/esm/extensions/index.mjs +9 -0
- package/dist/esm/git/client.mjs +258 -0
- package/dist/esm/git/index.mjs +6 -0
- package/dist/esm/http/client-async.mjs +205 -0
- package/dist/esm/http/client.mjs +126 -0
- package/dist/esm/http/decorators.mjs +47 -0
- package/dist/esm/http/errors/ForbiddenError.mjs +22 -0
- package/dist/esm/http/errors/ValidationError.mjs +22 -0
- package/dist/esm/http/errors.mjs +7 -0
- package/dist/esm/http/index.mjs +29 -0
- package/dist/esm/http/request.mjs +262 -0
- package/dist/esm/http/response.mjs +433 -0
- package/dist/esm/http/rs/resource-common.mjs +13 -0
- package/dist/esm/http/rs/resource-http-controller.mjs +287 -0
- package/dist/esm/http/rs/resource-mappings.mjs +111 -0
- package/dist/esm/http/rs/resource-method.mjs +199 -0
- package/dist/esm/http/rs/resource.mjs +213 -0
- package/dist/esm/http/rs.mjs +12 -0
- package/dist/esm/http/session.mjs +105 -0
- package/dist/esm/http/upload.mjs +125 -0
- package/dist/esm/http/utils.mjs +87 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/indexing/index.mjs +9 -0
- package/dist/esm/indexing/searcher.mjs +51 -0
- package/dist/esm/indexing/writer.mjs +26 -0
- package/dist/esm/integrations/index.mjs +6 -0
- package/dist/esm/integrations/integrations.mjs +36 -0
- package/dist/esm/io/bytes.mjs +82 -0
- package/dist/esm/io/files.mjs +325 -0
- package/dist/esm/io/image.mjs +24 -0
- package/dist/esm/io/index.mjs +18 -0
- package/dist/esm/io/streams.mjs +224 -0
- package/dist/esm/io/zip.mjs +232 -0
- package/dist/esm/job/decorators.mjs +21 -0
- package/dist/esm/job/index.mjs +9 -0
- package/dist/esm/job/scheduler.mjs +328 -0
- package/dist/esm/junit/index.mjs +2 -0
- package/dist/esm/junit/junit.mjs +48 -0
- package/dist/esm/kafka/consumer.mjs +51 -0
- package/dist/esm/kafka/index.mjs +9 -0
- package/dist/esm/kafka/producer.mjs +51 -0
- package/dist/esm/log/index.mjs +6 -0
- package/dist/esm/log/logging.mjs +155 -0
- package/dist/esm/mail/client.mjs +134 -0
- package/dist/esm/mail/index.mjs +6 -0
- package/dist/esm/messaging/consumer.mjs +64 -0
- package/dist/esm/messaging/decorators.mjs +21 -0
- package/dist/esm/messaging/index.mjs +12 -0
- package/dist/esm/messaging/producer.mjs +62 -0
- package/dist/esm/mongodb/client.mjs +608 -0
- package/dist/esm/mongodb/dao.mjs +360 -0
- package/dist/esm/mongodb/index.mjs +7 -0
- package/dist/esm/net/decorators.mjs +21 -0
- package/dist/esm/net/index.mjs +12 -0
- package/dist/esm/net/soap.mjs +209 -0
- package/dist/esm/net/websockets.mjs +132 -0
- package/dist/esm/net/wrappers/onClose.mjs +2 -0
- package/dist/esm/net/wrappers/onError.mjs +2 -0
- package/dist/esm/net/wrappers/onMessage.mjs +2 -0
- package/dist/esm/net/wrappers/onOpen.mjs +2 -0
- package/dist/esm/pdf/index.mjs +6 -0
- package/dist/esm/pdf/pdf.mjs +141 -0
- package/dist/esm/platform/command.mjs +28 -0
- package/dist/esm/platform/engines.mjs +51 -0
- package/dist/esm/platform/index.mjs +27 -0
- package/dist/esm/platform/lifecycle.mjs +30 -0
- package/dist/esm/platform/os.mjs +32 -0
- package/dist/esm/platform/problems.mjs +108 -0
- package/dist/esm/platform/registry.mjs +300 -0
- package/dist/esm/platform/repository.mjs +479 -0
- package/dist/esm/platform/workspace.mjs +555 -0
- package/dist/esm/qldb/index.mjs +6 -0
- package/dist/esm/qldb/qldb.mjs +5 -0
- package/dist/esm/rabbitmq/consumer.mjs +31 -0
- package/dist/esm/rabbitmq/index.mjs +9 -0
- package/dist/esm/rabbitmq/producer.mjs +19 -0
- package/dist/esm/redis/client.mjs +171 -0
- package/dist/esm/redis/index.mjs +6 -0
- package/dist/esm/security/decorators.mjs +29 -0
- package/dist/esm/security/index.mjs +10 -0
- package/dist/esm/security/oauth.mjs +56 -0
- package/dist/esm/security/user.mjs +69 -0
- package/dist/esm/template/engines.mjs +120 -0
- package/dist/esm/template/index.mjs +6 -0
- package/dist/esm/utils/alphanumeric.mjs +88 -0
- package/dist/esm/utils/base64.mjs +85 -0
- package/dist/esm/utils/converter.mjs +59 -0
- package/dist/esm/utils/digest.mjs +148 -0
- package/dist/esm/utils/escape.mjs +141 -0
- package/dist/esm/utils/hex.mjs +85 -0
- package/dist/esm/utils/index.mjs +38 -0
- package/dist/esm/utils/jsonpath.mjs +470 -0
- package/dist/esm/utils/qrcode.mjs +22 -0
- package/dist/esm/utils/url.mjs +63 -0
- package/dist/esm/utils/utf8.mjs +42 -0
- package/dist/esm/utils/uuid.mjs +29 -0
- package/dist/esm/utils/xml.mjs +38 -0
- package/package.json +58 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides the API for managing scheduled jobs and tasks within the platform,
|
|
3
|
+
* allowing users to retrieve, enable, disable, and trigger jobs, as well as log output.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The Scheduler class provides static methods for interacting with the job scheduler,
|
|
7
|
+
* offering global control over the system's defined jobs.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Scheduler {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves all job definitions currently configured in the system.
|
|
12
|
+
*
|
|
13
|
+
* @returns An array of {@link Job} objects.
|
|
14
|
+
*/
|
|
15
|
+
static getJobs(): Job[];
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a specific job definition by its unique name.
|
|
18
|
+
*
|
|
19
|
+
* @param name The name of the job.
|
|
20
|
+
* @returns A {@link Job} object corresponding to the provided name.
|
|
21
|
+
*/
|
|
22
|
+
static getJob(name: string): Job;
|
|
23
|
+
/**
|
|
24
|
+
* Enables a job, allowing it to be executed according to its schedule (cron expression).
|
|
25
|
+
*
|
|
26
|
+
* @param name The name of the job to enable.
|
|
27
|
+
*/
|
|
28
|
+
static enable(name: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Disables a job, preventing it from executing on its schedule.
|
|
31
|
+
*
|
|
32
|
+
* @param name The name of the job to disable.
|
|
33
|
+
*/
|
|
34
|
+
static disable(name: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Triggers the immediate execution of a job.
|
|
37
|
+
*
|
|
38
|
+
* @param name The name of the job to trigger.
|
|
39
|
+
* @param parameters Optional key-value object of parameters to pass to the job execution.
|
|
40
|
+
*/
|
|
41
|
+
static trigger(name: string, parameters?: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
}): void;
|
|
44
|
+
/**
|
|
45
|
+
* Logs a message at the standard log level for a specific job instance.
|
|
46
|
+
* This is useful when the log context needs to be associated with a running job.
|
|
47
|
+
*
|
|
48
|
+
* @param name The name of the job to associate the log with.
|
|
49
|
+
* @param message The log message content.
|
|
50
|
+
*/
|
|
51
|
+
static log(name: string, message: string): void;
|
|
52
|
+
/**
|
|
53
|
+
* Logs an error message for a specific job instance.
|
|
54
|
+
*
|
|
55
|
+
* @param name The name of the job.
|
|
56
|
+
* @param message The error message content.
|
|
57
|
+
*/
|
|
58
|
+
static error(name: string, message: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Logs a warning message for a specific job instance.
|
|
61
|
+
*
|
|
62
|
+
* @param name The name of the job.
|
|
63
|
+
* @param message The warning message content.
|
|
64
|
+
*/
|
|
65
|
+
static warn(name: string, message: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Logs an informational message for a specific job instance.
|
|
68
|
+
*
|
|
69
|
+
* @param name The name of the job.
|
|
70
|
+
* @param message The information message content.
|
|
71
|
+
*/
|
|
72
|
+
static info(name: string, message: string): void;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Represents a single scheduled job definition.
|
|
76
|
+
*/
|
|
77
|
+
declare class Job {
|
|
78
|
+
private data;
|
|
79
|
+
/**
|
|
80
|
+
* @param data The raw data object containing job properties.
|
|
81
|
+
*/
|
|
82
|
+
constructor(data: any);
|
|
83
|
+
/**
|
|
84
|
+
* Gets the unique name of the job.
|
|
85
|
+
* @returns The job name.
|
|
86
|
+
*/
|
|
87
|
+
getName(): string;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the logical grouping for the job.
|
|
90
|
+
* @returns The job group name.
|
|
91
|
+
*/
|
|
92
|
+
getGroup(): string;
|
|
93
|
+
/**
|
|
94
|
+
* Gets the Java class name (for Java-based jobs) or script file name (for script-based jobs).
|
|
95
|
+
* @returns The job implementation class/file name.
|
|
96
|
+
*/
|
|
97
|
+
getClazz(): string;
|
|
98
|
+
/**
|
|
99
|
+
* Gets the description of the job's purpose.
|
|
100
|
+
* @returns The job description.
|
|
101
|
+
*/
|
|
102
|
+
getDescription(): string;
|
|
103
|
+
/**
|
|
104
|
+
* Gets the cron expression defining the job's schedule.
|
|
105
|
+
* @returns The cron expression string.
|
|
106
|
+
*/
|
|
107
|
+
getExpression(): string;
|
|
108
|
+
/**
|
|
109
|
+
* Gets the handler file path or resource name for script-based jobs.
|
|
110
|
+
* @returns The handler path.
|
|
111
|
+
*/
|
|
112
|
+
getHandler(): string;
|
|
113
|
+
/**
|
|
114
|
+
* Gets the execution engine type (e.g., 'JavaScript', 'Java').
|
|
115
|
+
* @returns The engine type.
|
|
116
|
+
*/
|
|
117
|
+
getEngine(): string;
|
|
118
|
+
/**
|
|
119
|
+
* Checks if the job is configured as a singleton (only one instance runs at a time).
|
|
120
|
+
* @returns True if the job is a singleton.
|
|
121
|
+
*/
|
|
122
|
+
getSingleton(): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Checks if the job is currently enabled for scheduled execution.
|
|
125
|
+
* @returns True if the job is enabled.
|
|
126
|
+
*/
|
|
127
|
+
getEnabled(): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Gets the user ID who created the job definition.
|
|
130
|
+
* @returns The creator's user ID.
|
|
131
|
+
*/
|
|
132
|
+
getCreatedBy(): string;
|
|
133
|
+
/**
|
|
134
|
+
* Gets the timestamp when the job definition was created.
|
|
135
|
+
* @returns The creation time as a numerical timestamp.
|
|
136
|
+
*/
|
|
137
|
+
getCreatedAt(): number;
|
|
138
|
+
/**
|
|
139
|
+
* Gets the parameters associated with this job definition.
|
|
140
|
+
* @returns A {@link JobParameters} object containing all parameters.
|
|
141
|
+
*/
|
|
142
|
+
getParameters(): JobParameters;
|
|
143
|
+
/**
|
|
144
|
+
* Retrieves the value for a specific parameter of this job.
|
|
145
|
+
* It checks for an overriding value in the global configurations first,
|
|
146
|
+
* and falls back to the defined default value if the configuration is not set.
|
|
147
|
+
*
|
|
148
|
+
* @param name The name of the parameter to retrieve.
|
|
149
|
+
* @returns The parameter's configured or default value, or null if not found.
|
|
150
|
+
*/
|
|
151
|
+
getParameter(name: string): string;
|
|
152
|
+
/**
|
|
153
|
+
* Enables this specific job instance.
|
|
154
|
+
*/
|
|
155
|
+
enable(): void;
|
|
156
|
+
/**
|
|
157
|
+
* Disables this specific job instance.
|
|
158
|
+
*/
|
|
159
|
+
disable(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Triggers the immediate execution of this job instance.
|
|
162
|
+
*
|
|
163
|
+
* @param parameters Optional key-value object of parameters to pass to the job execution.
|
|
164
|
+
*/
|
|
165
|
+
trigger(parameters?: {
|
|
166
|
+
[key: string]: string;
|
|
167
|
+
}): void;
|
|
168
|
+
/**
|
|
169
|
+
* Logs a message at the standard log level for this job instance.
|
|
170
|
+
*
|
|
171
|
+
* @param message The log message content.
|
|
172
|
+
*/
|
|
173
|
+
log(message: string): void;
|
|
174
|
+
/**
|
|
175
|
+
* Logs an error message for this job instance.
|
|
176
|
+
*
|
|
177
|
+
* @param message The error message content.
|
|
178
|
+
*/
|
|
179
|
+
error(message: string): void;
|
|
180
|
+
/**
|
|
181
|
+
* Logs a warning message for this job instance.
|
|
182
|
+
*
|
|
183
|
+
* @param message The warning message content.
|
|
184
|
+
*/
|
|
185
|
+
warn(message: string): void;
|
|
186
|
+
/**
|
|
187
|
+
* Logs an informational message for this job instance.
|
|
188
|
+
*
|
|
189
|
+
* @param message The information message content.
|
|
190
|
+
*/
|
|
191
|
+
info(message: string): void;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* A container object representing the collection of parameters for a {@link Job}.
|
|
195
|
+
*/
|
|
196
|
+
declare class JobParameters {
|
|
197
|
+
private data;
|
|
198
|
+
/**
|
|
199
|
+
* @param data The array of raw job parameter objects.
|
|
200
|
+
*/
|
|
201
|
+
constructor(data: any[]);
|
|
202
|
+
/**
|
|
203
|
+
* Retrieves a specific job parameter by its index.
|
|
204
|
+
*
|
|
205
|
+
* @param i The index of the parameter in the array.
|
|
206
|
+
* @returns A {@link JobParameter} object.
|
|
207
|
+
*/
|
|
208
|
+
get(i: number): JobParameter;
|
|
209
|
+
/**
|
|
210
|
+
* Gets the total number of parameters defined for the job.
|
|
211
|
+
* @returns The count of parameters.
|
|
212
|
+
*/
|
|
213
|
+
count(): number;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Represents a single parameter definition for a job.
|
|
217
|
+
*/
|
|
218
|
+
declare class JobParameter {
|
|
219
|
+
private data;
|
|
220
|
+
/**
|
|
221
|
+
* @param data The raw data object containing parameter properties.
|
|
222
|
+
*/
|
|
223
|
+
constructor(data: any);
|
|
224
|
+
/**
|
|
225
|
+
* Gets the name of the parameter.
|
|
226
|
+
* @returns The parameter name.
|
|
227
|
+
*/
|
|
228
|
+
getName(): string;
|
|
229
|
+
/**
|
|
230
|
+
* Gets the description of the parameter.
|
|
231
|
+
* @returns The parameter description.
|
|
232
|
+
*/
|
|
233
|
+
getDescription(): string;
|
|
234
|
+
/**
|
|
235
|
+
* Gets the expected data type of the parameter (e.g., 'String', 'Integer', 'Boolean').
|
|
236
|
+
* @returns The parameter type.
|
|
237
|
+
*/
|
|
238
|
+
getType(): string;
|
|
239
|
+
/**
|
|
240
|
+
* Gets the default value for the parameter.
|
|
241
|
+
* @returns The default value string.
|
|
242
|
+
*/
|
|
243
|
+
getDefaultValue(): string;
|
|
244
|
+
/**
|
|
245
|
+
* Gets a list of predefined choices for the parameter, if applicable.
|
|
246
|
+
* @returns An array of choice strings.
|
|
247
|
+
*/
|
|
248
|
+
getChoices(): string[];
|
|
249
|
+
}
|
|
250
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./junit";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines a test case.
|
|
3
|
+
*
|
|
4
|
+
* @param name The name of the test case.
|
|
5
|
+
* @param testFn The function containing the test logic and assertions.
|
|
6
|
+
*/
|
|
7
|
+
export declare function test(name: string, testFn: () => void): void;
|
|
8
|
+
/**
|
|
9
|
+
* Asserts that two objects or primitive values are equal.
|
|
10
|
+
*
|
|
11
|
+
* @template T The type of the values being compared.
|
|
12
|
+
* @param expected The expected value.
|
|
13
|
+
* @param actual The actual value.
|
|
14
|
+
* @param message Optional message to display if the assertion fails.
|
|
15
|
+
*/
|
|
16
|
+
export declare function assertEquals<T>(expected: T, actual: T): void;
|
|
17
|
+
export declare function assertEquals<T>(message: string, expected: T, actual: T): void;
|
|
18
|
+
/**
|
|
19
|
+
* Asserts that two objects or primitive values are not equal.
|
|
20
|
+
*
|
|
21
|
+
* @template T The type of the values being compared.
|
|
22
|
+
* @param unexpected The unexpected value.
|
|
23
|
+
* @param actual The actual value.
|
|
24
|
+
* @param message Optional message to display if the assertion fails.
|
|
25
|
+
*/
|
|
26
|
+
export declare function assertNotEquals<T>(unexpected: T, actual: T): void;
|
|
27
|
+
export declare function assertNotEquals<T>(message: string, unexpected: T, actual: T): void;
|
|
28
|
+
/**
|
|
29
|
+
* Asserts that a condition is true.
|
|
30
|
+
*
|
|
31
|
+
* @param condition The condition to test.
|
|
32
|
+
* @param message Optional message to display if the assertion fails.
|
|
33
|
+
*/
|
|
34
|
+
export declare function assertTrue(condition: boolean): void;
|
|
35
|
+
export declare function assertTrue(message: string, condition: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Asserts that a condition is false.
|
|
38
|
+
*
|
|
39
|
+
* @param condition The condition to test.
|
|
40
|
+
* @param message Optional message to display if the assertion fails.
|
|
41
|
+
*/
|
|
42
|
+
export declare function assertFalse(condition: boolean): void;
|
|
43
|
+
export declare function assertFalse(message: string, condition: boolean): void;
|
|
44
|
+
/**
|
|
45
|
+
* Fails a test immediately.
|
|
46
|
+
*
|
|
47
|
+
* @param message Optional message to display indicating the reason for the failure.
|
|
48
|
+
*/
|
|
49
|
+
export declare function fail(): void;
|
|
50
|
+
export declare function fail(message: string): void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Consumer class acts as the main entry point for creating and configuring
|
|
3
|
+
* Kafka topic consumers.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Consumer {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new topic configuration wrapper that can be used to start or
|
|
8
|
+
* stop listening for messages on a Kafka topic.
|
|
9
|
+
*
|
|
10
|
+
* @param destination The name of the Kafka topic to consume messages from.
|
|
11
|
+
* @param configuration Optional key-value object containing Kafka consumer properties
|
|
12
|
+
* (e.g., 'group.id', 'auto.offset.reset').
|
|
13
|
+
* @returns A {@link Topic} instance configured for the specified destination and properties.
|
|
14
|
+
*/
|
|
15
|
+
static topic(destination: string, configuration?: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
}): Topic;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents a configured Kafka topic consumer capable of starting and stopping
|
|
21
|
+
* background message listening.
|
|
22
|
+
*/
|
|
23
|
+
declare class Topic {
|
|
24
|
+
private destination;
|
|
25
|
+
private configuration;
|
|
26
|
+
/**
|
|
27
|
+
* @param destination The name of the Kafka topic.
|
|
28
|
+
* @param configuration Optional key-value object for consumer properties.
|
|
29
|
+
*/
|
|
30
|
+
constructor(destination: string, configuration?: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Starts listening to the configured topic in a background process.
|
|
35
|
+
*
|
|
36
|
+
* @param handler The path to the script or function name that will handle the incoming Kafka messages.
|
|
37
|
+
* This function should accept two arguments: `message` (string) and `headers` (object).
|
|
38
|
+
* @param timeout The maximum amount of time (in milliseconds) the consumer should wait for messages.
|
|
39
|
+
*/
|
|
40
|
+
startListening(handler: string, timeout: number): void;
|
|
41
|
+
/**
|
|
42
|
+
* Stops the background process that is listening to the configured topic.
|
|
43
|
+
* Note: Stopping is based on matching the topic and configuration, so the same
|
|
44
|
+
* configuration object used in `startListening` should be used here.
|
|
45
|
+
*/
|
|
46
|
+
stopListening(): void;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Producer class serves as the main entry point for creating and configuring
|
|
3
|
+
* Kafka topic producers.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Producer {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new topic configuration wrapper that can be used to send messages
|
|
8
|
+
* to a specific Kafka topic.
|
|
9
|
+
*
|
|
10
|
+
* @param destination The name of the Kafka topic to send messages to.
|
|
11
|
+
* @param configuration Optional key-value object containing Kafka producer properties
|
|
12
|
+
* (e.g., 'bootstrap.servers', 'acks').
|
|
13
|
+
* @returns A {@link Topic} instance configured for the specified destination and properties.
|
|
14
|
+
*/
|
|
15
|
+
static topic(destination: string, configuration?: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
}): Topic;
|
|
18
|
+
/**
|
|
19
|
+
* Closes the Kafka producer connection pool, releasing associated resources.
|
|
20
|
+
* This should be called when message sending is complete to ensure proper cleanup.
|
|
21
|
+
*
|
|
22
|
+
* @param configuration Optional key-value object containing the configuration
|
|
23
|
+
* used to initialize the producer to be closed.
|
|
24
|
+
*/
|
|
25
|
+
static close(configuration?: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
}): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Represents a configured Kafka topic that can be used to send messages.
|
|
31
|
+
*/
|
|
32
|
+
declare class Topic {
|
|
33
|
+
private destination;
|
|
34
|
+
private configuration;
|
|
35
|
+
/**
|
|
36
|
+
* @param destination The name of the Kafka topic.
|
|
37
|
+
* @param configuration Key-value object for producer properties.
|
|
38
|
+
*/
|
|
39
|
+
constructor(destination: string, configuration: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* Sends a message with an optional key to the configured Kafka topic.
|
|
44
|
+
*
|
|
45
|
+
* @param key The key of the message. Messages with the same key go to the same partition.
|
|
46
|
+
* @param value The content of the message to be sent.
|
|
47
|
+
*/
|
|
48
|
+
send(key: string, value: string): void;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The main entry point for the logging API. Use this class to obtain a named
|
|
3
|
+
* logger instance.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Logging {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves or creates a Logger instance associated with a specific name.
|
|
8
|
+
* The logger name is typically used to categorize log messages (e.g., 'com.app.service').
|
|
9
|
+
*
|
|
10
|
+
* @param loggerName The name of the logger.
|
|
11
|
+
* @returns A {@link Logger} instance.
|
|
12
|
+
*/
|
|
13
|
+
static getLogger(loggerName: string): Logger;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents a named logger instance used for emitting log messages at various levels.
|
|
17
|
+
*/
|
|
18
|
+
declare class Logger {
|
|
19
|
+
private loggerName;
|
|
20
|
+
/**
|
|
21
|
+
* @param loggerName The name of the logger.
|
|
22
|
+
*/
|
|
23
|
+
constructor(loggerName: string);
|
|
24
|
+
/**
|
|
25
|
+
* Sets the logging level for this specific logger instance.
|
|
26
|
+
* Messages below this threshold will be ignored.
|
|
27
|
+
*
|
|
28
|
+
* @param level The desired logging level (e.g., 'TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR').
|
|
29
|
+
* @returns The Logger instance for method chaining.
|
|
30
|
+
*/
|
|
31
|
+
setLevel(level: string): Logger;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if the DEBUG level is currently enabled for this logger.
|
|
34
|
+
* @returns True if DEBUG logging is enabled, false otherwise.
|
|
35
|
+
*/
|
|
36
|
+
isDebugEnabled(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Checks if the ERROR level is currently enabled for this logger.
|
|
39
|
+
* @returns True if ERROR logging is enabled, false otherwise.
|
|
40
|
+
*/
|
|
41
|
+
isErrorEnabled(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Checks if the WARN level is currently enabled for this logger.
|
|
44
|
+
* @returns True if WARN logging is enabled, false otherwise.
|
|
45
|
+
*/
|
|
46
|
+
isWarnEnabled(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Checks if the INFO level is currently enabled for this logger.
|
|
49
|
+
* @returns True if INFO logging is enabled, false otherwise.
|
|
50
|
+
*/
|
|
51
|
+
isInfoEnabled(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Checks if the TRACE level is currently enabled for this logger.
|
|
54
|
+
* @returns True if TRACE logging is enabled, false otherwise.
|
|
55
|
+
*/
|
|
56
|
+
isTraceEnabled(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The core logging method. Logs a message at the specified level, optionally
|
|
59
|
+
* supporting parameters for message formatting and a final Error object for stack trace logging.
|
|
60
|
+
*
|
|
61
|
+
* @param msg The log message template (e.g., "User {0} failed to connect: {1}").
|
|
62
|
+
* @param level The logging level (e.g., 'DEBUG', 'ERROR').
|
|
63
|
+
* @param [args] Optional arguments for message formatting. The last argument can be an Error object.
|
|
64
|
+
*/
|
|
65
|
+
log(msg: string, level: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Logs a message at the DEBUG level.
|
|
68
|
+
*
|
|
69
|
+
* @param msg The log message template.
|
|
70
|
+
* @param [args] Optional arguments for message formatting. The last argument can be an Error object.
|
|
71
|
+
*/
|
|
72
|
+
debug(msg: string, ..._: any[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* Logs a message at the INFO level.
|
|
75
|
+
*
|
|
76
|
+
* @param msg The log message template.
|
|
77
|
+
* @param [args] Optional arguments for message formatting. The last argument can be an Error object.
|
|
78
|
+
*/
|
|
79
|
+
info(msg: string, ..._: any[]): void;
|
|
80
|
+
/**
|
|
81
|
+
* Logs a message at the TRACE level.
|
|
82
|
+
*
|
|
83
|
+
* @param msg The log message template.
|
|
84
|
+
* @param [args] Optional arguments for message formatting. The last argument can be an Error object.
|
|
85
|
+
*/
|
|
86
|
+
trace(msg: string, ..._: any[]): void;
|
|
87
|
+
/**
|
|
88
|
+
* Logs a message at the WARN level.
|
|
89
|
+
*
|
|
90
|
+
* @param msg The log message template.
|
|
91
|
+
* @param [args] Optional arguments for message formatting. The last argument can be an Error object.
|
|
92
|
+
*/
|
|
93
|
+
warn(msg: string, ..._: any[]): void;
|
|
94
|
+
/**
|
|
95
|
+
* Logs a message at the ERROR level.
|
|
96
|
+
*
|
|
97
|
+
* @param msg The log message template.
|
|
98
|
+
* @param [args] Optional arguments for message formatting. The last argument can be an Error object.
|
|
99
|
+
*/
|
|
100
|
+
error(msg: string, ..._: any[]): void;
|
|
101
|
+
}
|
|
102
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the structure for specifying email recipients.
|
|
3
|
+
* Recipients can be provided as a single email string or an array of strings.
|
|
4
|
+
*/
|
|
5
|
+
export interface MailRecipients {
|
|
6
|
+
/** The primary recipients of the email. */
|
|
7
|
+
to?: string | string[];
|
|
8
|
+
/** Carbon Copy recipients. */
|
|
9
|
+
cc?: string | string[];
|
|
10
|
+
/** Blind Carbon Copy recipients. */
|
|
11
|
+
bcc?: string | string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Defines a single part of a multipart email message.
|
|
15
|
+
* This is used for bodies, attachments, and inline images.
|
|
16
|
+
*/
|
|
17
|
+
export interface MailMultipart {
|
|
18
|
+
/** The nature of the part: 'text' (body), 'inline' (e.g., image displayed in HTML), or 'attachment'. */
|
|
19
|
+
type: "text" | "inline" | "attachment";
|
|
20
|
+
/** The MIME content type of the part (e.g., 'text/plain', 'text/html', 'image/png'). */
|
|
21
|
+
contentType: string;
|
|
22
|
+
/** The text content for 'text' parts. */
|
|
23
|
+
text?: string;
|
|
24
|
+
/** Required for 'inline' parts; used in the HTML body to reference the content (e.g., `<img src="cid:...">`). */
|
|
25
|
+
contentId?: string;
|
|
26
|
+
/** The name of the file for 'attachment' and 'inline' parts. */
|
|
27
|
+
fileName?: string;
|
|
28
|
+
/** The base64-encoded data content for 'attachment' and 'inline' parts. */
|
|
29
|
+
data?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Defines the content type for simple emails sent via {@link MailClient.send}.
|
|
33
|
+
*/
|
|
34
|
+
type MailContentType = "html" | "plain";
|
|
35
|
+
/**
|
|
36
|
+
* The MailClient provides methods for sending emails, handling recipient processing
|
|
37
|
+
* and interfacing with the underlying MailFacade.
|
|
38
|
+
*/
|
|
39
|
+
export declare class MailClient {
|
|
40
|
+
private readonly native;
|
|
41
|
+
/**
|
|
42
|
+
* A static convenience method to send a multipart email without instantiating a client.
|
|
43
|
+
* This is suitable for emails that require attachments, inline images, or mixed content.
|
|
44
|
+
*
|
|
45
|
+
* @param from The sender's email address.
|
|
46
|
+
* @param recipients The recipient(s) structure (string for 'to', or {@link MailRecipients} object).
|
|
47
|
+
* @param subject The subject line of the email.
|
|
48
|
+
* @param parts An array of {@link MailMultipart} objects defining the email content.
|
|
49
|
+
*/
|
|
50
|
+
static sendMultipart(from: string, recipients: string | MailRecipients, subject: string, parts: MailMultipart[]): void;
|
|
51
|
+
/**
|
|
52
|
+
* A static convenience method to send a simple email with only a single text or HTML body.
|
|
53
|
+
*
|
|
54
|
+
* @param from The sender's email address.
|
|
55
|
+
* @param recipients The recipient(s) structure (string for 'to', or {@link MailRecipients} object).
|
|
56
|
+
* @param subject The subject line of the email.
|
|
57
|
+
* @param text The body content of the email.
|
|
58
|
+
* @param contentType Specifies the body format: 'html' or 'plain'.
|
|
59
|
+
*/
|
|
60
|
+
static send(from: string, recipients: string | MailRecipients, subject: string, text: string, contentType: MailContentType): void;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new instance of the MailClient, optionally configuring the underlying
|
|
63
|
+
* native mail facade.
|
|
64
|
+
*
|
|
65
|
+
* @param options Optional key-value object containing configuration properties for the mail client (e.g., SMTP settings).
|
|
66
|
+
*/
|
|
67
|
+
constructor(options?: object);
|
|
68
|
+
/**
|
|
69
|
+
* Sends a simple email with a single body part (text or HTML).
|
|
70
|
+
*
|
|
71
|
+
* @param from The sender's email address.
|
|
72
|
+
* @param _recipients The recipient(s) structure (string for 'to', or {@link MailRecipients} object).
|
|
73
|
+
* @param subject The subject line of the email.
|
|
74
|
+
* @param text The body content of the email.
|
|
75
|
+
* @param contentType Specifies the body format: 'html' or 'plain'.
|
|
76
|
+
* @throws {Error} Throws an error if the recipient format is invalid or the native call fails.
|
|
77
|
+
*/
|
|
78
|
+
send(from: string, _recipients: string | MailRecipients, subject: string, text: string, contentType: MailContentType): void;
|
|
79
|
+
/**
|
|
80
|
+
* Sends a complex email composed of multiple parts (text bodies, HTML, attachments, inline content).
|
|
81
|
+
*
|
|
82
|
+
* @param from The sender's email address.
|
|
83
|
+
* @param _recipients The recipient(s) structure (string for 'to', or {@link MailRecipients} object).
|
|
84
|
+
* @param subject The subject line of the email.
|
|
85
|
+
* @param parts An array of {@link MailMultipart} objects defining the email content.
|
|
86
|
+
* @throws {Error} Throws an error if the recipient format is invalid or the native call fails.
|
|
87
|
+
*/
|
|
88
|
+
sendMultipart(from: string, _recipients: string | MailRecipients, subject: string, parts: MailMultipart[]): void;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides an API for consuming messages from JMS-style destinations,
|
|
3
|
+
* supporting both Queues (point-to-point) and Topics (publish/subscribe).
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The entry point for creating messaging consumers.
|
|
7
|
+
* Use this class to obtain instances of Queue or Topic consumers.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Consumer {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a Queue consumer instance for point-to-point messaging.
|
|
12
|
+
* Messages sent to this destination are consumed by only one receiver.
|
|
13
|
+
*
|
|
14
|
+
* @param destination The name of the queue destination (e.g., 'orders.queue').
|
|
15
|
+
* @returns A {@link Queue} instance.
|
|
16
|
+
*/
|
|
17
|
+
static queue(destination: string): Queue;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a Topic consumer instance for publish/subscribe messaging.
|
|
20
|
+
* Messages sent to this destination can be consumed by multiple subscribers.
|
|
21
|
+
*
|
|
22
|
+
* @param destination The name of the topic destination (e.g., 'market.updates.topic').
|
|
23
|
+
* @returns A {@link Topic} instance.
|
|
24
|
+
*/
|
|
25
|
+
static topic(destination: string): Topic;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents a consumer for a Queue destination (point-to-point).
|
|
29
|
+
*/
|
|
30
|
+
declare class Queue {
|
|
31
|
+
private destination;
|
|
32
|
+
/**
|
|
33
|
+
* @param destination The name of the queue destination.
|
|
34
|
+
*/
|
|
35
|
+
constructor(destination: string);
|
|
36
|
+
/**
|
|
37
|
+
* Attempts to synchronously receive a message from the queue.
|
|
38
|
+
*
|
|
39
|
+
* @param timeout The maximum time (in milliseconds) to wait for a message. Defaults to 1000ms.
|
|
40
|
+
* @returns The received message content (usually a string or object), or null if the timeout is reached.
|
|
41
|
+
*/
|
|
42
|
+
receive(timeout?: number): any;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents a consumer for a Topic destination (publish/subscribe).
|
|
46
|
+
*/
|
|
47
|
+
declare class Topic {
|
|
48
|
+
private destination;
|
|
49
|
+
/**
|
|
50
|
+
* @param destination The name of the topic destination.
|
|
51
|
+
*/
|
|
52
|
+
constructor(destination: string);
|
|
53
|
+
/**
|
|
54
|
+
* Attempts to synchronously receive a message from the topic.
|
|
55
|
+
*
|
|
56
|
+
* @param timeout The maximum time (in milliseconds) to wait for a message. Defaults to 1000ms.
|
|
57
|
+
* @returns The received message content (usually a string or object), or null if the timeout is reached.
|
|
58
|
+
*/
|
|
59
|
+
receive(timeout?: number): any;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ListenerOptions {
|
|
2
|
+
name: string;
|
|
3
|
+
kind: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @Listener decorator
|
|
7
|
+
* Marks an entire class as a listener
|
|
8
|
+
*
|
|
9
|
+
* introduced in TypeScript 5.0, which expects a ClassDecoratorContext object.
|
|
10
|
+
*/
|
|
11
|
+
export declare function Listener(options: ListenerOptions): <T extends abstract new (...args: any) => any>(target: T, context: ClassDecoratorContext<T>) => void;
|