@aerokit/sdk 12.80.0 → 12.82.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 (376) hide show
  1. package/dist/cjs/bpm/deployer.js +1 -1
  2. package/dist/cjs/bpm/index.js +1 -1
  3. package/dist/cjs/bpm/process.js +1 -1
  4. package/dist/cjs/bpm/tasks.js +1 -1
  5. package/dist/cjs/bpm/tracer.js +1 -1
  6. package/dist/cjs/bpm/values.js +1 -1
  7. package/dist/cjs/cache/cache.js +1 -1
  8. package/dist/cjs/cache/index.js +1 -1
  9. package/dist/cjs/cms/cmis.js +1 -1
  10. package/dist/cjs/cms/index.js +1 -1
  11. package/dist/cjs/component/decorators.js +1 -1
  12. package/dist/cjs/component/index.js +1 -1
  13. package/dist/cjs/core/configurations.js +1 -1
  14. package/dist/cjs/core/context.js +1 -1
  15. package/dist/cjs/core/env.js +1 -1
  16. package/dist/cjs/core/globals.js +1 -1
  17. package/dist/cjs/core/index.js +1 -1
  18. package/dist/cjs/db/dao.js +1 -1
  19. package/dist/cjs/db/database.js +1 -1
  20. package/dist/cjs/db/decorators.js +1 -1
  21. package/dist/cjs/db/index.js +1 -1
  22. package/dist/cjs/db/insert.js +1 -1
  23. package/dist/cjs/db/orm.js +1 -1
  24. package/dist/cjs/db/ormstatements.js +1 -1
  25. package/dist/cjs/db/procedure.js +1 -1
  26. package/dist/cjs/db/query.js +1 -1
  27. package/dist/cjs/db/repository.js +1 -1
  28. package/dist/cjs/db/sequence.js +1 -1
  29. package/dist/cjs/db/sql.js +1 -1
  30. package/dist/cjs/db/store.js +1 -1
  31. package/dist/cjs/db/translator.js +1 -1
  32. package/dist/cjs/db/update.js +1 -1
  33. package/dist/cjs/etcd/client.js +1 -1
  34. package/dist/cjs/etcd/index.js +1 -1
  35. package/dist/cjs/extensions/decorators.js +1 -1
  36. package/dist/cjs/extensions/extensions.js +1 -1
  37. package/dist/cjs/extensions/index.js +1 -1
  38. package/dist/cjs/git/client.js +1 -1
  39. package/dist/cjs/git/index.js +1 -1
  40. package/dist/cjs/http/client-async.js +1 -1
  41. package/dist/cjs/http/client.js +1 -1
  42. package/dist/cjs/http/decorators.js +1 -1
  43. package/dist/cjs/http/errors/ForbiddenError.js +1 -1
  44. package/dist/cjs/http/errors/ValidationError.js +1 -1
  45. package/dist/cjs/http/errors.js +1 -1
  46. package/dist/cjs/http/index.js +1 -1
  47. package/dist/cjs/http/request.js +1 -1
  48. package/dist/cjs/http/response.js +1 -1
  49. package/dist/cjs/http/rs/resource-http-controller.js +1 -1
  50. package/dist/cjs/http/rs/resource-mappings.js +1 -1
  51. package/dist/cjs/http/rs/resource-method.js +1 -1
  52. package/dist/cjs/http/rs/resource.js +1 -1
  53. package/dist/cjs/http/rs.js +1 -1
  54. package/dist/cjs/http/session.js +1 -1
  55. package/dist/cjs/http/upload.js +1 -1
  56. package/dist/cjs/http/utils.js +1 -1
  57. package/dist/cjs/indexing/index.js +1 -1
  58. package/dist/cjs/indexing/searcher.js +1 -1
  59. package/dist/cjs/indexing/writer.js +1 -1
  60. package/dist/cjs/integrations/index.js +1 -1
  61. package/dist/cjs/integrations/integrations.js +1 -1
  62. package/dist/cjs/io/bytes.js +1 -1
  63. package/dist/cjs/io/files.js +1 -1
  64. package/dist/cjs/io/image.js +1 -1
  65. package/dist/cjs/io/index.js +1 -1
  66. package/dist/cjs/io/streams.js +1 -1
  67. package/dist/cjs/io/zip.js +1 -1
  68. package/dist/cjs/job/decorators.js +1 -1
  69. package/dist/cjs/job/index.js +1 -1
  70. package/dist/cjs/job/scheduler.js +1 -1
  71. package/dist/cjs/junit/index.js +1 -1
  72. package/dist/cjs/junit/junit.js +1 -1
  73. package/dist/cjs/kafka/consumer.js +1 -1
  74. package/dist/cjs/kafka/index.js +1 -1
  75. package/dist/cjs/kafka/producer.js +1 -1
  76. package/dist/cjs/log/index.js +1 -1
  77. package/dist/cjs/log/logging.js +1 -1
  78. package/dist/cjs/mail/client.js +1 -1
  79. package/dist/cjs/mail/index.js +1 -1
  80. package/dist/cjs/messaging/consumer.js +1 -1
  81. package/dist/cjs/messaging/decorators.js +1 -1
  82. package/dist/cjs/messaging/index.js +1 -1
  83. package/dist/cjs/messaging/producer.js +1 -1
  84. package/dist/cjs/mongodb/client.js +1 -1
  85. package/dist/cjs/mongodb/dao.js +1 -1
  86. package/dist/cjs/mongodb/index.js +1 -1
  87. package/dist/cjs/net/decorators.js +1 -1
  88. package/dist/cjs/net/index.js +1 -1
  89. package/dist/cjs/net/soap.js +1 -1
  90. package/dist/cjs/net/websockets.js +1 -1
  91. package/dist/cjs/pdf/index.js +1 -1
  92. package/dist/cjs/pdf/pdf.js +3 -3
  93. package/dist/cjs/platform/command.js +1 -1
  94. package/dist/cjs/platform/engines.js +1 -1
  95. package/dist/cjs/platform/index.js +1 -1
  96. package/dist/cjs/platform/lifecycle.js +1 -1
  97. package/dist/cjs/platform/os.js +1 -1
  98. package/dist/cjs/platform/problems.js +1 -1
  99. package/dist/cjs/platform/registry.js +1 -1
  100. package/dist/cjs/platform/repository.js +1 -1
  101. package/dist/cjs/platform/workspace.js +1 -1
  102. package/dist/cjs/qldb/index.js +1 -1
  103. package/dist/cjs/qldb/qldb.js +1 -1
  104. package/dist/cjs/rabbitmq/consumer.js +1 -1
  105. package/dist/cjs/rabbitmq/index.js +1 -1
  106. package/dist/cjs/rabbitmq/producer.js +1 -1
  107. package/dist/cjs/redis/client.js +1 -1
  108. package/dist/cjs/redis/index.js +1 -1
  109. package/dist/cjs/security/decorators.js +1 -1
  110. package/dist/cjs/security/index.js +1 -1
  111. package/dist/cjs/security/oauth.js +1 -1
  112. package/dist/cjs/security/user.js +1 -1
  113. package/dist/cjs/template/engines.js +1 -1
  114. package/dist/cjs/template/index.js +1 -1
  115. package/dist/cjs/utils/alphanumeric.js +2 -2
  116. package/dist/cjs/utils/base64.js +1 -1
  117. package/dist/cjs/utils/converter.js +1 -1
  118. package/dist/cjs/utils/digest.js +1 -1
  119. package/dist/cjs/utils/escape.js +1 -1
  120. package/dist/cjs/utils/hex.js +1 -1
  121. package/dist/cjs/utils/index.js +1 -1
  122. package/dist/cjs/utils/jsonpath.js +1 -1
  123. package/dist/cjs/utils/qrcode.js +1 -1
  124. package/dist/cjs/utils/url.js +1 -1
  125. package/dist/cjs/utils/utf8.js +1 -1
  126. package/dist/cjs/utils/uuid.js +1 -1
  127. package/dist/cjs/utils/xml.js +1 -1
  128. package/dist/dts/bpm/deployer.d.ts +35 -3
  129. package/dist/dts/bpm/index.d.ts +14 -0
  130. package/dist/dts/bpm/process.d.ts +28 -3
  131. package/dist/dts/bpm/tasks.d.ts +32 -1
  132. package/dist/dts/bpm/tracer.d.ts +35 -0
  133. package/dist/dts/bpm/values.d.ts +17 -3
  134. package/dist/dts/cache/cache.d.ts +38 -0
  135. package/dist/dts/cache/index.d.ts +10 -0
  136. package/dist/dts/cms/cmis.d.ts +28 -3
  137. package/dist/dts/cms/index.d.ts +10 -0
  138. package/dist/dts/component/decorators.d.ts +35 -5
  139. package/dist/dts/component/index.d.ts +10 -0
  140. package/dist/dts/core/configurations.d.ts +43 -4
  141. package/dist/dts/core/context.d.ts +35 -2
  142. package/dist/dts/core/env.d.ts +29 -2
  143. package/dist/dts/core/globals.d.ts +34 -2
  144. package/dist/dts/core/index.d.ts +13 -0
  145. package/dist/dts/db/database.d.ts +34 -0
  146. package/dist/dts/db/decorators.d.ts +55 -2
  147. package/dist/dts/db/index.d.ts +19 -0
  148. package/dist/dts/db/orm.d.ts +43 -0
  149. package/dist/dts/db/procedure.d.ts +37 -0
  150. package/dist/dts/db/query.d.ts +25 -1
  151. package/dist/dts/db/repository.d.ts +52 -0
  152. package/dist/dts/db/sequence.d.ts +31 -2
  153. package/dist/dts/db/sql.d.ts +33 -0
  154. package/dist/dts/db/store.d.ts +27 -0
  155. package/dist/dts/db/translator.d.ts +34 -1
  156. package/dist/dts/db/update.d.ts +38 -0
  157. package/dist/dts/etcd/client.d.ts +36 -0
  158. package/dist/dts/etcd/index.d.ts +10 -0
  159. package/dist/dts/extensions/decorators.d.ts +28 -0
  160. package/dist/dts/extensions/extensions.d.ts +30 -1
  161. package/dist/dts/extensions/index.d.ts +11 -0
  162. package/dist/dts/git/client.d.ts +28 -0
  163. package/dist/dts/git/index.d.ts +10 -0
  164. package/dist/dts/http/client-async.d.ts +29 -1
  165. package/dist/dts/http/client.d.ts +29 -1
  166. package/dist/dts/http/decorators.d.ts +38 -0
  167. package/dist/dts/http/errors/ForbiddenError.d.ts +6 -2
  168. package/dist/dts/http/errors/ValidationError.d.ts +6 -2
  169. package/dist/dts/http/errors.d.ts +14 -0
  170. package/dist/dts/http/index.d.ts +18 -0
  171. package/dist/dts/http/request.d.ts +30 -3
  172. package/dist/dts/http/response.d.ts +40 -3
  173. package/dist/dts/http/rs/resource-mappings.d.ts +30 -0
  174. package/dist/dts/http/rs.d.ts +38 -0
  175. package/dist/dts/http/session.d.ts +34 -3
  176. package/dist/dts/http/upload.d.ts +27 -2
  177. package/dist/dts/http/utils.d.ts +42 -0
  178. package/dist/dts/indexing/index.d.ts +11 -0
  179. package/dist/dts/indexing/searcher.d.ts +35 -2
  180. package/dist/dts/indexing/writer.d.ts +23 -2
  181. package/dist/dts/integrations/index.d.ts +10 -0
  182. package/dist/dts/integrations/integrations.d.ts +27 -3
  183. package/dist/dts/io/bytes.d.ts +33 -2
  184. package/dist/dts/io/files.d.ts +34 -2
  185. package/dist/dts/io/image.d.ts +27 -2
  186. package/dist/dts/io/index.d.ts +14 -0
  187. package/dist/dts/io/streams.d.ts +40 -0
  188. package/dist/dts/io/zip.d.ts +32 -0
  189. package/dist/dts/job/decorators.d.ts +29 -0
  190. package/dist/dts/job/index.d.ts +11 -0
  191. package/dist/dts/job/scheduler.d.ts +33 -2
  192. package/dist/dts/junit/index.d.ts +10 -0
  193. package/dist/dts/junit/junit.d.ts +31 -0
  194. package/dist/dts/kafka/consumer.d.ts +31 -0
  195. package/dist/dts/kafka/index.d.ts +11 -0
  196. package/dist/dts/kafka/producer.d.ts +31 -0
  197. package/dist/dts/log/index.d.ts +10 -0
  198. package/dist/dts/log/logging.d.ts +32 -0
  199. package/dist/dts/mail/client.d.ts +27 -0
  200. package/dist/dts/mail/index.d.ts +10 -0
  201. package/dist/dts/messaging/consumer.d.ts +29 -2
  202. package/dist/dts/messaging/decorators.d.ts +32 -0
  203. package/dist/dts/messaging/index.d.ts +12 -0
  204. package/dist/dts/messaging/producer.d.ts +27 -2
  205. package/dist/dts/mongodb/client.d.ts +37 -0
  206. package/dist/dts/mongodb/dao.d.ts +53 -0
  207. package/dist/dts/mongodb/index.d.ts +11 -0
  208. package/dist/dts/net/decorators.d.ts +27 -0
  209. package/dist/dts/net/index.d.ts +13 -0
  210. package/dist/dts/net/soap.d.ts +34 -0
  211. package/dist/dts/net/websockets.d.ts +34 -0
  212. package/dist/dts/pdf/index.d.ts +10 -0
  213. package/dist/dts/pdf/pdf.d.ts +41 -2
  214. package/dist/dts/platform/command.d.ts +26 -0
  215. package/dist/dts/platform/engines.d.ts +38 -0
  216. package/dist/dts/platform/index.d.ts +19 -0
  217. package/dist/dts/platform/lifecycle.d.ts +29 -0
  218. package/dist/dts/platform/os.d.ts +30 -0
  219. package/dist/dts/platform/problems.d.ts +36 -0
  220. package/dist/dts/platform/registry.d.ts +39 -0
  221. package/dist/dts/platform/repository.d.ts +40 -0
  222. package/dist/dts/platform/workspace.d.ts +42 -0
  223. package/dist/dts/qldb/index.d.ts +12 -0
  224. package/dist/dts/qldb/qldb.d.ts +14 -0
  225. package/dist/dts/rabbitmq/consumer.d.ts +24 -3
  226. package/dist/dts/rabbitmq/index.d.ts +13 -0
  227. package/dist/dts/rabbitmq/producer.d.ts +20 -3
  228. package/dist/dts/redis/client.d.ts +31 -3
  229. package/dist/dts/redis/index.d.ts +12 -0
  230. package/dist/dts/security/decorators.d.ts +34 -0
  231. package/dist/dts/security/index.d.ts +14 -0
  232. package/dist/dts/security/oauth.d.ts +27 -0
  233. package/dist/dts/security/user.d.ts +39 -0
  234. package/dist/dts/template/engines.d.ts +31 -0
  235. package/dist/dts/template/index.d.ts +12 -0
  236. package/dist/dts/utils/alphanumeric.d.ts +36 -2
  237. package/dist/dts/utils/base64.d.ts +30 -0
  238. package/dist/dts/utils/converter.d.ts +37 -2
  239. package/dist/dts/utils/digest.d.ts +31 -0
  240. package/dist/dts/utils/escape.d.ts +28 -3
  241. package/dist/dts/utils/hex.d.ts +30 -0
  242. package/dist/dts/utils/index.d.ts +23 -0
  243. package/dist/dts/utils/jsonpath.d.ts +43 -0
  244. package/dist/dts/utils/qrcode.d.ts +24 -3
  245. package/dist/dts/utils/url.d.ts +37 -3
  246. package/dist/dts/utils/utf8.d.ts +34 -3
  247. package/dist/dts/utils/uuid.d.ts +28 -2
  248. package/dist/dts/utils/xml.d.ts +31 -2
  249. package/dist/esm/bpm/deployer.mjs +1 -1
  250. package/dist/esm/bpm/index.mjs +1 -1
  251. package/dist/esm/bpm/process.mjs +1 -1
  252. package/dist/esm/bpm/tasks.mjs +1 -1
  253. package/dist/esm/bpm/tracer.mjs +1 -1
  254. package/dist/esm/bpm/values.mjs +1 -1
  255. package/dist/esm/cache/cache.mjs +1 -1
  256. package/dist/esm/cache/index.mjs +1 -1
  257. package/dist/esm/cms/cmis.mjs +1 -1
  258. package/dist/esm/cms/index.mjs +1 -1
  259. package/dist/esm/component/decorators.mjs +1 -1
  260. package/dist/esm/component/index.mjs +1 -1
  261. package/dist/esm/core/configurations.mjs +1 -1
  262. package/dist/esm/core/context.mjs +1 -1
  263. package/dist/esm/core/env.mjs +1 -1
  264. package/dist/esm/core/globals.mjs +1 -1
  265. package/dist/esm/core/index.mjs +1 -1
  266. package/dist/esm/db/dao.mjs +1 -1
  267. package/dist/esm/db/database.mjs +1 -1
  268. package/dist/esm/db/decorators.mjs +1 -1
  269. package/dist/esm/db/index.mjs +1 -1
  270. package/dist/esm/db/insert.mjs +1 -1
  271. package/dist/esm/db/orm.mjs +1 -1
  272. package/dist/esm/db/ormstatements.mjs +1 -1
  273. package/dist/esm/db/procedure.mjs +1 -1
  274. package/dist/esm/db/query.mjs +1 -1
  275. package/dist/esm/db/repository.mjs +1 -1
  276. package/dist/esm/db/sequence.mjs +1 -1
  277. package/dist/esm/db/sql.mjs +1 -1
  278. package/dist/esm/db/store.mjs +1 -1
  279. package/dist/esm/db/translator.mjs +1 -1
  280. package/dist/esm/db/update.mjs +1 -1
  281. package/dist/esm/etcd/client.mjs +1 -1
  282. package/dist/esm/etcd/index.mjs +1 -1
  283. package/dist/esm/extensions/decorators.mjs +1 -1
  284. package/dist/esm/extensions/extensions.mjs +1 -1
  285. package/dist/esm/extensions/index.mjs +1 -1
  286. package/dist/esm/git/client.mjs +1 -1
  287. package/dist/esm/git/index.mjs +1 -1
  288. package/dist/esm/http/client-async.mjs +1 -1
  289. package/dist/esm/http/client.mjs +1 -1
  290. package/dist/esm/http/decorators.mjs +1 -1
  291. package/dist/esm/http/errors/ForbiddenError.mjs +1 -1
  292. package/dist/esm/http/errors/ValidationError.mjs +1 -1
  293. package/dist/esm/http/errors.mjs +1 -1
  294. package/dist/esm/http/index.mjs +1 -1
  295. package/dist/esm/http/request.mjs +1 -1
  296. package/dist/esm/http/response.mjs +1 -1
  297. package/dist/esm/http/rs/resource-http-controller.mjs +1 -1
  298. package/dist/esm/http/rs/resource-mappings.mjs +1 -1
  299. package/dist/esm/http/rs/resource-method.mjs +1 -1
  300. package/dist/esm/http/rs/resource.mjs +1 -1
  301. package/dist/esm/http/rs.mjs +1 -1
  302. package/dist/esm/http/session.mjs +1 -1
  303. package/dist/esm/http/upload.mjs +1 -1
  304. package/dist/esm/http/utils.mjs +1 -1
  305. package/dist/esm/indexing/index.mjs +1 -1
  306. package/dist/esm/indexing/searcher.mjs +1 -1
  307. package/dist/esm/indexing/writer.mjs +1 -1
  308. package/dist/esm/integrations/index.mjs +1 -1
  309. package/dist/esm/integrations/integrations.mjs +1 -1
  310. package/dist/esm/io/bytes.mjs +1 -1
  311. package/dist/esm/io/files.mjs +1 -1
  312. package/dist/esm/io/image.mjs +1 -1
  313. package/dist/esm/io/index.mjs +1 -1
  314. package/dist/esm/io/streams.mjs +1 -1
  315. package/dist/esm/io/zip.mjs +1 -1
  316. package/dist/esm/job/decorators.mjs +1 -1
  317. package/dist/esm/job/index.mjs +1 -1
  318. package/dist/esm/job/scheduler.mjs +1 -1
  319. package/dist/esm/junit/index.mjs +1 -1
  320. package/dist/esm/junit/junit.mjs +1 -1
  321. package/dist/esm/kafka/consumer.mjs +1 -1
  322. package/dist/esm/kafka/index.mjs +1 -1
  323. package/dist/esm/kafka/producer.mjs +1 -1
  324. package/dist/esm/log/index.mjs +1 -1
  325. package/dist/esm/log/logging.mjs +1 -1
  326. package/dist/esm/mail/client.mjs +1 -1
  327. package/dist/esm/mail/index.mjs +1 -1
  328. package/dist/esm/messaging/consumer.mjs +1 -1
  329. package/dist/esm/messaging/decorators.mjs +1 -1
  330. package/dist/esm/messaging/index.mjs +1 -1
  331. package/dist/esm/messaging/producer.mjs +1 -1
  332. package/dist/esm/mongodb/client.mjs +2 -2
  333. package/dist/esm/mongodb/dao.mjs +1 -1
  334. package/dist/esm/mongodb/index.mjs +1 -1
  335. package/dist/esm/net/decorators.mjs +1 -1
  336. package/dist/esm/net/index.mjs +1 -1
  337. package/dist/esm/net/soap.mjs +1 -1
  338. package/dist/esm/net/websockets.mjs +1 -1
  339. package/dist/esm/pdf/index.mjs +1 -1
  340. package/dist/esm/pdf/pdf.mjs +3 -3
  341. package/dist/esm/platform/command.mjs +1 -1
  342. package/dist/esm/platform/engines.mjs +1 -1
  343. package/dist/esm/platform/index.mjs +1 -1
  344. package/dist/esm/platform/lifecycle.mjs +1 -1
  345. package/dist/esm/platform/os.mjs +1 -1
  346. package/dist/esm/platform/problems.mjs +1 -1
  347. package/dist/esm/platform/registry.mjs +1 -1
  348. package/dist/esm/platform/repository.mjs +1 -1
  349. package/dist/esm/platform/workspace.mjs +1 -1
  350. package/dist/esm/qldb/index.mjs +1 -1
  351. package/dist/esm/qldb/qldb.mjs +1 -1
  352. package/dist/esm/rabbitmq/consumer.mjs +1 -1
  353. package/dist/esm/rabbitmq/index.mjs +1 -1
  354. package/dist/esm/rabbitmq/producer.mjs +1 -1
  355. package/dist/esm/redis/client.mjs +1 -1
  356. package/dist/esm/redis/index.mjs +1 -1
  357. package/dist/esm/security/decorators.mjs +1 -1
  358. package/dist/esm/security/index.mjs +1 -1
  359. package/dist/esm/security/oauth.mjs +1 -1
  360. package/dist/esm/security/user.mjs +1 -1
  361. package/dist/esm/template/engines.mjs +1 -1
  362. package/dist/esm/template/index.mjs +1 -1
  363. package/dist/esm/utils/alphanumeric.mjs +2 -2
  364. package/dist/esm/utils/base64.mjs +1 -1
  365. package/dist/esm/utils/converter.mjs +1 -1
  366. package/dist/esm/utils/digest.mjs +1 -1
  367. package/dist/esm/utils/escape.mjs +1 -1
  368. package/dist/esm/utils/hex.mjs +1 -1
  369. package/dist/esm/utils/index.mjs +1 -1
  370. package/dist/esm/utils/jsonpath.mjs +1 -1
  371. package/dist/esm/utils/qrcode.mjs +1 -1
  372. package/dist/esm/utils/url.mjs +1 -1
  373. package/dist/esm/utils/utf8.mjs +1 -1
  374. package/dist/esm/utils/uuid.mjs +1 -1
  375. package/dist/esm/utils/xml.mjs +1 -1
  376. package/package.json +1 -1
