@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.
Files changed (399) hide show
  1. package/LICENSE +277 -0
  2. package/README.md +170 -0
  3. package/dist/cjs/bpm/deployer.js +57 -0
  4. package/dist/cjs/bpm/index.js +35 -0
  5. package/dist/cjs/bpm/process.js +636 -0
  6. package/dist/cjs/bpm/tasks.js +973 -0
  7. package/dist/cjs/bpm/values.js +82 -0
  8. package/dist/cjs/cache/cache.js +64 -0
  9. package/dist/cjs/cache/index.js +26 -0
  10. package/dist/cjs/cms/cmis.js +689 -0
  11. package/dist/cjs/cms/index.js +26 -0
  12. package/dist/cjs/component/decorators.js +126 -0
  13. package/dist/cjs/component/index.js +36 -0
  14. package/dist/cjs/core/configurations.js +110 -0
  15. package/dist/cjs/core/context.js +47 -0
  16. package/dist/cjs/core/env.js +45 -0
  17. package/dist/cjs/core/globals.js +54 -0
  18. package/dist/cjs/core/index.js +35 -0
  19. package/dist/cjs/db/dao.js +795 -0
  20. package/dist/cjs/db/database.js +904 -0
  21. package/dist/cjs/db/decorators.js +167 -0
  22. package/dist/cjs/db/index.js +72 -0
  23. package/dist/cjs/db/insert.js +51 -0
  24. package/dist/cjs/db/orm.js +245 -0
  25. package/dist/cjs/db/ormstatements.js +243 -0
  26. package/dist/cjs/db/procedure.js +112 -0
  27. package/dist/cjs/db/query.js +57 -0
  28. package/dist/cjs/db/repository.js +148 -0
  29. package/dist/cjs/db/sequence.js +59 -0
  30. package/dist/cjs/db/sql.js +516 -0
  31. package/dist/cjs/db/store.js +172 -0
  32. package/dist/cjs/db/translator.js +100 -0
  33. package/dist/cjs/db/update.js +43 -0
  34. package/dist/cjs/etcd/client.js +174 -0
  35. package/dist/cjs/etcd/index.js +26 -0
  36. package/dist/cjs/extensions/decorators.js +40 -0
  37. package/dist/cjs/extensions/extensions.js +108 -0
  38. package/dist/cjs/extensions/index.js +39 -0
  39. package/dist/cjs/git/client.js +277 -0
  40. package/dist/cjs/git/index.js +26 -0
  41. package/dist/cjs/http/client-async.js +224 -0
  42. package/dist/cjs/http/client.js +145 -0
  43. package/dist/cjs/http/decorators.js +76 -0
  44. package/dist/cjs/http/errors/ForbiddenError.js +41 -0
  45. package/dist/cjs/http/errors/ValidationError.js +41 -0
  46. package/dist/cjs/http/errors.js +26 -0
  47. package/dist/cjs/http/index.js +59 -0
  48. package/dist/cjs/http/request.js +281 -0
  49. package/dist/cjs/http/response.js +452 -0
  50. package/dist/cjs/http/rs/resource-common.js +32 -0
  51. package/dist/cjs/http/rs/resource-http-controller.js +306 -0
  52. package/dist/cjs/http/rs/resource-mappings.js +130 -0
  53. package/dist/cjs/http/rs/resource-method.js +218 -0
  54. package/dist/cjs/http/rs/resource.js +232 -0
  55. package/dist/cjs/http/rs.js +31 -0
  56. package/dist/cjs/http/session.js +124 -0
  57. package/dist/cjs/http/upload.js +144 -0
  58. package/dist/cjs/http/utils.js +106 -0
  59. package/dist/cjs/index.js +1 -0
  60. package/dist/cjs/indexing/index.js +29 -0
  61. package/dist/cjs/indexing/searcher.js +70 -0
  62. package/dist/cjs/indexing/writer.js +45 -0
  63. package/dist/cjs/integrations/index.js +26 -0
  64. package/dist/cjs/integrations/integrations.js +55 -0
  65. package/dist/cjs/io/bytes.js +101 -0
  66. package/dist/cjs/io/files.js +344 -0
  67. package/dist/cjs/io/image.js +43 -0
  68. package/dist/cjs/io/index.js +38 -0
  69. package/dist/cjs/io/streams.js +243 -0
  70. package/dist/cjs/io/zip.js +251 -0
  71. package/dist/cjs/job/decorators.js +40 -0
  72. package/dist/cjs/job/index.js +39 -0
  73. package/dist/cjs/job/scheduler.js +347 -0
  74. package/dist/cjs/junit/index.js +18 -0
  75. package/dist/cjs/junit/junit.js +67 -0
  76. package/dist/cjs/kafka/consumer.js +70 -0
  77. package/dist/cjs/kafka/index.js +29 -0
  78. package/dist/cjs/kafka/producer.js +70 -0
  79. package/dist/cjs/log/index.js +26 -0
  80. package/dist/cjs/log/logging.js +174 -0
  81. package/dist/cjs/mail/client.js +153 -0
  82. package/dist/cjs/mail/index.js +26 -0
  83. package/dist/cjs/messaging/consumer.js +83 -0
  84. package/dist/cjs/messaging/decorators.js +40 -0
  85. package/dist/cjs/messaging/index.js +42 -0
  86. package/dist/cjs/messaging/producer.js +81 -0
  87. package/dist/cjs/mongodb/client.js +627 -0
  88. package/dist/cjs/mongodb/dao.js +390 -0
  89. package/dist/cjs/mongodb/index.js +36 -0
  90. package/dist/cjs/net/decorators.js +40 -0
  91. package/dist/cjs/net/index.js +42 -0
  92. package/dist/cjs/net/soap.js +228 -0
  93. package/dist/cjs/net/websockets.js +151 -0
  94. package/dist/cjs/net/wrappers/onClose.js +2 -0
  95. package/dist/cjs/net/wrappers/onError.js +2 -0
  96. package/dist/cjs/net/wrappers/onMessage.js +2 -0
  97. package/dist/cjs/net/wrappers/onOpen.js +2 -0
  98. package/dist/cjs/pdf/index.js +26 -0
  99. package/dist/cjs/pdf/pdf.js +160 -0
  100. package/dist/cjs/platform/command.js +47 -0
  101. package/dist/cjs/platform/engines.js +70 -0
  102. package/dist/cjs/platform/index.js +47 -0
  103. package/dist/cjs/platform/lifecycle.js +49 -0
  104. package/dist/cjs/platform/os.js +51 -0
  105. package/dist/cjs/platform/problems.js +127 -0
  106. package/dist/cjs/platform/registry.js +319 -0
  107. package/dist/cjs/platform/repository.js +498 -0
  108. package/dist/cjs/platform/workspace.js +574 -0
  109. package/dist/cjs/qldb/index.js +26 -0
  110. package/dist/cjs/qldb/qldb.js +24 -0
  111. package/dist/cjs/rabbitmq/consumer.js +50 -0
  112. package/dist/cjs/rabbitmq/index.js +29 -0
  113. package/dist/cjs/rabbitmq/producer.js +38 -0
  114. package/dist/cjs/redis/client.js +190 -0
  115. package/dist/cjs/redis/index.js +26 -0
  116. package/dist/cjs/security/decorators.js +48 -0
  117. package/dist/cjs/security/index.js +40 -0
  118. package/dist/cjs/security/oauth.js +75 -0
  119. package/dist/cjs/security/user.js +88 -0
  120. package/dist/cjs/template/engines.js +139 -0
  121. package/dist/cjs/template/index.js +26 -0
  122. package/dist/cjs/utils/alphanumeric.js +107 -0
  123. package/dist/cjs/utils/base64.js +104 -0
  124. package/dist/cjs/utils/converter.js +78 -0
  125. package/dist/cjs/utils/digest.js +167 -0
  126. package/dist/cjs/utils/escape.js +160 -0
  127. package/dist/cjs/utils/hex.js +104 -0
  128. package/dist/cjs/utils/index.js +68 -0
  129. package/dist/cjs/utils/jsonpath.js +489 -0
  130. package/dist/cjs/utils/qrcode.js +41 -0
  131. package/dist/cjs/utils/url.js +82 -0
  132. package/dist/cjs/utils/utf8.js +61 -0
  133. package/dist/cjs/utils/uuid.js +48 -0
  134. package/dist/cjs/utils/xml.js +57 -0
  135. package/dist/dts/bpm/deployer.d.ts +29 -0
  136. package/dist/dts/bpm/index.d.ts +8 -0
  137. package/dist/dts/bpm/process.d.ts +433 -0
  138. package/dist/dts/bpm/tasks.d.ts +2022 -0
  139. package/dist/dts/bpm/values.d.ts +38 -0
  140. package/dist/dts/cache/cache.d.ts +30 -0
  141. package/dist/dts/cache/index.d.ts +2 -0
  142. package/dist/dts/cms/cmis.d.ts +413 -0
  143. package/dist/dts/cms/index.d.ts +2 -0
  144. package/dist/dts/component/decorators.d.ts +52 -0
  145. package/dist/dts/component/index.d.ts +2 -0
  146. package/dist/dts/core/configurations.d.ts +65 -0
  147. package/dist/dts/core/context.d.ts +19 -0
  148. package/dist/dts/core/env.d.ts +23 -0
  149. package/dist/dts/core/globals.d.ts +30 -0
  150. package/dist/dts/core/index.d.ts +8 -0
  151. package/dist/dts/db/dao.d.ts +8 -0
  152. package/dist/dts/db/database.d.ts +507 -0
  153. package/dist/dts/db/decorators.d.ts +89 -0
  154. package/dist/dts/db/index.d.ts +25 -0
  155. package/dist/dts/db/insert.d.ts +32 -0
  156. package/dist/dts/db/orm.d.ts +44 -0
  157. package/dist/dts/db/ormstatements.d.ts +4 -0
  158. package/dist/dts/db/procedure.d.ts +25 -0
  159. package/dist/dts/db/query.d.ts +48 -0
  160. package/dist/dts/db/repository.d.ts +64 -0
  161. package/dist/dts/db/sequence.d.ts +34 -0
  162. package/dist/dts/db/sql.d.ts +267 -0
  163. package/dist/dts/db/store.d.ts +138 -0
  164. package/dist/dts/db/translator.d.ts +26 -0
  165. package/dist/dts/db/update.d.ts +21 -0
  166. package/dist/dts/etcd/client.d.ts +92 -0
  167. package/dist/dts/etcd/index.d.ts +2 -0
  168. package/dist/dts/extensions/decorators.d.ts +11 -0
  169. package/dist/dts/extensions/extensions.d.ts +41 -0
  170. package/dist/dts/extensions/index.d.ts +4 -0
  171. package/dist/dts/git/client.d.ts +478 -0
  172. package/dist/dts/git/index.d.ts +2 -0
  173. package/dist/dts/http/client-async.d.ts +158 -0
  174. package/dist/dts/http/client.d.ts +180 -0
  175. package/dist/dts/http/decorators.d.ts +11 -0
  176. package/dist/dts/http/errors/ForbiddenError.d.ts +20 -0
  177. package/dist/dts/http/errors/ValidationError.d.ts +20 -0
  178. package/dist/dts/http/errors.d.ts +2 -0
  179. package/dist/dts/http/index.d.ts +16 -0
  180. package/dist/dts/http/request.d.ts +158 -0
  181. package/dist/dts/http/response.d.ts +281 -0
  182. package/dist/dts/http/rs/resource-common.d.ts +11 -0
  183. package/dist/dts/http/rs/resource-http-controller.d.ts +43 -0
  184. package/dist/dts/http/rs/resource-mappings.d.ts +70 -0
  185. package/dist/dts/http/rs/resource-method.d.ts +206 -0
  186. package/dist/dts/http/rs/resource.d.ts +126 -0
  187. package/dist/dts/http/rs.d.ts +4 -0
  188. package/dist/dts/http/session.d.ts +81 -0
  189. package/dist/dts/http/upload.d.ts +100 -0
  190. package/dist/dts/http/utils.d.ts +54 -0
  191. package/dist/dts/index.d.ts +0 -0
  192. package/dist/dts/indexing/index.d.ts +4 -0
  193. package/dist/dts/indexing/searcher.d.ts +47 -0
  194. package/dist/dts/indexing/writer.d.ts +22 -0
  195. package/dist/dts/integrations/index.d.ts +2 -0
  196. package/dist/dts/integrations/integrations.d.ts +118 -0
  197. package/dist/dts/io/bytes.d.ts +56 -0
  198. package/dist/dts/io/files.d.ts +261 -0
  199. package/dist/dts/io/image.d.ts +22 -0
  200. package/dist/dts/io/index.d.ts +10 -0
  201. package/dist/dts/io/streams.d.ts +172 -0
  202. package/dist/dts/io/zip.d.ts +178 -0
  203. package/dist/dts/job/decorators.d.ts +11 -0
  204. package/dist/dts/job/index.d.ts +4 -0
  205. package/dist/dts/job/scheduler.d.ts +250 -0
  206. package/dist/dts/junit/index.d.ts +1 -0
  207. package/dist/dts/junit/junit.d.ts +50 -0
  208. package/dist/dts/kafka/consumer.d.ts +48 -0
  209. package/dist/dts/kafka/index.d.ts +4 -0
  210. package/dist/dts/kafka/producer.d.ts +50 -0
  211. package/dist/dts/log/index.d.ts +2 -0
  212. package/dist/dts/log/logging.d.ts +102 -0
  213. package/dist/dts/mail/client.d.ts +90 -0
  214. package/dist/dts/mail/index.d.ts +2 -0
  215. package/dist/dts/messaging/consumer.d.ts +61 -0
  216. package/dist/dts/messaging/decorators.d.ts +11 -0
  217. package/dist/dts/messaging/index.d.ts +6 -0
  218. package/dist/dts/messaging/producer.d.ts +59 -0
  219. package/dist/dts/mongodb/client.d.ts +367 -0
  220. package/dist/dts/mongodb/dao.d.ts +24 -0
  221. package/dist/dts/mongodb/index.d.ts +2 -0
  222. package/dist/dts/net/decorators.d.ts +11 -0
  223. package/dist/dts/net/index.d.ts +6 -0
  224. package/dist/dts/net/soap.d.ts +115 -0
  225. package/dist/dts/net/websockets.d.ts +100 -0
  226. package/dist/dts/net/wrappers/onClose.d.ts +0 -0
  227. package/dist/dts/net/wrappers/onError.d.ts +0 -0
  228. package/dist/dts/net/wrappers/onMessage.d.ts +0 -0
  229. package/dist/dts/net/wrappers/onOpen.d.ts +0 -0
  230. package/dist/dts/pdf/index.d.ts +2 -0
  231. package/dist/dts/pdf/pdf.d.ts +72 -0
  232. package/dist/dts/platform/command.d.ts +41 -0
  233. package/dist/dts/platform/engines.d.ts +35 -0
  234. package/dist/dts/platform/index.d.ts +16 -0
  235. package/dist/dts/platform/lifecycle.d.ts +22 -0
  236. package/dist/dts/platform/os.d.ts +23 -0
  237. package/dist/dts/platform/problems.d.ts +114 -0
  238. package/dist/dts/platform/registry.d.ts +227 -0
  239. package/dist/dts/platform/repository.d.ts +354 -0
  240. package/dist/dts/platform/workspace.d.ts +421 -0
  241. package/dist/dts/qldb/index.d.ts +2 -0
  242. package/dist/dts/qldb/qldb.d.ts +1 -0
  243. package/dist/dts/rabbitmq/consumer.d.ts +25 -0
  244. package/dist/dts/rabbitmq/index.d.ts +4 -0
  245. package/dist/dts/rabbitmq/producer.d.ts +15 -0
  246. package/dist/dts/redis/client.d.ts +134 -0
  247. package/dist/dts/redis/index.d.ts +2 -0
  248. package/dist/dts/security/decorators.d.ts +4 -0
  249. package/dist/dts/security/index.d.ts +5 -0
  250. package/dist/dts/security/oauth.d.ts +39 -0
  251. package/dist/dts/security/user.d.ts +51 -0
  252. package/dist/dts/template/engines.d.ts +98 -0
  253. package/dist/dts/template/index.d.ts +2 -0
  254. package/dist/dts/utils/alphanumeric.d.ts +39 -0
  255. package/dist/dts/utils/base64.d.ts +48 -0
  256. package/dist/dts/utils/converter.d.ts +44 -0
  257. package/dist/dts/utils/digest.d.ts +50 -0
  258. package/dist/dts/utils/escape.d.ts +110 -0
  259. package/dist/dts/utils/hex.d.ts +48 -0
  260. package/dist/dts/utils/index.d.ts +23 -0
  261. package/dist/dts/utils/jsonpath.d.ts +22 -0
  262. package/dist/dts/utils/qrcode.d.ts +16 -0
  263. package/dist/dts/utils/url.d.ts +50 -0
  264. package/dist/dts/utils/utf8.d.ts +33 -0
  265. package/dist/dts/utils/uuid.d.ts +21 -0
  266. package/dist/dts/utils/xml.d.ts +22 -0
  267. package/dist/esm/bpm/deployer.mjs +38 -0
  268. package/dist/esm/bpm/index.mjs +15 -0
  269. package/dist/esm/bpm/process.mjs +617 -0
  270. package/dist/esm/bpm/tasks.mjs +954 -0
  271. package/dist/esm/bpm/values.mjs +63 -0
  272. package/dist/esm/cache/cache.mjs +45 -0
  273. package/dist/esm/cache/index.mjs +6 -0
  274. package/dist/esm/cms/cmis.mjs +660 -0
  275. package/dist/esm/cms/index.mjs +6 -0
  276. package/dist/esm/component/decorators.mjs +107 -0
  277. package/dist/esm/component/index.mjs +6 -0
  278. package/dist/esm/core/configurations.mjs +91 -0
  279. package/dist/esm/core/context.mjs +28 -0
  280. package/dist/esm/core/env.mjs +26 -0
  281. package/dist/esm/core/globals.mjs +35 -0
  282. package/dist/esm/core/index.mjs +15 -0
  283. package/dist/esm/db/dao.mjs +775 -0
  284. package/dist/esm/db/database.mjs +885 -0
  285. package/dist/esm/db/decorators.mjs +148 -0
  286. package/dist/esm/db/index.mjs +42 -0
  287. package/dist/esm/db/insert.mjs +32 -0
  288. package/dist/esm/db/orm.mjs +225 -0
  289. package/dist/esm/db/ormstatements.mjs +223 -0
  290. package/dist/esm/db/procedure.mjs +93 -0
  291. package/dist/esm/db/query.mjs +38 -0
  292. package/dist/esm/db/repository.mjs +129 -0
  293. package/dist/esm/db/sequence.mjs +40 -0
  294. package/dist/esm/db/sql.mjs +497 -0
  295. package/dist/esm/db/store.mjs +153 -0
  296. package/dist/esm/db/translator.mjs +81 -0
  297. package/dist/esm/db/update.mjs +24 -0
  298. package/dist/esm/etcd/client.mjs +155 -0
  299. package/dist/esm/etcd/index.mjs +6 -0
  300. package/dist/esm/extensions/decorators.mjs +21 -0
  301. package/dist/esm/extensions/extensions.mjs +89 -0
  302. package/dist/esm/extensions/index.mjs +9 -0
  303. package/dist/esm/git/client.mjs +258 -0
  304. package/dist/esm/git/index.mjs +6 -0
  305. package/dist/esm/http/client-async.mjs +205 -0
  306. package/dist/esm/http/client.mjs +126 -0
  307. package/dist/esm/http/decorators.mjs +47 -0
  308. package/dist/esm/http/errors/ForbiddenError.mjs +22 -0
  309. package/dist/esm/http/errors/ValidationError.mjs +22 -0
  310. package/dist/esm/http/errors.mjs +7 -0
  311. package/dist/esm/http/index.mjs +29 -0
  312. package/dist/esm/http/request.mjs +262 -0
  313. package/dist/esm/http/response.mjs +433 -0
  314. package/dist/esm/http/rs/resource-common.mjs +13 -0
  315. package/dist/esm/http/rs/resource-http-controller.mjs +287 -0
  316. package/dist/esm/http/rs/resource-mappings.mjs +111 -0
  317. package/dist/esm/http/rs/resource-method.mjs +199 -0
  318. package/dist/esm/http/rs/resource.mjs +213 -0
  319. package/dist/esm/http/rs.mjs +12 -0
  320. package/dist/esm/http/session.mjs +105 -0
  321. package/dist/esm/http/upload.mjs +125 -0
  322. package/dist/esm/http/utils.mjs +87 -0
  323. package/dist/esm/index.mjs +1 -0
  324. package/dist/esm/indexing/index.mjs +9 -0
  325. package/dist/esm/indexing/searcher.mjs +51 -0
  326. package/dist/esm/indexing/writer.mjs +26 -0
  327. package/dist/esm/integrations/index.mjs +6 -0
  328. package/dist/esm/integrations/integrations.mjs +36 -0
  329. package/dist/esm/io/bytes.mjs +82 -0
  330. package/dist/esm/io/files.mjs +325 -0
  331. package/dist/esm/io/image.mjs +24 -0
  332. package/dist/esm/io/index.mjs +18 -0
  333. package/dist/esm/io/streams.mjs +224 -0
  334. package/dist/esm/io/zip.mjs +232 -0
  335. package/dist/esm/job/decorators.mjs +21 -0
  336. package/dist/esm/job/index.mjs +9 -0
  337. package/dist/esm/job/scheduler.mjs +328 -0
  338. package/dist/esm/junit/index.mjs +2 -0
  339. package/dist/esm/junit/junit.mjs +48 -0
  340. package/dist/esm/kafka/consumer.mjs +51 -0
  341. package/dist/esm/kafka/index.mjs +9 -0
  342. package/dist/esm/kafka/producer.mjs +51 -0
  343. package/dist/esm/log/index.mjs +6 -0
  344. package/dist/esm/log/logging.mjs +155 -0
  345. package/dist/esm/mail/client.mjs +134 -0
  346. package/dist/esm/mail/index.mjs +6 -0
  347. package/dist/esm/messaging/consumer.mjs +64 -0
  348. package/dist/esm/messaging/decorators.mjs +21 -0
  349. package/dist/esm/messaging/index.mjs +12 -0
  350. package/dist/esm/messaging/producer.mjs +62 -0
  351. package/dist/esm/mongodb/client.mjs +608 -0
  352. package/dist/esm/mongodb/dao.mjs +360 -0
  353. package/dist/esm/mongodb/index.mjs +7 -0
  354. package/dist/esm/net/decorators.mjs +21 -0
  355. package/dist/esm/net/index.mjs +12 -0
  356. package/dist/esm/net/soap.mjs +209 -0
  357. package/dist/esm/net/websockets.mjs +132 -0
  358. package/dist/esm/net/wrappers/onClose.mjs +2 -0
  359. package/dist/esm/net/wrappers/onError.mjs +2 -0
  360. package/dist/esm/net/wrappers/onMessage.mjs +2 -0
  361. package/dist/esm/net/wrappers/onOpen.mjs +2 -0
  362. package/dist/esm/pdf/index.mjs +6 -0
  363. package/dist/esm/pdf/pdf.mjs +141 -0
  364. package/dist/esm/platform/command.mjs +28 -0
  365. package/dist/esm/platform/engines.mjs +51 -0
  366. package/dist/esm/platform/index.mjs +27 -0
  367. package/dist/esm/platform/lifecycle.mjs +30 -0
  368. package/dist/esm/platform/os.mjs +32 -0
  369. package/dist/esm/platform/problems.mjs +108 -0
  370. package/dist/esm/platform/registry.mjs +300 -0
  371. package/dist/esm/platform/repository.mjs +479 -0
  372. package/dist/esm/platform/workspace.mjs +555 -0
  373. package/dist/esm/qldb/index.mjs +6 -0
  374. package/dist/esm/qldb/qldb.mjs +5 -0
  375. package/dist/esm/rabbitmq/consumer.mjs +31 -0
  376. package/dist/esm/rabbitmq/index.mjs +9 -0
  377. package/dist/esm/rabbitmq/producer.mjs +19 -0
  378. package/dist/esm/redis/client.mjs +171 -0
  379. package/dist/esm/redis/index.mjs +6 -0
  380. package/dist/esm/security/decorators.mjs +29 -0
  381. package/dist/esm/security/index.mjs +10 -0
  382. package/dist/esm/security/oauth.mjs +56 -0
  383. package/dist/esm/security/user.mjs +69 -0
  384. package/dist/esm/template/engines.mjs +120 -0
  385. package/dist/esm/template/index.mjs +6 -0
  386. package/dist/esm/utils/alphanumeric.mjs +88 -0
  387. package/dist/esm/utils/base64.mjs +85 -0
  388. package/dist/esm/utils/converter.mjs +59 -0
  389. package/dist/esm/utils/digest.mjs +148 -0
  390. package/dist/esm/utils/escape.mjs +141 -0
  391. package/dist/esm/utils/hex.mjs +85 -0
  392. package/dist/esm/utils/index.mjs +38 -0
  393. package/dist/esm/utils/jsonpath.mjs +470 -0
  394. package/dist/esm/utils/qrcode.mjs +22 -0
  395. package/dist/esm/utils/url.mjs +63 -0
  396. package/dist/esm/utils/utf8.mjs +42 -0
  397. package/dist/esm/utils/uuid.mjs +29 -0
  398. package/dist/esm/utils/xml.mjs +38 -0
  399. package/package.json +58 -0
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Values
3
+ * * Utility class for serializing (stringify) and deserializing (parse) complex variable values (like objects and arrays)
4
+ * to and from JSON strings for storage or transfer across the API boundary.
5
+ */
6
+ export declare class Values {
7
+ /**
8
+ * Attempts to parse a value as a JSON string.
9
+ * If the value is a valid JSON string (representing an object or array), it is parsed and returned as an object.
10
+ * If parsing fails (e.g., the value is a primitive or an invalid JSON string), the original value is returned.
11
+ * @param value The value to parse, typically a string read from the API.
12
+ * @returns The parsed object, or the original value if parsing fails.
13
+ */
14
+ static parseValue(value: any): any;
15
+ /**
16
+ * Iterates over the values of a Map and applies {@link #parseValue(any)} to each value.
17
+ * This is typically used to deserialize all variables returned from an API call.
18
+ * @param variables The Map of variable names to their values (which may be JSON strings).
19
+ * @returns The Map with all values deserialized where possible.
20
+ */
21
+ static parseValuesMap(variables: Map<string, any>): Map<string, any>;
22
+ /**
23
+ * Serializes a value for persistence or API transfer.
24
+ * Arrays and objects are converted into their respective JSON string representations.
25
+ * Note: Arrays are additionally converted into a `java.util.List` of stringified elements for Java API compatibility.
26
+ * Primitive types are returned as is.
27
+ * @param value The value to serialize.
28
+ * @returns The JSON string representation, a Java List (for arrays), or the original primitive value.
29
+ */
30
+ static stringifyValue(value: any): any;
31
+ /**
32
+ * Iterates over the values of a Map and applies {@link #stringifyValue(any)} to each value.
33
+ * This is typically used to serialize a map of variables before sending them to an API call.
34
+ * @param variables The Map of variable names to their values.
35
+ * @returns The Map with all values serialized.
36
+ */
37
+ static stringifyValuesMap(variables: Map<string, any>): Map<string, any>;
38
+ }
@@ -0,0 +1,30 @@
1
+ export declare class Cache {
2
+ /**
3
+ * Checks if the cache contains a value for the specified key.
4
+ * @param key The key to check.
5
+ * @returns True if the key exists in the cache, false otherwise.
6
+ */
7
+ static contains(key: string): boolean;
8
+ /**
9
+ * Retrieves the value associated with the specified key from the cache.
10
+ * @param key The key to retrieve.
11
+ * @returns The cached value, or `undefined` if the key is not found.
12
+ */
13
+ static get(key: any): any | undefined;
14
+ /**
15
+ * Stores a value in the cache under the specified key.
16
+ * Note: The duration/time-to-live (TTL) is typically configured server-side.
17
+ * @param key The key to store the data under.
18
+ * @param data The data to store.
19
+ */
20
+ static set(key: string, data: any): void;
21
+ /**
22
+ * Removes the key and its associated value from the cache.
23
+ * @param key The key to delete.
24
+ */
25
+ static delete(key: string): void;
26
+ /**
27
+ * Clears all entries from the cache.
28
+ */
29
+ static clear(): void;
30
+ }
@@ -0,0 +1,2 @@
1
+ export { Cache as caches } from "./cache";
2
+ export * from "./cache";
@@ -0,0 +1,413 @@
1
+ /**
2
+ * API CMIS
3
+ * * Note: This module is supported only with the Mozilla Rhino engine
4
+ * * Provides static access to the CMIS (Content Management Interoperability Services) repository session and utility constants.
5
+ */
6
+ import * as streams from "@aerokit/sdk/io/streams";
7
+ export declare class Cmis {
8
+ /**
9
+ * CMIS method constant for read operations.
10
+ */
11
+ static readonly METHOD_READ = "READ";
12
+ /**
13
+ * CMIS method constant for write operations.
14
+ */
15
+ static readonly METHOD_WRITE = "WRITE";
16
+ /** CMIS property: Object name. */
17
+ static readonly NAME = "cmis:name";
18
+ /** CMIS property: Unique object identifier. */
19
+ static readonly OBJECT_ID = "cmis:objectId";
20
+ /** CMIS property: Object type identifier. */
21
+ static readonly OBJECT_TYPE_ID = "cmis:objectTypeId";
22
+ /** CMIS property: Base object type identifier. */
23
+ static readonly BASE_TYPE_ID = "cmis:baseTypeId";
24
+ /** CMIS property: User who created the object. */
25
+ static readonly CREATED_BY = "cmis:createdBy";
26
+ /** CMIS property: Timestamp of object creation. */
27
+ static readonly CREATION_DATE = "cmis:creationDate";
28
+ /** CMIS property: User who last modified the object. */
29
+ static readonly LAST_MODIFIED_BY = "cmis:lastModifiedBy";
30
+ /** CMIS property: Timestamp of last modification. */
31
+ static readonly LAST_MODIFICATION_DATE = "cmis:lastModificationDate";
32
+ /** CMIS property: Change token for object change tracking. */
33
+ static readonly CHANGE_TOKEN = "cmis:changeToken";
34
+ /** CMIS property: Indicates if the document is immutable. */
35
+ static readonly IS_IMMUTABLE = "cmis:isImmutable";
36
+ /** CMIS property: Indicates if the document is the latest version in the version series. */
37
+ static readonly IS_LATEST_VERSION = "cmis:isLatestVersion";
38
+ /** CMIS property: Indicates if the document is a major version. */
39
+ static readonly IS_MAJOR_VERSION = "cmis:isMajorVersion";
40
+ /** CMIS property: Indicates if the document is the latest major version. */
41
+ static readonly IS_LATEST_MAJOR_VERSION = "cmis:isLatestMajorVersion";
42
+ /** CMIS property: Label of the document version. */
43
+ static readonly VERSION_LABEL = "cmis:versionLabel";
44
+ /** CMIS property: ID of the version series. */
45
+ static readonly VERSION_SERIES_ID = "cmis:versionSeriesId";
46
+ /** CMIS property: Indicates if the version series is checked out. */
47
+ static readonly IS_VERSION_SERIES_CHECKED_OUT = "cmis:isVersionSeriesCheckedOut";
48
+ /** CMIS property: User who checked out the version series. */
49
+ static readonly VERSION_SERIES_CHECKED_OUT_BY = "cmis:versionSeriesCheckedOutBy";
50
+ /** CMIS property: ID of the checked-out document object. */
51
+ static readonly VERSION_SERIES_CHECKED_OUT_ID = "cmis:versionSeriesCheckedOutId";
52
+ /** CMIS property: Comment associated with the check-in operation. */
53
+ static readonly CHECKIN_COMMENT = "cmis:checkinComment";
54
+ /** CMIS property: Length of the content stream in bytes. */
55
+ static readonly CONTENT_STREAM_LENGTH = "cmis:contentStreamLength";
56
+ /** CMIS property: MIME type of the content stream. */
57
+ static readonly CONTENT_STREAM_MIME_TYPE = "cmis:contentStreamMimeType";
58
+ /** CMIS property: Original file name of the content stream. */
59
+ static readonly CONTENT_STREAM_FILE_NAME = "cmis:contentStreamFileName";
60
+ /** CMIS property: ID of the content stream. */
61
+ static readonly CONTENT_STREAM_ID = "cmis:contentStreamId";
62
+ /** CMIS property: Object ID of the parent folder. */
63
+ static readonly PARENT_ID = "cmis:parentId";
64
+ /** CMIS property: List of allowed object type IDs for children. */
65
+ static readonly ALLOWED_CHILD_OBJECT_TYPE_IDS = "cmis:allowedChildObjectTypeIds";
66
+ /** CMIS property: Path of the folder in the repository. */
67
+ static readonly PATH = "cmis:path";
68
+ /** CMIS property: Object ID of the relationship source. */
69
+ static readonly SOURCE_ID = "cmis:sourceId";
70
+ /** CMIS property: Object ID of the relationship target. */
71
+ static readonly TARGET_ID = "cmis:targetId";
72
+ /** CMIS property: Text content of the policy. */
73
+ static readonly POLICY_TEXT = "cmis:policyText";
74
+ /** CMIS Versioning State: No versioning. */
75
+ static readonly VERSIONING_STATE_NONE = "none";
76
+ /** CMIS Versioning State: Create a new major version. */
77
+ static readonly VERSIONING_STATE_MAJOR = "major";
78
+ /** CMIS Versioning State: Create a new minor version. */
79
+ static readonly VERSIONING_STATE_MINOR = "minor";
80
+ /** CMIS Versioning State: Document is checked out. */
81
+ static readonly VERSIONING_STATE_CHECKEDOUT = "checkedout";
82
+ /** CMIS Object Type ID: Document. */
83
+ static readonly OBJECT_TYPE_DOCUMENT = "cmis:document";
84
+ /** CMIS Object Type ID: Folder. */
85
+ static readonly OBJECT_TYPE_FOLDER = "cmis:folder";
86
+ /** CMIS Object Type ID: Relationship. */
87
+ static readonly OBJECT_TYPE_RELATIONSHIP = "cmis:relationship";
88
+ /** CMIS Object Type ID: Policy. */
89
+ static readonly OBJECT_TYPE_POLICY = "cmis:policy";
90
+ /** CMIS Object Type ID: Item. */
91
+ static readonly OBJECT_TYPE_ITEM = "cmis:item";
92
+ /** CMIS Object Type ID: Secondary. */
93
+ static readonly OBJECT_TYPE_SECONDARY = "cmis:secondary";
94
+ /**
95
+ * Gets a new CMIS session instance to interact with the repository.
96
+ * @returns A new {@link Session} instance.
97
+ */
98
+ static getSession(): Session;
99
+ /**
100
+ * Retrieves access control definitions for a specific path and method.
101
+ * @param path The path of the CMIS object.
102
+ * @param method The operation method (e.g., {@link Cmis.METHOD_READ}, {@link Cmis.METHOD_WRITE}).
103
+ * @returns A list of access definitions.
104
+ */
105
+ static getAccessDefinitions(path: string, method: string): AccessDefinition[];
106
+ }
107
+ /**
108
+ * Represents an access control entry (ACE) for a CMIS object, detailing
109
+ * who has what permissions on a path.
110
+ */
111
+ interface AccessDefinition {
112
+ /** Gets the unique identifier for the access definition. */
113
+ getId(): string;
114
+ /** Gets the scope of the definition (e.g., 'user', 'group'). */
115
+ getScope(): string;
116
+ /** Gets the path of the CMIS object this definition applies to. */
117
+ getPath(): string;
118
+ /** Gets the method/operation this definition applies to (e.g., 'READ', 'WRITE'). */
119
+ getMethod(): string;
120
+ /** Gets the security role (e.g., 'Administrator', 'Viewer'). */
121
+ getRole(): string;
122
+ }
123
+ /**
124
+ * Session object
125
+ * * Represents an active connection to a CMIS repository, used as the main entry point for CMIS operations.
126
+ */
127
+ declare class Session {
128
+ private readonly native;
129
+ constructor(native: any);
130
+ /**
131
+ * Gets information about the repository this session is connected to.
132
+ * @returns Repository metadata.
133
+ */
134
+ getRepositoryInfo(): RepositoryInfo;
135
+ /**
136
+ * Gets the root folder of the repository.
137
+ * @returns The root {@link Folder} object.
138
+ */
139
+ getRootFolder(): Folder;
140
+ /**
141
+ * Gets the object factory for creating new CMIS objects like ContentStream.
142
+ * @returns An {@link ObjectFactory} instance.
143
+ */
144
+ getObjectFactory(): ObjectFactory;
145
+ /**
146
+ * Retrieves a CMIS object (Document or Folder) by its unique ID.
147
+ * @param objectId The unique ID of the object.
148
+ * @returns A {@link Document} or {@link Folder} instance.
149
+ * @throws Error if the object type is unsupported.
150
+ */
151
+ getObject(objectId: string): Folder | Document;
152
+ /**
153
+ * Retrieves a CMIS object (Document or Folder) by its path.
154
+ * @param path The path of the object in the repository (e.g., "/path/to/object").
155
+ * @returns A {@link Document} or {@link Folder} instance.
156
+ * @throws Error if read access is not allowed or the object type is unsupported.
157
+ */
158
+ getObjectByPath(path: string): Folder | Document;
159
+ /**
160
+ * Creates a folder structure recursively based on a path. This is a convenience method that
161
+ * creates all non-existent parent folders.
162
+ * Example: `createFolder("/new/path/structure")`
163
+ * @param location The path of the folder to create.
164
+ * @returns The newly created (or existing) innermost {@link Folder} object.
165
+ */
166
+ createFolder(location: string): Folder;
167
+ /**
168
+ * Creates a new document at the specified location. This method ensures the parent folder structure exists.
169
+ * @param location The path of the parent folder (e.g., "/path/to/folder").
170
+ * @param properties A map of CMIS properties for the new document (must include {@link Cmis.NAME}).
171
+ * @param contentStream The content stream containing the document's binary data.
172
+ * @param versioningState The versioning state (e.g., {@link Cmis.VERSIONING_STATE_MAJOR}).
173
+ * @returns The newly created {@link Document} object.
174
+ */
175
+ createDocument(location: string, properties: {
176
+ [key: string]: any;
177
+ }, contentStream: ContentStream, versioningState: string): Document;
178
+ }
179
+ /**
180
+ * RepositoryInfo object
181
+ * * Provides basic information about the connected CMIS repository.
182
+ */
183
+ declare class RepositoryInfo {
184
+ private readonly native;
185
+ constructor(native: any);
186
+ /**
187
+ * Gets the unique identifier of the repository.
188
+ * @returns The repository ID.
189
+ */
190
+ getId(): string;
191
+ /**
192
+ * Gets the name of the repository.
193
+ * @returns The repository name.
194
+ */
195
+ getName(): string;
196
+ }
197
+ /**
198
+ * Folder object
199
+ * * Represents a CMIS folder object, allowing operations like creating children, deleting, and renaming.
200
+ */
201
+ export declare class Folder {
202
+ private readonly native;
203
+ private path;
204
+ constructor(native: any, path: any);
205
+ /**
206
+ * Gets the unique identifier of the folder.
207
+ * @returns The folder ID.
208
+ */
209
+ getId(): string;
210
+ /**
211
+ * Gets the name of the folder.
212
+ * @returns The folder name.
213
+ */
214
+ getName(): string;
215
+ /**
216
+ * Creates a new folder within this folder.
217
+ * @param properties A map of CMIS properties for the new folder (must include {@link Cmis.NAME}).
218
+ * @returns The newly created {@link Folder} object.
219
+ * @throws Error if write access is not allowed.
220
+ */
221
+ createFolder(properties: {
222
+ [key: string]: any;
223
+ }): Folder;
224
+ /**
225
+ * Creates a new document within this folder.
226
+ * @param properties A map of CMIS properties for the new document (must include {@link Cmis.NAME}).
227
+ * @param contentStream The content stream containing the document's binary data.
228
+ * @param versioningState The versioning state (e.g., {@link Cmis.VERSIONING_STATE_MAJOR}).
229
+ * @returns The newly created {@link Document} object.
230
+ * @throws Error if write access is not allowed.
231
+ */
232
+ createDocument(properties: {
233
+ [key: string]: any;
234
+ }, contentStream: ContentStream, versioningState: string): Document;
235
+ /**
236
+ * Retrieves the children of this folder.
237
+ * @returns A list of generic {@link CmisObject} wrappers for the children.
238
+ * @throws Error if read access is not allowed.
239
+ */
240
+ getChildren(): CmisObject[];
241
+ /**
242
+ * Gets the path of the folder.
243
+ * @returns The folder path.
244
+ */
245
+ getPath(): string;
246
+ /**
247
+ * Checks if this folder is the root folder of the repository.
248
+ * @returns True if it is the root folder, false otherwise.
249
+ */
250
+ isRootFolder(): boolean;
251
+ /**
252
+ * Gets the parent folder of this folder.
253
+ * @returns The parent {@link Folder} object.
254
+ */
255
+ getFolderParent(): Folder;
256
+ /**
257
+ * Deletes this folder (must be empty to succeed).
258
+ * @throws Error if write access is not allowed.
259
+ */
260
+ delete(): void;
261
+ /**
262
+ * Renames this folder.
263
+ * @param newName The new name for the folder.
264
+ * @throws Error if write access is not allowed.
265
+ */
266
+ rename(newName: string): void;
267
+ /**
268
+ * Deletes this folder and all its contents recursively.
269
+ * @throws Error if write access is not allowed.
270
+ */
271
+ deleteTree(): void;
272
+ /**
273
+ * Gets the type definition of the folder.
274
+ * @returns The folder's {@link TypeDefinition}.
275
+ */
276
+ getType(): TypeDefinition;
277
+ }
278
+ /**
279
+ * CmisObject object
280
+ * * A generic wrapper for CMIS objects, used primarily for children lists.
281
+ */
282
+ declare class CmisObject {
283
+ private readonly native;
284
+ constructor(native: any);
285
+ /**
286
+ * Gets the unique identifier of the object.
287
+ * @returns The object ID.
288
+ */
289
+ getId(): string;
290
+ /**
291
+ * Gets the name of the object.
292
+ * @returns The object name.
293
+ */
294
+ getName(): string;
295
+ /**
296
+ * Gets the path of the CMIS object. Handles differences in native CMIS implementations.
297
+ * @returns The object path.
298
+ * @throws Error if the path cannot be determined.
299
+ */
300
+ getPath(): string;
301
+ /**
302
+ * Gets the type definition of the object.
303
+ * @returns The object's {@link TypeDefinition}.
304
+ */
305
+ getType(): TypeDefinition;
306
+ /**
307
+ * Deletes the CMIS object.
308
+ */
309
+ delete(): void;
310
+ /**
311
+ * Renames the CMIS object.
312
+ * @param newName The new name for the object.
313
+ */
314
+ rename(newName: string): void;
315
+ }
316
+ /**
317
+ * ObjectFactory object
318
+ * * Provides methods to create content streams.
319
+ */
320
+ declare class ObjectFactory {
321
+ private readonly native;
322
+ constructor(native: any);
323
+ /**
324
+ * Creates a new content stream instance that can be used to create or update document content.
325
+ * @param filename The name of the file.
326
+ * @param length The size of the content stream in bytes.
327
+ * @param mimetype The MIME type of the content.
328
+ * @param inputStream The input stream containing the data.
329
+ * @returns A new {@link ContentStream} object.
330
+ */
331
+ createContentStream(filename: string, length: number, mimetype: string, inputStream: streams.InputStream): ContentStream;
332
+ }
333
+ /**
334
+ * ContentStream object
335
+ * * Represents the binary content stream of a CMIS Document.
336
+ */
337
+ declare class ContentStream {
338
+ private readonly native;
339
+ constructor(native: any);
340
+ /**
341
+ * Gets the Java-backed input stream for reading the content.
342
+ * @returns An {@link streams.InputStream} wrapper.
343
+ */
344
+ getStream(): streams.InputStream;
345
+ /**
346
+ * Gets the MIME type of the content stream.
347
+ * @returns The MIME type string.
348
+ */
349
+ getMimeType(): string;
350
+ }
351
+ /**
352
+ * Document object
353
+ * * Represents a CMIS document object, allowing operations like reading content, deleting, and renaming.
354
+ */
355
+ export declare class Document {
356
+ private readonly native;
357
+ private path;
358
+ constructor(native: any, path: string);
359
+ /**
360
+ * Gets the unique identifier of the document.
361
+ * @returns The document ID.
362
+ */
363
+ getId(): string;
364
+ /**
365
+ * Gets the name of the document.
366
+ * @returns The document name.
367
+ */
368
+ getName(): string;
369
+ /**
370
+ * Gets the type definition of the document.
371
+ * @returns The document's {@link TypeDefinition}.
372
+ */
373
+ getType(): TypeDefinition;
374
+ /**
375
+ * Gets the path of the document.
376
+ * @returns The document path.
377
+ */
378
+ getPath(): string;
379
+ /**
380
+ * Deletes this document.
381
+ * @throws Error if write access is not allowed.
382
+ */
383
+ delete(): void;
384
+ /**
385
+ * Gets the binary content stream of the document.
386
+ * @returns The {@link ContentStream} object, or `null` if the document has no content.
387
+ */
388
+ getContentStream(): ContentStream | null;
389
+ /**
390
+ * Gets the size of the document's content stream in bytes.
391
+ * @returns The size in bytes.
392
+ */
393
+ getSize(): number;
394
+ /**
395
+ * Renames this document.
396
+ * @param newName The new name for the document.
397
+ * @throws Error if write access is not allowed.
398
+ */
399
+ rename(newName: string): void;
400
+ }
401
+ /**
402
+ * Represents the definition of a CMIS object type (e.g., cmis:document, cmis:folder).
403
+ */
404
+ declare class TypeDefinition {
405
+ private readonly native;
406
+ constructor(native: any);
407
+ /**
408
+ * Gets the unique ID of the object type (e.g., 'cmis:document').
409
+ * @returns The type ID.
410
+ */
411
+ getId(): string;
412
+ }
413
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Cmis as cmis } from "./cmis";
2
+ export * from "./cmis";
@@ -0,0 +1,52 @@
1
+ /**
2
+ * API DI (Dependency Injection) Decorators
3
+ * * Provides a hybrid implementation of decorators for Dependency Injection (DI)
4
+ * that supports both legacy JavaScript environments (like Mozilla Rhino or older GraalJS)
5
+ * using the `(target, propertyKey)` signature, and modern JavaScript environments
6
+ * using the decorator metadata and `context.addInitializer`.
7
+ */
8
+ /**
9
+ * Extends a standard constructor function to include properties used for internal metadata storage.
10
+ */
11
+ export interface ComponentConstructor extends Function {
12
+ new (...args: any[]): any;
13
+ /** Internal storage for the component's registered name. */
14
+ __component_name?: string;
15
+ /** Internal storage for the component's injection map. */
16
+ __injections_map?: Map<string | symbol, string | undefined>;
17
+ }
18
+ /**
19
+ * Class decorator that marks a class as a Dependency Injection component.
20
+ * It registers the component's metadata and wraps the constructor to ensure
21
+ * dependencies are injected upon instance creation.
22
+ *
23
+ * Can be used as `@Component` (uses class name) or `@Component('customName')`.
24
+ *
25
+ * @param nameOrConstructor The optional custom component name (string) or the class constructor (Function) when used without parentheses.
26
+ * @returns A class decorator function or the decorated class itself.
27
+ */
28
+ export declare function Component(nameOrConstructor?: string | Function): Function;
29
+ /**
30
+ * An alias for the {@link Component} decorator, used for semantic clarity
31
+ * in contexts where the class is explicitly intended to be injected elsewhere.
32
+ * Its functionality is identical to {@link Component}.
33
+ *
34
+ * @param nameOrConstructor The optional custom component name (string) or the class constructor (Function).
35
+ * @returns A class decorator function or the decorated class itself.
36
+ */
37
+ export declare function Injected(nameOrConstructor?: string | Function): Function;
38
+ /**
39
+ * Property decorator used to mark an instance property as an injection point.
40
+ * The runtime will look up a dependency based on the property name or the optional
41
+ * name provided.
42
+ *
43
+ * It supports both modern (`context.addInitializer`) and legacy decorator APIs.
44
+ *
45
+ * Usage:
46
+ * - `@Inject` propertyKey: Injects a component with the same name as `propertyKey`.
47
+ * - `@Inject('myService')` propertyKey: Injects the component registered as 'myService'.
48
+ *
49
+ * @param name The optional name of the component to inject.
50
+ * @returns A property decorator function.
51
+ */
52
+ export declare function Inject(name?: string): (...args: any[]) => void;
@@ -0,0 +1,2 @@
1
+ export * from "./decorators";
2
+ export * as decorators from "./decorators";
@@ -0,0 +1,65 @@
1
+ /**
2
+ * API Configurations
3
+ * * Provides a static interface for accessing and manipulating configuration properties,
4
+ * and checking the operating system type.
5
+ */
6
+ export declare class Configurations {
7
+ /**
8
+ * Retrieves the configuration value associated with the given key.
9
+ * @param key The configuration key.
10
+ * @param defaultValue The optional default value to return if the key is not found.
11
+ * @returns The configuration value as a string, or `undefined` if the key is not found and no default is provided.
12
+ */
13
+ static get(key: string, defaultValue?: string): string | undefined;
14
+ /**
15
+ * Sets the configuration value for the given key.
16
+ * If the key already exists, its value is overwritten.
17
+ * @param key The configuration key.
18
+ * @param value The configuration value to set.
19
+ */
20
+ static set(key: string, value: string): void;
21
+ /**
22
+ * Removes the configuration property associated with the given key.
23
+ * @param key The configuration key to remove.
24
+ */
25
+ static remove(key: string): void;
26
+ /**
27
+ * Retrieves a list of all current configuration keys.
28
+ * @returns An array of configuration keys (strings).
29
+ */
30
+ static getKeys(): string[];
31
+ /**
32
+ * Loads configuration properties from a file at the specified path, overriding existing ones.
33
+ * @param path The file path to load configurations from.
34
+ */
35
+ static load(path: string): void;
36
+ /**
37
+ * Reloads or updates the current configuration settings from their source (e.g., persistence layer).
38
+ */
39
+ static update(): void;
40
+ /**
41
+ * Retrieves the name of the current Operating System.
42
+ * @returns The OS name as a string (e.g., "Windows", "Linux", "Mac OS X").
43
+ */
44
+ static getOS(): string;
45
+ /**
46
+ * Checks if the current Operating System is Windows.
47
+ * @returns True if the OS is Windows, false otherwise.
48
+ */
49
+ static isOSWindows(): boolean;
50
+ /**
51
+ * Checks if the current Operating System is Mac OS (or Mac OS X).
52
+ * @returns True if the OS is Mac, false otherwise.
53
+ */
54
+ static isOSMac(): boolean;
55
+ /**
56
+ * Checks if the current Operating System is a UNIX-like system (e.g., Linux, macOS, or others).
57
+ * @returns True if the OS is a UNIX variant, false otherwise.
58
+ */
59
+ static isOSUNIX(): boolean;
60
+ /**
61
+ * Checks if the current Operating System is Solaris.
62
+ * @returns True if the OS is Solaris, false otherwise.
63
+ */
64
+ static isOSSolaris(): boolean;
65
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * API Context
3
+ * * Provides a static interface for accessing and manipulating key-value pairs in a global, application-wide context.
4
+ */
5
+ export declare class Context {
6
+ /**
7
+ * Retrieves the value associated with the specified name from the global context.
8
+ * @param name The name of the context variable.
9
+ * @returns The context value, or `undefined` if the name is not found or the value is null.
10
+ */
11
+ static get(name: string): any | undefined;
12
+ /**
13
+ * Stores a value in the global context under the specified name.
14
+ * If the name already exists, its value is overwritten.
15
+ * @param name The name of the context variable.
16
+ * @param value The value to store.
17
+ */
18
+ static set(name: string, value: any): void;
19
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * API Env
3
+ * * Provides a static interface for accessing and listing environment variables exposed to the runtime.
4
+ */
5
+ /**
6
+ * Interface representing a map of environment variable names to their string values.
7
+ */
8
+ export interface EnvValues {
9
+ [key: string]: string;
10
+ }
11
+ export declare class Env {
12
+ /**
13
+ * Retrieves the value of the environment variable with the specified name.
14
+ * @param name The name of the environment variable.
15
+ * @returns The variable's value as a string, or `undefined` if the variable is not set.
16
+ */
17
+ static get(name: string): string | undefined;
18
+ /**
19
+ * Retrieves a map of all environment variables currently exposed to the application.
20
+ * @returns An {@link EnvValues} object containing all environment variables as key-value pairs.
21
+ */
22
+ static list(): EnvValues;
23
+ }