@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,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides an API for producing (sending) messages to JMS-style destinations,
|
|
3
|
+
* supporting both Queues (point-to-point) and Topics (publish/subscribe).
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The entry point for creating messaging producers.
|
|
7
|
+
* Use this class to obtain instances of Queue or Topic producers for sending messages.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Producer {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a Queue producer instance for point-to-point messaging.
|
|
12
|
+
* Messages sent to this destination are intended to be consumed by a single receiver.
|
|
13
|
+
*
|
|
14
|
+
* @param destination The name of the queue destination (e.g., 'task.queue').
|
|
15
|
+
* @returns A {@link Queue} instance.
|
|
16
|
+
*/
|
|
17
|
+
static queue(destination: string): Queue;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a Topic producer instance for publish/subscribe messaging.
|
|
20
|
+
* Messages sent to this destination can be consumed by multiple subscribers simultaneously.
|
|
21
|
+
*
|
|
22
|
+
* @param destination The name of the topic destination (e.g., 'sensor.data.topic').
|
|
23
|
+
* @returns A {@link Topic} instance.
|
|
24
|
+
*/
|
|
25
|
+
static topic(destination: string): Topic;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents a producer 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
|
+
* Sends a message to the configured queue destination.
|
|
38
|
+
*
|
|
39
|
+
* @param message The content of the message to send (typically a string or serialized object).
|
|
40
|
+
*/
|
|
41
|
+
send(message: string): void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Represents a producer for a Topic destination (publish/subscribe).
|
|
45
|
+
*/
|
|
46
|
+
declare class Topic {
|
|
47
|
+
private destination;
|
|
48
|
+
/**
|
|
49
|
+
* @param destination The name of the topic destination.
|
|
50
|
+
*/
|
|
51
|
+
constructor(destination: string);
|
|
52
|
+
/**
|
|
53
|
+
* Sends a message to the configured topic destination. All active subscribers will receive the message.
|
|
54
|
+
*
|
|
55
|
+
* @param message The content of the message to publish (typically a string or serialized object).
|
|
56
|
+
*/
|
|
57
|
+
send(message: string): void;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define a common type for input to functions that accept either a plain JavaScript object
|
|
3
|
+
* (which will be implicitly converted to DBObject) or an existing DBObject wrapper instance.
|
|
4
|
+
*/
|
|
5
|
+
type DBInput = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
} | DBObject | undefined | null;
|
|
8
|
+
/**
|
|
9
|
+
* DBObject object represents a BSON document used for queries, insertions, and updates.
|
|
10
|
+
* It wraps the underlying native Java object.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DBObject {
|
|
13
|
+
/**
|
|
14
|
+
* The underlying native Java object representing the BSON document.
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
native: any;
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new DBObject instance.
|
|
20
|
+
* @param native The native MongoDB object (e.g., com.mongodb.DBObject)
|
|
21
|
+
*/
|
|
22
|
+
constructor(native: any);
|
|
23
|
+
/**
|
|
24
|
+
* Appends a key-value pair to the DBObject.
|
|
25
|
+
* @param key The field name.
|
|
26
|
+
* @param value The value to append.
|
|
27
|
+
* @returns The current DBObject instance for chaining.
|
|
28
|
+
*/
|
|
29
|
+
append(key: string, value: any): DBObject;
|
|
30
|
+
/**
|
|
31
|
+
* Converts the DBObject to a standard JavaScript object representation (JSON).
|
|
32
|
+
* @returns A plain JavaScript object.
|
|
33
|
+
*/
|
|
34
|
+
toJson(): {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Marks the object as a partial object (used internally by MongoDB driver).
|
|
39
|
+
*/
|
|
40
|
+
markAsPartialObject(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Checks if the object is a partial object.
|
|
43
|
+
* @returns True if partial, false otherwise.
|
|
44
|
+
*/
|
|
45
|
+
isPartialObject(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Checks if the DBObject contains a field with the specified key.
|
|
48
|
+
* @param key The field name.
|
|
49
|
+
* @returns True if the field exists, false otherwise.
|
|
50
|
+
*/
|
|
51
|
+
containsField(key: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Gets the value associated with the given key.
|
|
54
|
+
* @param key The field name.
|
|
55
|
+
* @returns The field value.
|
|
56
|
+
*/
|
|
57
|
+
get(key: string): any;
|
|
58
|
+
/**
|
|
59
|
+
* Puts a key-value pair into the DBObject.
|
|
60
|
+
* @param key The field name.
|
|
61
|
+
* @param value The value to put.
|
|
62
|
+
* @returns The previous value associated with the key, or null.
|
|
63
|
+
*/
|
|
64
|
+
put(key: string, value: any): any;
|
|
65
|
+
/**
|
|
66
|
+
* Removes a field from the DBObject.
|
|
67
|
+
* @param key The field name to remove.
|
|
68
|
+
* @returns The removed field value.
|
|
69
|
+
*/
|
|
70
|
+
removeField(key: string): any;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Creates a new, empty DBObject instance.
|
|
74
|
+
* @returns A new DBObject.
|
|
75
|
+
*/
|
|
76
|
+
export declare function createBasicDBObject(): DBObject;
|
|
77
|
+
/**
|
|
78
|
+
* Client object wrapper for connecting to MongoDB.
|
|
79
|
+
*/
|
|
80
|
+
export declare class Client {
|
|
81
|
+
/**
|
|
82
|
+
* The underlying native MongoDB client object.
|
|
83
|
+
* @private
|
|
84
|
+
*/
|
|
85
|
+
private readonly native;
|
|
86
|
+
/**
|
|
87
|
+
* Constructs a new MongoDB Client instance.
|
|
88
|
+
* @param uri The MongoDB connection URI.
|
|
89
|
+
* @param user The username for authentication.
|
|
90
|
+
* @param password The password for authentication.
|
|
91
|
+
*/
|
|
92
|
+
constructor(uri: string, user: string, password: string);
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves a database instance.
|
|
95
|
+
* @param name Optional name of the database. If not provided, the default database name is used.
|
|
96
|
+
* @returns A DB instance.
|
|
97
|
+
*/
|
|
98
|
+
getDB(name?: string): DB;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* DB object wrapper for a MongoDB database.
|
|
102
|
+
*/
|
|
103
|
+
export declare class DB {
|
|
104
|
+
/**
|
|
105
|
+
* The underlying native MongoDB DB object.
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
108
|
+
private readonly native;
|
|
109
|
+
/**
|
|
110
|
+
* Constructs a new DB instance.
|
|
111
|
+
* @param native The native MongoDB DB object.
|
|
112
|
+
*/
|
|
113
|
+
constructor(native: any);
|
|
114
|
+
/**
|
|
115
|
+
* Retrieves a collection instance from the database.
|
|
116
|
+
* @param name The name of the collection.
|
|
117
|
+
* @returns A DBCollection instance.
|
|
118
|
+
*/
|
|
119
|
+
getCollection(name: string): DBCollection;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* DBCollection object wrapper for a MongoDB collection.
|
|
123
|
+
*/
|
|
124
|
+
export declare class DBCollection {
|
|
125
|
+
/**
|
|
126
|
+
* The underlying native MongoDB DBCollection object.
|
|
127
|
+
* @private
|
|
128
|
+
*/
|
|
129
|
+
private readonly native;
|
|
130
|
+
/**
|
|
131
|
+
* Constructs a new DBCollection instance.
|
|
132
|
+
* @param native The native MongoDB DBCollection object.
|
|
133
|
+
*/
|
|
134
|
+
constructor(native: any);
|
|
135
|
+
/**
|
|
136
|
+
* Inserts a document into the collection.
|
|
137
|
+
* @param dbObject The document to insert (can be a plain JS object or DBObject).
|
|
138
|
+
*/
|
|
139
|
+
insert(dbObject: DBInput): void;
|
|
140
|
+
/**
|
|
141
|
+
* Finds documents matching the query.
|
|
142
|
+
* @param query The query specification (can be a plain JS object or DBObject).
|
|
143
|
+
* @param projection The fields to include or exclude (can be a plain JS object or DBObject).
|
|
144
|
+
* @returns A DBCursor for iterating over results.
|
|
145
|
+
*/
|
|
146
|
+
find(query?: DBInput, projection?: DBInput): DBCursor;
|
|
147
|
+
/**
|
|
148
|
+
* Finds a single document matching the query.
|
|
149
|
+
* @param query The query specification.
|
|
150
|
+
* @param projection The fields to include or exclude.
|
|
151
|
+
* @param sort The sorting specification.
|
|
152
|
+
* @returns The found document as a DBObject.
|
|
153
|
+
*/
|
|
154
|
+
findOne(query: DBInput, projection: DBInput, sort: DBInput): DBObject;
|
|
155
|
+
/**
|
|
156
|
+
* Finds a single document by its string ID.
|
|
157
|
+
* @param id The string ID of the document.
|
|
158
|
+
* @param projection The fields to include or exclude.
|
|
159
|
+
* @returns The found document as a DBObject.
|
|
160
|
+
*/
|
|
161
|
+
findOneById(id: string, projection?: DBInput): DBObject;
|
|
162
|
+
/**
|
|
163
|
+
* Counts the number of documents in the collection, optionally filtered by a query.
|
|
164
|
+
* @param query Optional query to filter the count.
|
|
165
|
+
* @returns The number of documents.
|
|
166
|
+
*/
|
|
167
|
+
count(query?: DBInput): number;
|
|
168
|
+
/**
|
|
169
|
+
* Gets the count of documents (alias for count).
|
|
170
|
+
* @param query Optional query to filter the count.
|
|
171
|
+
* @returns The number of documents.
|
|
172
|
+
*/
|
|
173
|
+
getCount(query: DBInput): number;
|
|
174
|
+
/**
|
|
175
|
+
* Creates an index on the collection.
|
|
176
|
+
* @param keys The index key specification.
|
|
177
|
+
* @param options Optional index options.
|
|
178
|
+
*/
|
|
179
|
+
createIndex(keys: DBInput, options: DBInput): void;
|
|
180
|
+
/**
|
|
181
|
+
* Creates an index on a single field by name.
|
|
182
|
+
* @param name The name of the field to index.
|
|
183
|
+
*/
|
|
184
|
+
createIndexForField(name: string): void;
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves the distinct values for a specified field across a collection.
|
|
187
|
+
* NOTE: The signature in the original code seems slightly off compared to typical MongoDB drivers.
|
|
188
|
+
* This implementation follows the original structure using `keys.native` if `keys` is provided.
|
|
189
|
+
* @param name The field name.
|
|
190
|
+
* @param query Optional query to filter results.
|
|
191
|
+
* @param keys Optional keys to use for distinct (replaces 'name' if provided and query exists).
|
|
192
|
+
*/
|
|
193
|
+
distinct(name: string, query: DBInput, keys: DBInput): void;
|
|
194
|
+
/**
|
|
195
|
+
* Drops a specified index.
|
|
196
|
+
* @param index The name of the index or the DBObject representing the index keys.
|
|
197
|
+
*/
|
|
198
|
+
dropIndex(index: string | DBInput): void;
|
|
199
|
+
/**
|
|
200
|
+
* Drops a specified index by name.
|
|
201
|
+
* @param name The name of the index.
|
|
202
|
+
*/
|
|
203
|
+
dropIndexByName(name: string): void;
|
|
204
|
+
/**
|
|
205
|
+
* Drops all indexes on the collection.
|
|
206
|
+
*/
|
|
207
|
+
dropIndexes(): void;
|
|
208
|
+
/**
|
|
209
|
+
* Removes documents from the collection matching the query.
|
|
210
|
+
* @param query The deletion query specification.
|
|
211
|
+
*/
|
|
212
|
+
remove(query: DBInput): void;
|
|
213
|
+
/**
|
|
214
|
+
* Renames the collection.
|
|
215
|
+
* @param newName The new name for the collection.
|
|
216
|
+
*/
|
|
217
|
+
rename(newName: string): void;
|
|
218
|
+
/**
|
|
219
|
+
* Saves a document to the collection. If the document has an `_id`, it performs an update;
|
|
220
|
+
* otherwise, it performs an insert.
|
|
221
|
+
* @param dbObject The document to save.
|
|
222
|
+
*/
|
|
223
|
+
save(dbObject: DBInput): void;
|
|
224
|
+
/**
|
|
225
|
+
* Updates documents in the collection matching the query.
|
|
226
|
+
* @param query The update query specification.
|
|
227
|
+
* @param update The update operation specification (e.g., {$set: {...}}).
|
|
228
|
+
* @param upsert If true, creates a new document if no documents match the query.
|
|
229
|
+
* @param multi If true, updates all documents matching the query; otherwise, only one.
|
|
230
|
+
*/
|
|
231
|
+
update(query: DBInput, update: DBInput, upsert?: boolean, multi?: boolean): void;
|
|
232
|
+
/**
|
|
233
|
+
* Updates multiple documents in the collection matching the query.
|
|
234
|
+
* (Equivalent to calling `update` with `multi=true` and `upsert=true` implicitly).
|
|
235
|
+
* @param query The update query specification.
|
|
236
|
+
* @param update The update operation specification.
|
|
237
|
+
*/
|
|
238
|
+
updateMulti(query: DBInput, update: DBInput): void;
|
|
239
|
+
/**
|
|
240
|
+
* Calculates the next sequential ID based on the largest existing `_id` in the collection.
|
|
241
|
+
* Assumes `_id` is a numeric field.
|
|
242
|
+
* @returns The next available sequential ID (starting at 1 if collection is empty).
|
|
243
|
+
*/
|
|
244
|
+
getNextId(): number;
|
|
245
|
+
/**
|
|
246
|
+
* Generates a new random UUID (Universally Unique Identifier).
|
|
247
|
+
* @returns A string representing the UUID.
|
|
248
|
+
*/
|
|
249
|
+
generateUUID(): string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* DBCursor object wrapper for iterating over results of a MongoDB query.
|
|
253
|
+
*/
|
|
254
|
+
export declare class DBCursor {
|
|
255
|
+
/**
|
|
256
|
+
* The underlying native MongoDB DBCursor object.
|
|
257
|
+
* @private
|
|
258
|
+
*/
|
|
259
|
+
private readonly native;
|
|
260
|
+
/**
|
|
261
|
+
* Constructs a new DBCursor instance.
|
|
262
|
+
* @param native The native MongoDB DBCursor object.
|
|
263
|
+
*/
|
|
264
|
+
constructor(native: any);
|
|
265
|
+
/**
|
|
266
|
+
* Returns the single result from the cursor.
|
|
267
|
+
* @returns A DBObject representing the document.
|
|
268
|
+
*/
|
|
269
|
+
one(): DBObject;
|
|
270
|
+
/**
|
|
271
|
+
* Sets the batch size for the cursor.
|
|
272
|
+
* @param numberOfElements The batch size.
|
|
273
|
+
* @returns The DBCursor instance for chaining.
|
|
274
|
+
*/
|
|
275
|
+
batchSize(numberOfElements: number): DBCursor;
|
|
276
|
+
/**
|
|
277
|
+
* Gets the current batch size.
|
|
278
|
+
* @returns The batch size.
|
|
279
|
+
*/
|
|
280
|
+
getBatchSize(): number;
|
|
281
|
+
/**
|
|
282
|
+
* Gets the collection associated with this cursor.
|
|
283
|
+
* @returns The DBCollection instance.
|
|
284
|
+
*/
|
|
285
|
+
getCollection(): DBCollection;
|
|
286
|
+
/**
|
|
287
|
+
* Gets the cursor ID.
|
|
288
|
+
* @returns The cursor ID string.
|
|
289
|
+
*/
|
|
290
|
+
getCursorId(): string;
|
|
291
|
+
/**
|
|
292
|
+
* Gets the projection object (fields wanted) used in the query.
|
|
293
|
+
* @returns The projection DBObject.
|
|
294
|
+
*/
|
|
295
|
+
getKeysWanted(): DBObject;
|
|
296
|
+
/**
|
|
297
|
+
* Gets the limit set on the cursor.
|
|
298
|
+
* @returns The limit number.
|
|
299
|
+
*/
|
|
300
|
+
getLimit(): number;
|
|
301
|
+
/**
|
|
302
|
+
* Closes the cursor.
|
|
303
|
+
*/
|
|
304
|
+
close(): void;
|
|
305
|
+
/**
|
|
306
|
+
* Checks if there is a next document in the cursor.
|
|
307
|
+
* @returns True if there is a next document, false otherwise.
|
|
308
|
+
*/
|
|
309
|
+
hasNext(): boolean;
|
|
310
|
+
/**
|
|
311
|
+
* Retrieves the next document in the cursor.
|
|
312
|
+
* @returns The next document as a DBObject.
|
|
313
|
+
*/
|
|
314
|
+
next(): DBObject;
|
|
315
|
+
/**
|
|
316
|
+
* Gets the query object used to create this cursor.
|
|
317
|
+
* @returns The query DBObject.
|
|
318
|
+
*/
|
|
319
|
+
getQuery(): DBObject;
|
|
320
|
+
/**
|
|
321
|
+
* Gets the number of documents matched by the query.
|
|
322
|
+
* @returns The total number of documents.
|
|
323
|
+
*/
|
|
324
|
+
length(): number;
|
|
325
|
+
/**
|
|
326
|
+
* Specifies the order in which the query returns the results.
|
|
327
|
+
* @param orderBy The sorting specification (e.g., {field: 1} for ascending).
|
|
328
|
+
* @returns The DBCursor instance for chaining.
|
|
329
|
+
*/
|
|
330
|
+
sort(orderBy: DBInput): DBCursor;
|
|
331
|
+
/**
|
|
332
|
+
* Limits the number of results to be returned.
|
|
333
|
+
* @param limit The maximum number of documents to return.
|
|
334
|
+
* @returns The DBCursor instance for chaining.
|
|
335
|
+
*/
|
|
336
|
+
limit(limit: number): DBCursor;
|
|
337
|
+
/**
|
|
338
|
+
* Specifies the exclusive upper bound for a specific index.
|
|
339
|
+
* @param min The minimum value.
|
|
340
|
+
* @returns The DBCursor instance for chaining.
|
|
341
|
+
*/
|
|
342
|
+
min(min: number): DBCursor;
|
|
343
|
+
/**
|
|
344
|
+
* Specifies the exclusive upper bound for a specific index.
|
|
345
|
+
* @param max The maximum value.
|
|
346
|
+
* @returns The DBCursor instance for chaining.
|
|
347
|
+
*/
|
|
348
|
+
max(max: number): DBCursor;
|
|
349
|
+
/**
|
|
350
|
+
* Sets a timeout for the server to execute the query.
|
|
351
|
+
* @param maxTime The maximum time in milliseconds.
|
|
352
|
+
* @returns The DBCursor instance for chaining.
|
|
353
|
+
*/
|
|
354
|
+
maxTime(maxTime: number): DBCursor;
|
|
355
|
+
/**
|
|
356
|
+
* Gets the size of the result set.
|
|
357
|
+
* @returns The size number.
|
|
358
|
+
*/
|
|
359
|
+
size(): number;
|
|
360
|
+
/**
|
|
361
|
+
* Skips the specified number of documents.
|
|
362
|
+
* @param numberOfElements The number of documents to skip.
|
|
363
|
+
* @returns The DBCursor instance for chaining.
|
|
364
|
+
*/
|
|
365
|
+
skip(numberOfElements: number): DBCursor;
|
|
366
|
+
}
|
|
367
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class DAO {
|
|
2
|
+
private orm;
|
|
3
|
+
$log: any;
|
|
4
|
+
constructor(orm: any, logCtxName?: string);
|
|
5
|
+
notify(event: any, ...a: any[]): void;
|
|
6
|
+
createNoSQLEntity(entity: any): any;
|
|
7
|
+
validateEntity(entity: any, skip: any): void;
|
|
8
|
+
insert(_entity: any): any;
|
|
9
|
+
update(entity: any): this;
|
|
10
|
+
remove(id: any): void;
|
|
11
|
+
expand(expansionPath: any, context: any): void;
|
|
12
|
+
find(id: any, expand: any, select: any): any;
|
|
13
|
+
count(): number;
|
|
14
|
+
list(settings: any): any[];
|
|
15
|
+
existsTable(): boolean;
|
|
16
|
+
createTable(): void;
|
|
17
|
+
dropTable(): DAO;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* oDefinition can be table definition or standard orm definition object. Or it can be a valid path to
|
|
21
|
+
* a .table file, or any other text file contianing a standard dao orm definition.
|
|
22
|
+
*/
|
|
23
|
+
export declare function create(oDefinition: any, logCtxName: any, dataSourceName: any, databaseType: any): DAO;
|
|
24
|
+
export declare function dao(oDefinition: any, logCtxName: any, dataSourceName: any, databaseType: any): DAO;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface WebsocketOptions {
|
|
2
|
+
name: string;
|
|
3
|
+
endpoint: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @Websocket decorator
|
|
7
|
+
* Marks an entire class as a websocket
|
|
8
|
+
*
|
|
9
|
+
* introduced in TypeScript 5.0, which expects a ClassDecoratorContext object.
|
|
10
|
+
*/
|
|
11
|
+
export declare function Websocket(options: WebsocketOptions): <T extends abstract new (...args: any) => any>(target: T, context: ClassDecoratorContext<T>) => void;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { InputStream } from "@aerokit/sdk/io/streams";
|
|
2
|
+
/**
|
|
3
|
+
* Utility class for creating, parsing, and calling SOAP messages.
|
|
4
|
+
* It wraps the underlying Java javax.xml.soap API.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SOAP {
|
|
7
|
+
/**
|
|
8
|
+
* Call a given SOAP endpoint with a given request message
|
|
9
|
+
* @param message The SOAP Message wrapper object.
|
|
10
|
+
* @param url The target SOAP endpoint URL.
|
|
11
|
+
*/
|
|
12
|
+
static call(message: Message, url: string): Message;
|
|
13
|
+
static trustAll(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new, empty SOAP message.
|
|
16
|
+
*/
|
|
17
|
+
static createMessage(): Message;
|
|
18
|
+
/**
|
|
19
|
+
* Parses a SOAP message from an InputStream and MimeHeaders.
|
|
20
|
+
* @param mimeHeaders The MimeHeaders wrapper object.
|
|
21
|
+
* @param inputStream The InputStream wrapper object.
|
|
22
|
+
*/
|
|
23
|
+
static parseMessage(mimeHeaders: MimeHeaders, inputStream: InputStream): Message;
|
|
24
|
+
/**
|
|
25
|
+
* Parses a SOAP message from the current HTTP request input stream.
|
|
26
|
+
*/
|
|
27
|
+
static parseRequest(): Message;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new, empty MimeHeaders object.
|
|
30
|
+
*/
|
|
31
|
+
static createMimeHeaders(): MimeHeaders;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* SOAP Message Wrapper
|
|
35
|
+
*/
|
|
36
|
+
declare class Message {
|
|
37
|
+
readonly native: any;
|
|
38
|
+
constructor(native: any);
|
|
39
|
+
getPart(): Part;
|
|
40
|
+
getMimeHeaders(): MimeHeaders;
|
|
41
|
+
save(): void;
|
|
42
|
+
getText(): string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* SOAP Part Wrapper
|
|
46
|
+
*/
|
|
47
|
+
declare class Part {
|
|
48
|
+
private readonly native;
|
|
49
|
+
constructor(native: any);
|
|
50
|
+
getEnvelope(): Envelope;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* SOAP Mime Headers Wrapper
|
|
54
|
+
*/
|
|
55
|
+
declare class MimeHeaders {
|
|
56
|
+
readonly native: any;
|
|
57
|
+
constructor(native: any);
|
|
58
|
+
addHeader(name: string, value: string): void;
|
|
59
|
+
addBasicAuthenticationHeader(username: string, password: string): void;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* SOAP Envelope Wrapper
|
|
63
|
+
*/
|
|
64
|
+
declare class Envelope {
|
|
65
|
+
private readonly native;
|
|
66
|
+
constructor(native: any);
|
|
67
|
+
addNamespaceDeclaration(prefix: string, uri: string): void;
|
|
68
|
+
getBody(): Body;
|
|
69
|
+
getHeader(): Header;
|
|
70
|
+
createName(localName: string, prefix: string, uri: string): Name;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* SOAP Body Wrapper
|
|
74
|
+
*/
|
|
75
|
+
declare class Body {
|
|
76
|
+
private readonly native;
|
|
77
|
+
constructor(native: any);
|
|
78
|
+
addChildElement(localName: string, prefix: string): Element;
|
|
79
|
+
getChildElements(): Element[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* SOAP Header Wrapper
|
|
83
|
+
*/
|
|
84
|
+
declare class Header {
|
|
85
|
+
private readonly native;
|
|
86
|
+
constructor(native: any);
|
|
87
|
+
addHeaderElement(element: Element): void;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* SOAP Name Wrapper
|
|
91
|
+
*/
|
|
92
|
+
declare class Name {
|
|
93
|
+
private readonly native;
|
|
94
|
+
constructor(native: any);
|
|
95
|
+
getNative(): string;
|
|
96
|
+
getLocalName(): string;
|
|
97
|
+
getPrefix(): string;
|
|
98
|
+
getQualifiedName(): string;
|
|
99
|
+
getURI(): string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* SOAP Element Wrapper
|
|
103
|
+
*/
|
|
104
|
+
declare class Element {
|
|
105
|
+
readonly native: any;
|
|
106
|
+
constructor(native: any);
|
|
107
|
+
addChildElement(localName: string, prefix: string): Element;
|
|
108
|
+
addTextNode(text: string): Element;
|
|
109
|
+
addAttribute(name: Name, value: any): Element;
|
|
110
|
+
getChildElements(): Element[];
|
|
111
|
+
getElementName(): Name | undefined;
|
|
112
|
+
getValue(): any;
|
|
113
|
+
isSOAPElement(): boolean;
|
|
114
|
+
}
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class Websockets
|
|
3
|
+
* @description Static utility class for accessing and managing WebSocket functionality.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Websockets {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new WebSocket client connection to a specified URI, managed by a handler script.
|
|
8
|
+
*
|
|
9
|
+
* @param uri The target WebSocket URI (e.g., 'ws://example.com/socket').
|
|
10
|
+
* @param handler The identifier or path of the script handling the WebSocket events.
|
|
11
|
+
* @returns A wrapper object for the new WebSocket session.
|
|
12
|
+
*/
|
|
13
|
+
static createWebsocket(uri: string, handler: string): WebsocketClient;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves a list of all active WebSocket clients.
|
|
16
|
+
*
|
|
17
|
+
* @returns An array of objects detailing the URI and handler of each client.
|
|
18
|
+
*/
|
|
19
|
+
static getClients(): {
|
|
20
|
+
uri: string;
|
|
21
|
+
handler: string;
|
|
22
|
+
}[];
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves a specific WebSocket client wrapper by its session ID.
|
|
25
|
+
*
|
|
26
|
+
* @param id The session ID of the client.
|
|
27
|
+
* @returns The client wrapper or undefined if not found.
|
|
28
|
+
*/
|
|
29
|
+
static getClient(id: string): WebsocketClient | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves a specific WebSocket client wrapper by its handler identifier.
|
|
32
|
+
*
|
|
33
|
+
* @param handler The handler identifier associated with the client.
|
|
34
|
+
* @returns The client wrapper or undefined if not found.
|
|
35
|
+
*/
|
|
36
|
+
static getClientByHandler(handler: string): WebsocketClient | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the message payload from the current context, typically used inside an 'onmessage' handler.
|
|
39
|
+
*
|
|
40
|
+
* @returns The message content.
|
|
41
|
+
*/
|
|
42
|
+
static getMessage(): any;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves error details from the current context, typically used inside an 'onerror' handler.
|
|
45
|
+
*
|
|
46
|
+
* @returns The error object or string.
|
|
47
|
+
*/
|
|
48
|
+
static getError(): any;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the event method name that triggered the current script execution (e.g., "onopen", "onmessage").
|
|
51
|
+
*
|
|
52
|
+
* @returns The name of the event method.
|
|
53
|
+
*/
|
|
54
|
+
static getMethod(): string;
|
|
55
|
+
/**
|
|
56
|
+
* Checks if the current event context is 'onopen'.
|
|
57
|
+
* @returns True if the method is 'onopen'.
|
|
58
|
+
*/
|
|
59
|
+
static isOnOpen(): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Checks if the current event context is 'onmessage'.
|
|
62
|
+
* @returns True if the method is 'onmessage'.
|
|
63
|
+
*/
|
|
64
|
+
static isOnMessage(): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Checks if the current event context is 'onerror'.
|
|
67
|
+
* @returns True if the method is 'onerror'.
|
|
68
|
+
*/
|
|
69
|
+
static isOnError(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Checks if the current event context is 'onclose'.
|
|
72
|
+
* @returns True if the method is 'onclose'.
|
|
73
|
+
*/
|
|
74
|
+
static isOnClose(): boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @class WebsocketClient
|
|
78
|
+
* @description Wrapper for a native WebSocket session, providing methods to send and close the connection.
|
|
79
|
+
*/
|
|
80
|
+
declare class WebsocketClient {
|
|
81
|
+
private readonly _session;
|
|
82
|
+
private readonly uri;
|
|
83
|
+
private readonly handler;
|
|
84
|
+
/**
|
|
85
|
+
* @param session The native Java session object.
|
|
86
|
+
* @param uri The connected URI.
|
|
87
|
+
* @param handler The handler identifier.
|
|
88
|
+
*/
|
|
89
|
+
constructor(session: null | any, uri: string, handler: string);
|
|
90
|
+
/**
|
|
91
|
+
* Sends a text message over the WebSocket connection.
|
|
92
|
+
* @param text The message to send.
|
|
93
|
+
*/
|
|
94
|
+
send(text: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* Closes the WebSocket connection.
|
|
97
|
+
*/
|
|
98
|
+
close(): void;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
File without changes
|
|
File without changes
|