@@ -1,6 +1,37 @@
1
1
  /**
2
- * Provides utilities for converting and manipulating byte arrays,
3
- * facilitating conversions between JavaScript arrays, Java arrays, text, and integers.
2
+ * @module io/bytes
3
+ * @package @aerokit/sdk/io
4
+ * @name Bytes
5
+ * @overview
6
+ *
7
+ * The Bytes class provides static methods for converting and manipulating byte arrays, facilitating conversions between JavaScript arrays, Java arrays, text, and integers. It serves as a utility for bridging data types between the JavaScript environment and native Java components, particularly in scenarios where byte-level data manipulation is required.
8
+ *
9
+ * ### Key Features:
10
+ * - **Byte Array Conversion**: Methods to convert between JavaScript byte arrays (arrays of numbers) and native Java byte arrays, enabling seamless data exchange with Java methods.
11
+ * - **Text Encoding/Decoding**: Methods to convert text strings to byte arrays and vice versa, using the default platform encoding (UTF-8).
12
+ * - **Integer Conversion**: Methods to convert 32-bit integers to byte arrays and back, with support for both big-endian and little-endian byte orders.
13
+ *
14
+ * ### Use Cases:
15
+ * - **File Handling**: When working with file uploads or downloads, the Bytes class can be used to convert file content between different formats.
16
+ * - **Network Communication**: In scenarios involving network communication where data is transmitted as bytes, the Bytes class can facilitate encoding and decoding of messages.
17
+ * - **Data Serialization**: For applications that require custom serialization of data into byte formats, the Bytes class provides essential utilities for handling such conversions.
18
+ *
19
+ * ### Example Usage:
20
+ * ```ts
21
+ * import { Bytes } from "@aerokit/sdk/io";
22
+ *
23
+ * // Convert text to byte array and back
24
+ * const text = "Hello, World!";
25
+ * const byteArray = Bytes.textToByteArray(text);
26
+ * const reconstructedText = Bytes.byteArrayToText(byteArray);
27
+ * console.log(reconstructedText); // Output: Hello, World!
28
+ *
29
+ * // Convert integer to byte array and back
30
+ * const intValue = 123456789;
31
+ * const intByteArray = Bytes.intToByteArray(intValue, "BIG_ENDIAN");
32
+ * const reconstructedInt = Bytes.byteArrayToInt(intByteArray, "BIG_ENDIAN");
33
+ * console.log(reconstructedInt); // Output: 123456789
34
+ * ```
4
35
  */
