@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
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface defining the structured data required to generate a table in a PDF.
|
|
3
|
+
*/
|
|
4
|
+
export interface PDFTableData {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
columns: {
|
|
8
|
+
name: string;
|
|
9
|
+
key: string;
|
|
10
|
+
}[];
|
|
11
|
+
rows: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Interface defining optional configuration for PDF document layout.
|
|
17
|
+
*/
|
|
18
|
+
export interface PDFTableConfig {
|
|
19
|
+
/** Document width in mm. Overrides size if present. */
|
|
20
|
+
pageWidth?: number;
|
|
21
|
+
/** Document height in mm. Overrides size if present. */
|
|
22
|
+
pageHeight?: number;
|
|
23
|
+
/** Whether to apply column alignment (based on template default). */
|
|
24
|
+
alignColumns?: boolean;
|
|
25
|
+
/** Whether to apply row alignment (based on template default). */
|
|
26
|
+
alignRows?: boolean;
|
|
27
|
+
/** Standard ISO 216 paper size (A0-A10). Sets standard dimensions if custom width/height are not provided. */
|
|
28
|
+
size?: "a0" | "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10";
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @class PDF
|
|
32
|
+
* @description Utility class for generating PDF documents using a template engine and the PDFFacade.
|
|
33
|
+
*/
|
|
34
|
+
export declare class PDF {
|
|
35
|
+
/**
|
|
36
|
+
* Generates a PDF document containing a styled table based on the standard table template.
|
|
37
|
+
*
|
|
38
|
+
* @param {PDFTableData} data The structured data to populate the table.
|
|
39
|
+
* @param {PDFTableConfig} [config] Optional configuration for page size and alignment.
|
|
40
|
+
* @returns {any[]} The generated PDF content as a byte array (Array<number>).
|
|
41
|
+
*/
|
|
42
|
+
static generateTable(data: PDFTableData, config?: PDFTableConfig): any[];
|
|
43
|
+
/**
|
|
44
|
+
* Generates a PDF document using a custom template path and data payload.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} templatePath The path to the custom template file (e.g., in the Registry).
|
|
47
|
+
* @param {PDFTableData} data The data to be injected into the template.
|
|
48
|
+
* @returns {any[]} The generated PDF content as a byte array (Array<number>).
|
|
49
|
+
*/
|
|
50
|
+
static generate(templatePath: string, data: PDFTableData): any[];
|
|
51
|
+
/**
|
|
52
|
+
* Internal method to set template parameters based on optional configuration.
|
|
53
|
+
*
|
|
54
|
+
* @param {TemplateParameters} templateParameters The object containing parameters to be modified.
|
|
55
|
+
* @param {PDFTableConfig} [config] The optional configuration object.
|
|
56
|
+
*/
|
|
57
|
+
private static setTemplateParameters;
|
|
58
|
+
/**
|
|
59
|
+
* Internal method to set column and row alignment parameters.
|
|
60
|
+
*
|
|
61
|
+
* @param {TemplateParameters} templateParameters The object containing parameters to be modified.
|
|
62
|
+
* @param {PDFTableConfig} [config] The optional configuration object.
|
|
63
|
+
*/
|
|
64
|
+
private static setDocumentAlign;
|
|
65
|
+
/**
|
|
66
|
+
* Internal method to set the document size (width and height in mm) based on a standard 'size' or custom dimensions.
|
|
67
|
+
*
|
|
68
|
+
* @param {TemplateParameters} templateParameters The object containing parameters to be modified.
|
|
69
|
+
* @param {PDFTableConfig} [config] The optional configuration object.
|
|
70
|
+
*/
|
|
71
|
+
private static setDocumentSize;
|
|
72
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the configuration options for the command execution process.
|
|
3
|
+
*/
|
|
4
|
+
interface CommandOptions {
|
|
5
|
+
/** The directory in which the command will be executed. */
|
|
6
|
+
workingDirectory: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Defines key-value pairs for environment variables to add during execution.
|
|
10
|
+
*/
|
|
11
|
+
interface EnvironmentVariables {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Defines the structured output returned after command execution.
|
|
16
|
+
*/
|
|
17
|
+
interface CommandOutput {
|
|
18
|
+
/** The exit code returned by the executed process (0 usually means success). */
|
|
19
|
+
exitCode: number;
|
|
20
|
+
/** The standard output stream content. */
|
|
21
|
+
standardOutput: string;
|
|
22
|
+
/** The standard error stream content. */
|
|
23
|
+
errorOutput: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @class Command
|
|
27
|
+
* @description Static utility class for executing system commands.
|
|
28
|
+
*/
|
|
29
|
+
export declare class Command {
|
|
30
|
+
/**
|
|
31
|
+
* Executes a system command with specified configuration, environment variables, and exclusions.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} command The command string to execute (e.g., "ls -l").
|
|
34
|
+
* @param {CommandOptions} [options] Optional configuration for the execution environment.
|
|
35
|
+
* @param {EnvironmentVariables} [add] Optional environment variables to add to the process.
|
|
36
|
+
* @param {string[]} [remove] Optional list of environment variable keys to remove from the process.
|
|
37
|
+
* @returns {CommandOutput} A structured object containing the exit code and output streams.
|
|
38
|
+
*/
|
|
39
|
+
static execute(command: string, options?: CommandOptions, add?: EnvironmentVariables, remove?: string[]): CommandOutput;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface defining the execution parameters expected by the Engine class.
|
|
3
|
+
*/
|
|
4
|
+
export interface ExecutionParameters {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @class Engine
|
|
9
|
+
* @description Represents a specific execution engine type (e.g., JavaScript, Groovy)
|
|
10
|
+
* and provides methods to interact with the platform's execution facade.
|
|
11
|
+
*/
|
|
12
|
+
export declare class Engine {
|
|
13
|
+
private type;
|
|
14
|
+
/**
|
|
15
|
+
* Creates an instance of Engine.
|
|
16
|
+
* @param {string} type The type of the execution engine (e.g., "javascript").
|
|
17
|
+
*/
|
|
18
|
+
constructor(type: string);
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the list of available engine types from the platform.
|
|
21
|
+
* @returns {string[]} An array of supported engine type names.
|
|
22
|
+
*/
|
|
23
|
+
static getTypes(): string[];
|
|
24
|
+
/**
|
|
25
|
+
* Executes a project script or process using the configured engine type.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} projectName The name of the project.
|
|
28
|
+
* @param {string} projectFilePath The relative path to the main file to execute within the project (e.g., "lib/script.js").
|
|
29
|
+
* @param {string} projectFilePathParam A secondary file path parameter (often unused or context-specific).
|
|
30
|
+
* @param {ExecutionParameters} parameters An object containing key/value parameters to pass to the script context.
|
|
31
|
+
* @param {boolean} [debug=false] Whether to execute in debug mode.
|
|
32
|
+
* @returns {any} The result returned by the executed script.
|
|
33
|
+
*/
|
|
34
|
+
execute(projectName: string, projectFilePath: string, projectFilePathParam: string, parameters: ExecutionParameters, debug?: boolean): any;
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./command";
|
|
2
|
+
export { Command as command } from "./command";
|
|
3
|
+
export * from "./engines";
|
|
4
|
+
export { Engine as engines } from "./engines";
|
|
5
|
+
export * from "./lifecycle";
|
|
6
|
+
export { Lifecycle as lifecycle } from "./lifecycle";
|
|
7
|
+
export * from "./os";
|
|
8
|
+
export { OS as os } from "./os";
|
|
9
|
+
export * from "./problems";
|
|
10
|
+
export { Problems as problems } from "./problems";
|
|
11
|
+
export * from "./registry";
|
|
12
|
+
export { Registry as registry } from "./registry";
|
|
13
|
+
export * from "./repository";
|
|
14
|
+
export { Repository as repository } from "./repository";
|
|
15
|
+
export * from "./workspace";
|
|
16
|
+
export { Workspace as workspace } from "./workspace";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class Lifecycle
|
|
3
|
+
* @description Static utility class to publish and unpublish projects on the platform.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Lifecycle {
|
|
6
|
+
/**
|
|
7
|
+
* Publishes a project for a specific user and workspace.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} user The username of the owner of the workspace.
|
|
10
|
+
* @param {string} workspace The name of the workspace to publish from.
|
|
11
|
+
* @param {string} [project="*"] The specific project name to publish. Use "*" to publish all projects in the workspace.
|
|
12
|
+
* @returns {boolean} True if the publish operation was successful, false otherwise.
|
|
13
|
+
*/
|
|
14
|
+
static publish(user: string, workspace: string, project?: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Unpublishes a currently deployed project.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} [project="*"] The specific project name to unpublish. Use "*" to unpublish all currently deployed projects.
|
|
19
|
+
* @returns {boolean} True if the unpublish operation was successful, false otherwise.
|
|
20
|
+
*/
|
|
21
|
+
static unpublish(project?: string): boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class OS
|
|
3
|
+
* @description Provides static methods and constants related to the operating system
|
|
4
|
+
* the underlying Java platform is running on.
|
|
5
|
+
*/
|
|
6
|
+
export declare class OS {
|
|
7
|
+
/**
|
|
8
|
+
* The full name of the operating system (e.g., "Windows 10", "Linux").
|
|
9
|
+
* This value is read directly from the Java system property 'os.name'.
|
|
10
|
+
* @type {string}
|
|
11
|
+
*/
|
|
12
|
+
static readonly OS_NAME: string;
|
|
13
|
+
/**
|
|
14
|
+
* Checks if the operating system is a variant of Windows.
|
|
15
|
+
* @returns {boolean} True if the OS is Windows, false otherwise.
|
|
16
|
+
*/
|
|
17
|
+
static isWindows(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Checks if the operating system is a variant of Unix (including Linux, macOS, and BSD).
|
|
20
|
+
* @returns {boolean} True if the OS is Unix-like, false otherwise.
|
|
21
|
+
*/
|
|
22
|
+
static isUnix(): boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @interface Problem
|
|
3
|
+
* @description Represents a single problem or issue recorded in the system.
|
|
4
|
+
*/
|
|
5
|
+
export interface Problem {
|
|
6
|
+
/** The unique identifier of the problem. */
|
|
7
|
+
id: number;
|
|
8
|
+
/** The resource path or file location where the problem was detected. */
|
|
9
|
+
location: string;
|
|
10
|
+
/** The severity or nature of the problem (e.g., "Error", "Warning"). */
|
|
11
|
+
type: string;
|
|
12
|
+
/** The line number in the source where the problem occurred. */
|
|
13
|
+
line: string;
|
|
14
|
+
/** The column number in the source where the problem occurred. */
|
|
15
|
+
column: string;
|
|
16
|
+
/** A brief description of the cause of the problem. */
|
|
17
|
+
cause: string;
|
|
18
|
+
/** A description of the expected state or value. */
|
|
19
|
+
expected: string;
|
|
20
|
+
/** The timestamp when the problem was created. */
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
/** The user who created or triggered the problem record. */
|
|
23
|
+
createdBy: string;
|
|
24
|
+
/** The category of the problem (e.g., "Syntax", "Deployment"). */
|
|
25
|
+
category: string;
|
|
26
|
+
/** The module or component where the problem was found. */
|
|
27
|
+
module: string;
|
|
28
|
+
/** The original source code or content related to the problem. */
|
|
29
|
+
source: string;
|
|
30
|
+
/** The program or file name associated with the problem. */
|
|
31
|
+
program: string;
|
|
32
|
+
/** The current status of the problem (e.g., ACTIVE, SOLVED, IGNORED). */
|
|
33
|
+
status: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @class Problems
|
|
37
|
+
* @description Static utility class for managing system problems via the ProblemsFacade.
|
|
38
|
+
*/
|
|
39
|
+
export declare class Problems {
|
|
40
|
+
/** Status indicating a newly reported or unresolved problem. */
|
|
41
|
+
static readonly ACTIVE = "ACTIVE";
|
|
42
|
+
/** Status indicating a problem that has been fixed or is no longer relevant. */
|
|
43
|
+
static readonly SOLVED = "SOLVED";
|
|
44
|
+
/** Status indicating a problem that is known but deliberately being disregarded. */
|
|
45
|
+
static readonly IGNORED = "IGNORED";
|
|
46
|
+
/**
|
|
47
|
+
* Saves a new problem entry to the system's problem log.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} location The resource path or file location.
|
|
50
|
+
* @param {string} type The severity or nature of the problem.
|
|
51
|
+
* @param {string} line The line number.
|
|
52
|
+
* @param {string} column The column number.
|
|
53
|
+
* @param {string} cause The cause description.
|
|
54
|
+
* @param {string} expected The expected state/value description.
|
|
55
|
+
* @param {string} category The problem category.
|
|
56
|
+
* @param {string} module The module/component name.
|
|
57
|
+
* @param {string} source The original source content.
|
|
58
|
+
* @param {string} program The program or file name.
|
|
59
|
+
*/
|
|
60
|
+
static save(location: string, type: string, line: string, column: string, cause: string, expected: string, category: string, module: string, source: string, program: string): void;
|
|
61
|
+
/**
|
|
62
|
+
* Finds a specific problem by its unique ID.
|
|
63
|
+
* Note: The underlying facade returns a JSON string which is parsed here.
|
|
64
|
+
*
|
|
65
|
+
* @param {number} id The unique problem ID.
|
|
66
|
+
* @returns {Problem} The found Problem object.
|
|
67
|
+
*/
|
|
68
|
+
static findProblem(id: number): Problem;
|
|
69
|
+
/**
|
|
70
|
+
* Fetches all recorded problems in the system.
|
|
71
|
+
* Note: The underlying facade returns a JSON string which is parsed here.
|
|
72
|
+
*
|
|
73
|
+
* @returns {Problem[]} An array of all Problem objects.
|
|
74
|
+
*/
|
|
75
|
+
static fetchAllProblems(): Problem[];
|
|
76
|
+
/**
|
|
77
|
+
* Fetches a batch of problems based on a custom condition and limit.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} condition A SQL-like condition string (e.g., "CATEGORY='Syntax'").
|
|
80
|
+
* @param {number} limit The maximum number of problems to retrieve.
|
|
81
|
+
* @returns {Problem[]} An array of Problem objects matching the condition.
|
|
82
|
+
*/
|
|
83
|
+
static fetchProblemsBatch(condition: string, limit: number): Problem[];
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a problem record by its unique ID.
|
|
86
|
+
*
|
|
87
|
+
* @param {number} id The unique problem ID to delete.
|
|
88
|
+
*/
|
|
89
|
+
static deleteProblem(id: number): void;
|
|
90
|
+
/**
|
|
91
|
+
* Deletes all problem records that currently have the specified status.
|
|
92
|
+
*
|
|
93
|
+
* @param {string} status The status (e.g., Problems.SOLVED or Problems.IGNORED).
|
|
94
|
+
*/
|
|
95
|
+
static deleteAllByStatus(status: string): void;
|
|
96
|
+
/**
|
|
97
|
+
* Clears (deletes) all problem records in the system, regardless of status.
|
|
98
|
+
*/
|
|
99
|
+
static clearAllProblems(): void;
|
|
100
|
+
/**
|
|
101
|
+
* Updates the status of a single problem by its ID.
|
|
102
|
+
*
|
|
103
|
+
* @param {number} id The unique problem ID.
|
|
104
|
+
* @param {string} status The new status (e.g., Problems.SOLVED).
|
|
105
|
+
*/
|
|
106
|
+
static updateStatus(id: number, status: string): void;
|
|
107
|
+
/**
|
|
108
|
+
* Updates the status of multiple problems identified by an array of IDs.
|
|
109
|
+
*
|
|
110
|
+
* @param {number[]} ids An array of unique problem IDs.
|
|
111
|
+
* @param {string} status The new status to apply to all problems.
|
|
112
|
+
*/
|
|
113
|
+
static updateStatusMultiple(ids: number[], status: string): void;
|
|
114
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class Registry
|
|
3
|
+
* @description Static utility class providing high-level access to the RegistryFacade for
|
|
4
|
+
* retrieving content and metadata by path.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Registry {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the content of a registry resource at the given path, converting it into a
|
|
9
|
+
* JavaScript-friendly byte array format.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} path The absolute path to the resource (e.g., "/registry/public/myFile.txt").
|
|
12
|
+
* @returns {any[]} The resource content as a JavaScript byte array.
|
|
13
|
+
*/
|
|
14
|
+
static getContent(path: string): any[];
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the content of a registry resource at the given path in its native Java byte array format.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} path The absolute path to the resource.
|
|
19
|
+
* @returns {any[]} The resource content as a native Java byte array.
|
|
20
|
+
*/
|
|
21
|
+
static getContentNative(path: string): any[];
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves the content of a registry resource at the given path as a string.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} path The absolute path to the resource.
|
|
26
|
+
* @returns {string} The resource content as plain text.
|
|
27
|
+
*/
|
|
28
|
+
static getText(path: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Searches the registry starting from a given path for resources matching a glob pattern.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} path The starting path for the search.
|
|
33
|
+
* @param {string} pattern The glob pattern to match resource names against (e.g., "*.js").
|
|
34
|
+
* @returns {string[]} An array of registry paths (strings) that match the search criteria.
|
|
35
|
+
*/
|
|
36
|
+
static find(path: string, pattern: string): string[];
|
|
37
|
+
/**
|
|
38
|
+
* Gets the root directory object for the public registry space.
|
|
39
|
+
*
|
|
40
|
+
* @returns {Directory} A Directory instance representing the root public collection.
|
|
41
|
+
*/
|
|
42
|
+
static getRoot(): Directory;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @class Artefact
|
|
46
|
+
* @description Represents a file or resource (non-collection) within the Registry.
|
|
47
|
+
*/
|
|
48
|
+
export declare class Artefact {
|
|
49
|
+
private readonly native;
|
|
50
|
+
/**
|
|
51
|
+
* @constructor
|
|
52
|
+
* @param {any} native The native Java object instance representing the repository resource.
|
|
53
|
+
*/
|
|
54
|
+
constructor(native: any);
|
|
55
|
+
/**
|
|
56
|
+
* Gets the name of the artefact (file name).
|
|
57
|
+
* @returns {string} The name.
|
|
58
|
+
*/
|
|
59
|
+
getName(): string;
|
|
60
|
+
/**
|
|
61
|
+
* Gets the full registry path of the artefact.
|
|
62
|
+
* @returns {string} The registry path.
|
|
63
|
+
*/
|
|
64
|
+
getPath(): string;
|
|
65
|
+
/**
|
|
66
|
+
* Gets the parent directory of this artefact.
|
|
67
|
+
* @returns {Directory} The parent Directory instance.
|
|
68
|
+
*/
|
|
69
|
+
getParent(): Directory;
|
|
70
|
+
/**
|
|
71
|
+
* Gets detailed metadata about the artefact.
|
|
72
|
+
* @returns {ArtefactInformation} The metadata object.
|
|
73
|
+
*/
|
|
74
|
+
getInformation(): ArtefactInformation;
|
|
75
|
+
/**
|
|
76
|
+
* Checks if the artefact currently exists in the registry.
|
|
77
|
+
* @returns {boolean} True if the artefact exists, false otherwise.
|
|
78
|
+
*/
|
|
79
|
+
exists(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Checks if the artefact (file) is empty (has zero size).
|
|
82
|
+
* @returns {boolean} True if the content is empty, false otherwise.
|
|
83
|
+
*/
|
|
84
|
+
isEmpty(): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Gets the content of the artefact as a text string.
|
|
87
|
+
* @returns {string} The text content.
|
|
88
|
+
*/
|
|
89
|
+
getText(): string;
|
|
90
|
+
/**
|
|
91
|
+
* Gets the content of the artefact as a JavaScript-friendly byte array.
|
|
92
|
+
* @returns {any[]} The content bytes.
|
|
93
|
+
*/
|
|
94
|
+
getContent(): any[];
|
|
95
|
+
/**
|
|
96
|
+
* Gets the content of the artefact as its native Java byte array representation.
|
|
97
|
+
* @returns {any[]} The content bytes.
|
|
98
|
+
*/
|
|
99
|
+
getContentNative(): any[];
|
|
100
|
+
/**
|
|
101
|
+
* Checks if the artefact content is determined to be binary.
|
|
102
|
+
* @returns {boolean} True if binary, false if text.
|
|
103
|
+
*/
|
|
104
|
+
isBinary(): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Gets the content type (MIME type) of the artefact.
|
|
107
|
+
* @returns {string} The content type string.
|
|
108
|
+
*/
|
|
109
|
+
getContentType(): string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @class Directory
|
|
113
|
+
* @description Represents a collection or folder within the Registry.
|
|
114
|
+
*/
|
|
115
|
+
export declare class Directory {
|
|
116
|
+
private readonly native;
|
|
117
|
+
/**
|
|
118
|
+
* @constructor
|
|
119
|
+
* @param {any} native The native Java object instance representing the repository collection.
|
|
120
|
+
*/
|
|
121
|
+
constructor(native: any);
|
|
122
|
+
/**
|
|
123
|
+
* Gets the name of the directory (folder name).
|
|
124
|
+
* @returns {string} The name.
|
|
125
|
+
*/
|
|
126
|
+
getName(): string;
|
|
127
|
+
/**
|
|
128
|
+
* Gets the full registry path of the directory.
|
|
129
|
+
* @returns {string} The registry path.
|
|
130
|
+
*/
|
|
131
|
+
getPath(): string;
|
|
132
|
+
/**
|
|
133
|
+
* Gets the parent directory.
|
|
134
|
+
* @returns {Directory} The parent Directory instance.
|
|
135
|
+
*/
|
|
136
|
+
getParent(): Directory;
|
|
137
|
+
/**
|
|
138
|
+
* Gets detailed metadata about the directory.
|
|
139
|
+
* @returns {ArtefactInformation} The metadata object.
|
|
140
|
+
*/
|
|
141
|
+
getInformation(): ArtefactInformation;
|
|
142
|
+
/**
|
|
143
|
+
* Checks if the directory currently exists in the registry.
|
|
144
|
+
* @returns {boolean} True if the directory exists, false otherwise.
|
|
145
|
+
*/
|
|
146
|
+
exists(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Checks if the directory is empty (contains no files or sub-directories).
|
|
149
|
+
* @returns {boolean} True if empty, false otherwise.
|
|
150
|
+
*/
|
|
151
|
+
isEmpty(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Gets the names of all sub-directories within this directory.
|
|
154
|
+
* @returns {string[]} An array of sub-directory names.
|
|
155
|
+
*/
|
|
156
|
+
getDirectoriesNames(): string[];
|
|
157
|
+
/**
|
|
158
|
+
* Gets a specific sub-directory by name.
|
|
159
|
+
* @param {string} name The name of the sub-directory.
|
|
160
|
+
* @returns {Directory} The child Directory instance.
|
|
161
|
+
*/
|
|
162
|
+
getDirectory(name: string): Directory;
|
|
163
|
+
/**
|
|
164
|
+
* Gets the names of all files (artefacts) within this directory.
|
|
165
|
+
* @returns {string[]} An array of artefact names.
|
|
166
|
+
*/
|
|
167
|
+
getArtefactsNames(): string[];
|
|
168
|
+
/**
|
|
169
|
+
* Gets a specific file (artefact) by name.
|
|
170
|
+
* @param {string} name The name of the artefact.
|
|
171
|
+
* @returns {Artefact} The child Artefact instance.
|
|
172
|
+
*/
|
|
173
|
+
getArtefact(name: string): Artefact;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @class ArtefactInformation
|
|
177
|
+
* @description Represents detailed metadata (creation date, size, permissions, etc.) for a
|
|
178
|
+
* Directory or Artefact.
|
|
179
|
+
*/
|
|
180
|
+
export declare class ArtefactInformation {
|
|
181
|
+
private readonly native;
|
|
182
|
+
/**
|
|
183
|
+
* @constructor
|
|
184
|
+
* @param {any} native The native Java object instance holding the artefact information.
|
|
185
|
+
*/
|
|
186
|
+
constructor(native: any);
|
|
187
|
+
/**
|
|
188
|
+
* Gets the name of the resource.
|
|
189
|
+
* @returns {string} The name.
|
|
190
|
+
*/
|
|
191
|
+
getName(): string;
|
|
192
|
+
/**
|
|
193
|
+
* Gets the full registry path of the resource.
|
|
194
|
+
* @returns {string} The registry path.
|
|
195
|
+
*/
|
|
196
|
+
getPath(): string;
|
|
197
|
+
/**
|
|
198
|
+
* Gets the access permissions for the resource (typically an integer bitmask).
|
|
199
|
+
* @returns {number} The permissions value.
|
|
200
|
+
*/
|
|
201
|
+
getPermissions(): number;
|
|
202
|
+
/**
|
|
203
|
+
* Gets the size of the resource content in bytes.
|
|
204
|
+
* @returns {number} The size in bytes.
|
|
205
|
+
*/
|
|
206
|
+
getSize(): number;
|
|
207
|
+
/**
|
|
208
|
+
* Gets the user who created the resource.
|
|
209
|
+
* @returns {string} The creator's name.
|
|
210
|
+
*/
|
|
211
|
+
getCreatedBy(): string;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the creation timestamp.
|
|
214
|
+
* @returns {Date} The creation date and time.
|
|
215
|
+
*/
|
|
216
|
+
getCreatedAt(): Date;
|
|
217
|
+
/**
|
|
218
|
+
* Gets the user who last modified the resource.
|
|
219
|
+
* @returns {string} The modifier's name.
|
|
220
|
+
*/
|
|
221
|
+
getModifiedBy(): string;
|
|
222
|
+
/**
|
|
223
|
+
* Gets the last modification timestamp.
|
|
224
|
+
* @returns {Date} The modification date and time.
|
|
225
|
+
*/
|
|
226
|
+
getModifiedAt(): Date;
|
|
227
|
+
}
|