@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,421 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class Workspace
|
|
3
|
+
* @description Represents a logical container for projects, providing static methods for
|
|
4
|
+
* high-level workspace management and instance methods for project management within the workspace.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Workspace {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new workspace with the given name.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} name The name of the workspace to create.
|
|
11
|
+
* @returns {Workspace} The newly created Workspace instance.
|
|
12
|
+
*/
|
|
13
|
+
static createWorkspace(name: string): Workspace;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves an existing workspace by name.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} name The name of the workspace to retrieve.
|
|
18
|
+
* @returns {Workspace} The Workspace instance.
|
|
19
|
+
*/
|
|
20
|
+
static getWorkspace(name: string): Workspace;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves the names of all existing workspaces.
|
|
23
|
+
*
|
|
24
|
+
* @returns {string[]} An array of workspace names.
|
|
25
|
+
*/
|
|
26
|
+
static getWorkspacesNames(): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Deletes the workspace with the specified name.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} name The name of the workspace to delete.
|
|
31
|
+
*/
|
|
32
|
+
static deleteWorkspace(name: string): void;
|
|
33
|
+
private readonly native;
|
|
34
|
+
/**
|
|
35
|
+
* @constructor
|
|
36
|
+
* @param {any} native The native Java object instance representing the workspace.
|
|
37
|
+
*/
|
|
38
|
+
constructor(native: any);
|
|
39
|
+
/**
|
|
40
|
+
* Gets a collection of all projects within this workspace.
|
|
41
|
+
*
|
|
42
|
+
* @returns {Projects} A Projects collection instance.
|
|
43
|
+
*/
|
|
44
|
+
getProjects(): Projects;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new project within this workspace.
|
|
47
|
+
*
|
|
48
|
+
* @param {string} name The name of the project to create.
|
|
49
|
+
* @returns {Project} The newly created Project instance.
|
|
50
|
+
*/
|
|
51
|
+
createProject(name: string): Project;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves an existing project by name from this workspace.
|
|
54
|
+
*
|
|
55
|
+
* @param {string} name The name of the project to retrieve.
|
|
56
|
+
* @returns {Project} The Project instance.
|
|
57
|
+
*/
|
|
58
|
+
getProject(name: string): Project;
|
|
59
|
+
/**
|
|
60
|
+
* Deletes a project from this workspace by name.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} name The name of the project to delete.
|
|
63
|
+
*/
|
|
64
|
+
deleteProject(name: string): void;
|
|
65
|
+
/**
|
|
66
|
+
* Checks if the workspace currently exists.
|
|
67
|
+
*
|
|
68
|
+
* @returns {boolean} True if the workspace exists, false otherwise.
|
|
69
|
+
*/
|
|
70
|
+
exists(): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Checks if a specific folder path exists within the workspace's filesystem structure.
|
|
73
|
+
*
|
|
74
|
+
* @param {string} path The relative path to the folder.
|
|
75
|
+
* @returns {boolean} True if the folder exists.
|
|
76
|
+
*/
|
|
77
|
+
existsFolder(path: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Checks if a specific file path exists within the workspace's filesystem structure.
|
|
80
|
+
*
|
|
81
|
+
* @param {string} path The relative path to the file.
|
|
82
|
+
* @returns {boolean} True if the file exists.
|
|
83
|
+
*/
|
|
84
|
+
existsFile(path: string): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Copies a project from a source name to a target name within the workspace.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} source The name of the project to copy.
|
|
89
|
+
* @param {string} target The name of the new project copy.
|
|
90
|
+
*/
|
|
91
|
+
copyProject(source: string, target: string): void;
|
|
92
|
+
/**
|
|
93
|
+
* Moves a project from a source name to a target name (renaming it).
|
|
94
|
+
*
|
|
95
|
+
* @param {string} source The current name of the project.
|
|
96
|
+
* @param {string} target The new name/path of the project.
|
|
97
|
+
*/
|
|
98
|
+
moveProject(source: string, target: string): void;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @class Projects
|
|
102
|
+
* @description A collection/list of projects within a workspace.
|
|
103
|
+
*/
|
|
104
|
+
export declare class Projects {
|
|
105
|
+
private readonly native;
|
|
106
|
+
/**
|
|
107
|
+
* @constructor
|
|
108
|
+
* @param {any} native The native Java object representing the list of projects.
|
|
109
|
+
*/
|
|
110
|
+
constructor(native: any);
|
|
111
|
+
/**
|
|
112
|
+
* Gets the number of projects in the collection.
|
|
113
|
+
* @returns {number} The size of the collection.
|
|
114
|
+
*/
|
|
115
|
+
size(): number;
|
|
116
|
+
/**
|
|
117
|
+
* Gets a Project instance at the specified index.
|
|
118
|
+
* @param {number} index The index of the project.
|
|
119
|
+
* @returns {Project} The Project instance.
|
|
120
|
+
*/
|
|
121
|
+
get(index: number): Project;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @class Project
|
|
125
|
+
* @description Represents a Project within a workspace. It provides methods for managing
|
|
126
|
+
* folders and files within the project.
|
|
127
|
+
*/
|
|
128
|
+
export declare class Project {
|
|
129
|
+
private readonly native;
|
|
130
|
+
/**
|
|
131
|
+
* @constructor
|
|
132
|
+
* @param {any} native The native Java object instance representing the project.
|
|
133
|
+
*/
|
|
134
|
+
constructor(native: any);
|
|
135
|
+
/**
|
|
136
|
+
* Gets the name of the project.
|
|
137
|
+
* @returns {string} The project name.
|
|
138
|
+
*/
|
|
139
|
+
getName(): string;
|
|
140
|
+
/**
|
|
141
|
+
* Gets the path of the project.
|
|
142
|
+
* @returns {string} The project path (relative to the repository/workspace root).
|
|
143
|
+
*/
|
|
144
|
+
getPath(): string;
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new folder within the project.
|
|
147
|
+
*
|
|
148
|
+
* @param {string} path The path of the folder to create (relative to the project root).
|
|
149
|
+
* @returns {Folder} The newly created Folder instance.
|
|
150
|
+
*/
|
|
151
|
+
createFolder(path: string): Folder;
|
|
152
|
+
/**
|
|
153
|
+
* Checks if the project itself exists.
|
|
154
|
+
* @returns {boolean} True if the project exists.
|
|
155
|
+
*/
|
|
156
|
+
exists(): boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Checks if a specific folder path exists within the project.
|
|
159
|
+
*
|
|
160
|
+
* @param {string} path The relative path to the folder.
|
|
161
|
+
* @returns {boolean} True if the folder exists.
|
|
162
|
+
*/
|
|
163
|
+
existsFolder(path: string): boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieves a folder by its path relative to the project root.
|
|
166
|
+
*
|
|
167
|
+
* @param {string} path The relative path to the folder.
|
|
168
|
+
* @returns {Folder} The Folder instance.
|
|
169
|
+
*/
|
|
170
|
+
getFolder(path: string): Folder;
|
|
171
|
+
/**
|
|
172
|
+
* Retrieves a collection of folders at a specific path.
|
|
173
|
+
*
|
|
174
|
+
* @param {string} path The path containing the folders to retrieve.
|
|
175
|
+
* @returns {Folders} The Folders collection instance.
|
|
176
|
+
*/
|
|
177
|
+
getFolders(path: string): Folders;
|
|
178
|
+
/**
|
|
179
|
+
* Deletes a folder from the project.
|
|
180
|
+
*
|
|
181
|
+
* @param {string} path The path of the folder to delete (relative to the project root).
|
|
182
|
+
*/
|
|
183
|
+
deleteFolder(path: string): void;
|
|
184
|
+
/**
|
|
185
|
+
* Creates a new file within the project.
|
|
186
|
+
*
|
|
187
|
+
* @param {string} path The path of the file to create (relative to the project root).
|
|
188
|
+
* @param {any[]} [input=[]] Optional initial content as a byte array.
|
|
189
|
+
* @returns {File} The newly created File instance.
|
|
190
|
+
*/
|
|
191
|
+
createFile(path: string, input?: any[]): File;
|
|
192
|
+
/**
|
|
193
|
+
* Checks if a specific file path exists within the project.
|
|
194
|
+
*
|
|
195
|
+
* @param {string} path The relative path to the file.
|
|
196
|
+
* @returns {boolean} True if the file exists.
|
|
197
|
+
*/
|
|
198
|
+
existsFile(path: string): boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Retrieves a file by its path relative to the project root.
|
|
201
|
+
*
|
|
202
|
+
* @param {string} path The relative path to the file.
|
|
203
|
+
* @returns {File} The File instance.
|
|
204
|
+
*/
|
|
205
|
+
getFile(path: string): File;
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves a collection of files at a specific path.
|
|
208
|
+
*
|
|
209
|
+
* @param {string} path The path containing the files to retrieve.
|
|
210
|
+
* @returns {Files} The Files collection instance.
|
|
211
|
+
*/
|
|
212
|
+
getFiles(path: string): Files;
|
|
213
|
+
/**
|
|
214
|
+
* Deletes a file from the project.
|
|
215
|
+
*
|
|
216
|
+
* @param {string} path The path of the file to delete (relative to the project root).
|
|
217
|
+
*/
|
|
218
|
+
deleteFile(path: string): void;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @class Folders
|
|
222
|
+
* @description A collection/list of folders.
|
|
223
|
+
*/
|
|
224
|
+
export declare class Folders {
|
|
225
|
+
private readonly native;
|
|
226
|
+
/**
|
|
227
|
+
* @constructor
|
|
228
|
+
* @param {any} native The native Java object representing the list of folders.
|
|
229
|
+
*/
|
|
230
|
+
constructor(native: any);
|
|
231
|
+
/**
|
|
232
|
+
* Gets the number of folders in the collection.
|
|
233
|
+
* @returns {number} The size of the collection.
|
|
234
|
+
*/
|
|
235
|
+
size(): number;
|
|
236
|
+
/**
|
|
237
|
+
* Gets a Folder instance at the specified index.
|
|
238
|
+
* @param {number} index The index of the folder.
|
|
239
|
+
* @returns {Folder} The Folder instance.
|
|
240
|
+
*/
|
|
241
|
+
get(index: number): Folder;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @class Files
|
|
245
|
+
* @description A collection/list of files.
|
|
246
|
+
*/
|
|
247
|
+
export declare class Files {
|
|
248
|
+
private readonly native;
|
|
249
|
+
/**
|
|
250
|
+
* @constructor
|
|
251
|
+
* @param {any} native The native Java object representing the list of files.
|
|
252
|
+
*/
|
|
253
|
+
constructor(native: any);
|
|
254
|
+
/**
|
|
255
|
+
* Gets the number of files in the collection.
|
|
256
|
+
* @returns {number} The size of the collection.
|
|
257
|
+
*/
|
|
258
|
+
size(): number;
|
|
259
|
+
/**
|
|
260
|
+
* Gets a File instance at the specified index.
|
|
261
|
+
* @param {number} index The index of the file.
|
|
262
|
+
* @returns {File} The File instance.
|
|
263
|
+
*/
|
|
264
|
+
get(index: number): File;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @class Folder
|
|
268
|
+
* @description Represents a directory or folder within a project, providing methods for
|
|
269
|
+
* managing sub-folders and files.
|
|
270
|
+
*/
|
|
271
|
+
export declare class Folder {
|
|
272
|
+
private readonly native;
|
|
273
|
+
/**
|
|
274
|
+
* @constructor
|
|
275
|
+
* @param {any} native The native Java object instance representing the folder.
|
|
276
|
+
*/
|
|
277
|
+
constructor(native: any);
|
|
278
|
+
/**
|
|
279
|
+
* Gets the name of the folder.
|
|
280
|
+
* @returns {string} The folder name.
|
|
281
|
+
*/
|
|
282
|
+
getName(): string;
|
|
283
|
+
/**
|
|
284
|
+
* Gets the full path of the folder.
|
|
285
|
+
* @returns {string} The folder path.
|
|
286
|
+
*/
|
|
287
|
+
getPath(): string;
|
|
288
|
+
/**
|
|
289
|
+
* Creates a new sub-folder within this folder.
|
|
290
|
+
*
|
|
291
|
+
* @param {string} path The path of the sub-folder to create (relative to this folder).
|
|
292
|
+
* @returns {Folder} The newly created Folder instance.
|
|
293
|
+
*/
|
|
294
|
+
createFolder(path: string): Folder;
|
|
295
|
+
/**
|
|
296
|
+
* Checks if the folder itself exists.
|
|
297
|
+
* @returns {boolean} True if the folder exists.
|
|
298
|
+
*/
|
|
299
|
+
exists(): boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Checks if a specific sub-folder path exists within this folder.
|
|
302
|
+
*
|
|
303
|
+
* @param {string} path The relative path to the sub-folder.
|
|
304
|
+
* @returns {boolean} True if the sub-folder exists.
|
|
305
|
+
*/
|
|
306
|
+
existsFolder(path: string): boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Retrieves a sub-folder by its path relative to this folder.
|
|
309
|
+
*
|
|
310
|
+
* @param {string} path The relative path to the sub-folder.
|
|
311
|
+
* @returns {Folder} The Folder instance.
|
|
312
|
+
*/
|
|
313
|
+
getFolder(path: string): Folder;
|
|
314
|
+
/**
|
|
315
|
+
* Retrieves a collection of folders at a specific path relative to this folder.
|
|
316
|
+
*
|
|
317
|
+
* @param {string} path The path containing the folders to retrieve.
|
|
318
|
+
* @returns {Folders} The Folders collection instance.
|
|
319
|
+
*/
|
|
320
|
+
getFolders(path: string): Folders;
|
|
321
|
+
/**
|
|
322
|
+
* Deletes a sub-folder from this folder.
|
|
323
|
+
*
|
|
324
|
+
* @param {string} path The path of the sub-folder to delete (relative to this folder).
|
|
325
|
+
*/
|
|
326
|
+
deleteFolder(path: string): void;
|
|
327
|
+
/**
|
|
328
|
+
* Creates a new file within this folder.
|
|
329
|
+
*
|
|
330
|
+
* @param {string} path The path of the file to create (relative to this folder).
|
|
331
|
+
* @param {any[]} [input=[]] Optional initial content as a byte array.
|
|
332
|
+
* @returns {File} The newly created File instance.
|
|
333
|
+
*/
|
|
334
|
+
createFile(path: string, input?: any[]): File;
|
|
335
|
+
/**
|
|
336
|
+
* Checks if a specific file path exists within this folder.
|
|
337
|
+
*
|
|
338
|
+
* @param {string} path The relative path to the file.
|
|
339
|
+
* @returns {boolean} True if the file exists.
|
|
340
|
+
*/
|
|
341
|
+
existsFile(path: string): boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Retrieves a file by its path relative to this folder.
|
|
344
|
+
*
|
|
345
|
+
* @param {string} path The relative path to the file.
|
|
346
|
+
* @returns {File} The File instance.
|
|
347
|
+
*/
|
|
348
|
+
getFile(path: string): File;
|
|
349
|
+
/**
|
|
350
|
+
* Retrieves a collection of files at a specific path relative to this folder.
|
|
351
|
+
*
|
|
352
|
+
* @param {string} path The path containing the files to retrieve.
|
|
353
|
+
* @returns {Files} The Files collection instance.
|
|
354
|
+
*/
|
|
355
|
+
getFiles(path: string): Files;
|
|
356
|
+
/**
|
|
357
|
+
* Deletes a file from this folder.
|
|
358
|
+
*
|
|
359
|
+
* @param {string} path The path of the file to delete (relative to this folder).
|
|
360
|
+
*/
|
|
361
|
+
deleteFile(path: string): void;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @class File
|
|
365
|
+
* @description Represents a file (resource) within the workspace, providing methods for
|
|
366
|
+
* content access and manipulation.
|
|
367
|
+
*/
|
|
368
|
+
export declare class File {
|
|
369
|
+
private readonly native;
|
|
370
|
+
/**
|
|
371
|
+
* @constructor
|
|
372
|
+
* @param {any} native The native Java object instance representing the file.
|
|
373
|
+
*/
|
|
374
|
+
constructor(native: any);
|
|
375
|
+
/**
|
|
376
|
+
* Gets the name of the file.
|
|
377
|
+
* @returns {string} The file name.
|
|
378
|
+
*/
|
|
379
|
+
getName(): string;
|
|
380
|
+
/**
|
|
381
|
+
* Gets the full path of the file.
|
|
382
|
+
* @returns {string} The file path.
|
|
383
|
+
*/
|
|
384
|
+
getPath(): string;
|
|
385
|
+
/**
|
|
386
|
+
* Gets the content type (MIME type) of the file.
|
|
387
|
+
* @returns {string} The content type string.
|
|
388
|
+
*/
|
|
389
|
+
getContentType(): string;
|
|
390
|
+
/**
|
|
391
|
+
* Checks if the file content is determined to be binary.
|
|
392
|
+
* @returns {boolean} True if binary, false if text.
|
|
393
|
+
*/
|
|
394
|
+
isBinary(): boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Gets the content of the file as a JavaScript-friendly byte array.
|
|
397
|
+
* @returns {any[]} The content bytes.
|
|
398
|
+
*/
|
|
399
|
+
getContent(): any[];
|
|
400
|
+
/**
|
|
401
|
+
* Gets the content of the file as a text string.
|
|
402
|
+
* @returns {string} The text content.
|
|
403
|
+
*/
|
|
404
|
+
getText(): string;
|
|
405
|
+
/**
|
|
406
|
+
* Sets the content of the file using a byte array.
|
|
407
|
+
* @param {any[]} input The new content bytes.
|
|
408
|
+
*/
|
|
409
|
+
setContent(input: any[]): void;
|
|
410
|
+
/**
|
|
411
|
+
* Sets the content of the file using a text string.
|
|
412
|
+
* The string is converted to a byte array before saving.
|
|
413
|
+
* @param {string} input The new text content.
|
|
414
|
+
*/
|
|
415
|
+
setText(input: string): void;
|
|
416
|
+
/**
|
|
417
|
+
* Checks if the file exists.
|
|
418
|
+
* @returns {boolean} True if the file exists.
|
|
419
|
+
*/
|
|
420
|
+
exists(): boolean;
|
|
421
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QLDBRepository: any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RabbitMQ Consumer
|
|
3
|
+
*
|
|
4
|
+
* This facade provides static methods to start and stop listening on RabbitMQ queues,
|
|
5
|
+
* wrapping the underlying Java implementation provided by the `RabbitMQFacade`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Consumer {
|
|
8
|
+
/**
|
|
9
|
+
* Starts listening for messages on a specified RabbitMQ queue.
|
|
10
|
+
* The handler is typically a service or script URI that will be executed
|
|
11
|
+
* when a message arrives.
|
|
12
|
+
*
|
|
13
|
+
* @param queue The name of the RabbitMQ queue to listen to.
|
|
14
|
+
* @param handler The URI/name of the component/script that will handle the message.
|
|
15
|
+
*/
|
|
16
|
+
static startListening(queue: string, handler: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Stops the message listener previously started on a specified RabbitMQ queue
|
|
19
|
+
* for a given handler.
|
|
20
|
+
*
|
|
21
|
+
* @param queue The name of the RabbitMQ queue.
|
|
22
|
+
* @param handler The URI/name of the component/script whose listener should be stopped.
|
|
23
|
+
*/
|
|
24
|
+
static stopListening(queue: string, handler: string): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RabbitMQ Producer
|
|
3
|
+
*
|
|
4
|
+
* This facade provides a static method to send messages to a RabbitMQ queue,
|
|
5
|
+
* wrapping the underlying Java implementation provided by the `RabbitMQFacade`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Producer {
|
|
8
|
+
/**
|
|
9
|
+
* Sends a message to the specified RabbitMQ queue.
|
|
10
|
+
*
|
|
11
|
+
* @param queue The name of the RabbitMQ queue to send the message to.
|
|
12
|
+
* @param message The content of the message to be sent (as a string).
|
|
13
|
+
*/
|
|
14
|
+
static send(queue: string, message: string): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Redis Client
|
|
3
|
+
*
|
|
4
|
+
* This class serves as a facade for common Redis operations, providing a convenient
|
|
5
|
+
* JavaScript interface that wraps the underlying Java Redis client implementation.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Client {
|
|
8
|
+
private readonly native;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes the Redis Client and retrieves the native client instance
|
|
11
|
+
* from the Redis Facade.
|
|
12
|
+
*/
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Appends a value to the value of a key. If the key does not exist,
|
|
16
|
+
* it is created and set to the initial value.
|
|
17
|
+
*
|
|
18
|
+
* @param key The key to append to.
|
|
19
|
+
* @param value The value string to append.
|
|
20
|
+
* @returns The length of the string after the append operation.
|
|
21
|
+
*/
|
|
22
|
+
append(key: string, value: string): number;
|
|
23
|
+
/**
|
|
24
|
+
* Counts the number of set bits (1s) in the string value of a key.
|
|
25
|
+
*
|
|
26
|
+
* @param key The key to perform the bitcount on.
|
|
27
|
+
* @returns The number of set bits.
|
|
28
|
+
*/
|
|
29
|
+
bitcount(key: string): number;
|
|
30
|
+
/**
|
|
31
|
+
* Decrements the number stored at key by one.
|
|
32
|
+
*
|
|
33
|
+
* @param key The key holding the numeric value.
|
|
34
|
+
* @returns The value of key after the decrement.
|
|
35
|
+
*/
|
|
36
|
+
decr(key: string): number;
|
|
37
|
+
/**
|
|
38
|
+
* Deletes the specified key.
|
|
39
|
+
*
|
|
40
|
+
* @param key The key to delete.
|
|
41
|
+
* @returns The number of keys that were removed (1 if successful, 0 otherwise).
|
|
42
|
+
*/
|
|
43
|
+
del(key: string): number;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if the specified key exists.
|
|
46
|
+
*
|
|
47
|
+
* @param key The key to check.
|
|
48
|
+
* @returns True if the key exists, false otherwise.
|
|
49
|
+
*/
|
|
50
|
+
exists(key: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the value of the specified key.
|
|
53
|
+
*
|
|
54
|
+
* @param key The key to retrieve the value for.
|
|
55
|
+
* @returns The value of the key, or null if the key does not exist.
|
|
56
|
+
*/
|
|
57
|
+
get(key: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* Increments the number stored at key by one.
|
|
60
|
+
*
|
|
61
|
+
* @param key The key holding the numeric value.
|
|
62
|
+
* @returns The value of key after the increment.
|
|
63
|
+
*/
|
|
64
|
+
incr(key: string): number;
|
|
65
|
+
/**
|
|
66
|
+
* Finds all keys matching the given pattern.
|
|
67
|
+
*
|
|
68
|
+
* @param pattern The pattern to match keys against (e.g., "user:*").
|
|
69
|
+
* @returns An array of matching keys.
|
|
70
|
+
*/
|
|
71
|
+
keys(pattern: string): string[];
|
|
72
|
+
/**
|
|
73
|
+
* Sets the string value of a key.
|
|
74
|
+
*
|
|
75
|
+
* @param key The key to set.
|
|
76
|
+
* @param value The string value to assign to the key.
|
|
77
|
+
* @returns 'OK' on success.
|
|
78
|
+
*/
|
|
79
|
+
set(key: string, value: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* Gets an element from a list by its zero-based index.
|
|
82
|
+
*
|
|
83
|
+
* @param key The key of the list.
|
|
84
|
+
* @param index The zero-based index (0 is the first element, -1 is the last).
|
|
85
|
+
* @returns The element at the specified index, or null if the index is out of range.
|
|
86
|
+
*/
|
|
87
|
+
lindex(key: string, index: number): string;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the length of the list stored at the key.
|
|
90
|
+
*
|
|
91
|
+
* @param key The key of the list.
|
|
92
|
+
* @returns The length of the list.
|
|
93
|
+
*/
|
|
94
|
+
llen(key: string): number;
|
|
95
|
+
/**
|
|
96
|
+
* Removes and returns the first element of the list stored at the key (Left POP).
|
|
97
|
+
*
|
|
98
|
+
* @param key The key of the list.
|
|
99
|
+
* @returns The first element of the list, or null when the list is empty.
|
|
100
|
+
*/
|
|
101
|
+
lpop(key: string): string;
|
|
102
|
+
/**
|
|
103
|
+
* Inserts all specified values at the head of the list stored at the key (Left PUSH).
|
|
104
|
+
*
|
|
105
|
+
* @param key The key of the list.
|
|
106
|
+
* @param value One or more values to prepend to the list.
|
|
107
|
+
* @returns The new length of the list.
|
|
108
|
+
*/
|
|
109
|
+
lpush(key: string, ...value: string[]): any;
|
|
110
|
+
/**
|
|
111
|
+
* Returns the specified elements of the list stored at the key.
|
|
112
|
+
*
|
|
113
|
+
* @param key The key of the list.
|
|
114
|
+
* @param start The starting zero-based offset.
|
|
115
|
+
* @param stop The stopping zero-based offset.
|
|
116
|
+
* @returns An array of elements in the specified range.
|
|
117
|
+
*/
|
|
118
|
+
lrange(key: string, start: number, stop: number): string[];
|
|
119
|
+
/**
|
|
120
|
+
* Removes and returns the last element of the list stored at the key (Right POP).
|
|
121
|
+
*
|
|
122
|
+
* @param key The key of the list.
|
|
123
|
+
* @returns The last element of the list, or null when the list is empty.
|
|
124
|
+
*/
|
|
125
|
+
rpop(key: string): string;
|
|
126
|
+
/**
|
|
127
|
+
* Inserts all specified values at the tail of the list stored at the key (Right PUSH).
|
|
128
|
+
*
|
|
129
|
+
* @param key The key of the list.
|
|
130
|
+
* @param value One or more values to append to the list.
|
|
131
|
+
* @returns The new length of the list.
|
|
132
|
+
*/
|
|
133
|
+
rpush(key: string, ...value: string[]): number;
|
|
134
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration structure for the OAuth client.
|
|
3
|
+
*/
|
|
4
|
+
export interface OAuthClientConfig {
|
|
5
|
+
/** The URL endpoint for the OAuth token service (e.g., '/oauth/token'). */
|
|
6
|
+
readonly url: string;
|
|
7
|
+
/** The client ID for authentication. */
|
|
8
|
+
readonly clientId: string;
|
|
9
|
+
/** The client secret for authentication. */
|
|
10
|
+
readonly clientSecret: string;
|
|
11
|
+
/** The grant type to be used. Defaults to 'client_credentials'. */
|
|
12
|
+
readonly grantType?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A client class for fetching OAuth access tokens.
|
|
16
|
+
*
|
|
17
|
+
* It uses the HTTP client to send a POST request with client credentials
|
|
18
|
+
* to the specified token endpoint.
|
|
19
|
+
*/
|
|
20
|
+
export declare class OAuthClient {
|
|
21
|
+
private config;
|
|
22
|
+
/**
|
|
23
|
+
* Initializes the OAuthClient with the required configuration.
|
|
24
|
+
* Sets 'client_credentials' as the default grant type if none is provided.
|
|
25
|
+
*
|
|
26
|
+
* @param config The configuration object containing URL, client ID, and secret.
|
|
27
|
+
*/
|
|
28
|
+
constructor(config: OAuthClientConfig);
|
|
29
|
+
/**
|
|
30
|
+
* Executes the OAuth token request and returns the parsed response.
|
|
31
|
+
*
|
|
32
|
+
* The request uses the client credentials grant type (default) and
|
|
33
|
+
* sends credentials as URL-encoded parameters in the body.
|
|
34
|
+
*
|
|
35
|
+
* @returns A parsed JSON object containing the OAuth token (e.g., { access_token: string, expires_in: number, ... }).
|
|
36
|
+
* @throws {Error} If the HTTP status code is not 200.
|
|
37
|
+
*/
|
|
38
|
+
getToken(): any;
|
|
39
|
+
}
|