5
36
  /**
6
37
  * The Bytes class provides static methods for byte array operations, primarily
@@ -1,6 +1,38 @@
1
1
  /**
2
- * Provides a comprehensive static façade for file and directory operations,
3
- * abstracting the underlying Java file system implementation.
2
+ * @module io/files
3
+ * @package @aerokit/sdk/io
4
+ * @name Files
5
+ * @overview
6
+ *
7
+ * The Files class provides a comprehensive static façade for file and directory operations, abstracting the underlying Java file system implementation. It offers a wide range of methods for checking file properties, reading and writing content, managing file metadata, and performing common file system tasks such as copying, moving, and deleting files and directories.
8
+ *
9
+ * ### Key Features:
10
+ * - **File Property Checks**: Methods to check if a path exists, is a file or directory, is readable/writable/executable, and more.
11
+ * - **Content Manipulation**: Methods to read and write both text and binary content to files, with automatic conversion between Java byte arrays and JavaScript arrays.
12
+ * - **Metadata Management**: Methods to get and set file metadata such as last modified time, owner, and permissions.
13
+ * - **File System Operations**: Methods to create files and directories, copy and move files/directories, delete files/directories, and create temporary files/directories.
14
+ * - **Directory Traversal**: Methods to traverse directory structures and list contents with support for glob patterns.
15
+ *
16
+ * ### Use Cases:
17
+ * - **File Handling in Applications**: Essential for any application that needs to read from or write to the file system, such as configuration management, data storage, or log handling.
18
+ * - **Scripting and Automation**: Useful for scripts that perform file system maintenance, batch processing of files, or automated generation of content.
19
+ * - **Data Processing**: When working with data files, the Files class can be used to read input data, process it, and write output results back to the file system.
20
+ *
21
+ * ### Example Usage:
22
+ * ```ts
23
+ * import { Files } from "@aerokit/sdk/io";
24
+ *
25
+ * // Check if a file exists and read its content
26
+ * const filePath = "/path/to/file.txt";
27
+ * if (Files.exists(filePath)) {
28
+ * const content = Files.readText(filePath);
29
+ * console.log(content);
30
+ * }
31
+ *
32
+ * // Write text to a new file
33
+ * const newFilePath = "/path/to/newfile.txt";
34
+ * Files.writeText(newFilePath, "Hello, World!");
35
+ * ```
4
36
  */
