@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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides static methods for translating entity properties based on a dedicated language table.
|
|
3
|
+
* Translation is achieved by querying a separate table (e.g., 'BASE_TABLE_LANG') and merging
|
|
4
|
+
* the translated fields back into the original data.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Translator {
|
|
7
|
+
/**
|
|
8
|
+
* Translates properties for a list of entities by querying the corresponding language table.
|
|
9
|
+
*
|
|
10
|
+
* @param list The array of entities to be translated.
|
|
11
|
+
* @param language The target language code (e.g., 'en', 'de'). If undefined, no translation occurs.
|
|
12
|
+
* @param basetTable The name of the base entity table (used to derive the language table name).
|
|
13
|
+
* @returns The translated array of entities.
|
|
14
|
+
*/
|
|
15
|
+
static translateList(list: any[], language: string | undefined, basetTable: string): any[];
|
|
16
|
+
/**
|
|
17
|
+
* Translates properties for a single entity by querying the corresponding language table.
|
|
18
|
+
*
|
|
19
|
+
* @param entity The entity object to be translated.
|
|
20
|
+
* @param id The ID of the entity.
|
|
21
|
+
* @param language The target language code (e.g., 'en', 'de'). If undefined, no translation occurs.
|
|
22
|
+
* @param basetTable The name of the base entity table.
|
|
23
|
+
* @returns The translated entity object.
|
|
24
|
+
*/
|
|
25
|
+
static translateEntity(entity: any, id: string | number, language: string | undefined, basetTable: string): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface used for complex parameter types if needed, otherwise primitive types are used directly.
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateParameter {
|
|
5
|
+
readonly value: any;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Facade class for executing SQL UPDATE, INSERT, and DELETE statements.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Update {
|
|
11
|
+
/**
|
|
12
|
+
* Executes a parameterized SQL update statement (INSERT, UPDATE, or DELETE).
|
|
13
|
+
*
|
|
14
|
+
* @param sql The SQL statement to execute.
|
|
15
|
+
* @param parameters Optional array of parameters to bind to the SQL statement (replaces '?').
|
|
16
|
+
* These are serialized to JSON before being passed to the native API.
|
|
17
|
+
* @param datasourceName Optional name of the data source to use. Defaults to the primary data source.
|
|
18
|
+
* @returns The number of rows affected by the statement.
|
|
19
|
+
*/
|
|
20
|
+
static execute(sql: string, parameters?: (string | number | boolean | Date | UpdateParameter)[], datasourceName?: string): number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the header metadata of an Etcd response.
|
|
3
|
+
*/
|
|
4
|
+
export declare class Header {
|
|
5
|
+
private readonly native;
|
|
6
|
+
constructor(native: any);
|
|
7
|
+
/** The revision of the key-value store when the request was processed. */
|
|
8
|
+
getRevision(): string;
|
|
9
|
+
/** The ID of the cluster which the request was sent to. */
|
|
10
|
+
getClusterId(): string;
|
|
11
|
+
/** The ID of the member which the request was handled by. */
|
|
12
|
+
getMemberId(): string;
|
|
13
|
+
/** The Raft term. */
|
|
14
|
+
getRaftTerm(): string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents the response object for a Get operation from Etcd.
|
|
18
|
+
*/
|
|
19
|
+
export declare class GetResponse {
|
|
20
|
+
private readonly native;
|
|
21
|
+
constructor(native: any);
|
|
22
|
+
/** Retrieves the response header containing cluster metadata. */
|
|
23
|
+
getHeader(): Header;
|
|
24
|
+
/** Retrieves the Key-Value pairs with values converted to strings. */
|
|
25
|
+
getKvsString(): {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
/** Retrieves the Key-Value pairs with values converted to Int8Array (byte arrays). */
|
|
29
|
+
getKvsByteArray(): {
|
|
30
|
+
[key: string]: Int8Array;
|
|
31
|
+
};
|
|
32
|
+
/** Retrieves the number of Key-Value pairs returned. */
|
|
33
|
+
getCount(): number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Client facade for interacting with the Etcd key-value store.
|
|
37
|
+
*/
|
|
38
|
+
export declare class Client {
|
|
39
|
+
private readonly native;
|
|
40
|
+
constructor();
|
|
41
|
+
/**
|
|
42
|
+
* Executes a blocking GET request on the specified key.
|
|
43
|
+
* @param key The key to retrieve.
|
|
44
|
+
* @returns The processed GetResponse object.
|
|
45
|
+
*/
|
|
46
|
+
private get;
|
|
47
|
+
/**
|
|
48
|
+
* Puts (writes) a string value to the specified key.
|
|
49
|
+
* @param key The key to write to.
|
|
50
|
+
* @param value The string value.
|
|
51
|
+
*/
|
|
52
|
+
putStringValue(key: string, value: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Puts (writes) a byte array value to the specified key.
|
|
55
|
+
* @param key The key to write to.
|
|
56
|
+
* @param value The Int8Array (byte array) value.
|
|
57
|
+
*/
|
|
58
|
+
putByteArrayValue(key: string, value: Int8Array): void;
|
|
59
|
+
/**
|
|
60
|
+
* Retrieves the response header metadata for a key.
|
|
61
|
+
* @param key The key to query.
|
|
62
|
+
* @returns The {@link Header} object.
|
|
63
|
+
*/
|
|
64
|
+
getHeader(key: string): Header;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves the Key-Value pairs as a JavaScript object with string values.
|
|
67
|
+
* @param key The key (or key prefix) to query.
|
|
68
|
+
* @returns An object mapping keys to string values.
|
|
69
|
+
*/
|
|
70
|
+
getKvsStringValue(key: string): {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves the Key-Value pairs as a JavaScript object with Int8Array values.
|
|
75
|
+
* @param key The key (or key prefix) to query.
|
|
76
|
+
* @returns An object mapping keys to Int8Array values.
|
|
77
|
+
*/
|
|
78
|
+
getKvsByteArrayValue(key: string): {
|
|
79
|
+
[key: string]: Int8Array;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Retrieves the count of Key-Value pairs matching the key (or key prefix).
|
|
83
|
+
* @param key The key (or key prefix) to query.
|
|
84
|
+
* @returns The count of matching entries.
|
|
85
|
+
*/
|
|
86
|
+
getCount(key: string): number;
|
|
87
|
+
/**
|
|
88
|
+
* Deletes the specified key.
|
|
89
|
+
* @param key The key to delete.
|
|
90
|
+
*/
|
|
91
|
+
delete(key: string): void;
|
|
92
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ExtensionOptions {
|
|
2
|
+
name: string;
|
|
3
|
+
to: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @Extension decorator
|
|
7
|
+
* Marks an entire class as a extension
|
|
8
|
+
*
|
|
9
|
+
* introduced in TypeScript 5.0, which expects a ClassDecoratorContext object.
|
|
10
|
+
*/
|
|
11
|
+
export declare function Extension(options: ExtensionOptions): <T extends abstract new (...args: any) => any>(target: T, context: ClassDecoratorContext<T>) => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Extensions
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Provides functionality for discovering and loading extensions defined
|
|
7
|
+
* against the Dirigible extension model.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Extensions {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the list of extension module paths registered for a specific extension point.
|
|
12
|
+
*
|
|
13
|
+
* @param extensionPoint The unique identifier of the extension point (e.g., "my.extension.point").
|
|
14
|
+
* @returns An array of string paths (modules) registered for the given extension point.
|
|
15
|
+
*/
|
|
16
|
+
static getExtensions(extensionPoint: string): string[];
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves all available extension point identifiers.
|
|
19
|
+
*
|
|
20
|
+
* @returns An array of strings representing all registered extension point IDs.
|
|
21
|
+
*/
|
|
22
|
+
static getExtensionPoints(): string[];
|
|
23
|
+
/**
|
|
24
|
+
* Loads extension modules registered for a specific extension point.
|
|
25
|
+
* It handles both synchronous (require) and asynchronous (import) loading.
|
|
26
|
+
*
|
|
27
|
+
* @param extensionPoint The unique identifier of the extension point.
|
|
28
|
+
* @param requiredFunctions An optional list of function names that the extension module must export to be included.
|
|
29
|
+
* @param throwError If true, throws an error on failure; otherwise, logs the error and continues.
|
|
30
|
+
* @returns A Promise that resolves to an array of successfully loaded and validated extension modules (exports).
|
|
31
|
+
*/
|
|
32
|
+
static loadExtensionModules(extensionPoint: string, requiredFunctions?: string[], throwError?: boolean): Promise<any[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Logs an error to the console and optionally throws an exception.
|
|
35
|
+
* @param throwError If true, an exception is thrown.
|
|
36
|
+
* @param errorData The data/message to log and/or use for the error message.
|
|
37
|
+
*/
|
|
38
|
+
private static logError;
|
|
39
|
+
/** Alias for loadExtensionModules */
|
|
40
|
+
static load(extensionPoint: string, requiredFunctions?: string[], throwError?: boolean): Promise<any[]>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a file within the workspace, potentially with Git status information.
|
|
3
|
+
*/
|
|
4
|
+
export interface FileDescriptor {
|
|
5
|
+
name: string;
|
|
6
|
+
path: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Describes a folder within the workspace, potentially with Git status information.
|
|
12
|
+
*/
|
|
13
|
+
export interface FolderDescriptor {
|
|
14
|
+
name: string;
|
|
15
|
+
path: string;
|
|
16
|
+
status: string;
|
|
17
|
+
folders: FolderDescriptor[];
|
|
18
|
+
files: FileDescriptor[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Describes a Git-managed project/repository in the workspace.
|
|
22
|
+
*/
|
|
23
|
+
export interface ProjectDescriptor {
|
|
24
|
+
name: string;
|
|
25
|
+
path: string;
|
|
26
|
+
git: boolean;
|
|
27
|
+
gitName: string;
|
|
28
|
+
folders: FolderDescriptor[];
|
|
29
|
+
files: FileDescriptor[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Describes a single Git commit.
|
|
33
|
+
*/
|
|
34
|
+
export interface GitCommitInfo {
|
|
35
|
+
id: string;
|
|
36
|
+
author: string;
|
|
37
|
+
emailAddress: string;
|
|
38
|
+
dateTime: string;
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Describes a Git branch (local or remote).
|
|
43
|
+
*/
|
|
44
|
+
export interface GitBranch {
|
|
45
|
+
name: string;
|
|
46
|
+
remote: boolean;
|
|
47
|
+
current: boolean;
|
|
48
|
+
commitObjectId: string;
|
|
49
|
+
commitShortId: string;
|
|
50
|
+
commitDate: string;
|
|
51
|
+
commitMessage: string;
|
|
52
|
+
commitAuthor: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Describes a file that has been changed (staged or unstaged).
|
|
56
|
+
*/
|
|
57
|
+
export interface GitChangedFile {
|
|
58
|
+
path: string;
|
|
59
|
+
type: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The IGitConnector provides the simplified methods for communicating with a Git SCM server.
|
|
63
|
+
* This interface is primarily implemented by the object returned from the native Java facade.
|
|
64
|
+
*/
|
|
65
|
+
export interface GitConnector {
|
|
66
|
+
/**
|
|
67
|
+
* Gets the origin urls.
|
|
68
|
+
*
|
|
69
|
+
* @returns An object containing the fetch and push URLs.
|
|
70
|
+
*/
|
|
71
|
+
getOriginUrls(): {
|
|
72
|
+
fetchUrl: string;
|
|
73
|
+
pushUrl: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Sets the fetch url.
|
|
77
|
+
*
|
|
78
|
+
* @param fetchUrl The new fetch URL.
|
|
79
|
+
* @throws URISyntaxException, GitAPIException
|
|
80
|
+
*/
|
|
81
|
+
setFetchUrl(fetchUrl: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the push url.
|
|
84
|
+
*
|
|
85
|
+
* @param pushUrl The new push URL.
|
|
86
|
+
* @throws URISyntaxException, GitAPIException
|
|
87
|
+
*/
|
|
88
|
+
setPushUrl(pushUrl: string): void;
|
|
89
|
+
/**
|
|
90
|
+
* Adds file(s) to the staging index.
|
|
91
|
+
*
|
|
92
|
+
* @param filePattern File to add content from. Example: "." includes all files.
|
|
93
|
+
* @throws IOException, NoFilepatternException, GitAPIException
|
|
94
|
+
*/
|
|
95
|
+
add(filePattern: string): void;
|
|
96
|
+
/**
|
|
97
|
+
* Adds deleted file(s) to the staging index.
|
|
98
|
+
*
|
|
99
|
+
* @param filePattern File to add content from. Example: "." includes all files.
|
|
100
|
+
* @throws IOException, NoFilepatternException, GitAPIException
|
|
101
|
+
*/
|
|
102
|
+
addDeleted(filePattern: string): void;
|
|
103
|
+
/**
|
|
104
|
+
* Remove from the index.
|
|
105
|
+
*
|
|
106
|
+
* @param path The path to be removed.
|
|
107
|
+
* @throws IOException, NoFilepatternException, GitAPIException
|
|
108
|
+
*/
|
|
109
|
+
remove(path: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Revert to head revision.
|
|
112
|
+
*
|
|
113
|
+
* @param path The path to be reverted.
|
|
114
|
+
* @throws IOException, NoFilepatternException, GitAPIException
|
|
115
|
+
*/
|
|
116
|
+
revert(path: string): void;
|
|
117
|
+
/**
|
|
118
|
+
* Adds changes to the staging index, then performs a commit.
|
|
119
|
+
*
|
|
120
|
+
* @param message The commit message.
|
|
121
|
+
* @param name The name of the committer.
|
|
122
|
+
* @param email The email of the committer.
|
|
123
|
+
* @param all If true, automatically stages modified and deleted files.
|
|
124
|
+
* @throws Various Git exceptions
|
|
125
|
+
*/
|
|
126
|
+
commit(message: string, name: string, email: string, all: boolean): void;
|
|
127
|
+
/**
|
|
128
|
+
* Creates new branch from a particular start point.
|
|
129
|
+
*
|
|
130
|
+
* @param name The new branch name.
|
|
131
|
+
* @param startPoint Valid tree-ish object (e.g., "master", "HEAD", commit hash).
|
|
132
|
+
* @throws RefAlreadyExistsException, GitAPIException
|
|
133
|
+
*/
|
|
134
|
+
createBranch(name: string, startPoint: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Deletes the branch.
|
|
137
|
+
*
|
|
138
|
+
* @param name The branch name to delete.
|
|
139
|
+
* @throws RefAlreadyExistsException, GitAPIException
|
|
140
|
+
*/
|
|
141
|
+
deleteBranch(name: string): void;
|
|
142
|
+
/**
|
|
143
|
+
* Renames the branch.
|
|
144
|
+
*
|
|
145
|
+
* @param oldName The old branch name.
|
|
146
|
+
* @param newName The new branch name.
|
|
147
|
+
* @throws RefAlreadyExistsException, GitAPIException
|
|
148
|
+
*/
|
|
149
|
+
renameBranch(oldName: string, newName: string): void;
|
|
150
|
+
/**
|
|
151
|
+
* Creates new remote branch from a particular start point.
|
|
152
|
+
*
|
|
153
|
+
* @param name The branch name.
|
|
154
|
+
* @param startPoint Valid tree-ish object.
|
|
155
|
+
* @param username Username for the remote repository.
|
|
156
|
+
* @param password Password for the remote repository.
|
|
157
|
+
* @throws RefAlreadyExistsException, GitAPIException
|
|
158
|
+
*/
|
|
159
|
+
createRemoteBranch(name: string, startPoint: string, username: string, password: string): void;
|
|
160
|
+
/**
|
|
161
|
+
* Deletes the remote branch.
|
|
162
|
+
*
|
|
163
|
+
* @param name The name of the remote branch to delete.
|
|
164
|
+
* @param username Username for the remote repository.
|
|
165
|
+
* @param password Password for the remote repository.
|
|
166
|
+
* @throws RefAlreadyExistsException, GitAPIException
|
|
167
|
+
*/
|
|
168
|
+
deleteRemoteBranch(name: string, username: string, password: string): void;
|
|
169
|
+
/**
|
|
170
|
+
* Checkout to a valid tree-ish object (e.g., branch name, commit hash).
|
|
171
|
+
*
|
|
172
|
+
* @param name The tree-ish object.
|
|
173
|
+
* @returns The JGit Ref object.
|
|
174
|
+
* @throws RefAlreadyExistsException, GitAPIException
|
|
175
|
+
*/
|
|
176
|
+
checkout(name: string): any;
|
|
177
|
+
/**
|
|
178
|
+
* Hard reset the repository. Resets working directory and staging index to match the Git repository HEAD.
|
|
179
|
+
*
|
|
180
|
+
* @throws CheckoutConflictException, GitAPIException
|
|
181
|
+
*/
|
|
182
|
+
hardReset(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Fetches from a remote repository and tries to merge into the current branch (Pull).
|
|
185
|
+
*
|
|
186
|
+
* @throws Various Git exceptions
|
|
187
|
+
*/
|
|
188
|
+
pull(): void;
|
|
189
|
+
/**
|
|
190
|
+
* Fetches from a remote repository and tries to merge into the current branch (Pull).
|
|
191
|
+
*
|
|
192
|
+
* @param username Username for the remote repository.
|
|
193
|
+
* @param password Password for the remote repository.
|
|
194
|
+
* @throws Various Git exceptions
|
|
195
|
+
*/
|
|
196
|
+
pull(username: string, password: string): void;
|
|
197
|
+
/**
|
|
198
|
+
* Pushes the committed changes to the remote repository.
|
|
199
|
+
*
|
|
200
|
+
* @param username Username for the remote repository.
|
|
201
|
+
* @param password Password for the remote repository.
|
|
202
|
+
* @throws InvalidRemoteException, TransportException, GitAPIException
|
|
203
|
+
*/
|
|
204
|
+
push(username: string, password: string): void;
|
|
205
|
+
/**
|
|
206
|
+
* Tries to rebase the selected branch on top of the current one.
|
|
207
|
+
*
|
|
208
|
+
* @param name The branch to rebase.
|
|
209
|
+
* @throws NoHeadException, WrongRepositoryStateException, GitAPIException
|
|
210
|
+
*/
|
|
211
|
+
rebase(name: string): void;
|
|
212
|
+
/**
|
|
213
|
+
* Get the current status of the Git repository.
|
|
214
|
+
*
|
|
215
|
+
* @returns The JGit Status object.
|
|
216
|
+
* @throws NoWorkTreeException, GitAPIException
|
|
217
|
+
*/
|
|
218
|
+
status(): any;
|
|
219
|
+
/**
|
|
220
|
+
* Get the name of the current branch of the Git repository.
|
|
221
|
+
*
|
|
222
|
+
* @returns The branch name as a string.
|
|
223
|
+
* @throws IOException
|
|
224
|
+
*/
|
|
225
|
+
getBranch(): string;
|
|
226
|
+
/**
|
|
227
|
+
* List all the local branches info.
|
|
228
|
+
*
|
|
229
|
+
* @returns A list of local {@link GitBranch} objects.
|
|
230
|
+
* @throws GitConnectorException
|
|
231
|
+
*/
|
|
232
|
+
getLocalBranches(): GitBranch[];
|
|
233
|
+
/**
|
|
234
|
+
* List all the remote branches info.
|
|
235
|
+
*
|
|
236
|
+
* @returns A list of remote {@link GitBranch} objects.
|
|
237
|
+
* @throws GitConnectorException
|
|
238
|
+
*/
|
|
239
|
+
getRemoteBranches(): GitBranch[];
|
|
240
|
+
/**
|
|
241
|
+
* Get the list of the unstaged files.
|
|
242
|
+
*
|
|
243
|
+
* @returns A list of {@link GitChangedFile} objects.
|
|
244
|
+
* @throws GitConnectorException
|
|
245
|
+
*/
|
|
246
|
+
getUnstagedChanges(): GitChangedFile[];
|
|
247
|
+
/**
|
|
248
|
+
* Get the list of the staged files.
|
|
249
|
+
*
|
|
250
|
+
* @returns A list of {@link GitChangedFile} objects.
|
|
251
|
+
* @throws GitConnectorException
|
|
252
|
+
*/
|
|
253
|
+
getStagedChanges(): GitChangedFile[];
|
|
254
|
+
/**
|
|
255
|
+
* Get file content from the HEAD.
|
|
256
|
+
*
|
|
257
|
+
* @param path The file path.
|
|
258
|
+
* @param revStr The revision string (e.g., commit hash, branch name).
|
|
259
|
+
* @returns The content of the file as a string.
|
|
260
|
+
* @throws GitConnectorException
|
|
261
|
+
*/
|
|
262
|
+
getFileContent(path: string, revStr: string): string;
|
|
263
|
+
/**
|
|
264
|
+
* Get history of the repository or a specific file.
|
|
265
|
+
*
|
|
266
|
+
* @param path The file path or null to get the entire repository history.
|
|
267
|
+
* @returns A list of {@link GitCommitInfo} objects.
|
|
268
|
+
* @throws GitConnectorException
|
|
269
|
+
*/
|
|
270
|
+
getHistory(path: string): GitCommitInfo[];
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Static client facade for workspace-level Git operations, abstracting the native GitFacade.
|
|
274
|
+
*/
|
|
275
|
+
export declare class Client {
|
|
276
|
+
/**
|
|
277
|
+
* Initializes a new Git repository for a project, performs an initial commit, and pushes.
|
|
278
|
+
*
|
|
279
|
+
* @param user The username of the committer.
|
|
280
|
+
* @param email The email address of the committer.
|
|
281
|
+
* @param workspaceName The name of the workspace.
|
|
282
|
+
* @param projectName The name of the project.
|
|
283
|
+
* @param repositoryName The name of the repository (where to put the git folder).
|
|
284
|
+
* @param commitMessage The initial commit message.
|
|
285
|
+
*/
|
|
286
|
+
static initRepository(user: string, email: string, workspaceName: string, projectName: string, repositoryName: string, commitMessage: string): void;
|
|
287
|
+
/**
|
|
288
|
+
* Performs a commit in the specified repository.
|
|
289
|
+
*
|
|
290
|
+
* @param user The username of the committer.
|
|
291
|
+
* @param email The email address of the committer.
|
|
292
|
+
* @param workspaceName The name of the workspace.
|
|
293
|
+
* @param repositoryName The name of the repository.
|
|
294
|
+
* @param commitMessage The commit message.
|
|
295
|
+
* @param all If true, automatically stages modified and deleted files before committing.
|
|
296
|
+
*/
|
|
297
|
+
static commit(user: string, email: string, workspaceName: string, repositoryName: string, commitMessage: string, all: boolean): void;
|
|
298
|
+
/**
|
|
299
|
+
* Retrieves a list of all Git repositories (projects) within the specified workspace.
|
|
300
|
+
*
|
|
301
|
+
* @param workspaceName The name of the workspace.
|
|
302
|
+
* @returns An array of {@link ProjectDescriptor} objects.
|
|
303
|
+
*/
|
|
304
|
+
static getGitRepositories(workspaceName: string): ProjectDescriptor[];
|
|
305
|
+
/**
|
|
306
|
+
* Retrieves the commit history for the specified repository or a specific file path within it.
|
|
307
|
+
*
|
|
308
|
+
* @param repositoryName The name of the repository.
|
|
309
|
+
* @param workspaceName The name of the workspace.
|
|
310
|
+
* @param path The file path for history, or null/empty string for full repository history.
|
|
311
|
+
* @returns An array of {@link GitCommitInfo} objects.
|
|
312
|
+
*/
|
|
313
|
+
static getHistory(repositoryName: string, workspaceName: string, path: string): GitCommitInfo[];
|
|
314
|
+
/**
|
|
315
|
+
* Deletes the specified Git repository.
|
|
316
|
+
*
|
|
317
|
+
* @param workspaceName The name of the workspace.
|
|
318
|
+
* @param repositoryName The name of the repository to delete.
|
|
319
|
+
*/
|
|
320
|
+
static deleteRepository(workspaceName: string, repositoryName: string): void;
|
|
321
|
+
/**
|
|
322
|
+
* Clones a remote repository into the local workspace.
|
|
323
|
+
*
|
|
324
|
+
* @param workspaceName The name of the workspace.
|
|
325
|
+
* @param repositoryUri The URI of the remote repository.
|
|
326
|
+
* @param username The username for authentication.
|
|
327
|
+
* @param password The password for authentication.
|
|
328
|
+
* @param branch The specific branch to checkout after cloning.
|
|
329
|
+
* @returns A GitConnector instance for interacting directly with the cloned repository.
|
|
330
|
+
*/
|
|
331
|
+
static cloneRepository(workspaceName: string, repositoryUri: string, username: string, password: string, branch: string): GitConnector;
|
|
332
|
+
/**
|
|
333
|
+
* Pulls changes from the remote repository and attempts to merge them into the current branch.
|
|
334
|
+
*
|
|
335
|
+
* @param workspaceName The name of the workspace.
|
|
336
|
+
* @param repositoryName The name of the repository.
|
|
337
|
+
* @param username The username for authentication.
|
|
338
|
+
* @param password The password for authentication.
|
|
339
|
+
*/
|
|
340
|
+
static pull(workspaceName: string, repositoryName: string, username: string, password: string): void;
|
|
341
|
+
/**
|
|
342
|
+
* Pushes the local commits to the remote repository.
|
|
343
|
+
*
|
|
344
|
+
* @param workspaceName The name of the workspace.
|
|
345
|
+
* @param repositoryName The name of the repository.
|
|
346
|
+
* @param username The username for authentication.
|
|
347
|
+
* @param password The password for authentication.
|
|
348
|
+
*/
|
|
349
|
+
static push(workspaceName: string, repositoryName: string, username: string, password: string): void;
|
|
350
|
+
/**
|
|
351
|
+
* Checks out a specific branch, commit, or tag in the repository.
|
|
352
|
+
*
|
|
353
|
+
* @param workspaceName The name of the workspace.
|
|
354
|
+
* @param repositoryName The name of the repository.
|
|
355
|
+
* @param branch The branch or tree-ish object to check out.
|
|
356
|
+
*/
|
|
357
|
+
static checkout(workspaceName: string, repositoryName: string, branch: string): void;
|
|
358
|
+
/**
|
|
359
|
+
* Creates a new branch starting from a specified point (e.g., HEAD, a commit hash, or another branch).
|
|
360
|
+
*
|
|
361
|
+
* @param workspaceName The name of the workspace.
|
|
362
|
+
* @param repositoryName The name of the repository.
|
|
363
|
+
* @param branch The name of the new branch to create.
|
|
364
|
+
* @param startingPoint The tree-ish object to start the new branch from.
|
|
365
|
+
*/
|
|
366
|
+
static createBranch(workspaceName: string, repositoryName: string, branch: string, startingPoint: string): void;
|
|
367
|
+
/**
|
|
368
|
+
* Deletes a local branch.
|
|
369
|
+
*
|
|
370
|
+
* @param workspaceName The name of the workspace.
|
|
371
|
+
* @param repositoryName The name of the repository.
|
|
372
|
+
* @param branch The name of the branch to delete.
|
|
373
|
+
*/
|
|
374
|
+
static deleteBranch(workspaceName: string, repositoryName: string, branch: string): void;
|
|
375
|
+
/**
|
|
376
|
+
* Renames a local branch.
|
|
377
|
+
*
|
|
378
|
+
* @param workspaceName The name of the workspace.
|
|
379
|
+
* @param repositoryName The name of the repository.
|
|
380
|
+
* @param oldName The current name of the branch.
|
|
381
|
+
* @param newName The new name for the branch.
|
|
382
|
+
*/
|
|
383
|
+
static renameBranch(workspaceName: string, repositoryName: string, oldName: string, newName: string): void;
|
|
384
|
+
/**
|
|
385
|
+
* Creates a new remote branch on the Git server.
|
|
386
|
+
*
|
|
387
|
+
* @param workspaceName The name of the workspace.
|
|
388
|
+
* @param repositoryName The name of the repository.
|
|
389
|
+
* @param branch The name of the remote branch to create.
|
|
390
|
+
* @param startingPoint The tree-ish object to start the new remote branch from.
|
|
391
|
+
* @param username The username for authentication.
|
|
392
|
+
* @param password The password for authentication.
|
|
393
|
+
*/
|
|
394
|
+
static createRemoteBranch(workspaceName: string, repositoryName: string, branch: string, startingPoint: string, username: string, password: string): void;
|
|
395
|
+
/**
|
|
396
|
+
* Deletes a remote branch on the Git server.
|
|
397
|
+
*
|
|
398
|
+
* @param workspaceName The name of the workspace.
|
|
399
|
+
* @param repositoryName The name of the repository.
|
|
400
|
+
* @param branch The name of the remote branch to delete.
|
|
401
|
+
* @param username The username for authentication.
|
|
402
|
+
* @param password The password for authentication.
|
|
403
|
+
*/
|
|
404
|
+
static deleteRemoteBranch(workspaceName: string, repositoryName: string, branch: string, username: string, password: string): void;
|
|
405
|
+
/**
|
|
406
|
+
* Resets the repository, discarding all uncommitted changes in the working directory and index.
|
|
407
|
+
*
|
|
408
|
+
* @param workspaceName The name of the workspace.
|
|
409
|
+
* @param repositoryName The name of the repository.
|
|
410
|
+
*/
|
|
411
|
+
static hardReset(workspaceName: string, repositoryName: string): void;
|
|
412
|
+
/**
|
|
413
|
+
* Reapplies commits from the specified branch onto the current branch.
|
|
414
|
+
*
|
|
415
|
+
* @param workspaceName The name of the workspace.
|
|
416
|
+
* @param repositoryName The name of the repository.
|
|
417
|
+
* @param branch The branch to rebase.
|
|
418
|
+
*/
|
|
419
|
+
static rebase(workspaceName: string, repositoryName: string, branch: string): void;
|
|
420
|
+
/**
|
|
421
|
+
* Retrieves the current status of the repository (staged, unstaged, untracked files).
|
|
422
|
+
*
|
|
423
|
+
* @param workspaceName The name of the workspace.
|
|
424
|
+
* @param repositoryName The name of the repository.
|
|
425
|
+
* @returns A string representation of the repository status.
|
|
426
|
+
*/
|
|
427
|
+
static status(workspaceName: string, repositoryName: string): string;
|
|
428
|
+
/**
|
|
429
|
+
* Retrieves the name of the currently active branch.
|
|
430
|
+
*
|
|
431
|
+
* @param workspaceName The name of the workspace.
|
|
432
|
+
* @param repositoryName The name of the repository.
|
|
433
|
+
* @returns The name of the current branch.
|
|
434
|
+
*/
|
|
435
|
+
static getBranch(workspaceName: string, repositoryName: string): string;
|
|
436
|
+
/**
|
|
437
|
+
* Retrieves a list of all local branches in the repository.
|
|
438
|
+
*
|
|
439
|
+
* @param workspaceName The name of the workspace.
|
|
440
|
+
* @param repositoryName The name of the repository.
|
|
441
|
+
* @returns An array of {@link GitBranch} objects representing local branches.
|
|
442
|
+
*/
|
|
443
|
+
static getLocalBranches(workspaceName: string, repositoryName: string): GitBranch[];
|
|
444
|
+
/**
|
|
445
|
+
* Retrieves a list of all remote branches configured for the repository.
|
|
446
|
+
*
|
|
447
|
+
* @param workspaceName The name of the workspace.
|
|
448
|
+
* @param repositoryName The name of the repository.
|
|
449
|
+
* @returns An array of {@link GitBranch} objects representing remote branches.
|
|
450
|
+
*/
|
|
451
|
+
static getRemoteBranches(workspaceName: string, repositoryName: string): GitBranch[];
|
|
452
|
+
/**
|
|
453
|
+
* Retrieves a list of all unstaged files (changes not yet added to the index).
|
|
454
|
+
*
|
|
455
|
+
* @param workspaceName The name of the workspace.
|
|
456
|
+
* @param repositoryName The name of the repository.
|
|
457
|
+
* @returns An array of {@link GitChangedFile} objects.
|
|
458
|
+
*/
|
|
459
|
+
static getUnstagedChanges(workspaceName: string, repositoryName: string): GitChangedFile[];
|
|
460
|
+
/**
|
|
461
|
+
* Retrieves a list of all staged files (changes added to the index, ready for commit).
|
|
462
|
+
*
|
|
463
|
+
* @param workspaceName The name of the workspace.
|
|
464
|
+
* @param repositoryName The name of the repository.
|
|
465
|
+
* @returns An array of {@link GitChangedFile} objects.
|
|
466
|
+
*/
|
|
467
|
+
static getStagedChanges(workspaceName: string, repositoryName: string): GitChangedFile[];
|
|
468
|
+
/**
|
|
469
|
+
* Retrieves the content of a file at a specific revision (commit, branch, or tag).
|
|
470
|
+
*
|
|
471
|
+
* @param workspaceName The name of the workspace.
|
|
472
|
+
* @param repositoryName The name of the repository.
|
|
473
|
+
* @param filePath The path to the file.
|
|
474
|
+
* @param revStr The revision string (e.g., commit hash or branch name).
|
|
475
|
+
* @returns The content of the file as a string.
|
|
476
|
+
*/
|
|
477
|
+
static getFileContent(workspaceName: string, repositoryName: string, filePath: string, revStr: string): string;
|
|
478
|
+
}
|