5
37
  import { InputStream, OutputStream } from "@aerokit/sdk/io/streams";
6
38
  /**
@@ -1,6 +1,31 @@
1
1
  /**
2
- * Provides a static façade for image manipulation operations,
3
- * primarily focusing on resizing image streams.
2
+ * @module io/image
3
+ * @package @aerokit/sdk/io
4
+ * @name Image
5
+ * @overview
6
+ *
7
+ * The Image class provides a static façade for performing common image manipulation operations, primarily focusing on resizing images. It allows developers to easily resize images by specifying the desired dimensions and output format, while abstracting away the complexities of handling image processing directly.
8
+ *
9
+ * ### Key Features:
10
+ * - **Image Resizing**: The `resize` method enables resizing an image to specified dimensions and output format, making it suitable for various use cases such as generating thumbnails or optimizing images for web delivery.
11
+ *
12
+ * ### Use Cases:
13
+ * - **Thumbnail Generation**: Developers can use the Image class to create smaller versions of images for use as thumbnails in galleries or listings.
14
+ * - **Image Optimization**: Resizing images to appropriate dimensions can help optimize them for faster loading times on websites and applications.
15
+ *
16
+ * ### Example Usage:
17
+ * ```ts
18
+ * import { Image } from "@aerokit/sdk/io";
19
+ * import { InputStream } from "@aerokit/sdk/io/streams";
20
+ *
21
+ * // Assume we have an InputStream containing the original image data
22
+ * const originalImageStream = new InputStream(...);
23
+ *
24
+ * // Resize the image to 200x200 pixels in PNG format
25
+ * const resizedImageStream = Image.resize(originalImageStream, "png", 200, 200);
26
+ *
27
+ * // The resizedImageStream can now be used for further processing or output
28
+ * ```
4
29
  */
5
30
  import { InputStream } from "@aerokit/sdk/io/streams";
6
31
  /**
@@ -1,3 +1,17 @@
1
+ /**
2
+ * @module io/index
3
+ * @package @aerokit/sdk/io
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for input/output operations within the Aerokit SDK. It includes classes and methods for handling various types of data, such as bytes, files, images, streams, and zip archives.
7
+ *
8
+ * The main components of this module are:
9
+ * - Bytes: Represents a byte array and provides methods for manipulating byte data.
10
+ * - Files: Represents file operations and provides methods for reading, writing, and managing files.
11
+ * - Image: Represents image processing functionalities and provides methods for manipulating images.
12
+ * - Streams: Represents stream operations and provides methods for handling data streams.
13
+ * - Zip: Represents zip archive functionalities and provides methods for creating and extracting zip files.
14
+ */
1
15
  export * from "./bytes";
2
16
  export { Bytes as bytes } from "./bytes";
3
17
  export * from "./files";
@@ -1,3 +1,43 @@
1
+ /**
2
+ * @module io/streams
3
+ * @package @aerokit/sdk/io
4
+ * @name Streams
5
+ * @overview
6
+ *
7
+ * The Streams module provides core functionality for input/output stream management, including stream creation, data transfer, and byte array handling. It abstracts the complexities of working with streams in JavaScript by providing a set of classes and methods that wrap native Java stream objects, allowing developers to easily read from and write to streams in a consistent manner.
8
+ *
9
+ * ### Key Features:
10
+ * - **Stream Copying**: Methods for copying data between input and output streams, with support for both small and large data transfers.
11
+ * - **Resource Stream Creation**: Ability to create input streams from resources accessible via the class loader, facilitating access to bundled resources.
12
+ * - **Byte Array Handling**: Methods for creating streams from JavaScript byte arrays and retrieving byte data from streams in both JavaScript and native formats.
13
+ * - **Text Handling**: Methods for reading and writing text data to streams, with automatic encoding and decoding based on the platform's default character set.
14
+ *
15
+ * ### Use Cases:
16
+ * - **File I/O**: Reading from and writing to files using streams, which is essential for handling large files without consuming excessive memory.
17
+ * - **Network Communication**: Managing input and output streams for network sockets or HTTP requests/responses.
18
+ * - **Data Transformation**: Using streams to transform data on-the-fly, such as compressing or encrypting data as it is read or written.
19
+ *
20
+ * ### Example Usage:
21
+ * ```ts
22
+ * import { Streams, InputStream, OutputStream } from "@aerokit/sdk/io";
23
+ *
24
+ * // Create an input stream from a resource
25
+ * const inputStream = Streams.getResourceAsByteArrayInputStream("data/input.txt");
26
+ *
27
+ * // Create an output stream to write to a file
28
+ * const outputStream = new OutputStream(...);
29
+ *
30
+ * // Copy data from the input stream to the output stream
31
+ * Streams.copy(inputStream, outputStream);
32
+ *
33
+ * // Read text from the input stream
34
+ * const text = inputStream.readText();
35
+ * console.log(text);
36
+ *
37
+ * // Write text to the output stream
38
+ * outputStream.writeText("Hello, World!");
39
+ * ```
40
+ */
1
41
  /**
2
42
  * The Streams class provides static utility methods for stream creation,
3
43
  * manipulation, and data copying.
@@ -1,3 +1,35 @@
1
+ /**
2
+ * @module io/zip
3
+ * @package @aerokit/sdk/io
4
+ * @name Zip
5
+ * @overview
6
+ *
7
+ * The Zip class provides a façade for handling ZIP archive operations, including file compression, decompression, and stream-based entry processing. It allows developers to easily create and extract ZIP files using both file paths and stream-based APIs, abstracting away the complexities of working with ZIP archives directly.
8
+ *
9
+ * ### Key Features:
10
+ * - **File-Based Operations**: The `zip` and `unzip` methods allow for straightforward compression and extraction of files and directories using file system paths.
11
+ * - **Stream-Based APIs**: The `createZipInputStream` and `createZipOutputStream` methods enable working with ZIP data in memory or through network streams, providing flexibility for various use cases.
12
+ *
13
+ * ### Use Cases:
14
+ * - **File Archiving**: Developers can use the Zip class to create ZIP archives of files and directories for backup, distribution, or storage purposes.
15
+ * - **Data Streaming**: The stream-based APIs are useful for scenarios where ZIP data needs to be processed on-the-fly, such as streaming a ZIP file over HTTP or processing ZIP data from an external source without saving it to disk.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Zip } from "@aerokit/sdk/io";
20
+ * * // Zip a directory
21
+ * Zip.zip('/path/to/source', '/path/to/archive.zip');
22
+ * // Unzip an archive
23
+ * Zip.unzip('/path/to/archive.zip', '/path/to/destination');
24
+ * // Create a ZipOutputStream to write ZIP data to an OutputStream
25
+ * const outputStream = new OutputStream(...);
26
+ * const zipOutputStream = Zip.createZipOutputStream(outputStream);
27
+ * zipOutputStream.createZipEntry('file.txt');
28
+ * zipOutputStream.writeText('Hello, ZIP!');
29
+ * zipOutputStream.closeEntry();
30
+ * zipOutputStream.close();
31
+ * ```
32
+ */
1
33
  import { InputStream, OutputStream } from "@aerokit/sdk/io/streams";
2
34
  /**
3
35
  * The Zip class provides static utility methods for managing ZIP archives
@@ -1,3 +1,32 @@
1
+ /**
2
+ * @module job/decorators
3
+ * @package @aerokit/sdk/job
4
+ * @name Decorators
5
+ * @overview
6
+ *
7
+ * This module provides a set of decorators for defining scheduled jobs in a declarative manner. The decorators allow developers to annotate classes to specify that they should be executed according to a specified schedule, making it easier to create and manage scheduled tasks within the application.
8
+ *
9
+ * ### Key Features:
10
+ * - **Scheduled Decorator**: The `@Scheduled` decorator is used to mark a class as a scheduled job, which will be executed based on a cron expression defined in the decorator's options.
11
+ *
12
+ * ### Use Cases:
13
+ * - **Task Scheduling**: These decorators are primarily used for defining tasks that need to run at specific intervals or times, such as data cleanup, report generation, or any recurring background processing.
14
+ * - **Code Organization**: By using decorators, developers can keep their code organized and maintainable, separating the scheduling logic from the business logic within their job classes.
15
+ *
16
+ * ### Example Usage:
17
+ * ```ts
18
+ * import { Scheduled } from "@aerokit/sdk/job";
19
+ *
20
+ * @Scheduled({ expression: "0/10 * * * * ?", group: "defined" })
21
+ * class MyScheduledJob {
22
+ * execute() {
23
+ * // Logic to be executed every 10 seconds
24
+ * }
25
+ * }
26
+ *
27
+ * // The job will be automatically scheduled based on the provided cron expression.
28
+ * ```
29
+ */
1
30
  export interface ScheduledOptions {
2
31
  expression: string;
3
32
  group?: string;
@@ -1,3 +1,14 @@
1
+ /**
2
+ * @module job/index
3
+ * @package @aerokit/sdk/job
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for job scheduling and execution within the Aerokit SDK. It includes classes and methods for defining, scheduling, and managing jobs in a modular architecture.
7
+ *
8
+ * The main components of this module are:
9
+ * - Scheduler: Represents a job scheduler that allows you to define and manage scheduled jobs.
10
+ * - Decorators: Provides decorators for defining jobs and their properties in a declarative manner.
11
+ */
1
12
  export { Scheduler as scheduler } from "./scheduler";
2
13
  export * from "./scheduler";
3
14
  export * as decorators from "./decorators";
@@ -1,6 +1,37 @@
1
1
  /**
2
- * Provides the API for managing scheduled jobs and tasks within the platform,
3
- * allowing users to retrieve, enable, disable, and trigger jobs, as well as log output.
2
+ * @module job/scheduler
3
+ * @package @aerokit/sdk/job
4
+ * @name Scheduler
5
+ * @overview
6
+ *
7
+ * The Scheduler class provides a static façade for managing scheduled jobs and tasks within the platform. It allows users to retrieve job definitions, enable or disable jobs, trigger immediate execution, and log output associated with specific job instances. The Scheduler interacts with the underlying job scheduling system to facilitate the execution of recurring tasks based on cron expressions or other scheduling criteria.
8
+ *
9
+ * ### Key Features:
10
+ * - **Job Retrieval**: Methods to retrieve all job definitions or a specific job by name.
11
+ * - **Job Control**: Methods to enable, disable, or trigger jobs on demand.
12
+ * - **Logging**: Methods to log messages at various levels (standard, error, warning, info) for specific job instances.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Task Scheduling**: Developers can use the Scheduler to manage tasks that need to run at specific intervals, such as data cleanup, report generation, or any recurring background processing.
16
+ * - **Monitoring and Debugging**: The logging methods allow developers to track the execution of jobs and diagnose issues by associating log messages with specific job instances.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Scheduler } from "@aerokit/sdk/job";
21
+ *
22
+ * // Retrieve all job definitions
23
+ * const jobs = Scheduler.getJobs();
24
+ * console.log(jobs);
25
+ *
26
+ * // Enable a specific job
27
+ * Scheduler.enable("myScheduledJob");
28
+ *
29
+ * // Trigger a job immediately with parameters
30
+ * Scheduler.trigger("myScheduledJob", { param1: "value1", param2: "value2" });
31
+ *
32
+ * // Log a message for a specific job instance
33
+ * Scheduler.log("myScheduledJob", "This is a log message for the job instance.");
34
+ * ```
4
35
  */
5
36
  /**
6
37
  * The Scheduler class provides static methods for interacting with the job scheduler,
@@ -1 +1,11 @@
1
+ /**
2
+ * @module junit/index
3
+ * @package @aerokit/sdk/junit
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for JUnit testing within the Aerokit SDK. It includes classes and methods for defining and executing JUnit tests, as well as managing test suites and test cases in a modular architecture.
7
+ *
8
+ * The main components of this module are:
9
+ * - JUnit: Represents a registry for managing JUnit tests and provides methods to define and execute tests.
10
+ */
1
11
  export * from "./junit";
@@ -1,3 +1,34 @@
1
+ /**
2
+ * @module junit/junit
3
+ * @package @aerokit/sdk/junit
4
+ * @name JUnit
5
+ * @overview
6
+ *
7
+ * The JUnit module provides a set of utility functions for defining tests and performing assertions, wrapping the native JUnit Assertions for use in TypeScript/JavaScript tests. It allows developers to write test cases in a familiar format while leveraging the powerful assertion capabilities of JUnit, making it easier to validate code behavior and ensure correctness.
8
+ *
9
+ * ### Key Features:
10
+ * - **Test Definition**: The `test` function allows developers to define individual test cases with a descriptive name and a function containing the test logic.
11
+ * - **Assertions**: Functions such as `assertEquals`, `assertNotEquals`, `assertTrue`, `assertFalse`, and `fail` provide a variety of assertion methods to validate conditions and compare values within tests.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Unit Testing**: These utilities are primarily used for writing unit tests to verify the functionality of individual components or functions in isolation.
15
+ * - **Integration Testing**: They can also be used in integration tests to validate the behavior of multiple components working together, ensuring that they interact correctly.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { test, assertEquals, assertTrue } from "@aerokit/sdk/junit";
20
+ *
21
+ * test("should add two numbers correctly", () => {
22
+ * const result = add(2, 3);
23
+ * assertEquals(5, result);
24
+ * });
25
+ *
26
+ * test("should return true for valid input", () => {
27
+ * const isValid = validateInput("valid input");
28
+ * assertTrue(isValid);
29
+ * });
30
+ * ```
31
+ */
1
32
  /**
2
33
  * Defines a test case.
3
34
  *
@@ -1,3 +1,34 @@
1
+ /**
2
+ * @module kafka/consumer
3
+ * @package @aerokit/sdk/kafka
4
+ * @name Consumer
5
+ * @overview
6
+ *
7
+ * The Consumer module provides an API for configuring and managing Kafka consumers, allowing scripts to start and stop listening to specific topics. It abstracts the complexities of Kafka consumer configuration and lifecycle management, enabling developers to easily integrate Kafka message consumption into their applications.
8
+ *
9
+ * ### Key Features:
10
+ * - **Topic Configuration**: The `Consumer.topic` method allows developers to create a topic configuration wrapper with specified destination and properties.
11
+ * - **Background Listening**: The `startListening` method starts a background process that listens for messages on the configured topic, invoking a specified handler function for incoming messages.
12
+ * - **Graceful Shutdown**: The `stopListening` method allows developers to stop the background listening process based on the topic and configuration.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Real-time Data Processing**: Developers can use this module to consume messages from Kafka topics in real-time, enabling use cases such as stream processing, event-driven architectures, and microservices communication.
16
+ * - **Integration with Other Systems**: By consuming Kafka messages, applications can integrate with other systems that produce messages to Kafka, facilitating data flow across different components of an ecosystem.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Consumer } from "@aerokit/sdk/kafka";
21
+ *
22
+ * // Create a consumer for the "orders" topic with specific configuration
23
+ * const ordersConsumer = Consumer.topic("orders", { "group.id": "order-processors" });
24
+ *
25
+ * // Start listening to the "orders" topic with a message handler and timeout
26
+ * ordersConsumer.startListening("handleOrderMessage", 30000);
27
+ *
28
+ * // Later, stop listening to the "orders" topic
29
+ * ordersConsumer.stopListening();
30
+ * ```
31
+ */
1
32
  /**
2
33
  * The Consumer class acts as the main entry point for creating and configuring
3
34
  * Kafka topic consumers.
@@ -1,3 +1,14 @@
1
+ /**
2
+ * @module kafka/index
3
+ * @package @aerokit/sdk/kafka
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for Kafka integration within the Aerokit SDK. It includes classes and methods for producing and consuming messages from Kafka topics, as well as managing Kafka configurations and connections.
7
+ *
8
+ * The main components of this module are:
9
+ * - Consumer: Represents a Kafka consumer that can subscribe to topics and consume messages.
10
+ * - Producer: Represents a Kafka producer that can send messages to topics.
11
+ */
1
12
  export { Consumer as consumer } from "./consumer";
2
13
  export * from "./consumer";
3
14
  export { Producer as producer } from "./producer";
@@ -1,3 +1,34 @@
1
+ /**
2
+ * @module kafka/producer
3
+ * @package @aerokit/sdk/kafka
4
+ * @name Producer
5
+ * @overview
6
+ *
7
+ * The Producer module provides an API for configuring and managing Kafka producers, allowing scripts to create topics, send messages, and close the producer connection. It abstracts the complexities of Kafka producer configuration and message sending, enabling developers to easily integrate Kafka message production into their applications.
8
+ *
9
+ * ### Key Features:
10
+ * - **Topic Configuration**: The `Producer.topic` method allows developers to create a topic configuration wrapper with specified destination and properties.
11
+ * - **Message Sending**: The `send` method on the Topic class enables sending messages with optional keys to the configured Kafka topic.
12
+ * - **Connection Management**: The `close` method allows developers to close the Kafka producer connection pool, ensuring proper resource cleanup.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Event Production**: Developers can use this module to produce messages to Kafka topics in real-time, enabling use cases such as event-driven architectures and microservices communication.
16
+ * - **Integration with Other Systems**: By sending Kafka messages, applications can integrate with other systems that consume messages from Kafka, facilitating data flow across different components of an ecosystem.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Producer } from "@aerokit/sdk/kafka";
21
+ *
22
+ * // Create a producer for the "orders" topic with specific configuration
23
+ * const ordersProducer = Producer.topic("orders", { "bootstrap.servers": "localhost:9092" });
24
+ *
25
+ * // Send a message with a key to the "orders" topic
26
+ * ordersProducer.send("order123", "New order placed");
27
+ *
28
+ * // Later, close the producer connection
29
+ * Producer.close({ "bootstrap.servers": "localhost:9092" });
30
+ * ```
31
+ */
1
32
  /**
2
33
  * The Producer class serves as the main entry point for creating and configuring
3
34
  * Kafka topic producers.
@@ -1,2 +1,12 @@
1
+ /**
2
+ * @module log/index
3
+ * @package @aerokit/sdk/log
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for logging within the Aerokit SDK. It includes classes and methods for managing loggers, configuring logging settings, and writing log messages at various levels (e.g., info, warning, error).
7
+ *
8
+ * The main components of this module are:
9
+ * - Logging: Represents a logging utility that provides methods to create loggers and write log messages.
10
+ */
1
11
  export { Logging as logging } from "./logging";
2
12
  export * from "./logging";
@@ -1,3 +1,35 @@
1
+ /**
2
+ * @module log/logging
3
+ * @package @aerokit/sdk/log
4
+ * @name Logging
5
+ * @overview
6
+ *
7
+ * The Logging module provides a structured and flexible logging API for applications, allowing developers to create named loggers and emit log messages at various levels (e.g., DEBUG, INFO, WARN, ERROR). The module abstracts the underlying logging implementation, providing a consistent interface for logging across the application. It supports message formatting with variable arguments and can handle error objects to include stack traces in log outputs.
8
+ *
9
+ * ### Key Features:
10
+ * - **Named Loggers**: Create loggers with specific names to categorize log messages (e.g., 'com.app.service').
11
+ * - **Leveled Logging**: Emit log messages at different levels (DEBUG, INFO, WARN, ERROR) with the ability to set logging thresholds.
12
+ * - **Message Formatting**: Support for message templates with variable arguments for dynamic log content.
13
+ * - **Error Handling**: Ability to include Error objects in log messages to capture stack traces and error details.
14
+ *
15
+ * ### Use Cases:
16
+ * - **Application Logging**: Use the Logging module to emit log messages throughout your application for debugging, monitoring, and auditing purposes.
17
+ * - **Error Tracking**: Log errors with stack traces to facilitate troubleshooting and issue resolution.
18
+ * - **Performance Monitoring**: Emit log messages at different levels to monitor application performance and behavior under various conditions.
19
+ *
20
+ * ### Example Usage:
21
+ * ```ts
22
+ * import { Logging } from "@aerokit/sdk/log";
23
+ *
24
+ * const logger = Logging.getLogger("com.app.service");
25
+ * logger.setLevel("DEBUG");
26
+ *
27
+ * logger.debug("Debugging value: {0}", someVariable);
28
+ * logger.info("Service started successfully");
29
+ * logger.warn("Low disk space warning");
30
+ * logger.error("An error occurred while processing request", new Error("Database connection failed"));
31
+ * ```
32
+ */
1
33
  /**
2
34
  * The main entry point for the logging API. Use this class to obtain a named
3
35
  * logger instance.
@@ -1,3 +1,30 @@
1
+ /**
2
+ * @module mail/client
3
+ * @package @aerokit/sdk/mail
4
+ * @name MailClient
5
+ * @overview
6
+ *
7
+ * The MailClient provides a client for sending emails, supporting both simple text/HTML messages and complex multipart messages with attachments or inline content. It abstracts the underlying Java MailFacade, allowing developers to send emails using a straightforward API while handling recipient processing and content formatting internally.
8
+ *
9
+ * ### Key Features:
10
+ * - **Simple Email Sending**: The `send` method allows sending basic emails with a single text or HTML body.
11
+ * - **Multipart Email Support**: The `sendMultipart` method enables sending complex emails composed of multiple parts, including attachments and inline content.
12
+ * - **Recipient Handling**: Supports flexible recipient specifications, allowing for 'to', 'cc', and 'bcc' fields to be provided as either strings or arrays.
13
+ * - **Configuration Options**: The constructor accepts an optional configuration object for customizing the mail client (e.g., SMTP settings).
14
+ *
15
+ * ### Use Cases:
16
+ * - **Notification Emails**: Use the MailClient to send notifications, alerts, or updates to users via email.
17
+ * - **Transactional Emails**: Send transactional emails such as order confirmations, password resets, or account activations.
18
+ * - **Rich Content Emails**: Leverage multipart email capabilities to include attachments, inline images, or mixed content in emails.
19
+ *
20
+ * ### Example Usage:
21
+ * ```ts
22
+ * import { MailClient } from "@aerokit/sdk/mail";
23
+ *
24
+ * // Send a simple HTML email
25
+ * MailClient.send("user@example.com", "Subject", "<p>Hello, World!</p>", "html");
26
+ * ```
27
+ */
1
28
  /**
2
29
  * Defines the structure for specifying email recipients.
3
30
  * Recipients can be provided as a single email string or an array of strings.
@@ -1,2 +1,12 @@
1
+ /**
2
+ * @module mail/index
3
+ * @package @aerokit/sdk/mail
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for email handling within the Aerokit SDK. It includes classes and methods for sending emails, managing email templates, and configuring email settings.
7
+ *
8
+ * The main components of this module are:
9
+ * - MailClient: Represents a client for sending emails and provides methods to configure email settings and send email messages.
10
+ */
1
11
  export * from "./client";
2
12
  export { MailClient as client } from "./client";
@@ -1,6 +1,33 @@
1
1
  /**
2
- * Provides an API for consuming messages from JMS-style destinations,
3
- * supporting both Queues (point-to-point) and Topics (publish/subscribe).
2
+ * @module messaging/consumer
3
+ * @package @aerokit/sdk/messaging
4
+ * @name Consumer
5
+ * @overview
6
+ *
7
+ * The Consumer module provides an API for consuming messages from JMS-style destinations, supporting both Queues (point-to-point) and Topics (publish/subscribe). It abstracts the complexities of message consumption, allowing developers to easily receive messages from configured destinations with optional timeout handling.
8
+ *
9
+ * ### Key Features:
10
+ * - **Queue and Topic Support**: The module supports both Queue and Topic consumers, enabling different messaging patterns (point-to-point and publish/subscribe).
11
+ * - **Synchronous Message Reception**: The `receive` method allows for synchronous message retrieval with an optional timeout parameter.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Message-Driven Applications**: Developers can use this module to build applications that react to messages received from queues or topics, enabling event-driven architectures.
15
+ * - **Integration with Messaging Systems**: By consuming messages from JMS-style destinations, applications can integrate with various messaging systems that support these patterns.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Consumer } from "@aerokit/sdk/messaging";
20
+ *
21
+ * // Create a Queue consumer for 'orders.queue'
22
+ * const queueConsumer = Consumer.queue("orders.queue");
23
+ * const messageFromQueue = queueConsumer.receive(5000); // Wait up to 5 seconds for a message
24
+ * console.log("Received from queue:", messageFromQueue);
25
+ *
26
+ * // Create a Topic consumer for 'market.updates.topic'
27
+ * const topicConsumer = Consumer.topic("market.updates.topic");
28
+ * const messageFromTopic = topicConsumer.receive(5000); // Wait up to 5 seconds for a message
29
+ * console.log("Received from topic:", messageFromTopic);
30
+ * ```
4
31
  */
5
32
  /**
6
33
  * The entry point for creating messaging consumers.
@@ -1,3 +1,35 @@
1
+ /**
2
+ * @module messaging/decorators
3
+ * @package @aerokit/sdk/messaging
4
+ * @name Decorators
5
+ * @overview
6
+ *
7
+ * This module provides a set of decorators for defining messaging consumers in a declarative manner. The decorators allow developers to annotate classes to specify that they should act as consumers for specific messaging destinations, such as queues or topics. This makes it easier to create and manage message-driven components within the application.
8
+ *
9
+ * ### Key Features:
10
+ * - **Listener Decorator**: The `@Listener` decorator is used to mark a class as a messaging consumer, specifying the destination name and type (e.g., Queue or Topic).
11
+ *
12
+ * ### Use Cases:
13
+ * - **Message-Driven Applications**: These decorators are primarily used for defining components that react to messages received from queues or topics, enabling event-driven architectures.
14
+ * - **Integration with Messaging Systems**: By using these decorators, developers can easily integrate their applications with various messaging systems that support JMS-style patterns.
15
+ *
16
+ * ### Example Usage:
17
+ * ```ts
18
+ * import { Listener } from "@aerokit/sdk/messaging";
19
+ *
20
+ * @Listener({ name: "orders.queue", kind: "Queue" })
21
+ * class OrderConsumer {
22
+ * // Logic to consume messages from 'orders.queue'
23
+ * }
24
+ *
25
+ * @Listener({ name: "market.updates.topic", kind: "Topic" })
26
+ * class MarketUpdatesConsumer {
27
+ * // Logic to consume messages from 'market.updates.topic'
28
+ * }
29
+ *
30
+ * // The consumers will be automatically registered based on the provided metadata.
31
+ * ```
32
+ */
1
33
  export interface ListenerOptions {
2
34
  name: string;
3
35
  kind: string;
@@ -1,3 +1,15 @@
1
+ /**
2
+ * @module messaging/index
3
+ * @package @aerokit/sdk/messaging
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for messaging within the Aerokit SDK. It includes classes and methods for producing and consuming messages from various messaging systems, as well as managing messaging configurations and connections.
7
+ *
8
+ * The main components of this module are:
9
+ * - Consumer: Represents a message consumer that can subscribe to topics and consume messages.
10
+ * - Producer: Represents a message producer that can send messages to topics.
11
+ * - Decorators: Provides decorators for defining message handlers and producers in a modular architecture.
12
+ */
1
13
  export { Consumer as consumer } from "./consumer";
2
14
  export * from "./consumer";
3
15
  export { Producer as producer } from "./producer";