@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,31 @@
1
1
  /**
2
- * Provides an API for producing (sending) messages to JMS-style destinations,
3
- * supporting both Queues (point-to-point) and Topics (publish/subscribe).
2
+ * @module messaging/producer
3
+ * @package @aerokit/sdk/messaging
4
+ * @name Producer
5
+ * @overview
6
+ *
7
+ * The Producer module provides an API for configuring and managing messaging producers, allowing scripts to send messages to JMS-style destinations such as Queues and Topics. It abstracts the complexities of message production, enabling developers to easily integrate message sending capabilities into their applications.
8
+ *
9
+ * ### Key Features:
10
+ * - **Queue and Topic Support**: The module supports both Queue and Topic producers, enabling different messaging patterns (point-to-point and publish/subscribe).
11
+ * - **Message Sending**: The `send` method allows for sending messages to the configured destinations.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Event Production**: Developers can use this module to produce messages to queues or topics, enabling use cases such as event-driven architectures and microservices communication.
15
+ * - **Integration with Messaging Systems**: By sending messages to JMS-style destinations, applications can integrate with various messaging systems that support these patterns.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Producer } from "@aerokit/sdk/messaging";
20
+ *
21
+ * // Create a Queue producer for 'task.queue'
22
+ * const queueProducer = Producer.queue("task.queue");
23
+ * queueProducer.send("New task created");
24
+ *
25
+ * // Create a Topic producer for 'sensor.data.topic'
26
+ * const topicProducer = Producer.topic("sensor.data.topic");
27
+ * topicProducer.send("Temperature reading: 22°C");
28
+ * ```
4
29
  */
5
30
  /**
6
31
  * The entry point for creating messaging producers.
@@ -1,3 +1,40 @@
1
+ /**
2
+ * @module mongodb/client
3
+ * @package @aerokit/sdk/mongodb
4
+ * @name Client
5
+ * @overview
6
+ *
7
+ * The Client module provides a high-level API for connecting to MongoDB databases and performing operations on collections. It abstracts the underlying MongoDB Java driver, allowing developers to interact with MongoDB using familiar JavaScript objects and methods. The module includes classes for managing database connections, accessing collections, and executing queries, making it easier to integrate MongoDB into applications built on the Dirigible platform.
8
+ *
9
+ * ### Key Features:
10
+ * - **MongoDB Connection Management**: The `Client` class allows for connecting to MongoDB using a connection URI and credentials.
11
+ * - **Database and Collection Access**: The `DB` and `DBCollection` classes provide methods for accessing databases and collections, as well as performing CRUD operations.
12
+ * - **Querying and Cursor Management**: The `DBCursor` class enables iterating over query results with support for sorting, limiting, and batch processing.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Data Storage and Retrieval**: Developers can use this module to store and retrieve data in MongoDB, leveraging its flexible document model.
16
+ * - **Integration with MongoDB**: By providing a JavaScript-friendly API, this module facilitates integration with MongoDB in applications running on the Dirigible platform.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Client } from "@aerokit/sdk/mongodb";
21
+ *
22
+ * // Create a MongoDB client and connect to the database
23
+ * const client = new Client("mongodb://localhost:27017", "username", "password");
24
+ * const db = client.getDB("myDatabase");
25
+ * const collection = db.getCollection("myCollection");
26
+ *
27
+ * // Insert a document into the collection
28
+ * collection.insert({ name: "Alice", age: 30 });
29
+ *
30
+ * // Find documents in the collection
31
+ * const cursor = collection.find({ age: { $gt: 25 } });
32
+ * while (cursor.hasNext()) {
33
+ * const doc = cursor.next();
34
+ * console.log(doc);
35
+ * }
36
+ * ```
37
+ */
1
38
  /**
2
39
  * Define a common type for input to functions that accept either a plain JavaScript object
3
40
  * (which will be implicitly converted to DBObject) or an existing DBObject wrapper instance.
@@ -1,3 +1,56 @@
1
+ /**
2
+ * @module mongodb/dao
3
+ * @package @aerokit/sdk/mongodb
4
+ * @name DAO
5
+ * @overview
6
+ *
7
+ * The DAO (Data Access Object) module provides a high-level abstraction for performing CRUD operations on MongoDB collections. It defines a DAO class that encapsulates the logic for interacting with MongoDB, including entity validation, transformation, and database operations. The module also includes a factory function for creating DAO instances based on ORM definitions.
8
+ *
9
+ * ### Key Features:
10
+ * - **Entity Validation**: The DAO class includes methods for validating entities against mandatory properties defined in the ORM.
11
+ * - **Entity Transformation**: The `createNoSQLEntity` method transforms JavaScript objects into a format suitable for MongoDB storage, applying any necessary transformations defined in the ORM.
12
+ * - **CRUD Operations**: The DAO class provides methods for inserting, updating, deleting, and querying entities in MongoDB collections.
13
+ * - **Logging**: The module integrates with the logging system to provide detailed logs of database operations and errors.
14
+ *
15
+ * ### Use Cases:
16
+ * - **Data Management**: Developers can use the DAO module to manage data stored in MongoDB collections, performing CRUD operations with ease.
17
+ * - **ORM Integration**: By defining ORM specifications, developers can leverage the DAO module to ensure consistent data handling and validation across their application.
18
+ *
19
+ * ### Example Usage:
20
+ * ```ts
21
+ * import { dao } from "@aerokit/sdk/mongodb";
22
+ *
23
+ * // Define an ORM specification for a "users" collection
24
+ * const userOrm = {
25
+ * table: "users",
26
+ * primaryKey: { name: "id" },
27
+ * mandatoryProperties: [
28
+ * { name: "name", type: "VARCHAR" },
29
+ * { name: "email", type: "VARCHAR" }
30
+ * ],
31
+ * optionalProperties: [
32
+ * { name: "age", type: "INTEGER" }
33
+ * ]
34
+ * };
35
+ *
36
+ * // Create a DAO instance for the "users" collection
37
+ * const userDao = dao(userOrm);
38
+ *
39
+ * // Insert a new user entity
40
+ * const newUserId = userDao.insert({ name: "Alice", email: "alice@example.com" });
41
+ *
42
+ * // Find the inserted user entity
43
+ * const user = userDao.find(newUserId);
44
+ * console.log("User found:", user);
45
+ *
46
+ * // Update the user entity
47
+ * user.age = 30;
48
+ * userDao.update(user);
49
+ *
50
+ * // Delete the user entity
51
+ * userDao.remove(newUserId);
52
+ * ```
53
+ */
1
54
  export declare class DAO {
2
55
  private orm;
3
56
  $log: any;
@@ -1,2 +1,13 @@
1
+ /**
2
+ * @module mongodb/index
3
+ * @package @aerokit/sdk/mongodb
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for MongoDB integration within the Aerokit SDK. It includes classes and methods for connecting to MongoDB databases, performing CRUD operations, and managing MongoDB collections and documents.
7
+ *
8
+ * The main components of this module are:
9
+ * - Client: Represents a client for connecting to a MongoDB database and provides methods to perform operations on the database.
10
+ * - Dao: Represents a Data Access Object (DAO) for managing MongoDB collections and documents, providing methods for CRUD operations and query execution.
11
+ */
1
12
  export * as client from "./client";
2
13
  export * as dao from "./dao";
@@ -1,3 +1,30 @@
1
+ /**
2
+ * @module net/decorators
3
+ * @package @aerokit/sdk/net
4
+ * @name Decorators
5
+ * @overview
6
+ *
7
+ * This module provides a set of decorators for defining WebSocket endpoints in a declarative manner. The decorators allow developers to annotate classes to specify that they should act as WebSocket handlers, defining the endpoint and associated metadata. This makes it easier to create and manage WebSocket-based communication within the application.
8
+ *
9
+ * ### Key Features:
10
+ * - **WebSocket Decorator**: The `@Websocket` decorator is used to mark a class as a WebSocket handler, specifying the endpoint and associated metadata.
11
+ *
12
+ * ### Use Cases:
13
+ * - **Real-Time Communication**: These decorators are primarily used for defining components that handle WebSocket connections, enabling real-time communication between clients and the server.
14
+ * - **Integration with WebSocket Systems**: By using these decorators, developers can easily integrate their applications with WebSocket-based systems and protocols.
15
+ *
16
+ * ### Example Usage:
17
+ * ```ts
18
+ * import { Websocket } from "@aerokit/sdk/net";
19
+ *
20
+ * @Websocket({ name: "MyWebsocket", endpoint: "my-ws" })
21
+ * class MyWebsocketHandler {
22
+ * // Logic to handle WebSocket connections at the 'my-ws' endpoint
23
+ * }
24
+ *
25
+ * // The WebSocket handler will be automatically registered based on the provided metadata.
26
+ * ```
27
+ */
1
28
  export interface WebsocketOptions {
2
29
  name: string;
3
30
  endpoint: string;
@@ -1,3 +1,16 @@
1
+ /**
2
+ * @module net/index
3
+ * @package @aerokit/sdk/net
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for network communication within the Aerokit SDK. It includes classes and methods for handling various network protocols, such as HTTP, SOAP, WebSockets, and more. The module also provides decorators for defining network-related functionalities in a modular architecture.
7
+ *
8
+ * The main components of this module are:
9
+ * - HTTP: Represents an HTTP client for making HTTP requests and handling responses.
10
+ * - SOAP: Represents a SOAP client for interacting with SOAP-based web services.
11
+ * - WebSockets: Represents a WebSocket client for establishing and managing WebSocket connections.
12
+ * - Decorators: Provides decorators for defining network-related functionalities in a declarative manner.
13
+ */
1
14
  export * from "./soap";
2
15
  export { SOAP as soap } from "./soap";
3
16
  export * from "./websockets";
@@ -1,3 +1,37 @@
1
+ /**
2
+ * @module net/soap
3
+ * @package @aerokit/sdk/net
4
+ * @name SOAP
5
+ * @overview
6
+ *
7
+ * The SOAP module provides a set of classes and methods for working with SOAP messages in JavaScript. It allows developers to create, parse, and send SOAP messages to SOAP endpoints, abstracting the complexities of the underlying Java SOAP API. This module is essential for integrating with SOAP-based web services and enables seamless communication using the SOAP protocol.
8
+ *
9
+ * ### Key Features:
10
+ * - **Message Creation**: The `SOAP` class provides methods to create new SOAP messages, including the ability to add namespaces, headers, and body elements.
11
+ * - **Message Parsing**: The module allows parsing of incoming SOAP messages from HTTP requests, enabling developers to handle SOAP requests in their applications.
12
+ * - **SOAP Calls**: The `call` method enables sending SOAP messages to specified endpoints and receiving responses, facilitating communication with SOAP-based web services.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Integrating with SOAP Web Services**: Developers can use this module to interact with existing SOAP web services, sending requests and processing responses in a structured manner.
16
+ * - **Building SOAP Endpoints**: By parsing incoming SOAP messages, developers can create applications that act as SOAP endpoints, handling requests and providing appropriate responses.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { SOAP } from "@aerokit/sdk/net";
21
+ *
22
+ * // Create a new SOAP message
23
+ * const message = SOAP.createMessage();
24
+ * const envelope = message.getPart().getEnvelope();
25
+ * envelope.addNamespaceDeclaration("ns", "http://example.com/namespace");
26
+ * const body = envelope.getBody();
27
+ * const element = body.addChildElement("MyRequest", "ns");
28
+ * element.addTextNode("Request data");
29
+ *
30
+ * // Send the SOAP message to an endpoint
31
+ * const response = SOAP.call(message, "http://example.com/soap-endpoint");
32
+ * console.log(response.getText());
33
+ * ```
34
+ */
1
35
  import { InputStream } from "@aerokit/sdk/io/streams";
2
36
  /**
3
37
  * Utility class for creating, parsing, and calling SOAP messages.
@@ -1,3 +1,37 @@
1
+ /**
2
+ * @module net/websockets
3
+ * @package @aerokit/sdk/net
4
+ * @name Websockets
5
+ * @overview
6
+ *
7
+ * The Websockets module provides an API for managing WebSocket clients and handling lifecycle events within the application context. It abstracts the complexities of WebSocket communication, allowing developers to easily create and manage WebSocket connections, send messages, and handle events such as connection openings, messages, errors, and closures.
8
+ *
9
+ * ### Key Features:
10
+ * - **WebSocket Client Management**: Create and manage WebSocket clients with ease, including sending messages and closing connections.
11
+ * - **Event Handling**: Access event details such as messages and errors within the context of WebSocket event handlers.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Real-Time Communication**: This module is ideal for applications that require real-time communication between clients and the server using WebSockets.
15
+ * - **Integration with WebSocket Systems**: By providing a high-level API for WebSocket management, developers can easily integrate their applications with WebSocket-based systems and protocols.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Websockets } from "@aerokit/sdk/net";
20
+ *
21
+ * // Create a new WebSocket client connection
22
+ * const client = Websockets.createWebsocket("ws://example.com/socket", "myHandler");
23
+ * client.send("Hello, WebSocket!");
24
+ *
25
+ * // Access event details in an 'onmessage' handler
26
+ * if (Websockets.isOnMessage()) {
27
+ * const message = Websockets.getMessage();
28
+ * console.log("Received message:", message);
29
+ * }
30
+ *
31
+ * // Close the WebSocket connection when done
32
+ * client.close();
33
+ * ```
34
+ */
1
35
  /**
2
36
  * @class Websockets
3
37
  * @description Static utility class for accessing and managing WebSocket functionality.
@@ -1,2 +1,12 @@
1
+ /**
2
+ * @module pdf/index
3
+ * @package @aerokit/sdk/pdf
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for PDF generation and manipulation within the Aerokit SDK. It includes classes and methods for creating PDF documents, adding content to PDFs, and managing PDF configurations.
7
+ *
8
+ * The main components of this module are:
9
+ * - PDF: Represents a PDF document and provides methods to create and manipulate PDF content.
10
+ */
1
11
  export * from "./pdf";
2
12
  export { PDF as pdf } from "./pdf";
@@ -1,3 +1,42 @@
1
+ /**
2
+ * @module pdf/pdf
3
+ * @package @aerokit/sdk/pdf
4
+ * @name PDF
5
+ * @overview
6
+ *
7
+ * The PDF module provides utilities for generating PDF documents using predefined templates and structured data. It abstracts the complexities of PDF generation, allowing developers to create well-formatted PDF documents with ease. The module includes functionality for generating tables in PDFs based on a standard template, as well as the ability to use custom templates for more advanced use cases.
8
+ *
9
+ * ### Key Features:
10
+ * - **Table Generation**: The `generateTable` method allows for creating PDF documents containing styled tables based on a standard template, using structured data input.
11
+ * - **Custom Template Support**: The `generate` method enables the use of custom templates for PDF generation, providing flexibility for various document layouts and styles.
12
+ * - **Configurable Layout**: Optional configuration parameters allow for customizing page size and alignment of table content within the generated PDF.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Reporting**: Generate PDF reports with tabular data, such as sales reports, inventory lists, or any structured data presentation.
16
+ * - **Document Generation**: Create custom PDF documents for invoices, certificates, or any scenario where a specific layout is required.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { PDF } from "@aerokit/sdk/pdf";
21
+ *
22
+ * const tableData = {
23
+ * title: "Sales Report",
24
+ * description: "Monthly sales data for Q1",
25
+ * columns: [
26
+ * { name: "Product", key: "product" },
27
+ * { name: "Quantity", key: "quantity" },
28
+ * { name: "Price", key: "price" }
29
+ * ],
30
+ * rows: [
31
+ * { product: "Widget A", quantity: 100, price: "$10" },
32
+ * { product: "Widget B", quantity: 50, price: "$20" }
33
+ * ]
34
+ * };
35
+ *
36
+ * const pdfContent = PDF.generateTable(tableData, { size: "a4", alignColumns: true });
37
+ * // pdfContent is a byte array representing the generated PDF document
38
+ * ```
39
+ */
1
40
  /**
2
41
  * Interface defining the structured data required to generate a table in a PDF.
3
42
  */
@@ -37,7 +76,7 @@ export declare class PDF {
37
76
  *
38
77
  * @param {PDFTableData} data The structured data to populate the table.
39
78
  * @param {PDFTableConfig} [config] Optional configuration for page size and alignment.
40
- * @returns {any[]} The generated PDF content as a byte array (Array<number>).
79
+ * @returns {any[]} The generated PDF content as a byte array (number[]).
41
80
  */
42
81
  static generateTable(data: PDFTableData, config?: PDFTableConfig): any[];
43
82
  /**
@@ -45,7 +84,7 @@ export declare class PDF {
45
84
  *
46
85
  * @param {string} templatePath The path to the custom template file (e.g., in the Registry).
47
86
  * @param {PDFTableData} data The data to be injected into the template.
48
- * @returns {any[]} The generated PDF content as a byte array (Array<number>).
87
+ * @returns {any[]} The generated PDF content as a byte array (number[]).
49
88
  */
50
89
  static generate(templatePath: string, data: PDFTableData): any[];
51
90
  /**
@@ -1,3 +1,29 @@
1
+ /**
2
+ * @module platform/command
3
+ * @package @aerokit/sdk/platform
4
+ * @name Command
5
+ * @overview
6
+ *
7
+ * The Command module provides a static utility class for executing system commands through the platform's CommandEngine. It allows developers to run shell commands with configurable options, including working directory and environment variable management. The module abstracts the complexities of process execution, providing a simple interface for integrating command execution into applications.
8
+ *
9
+ * ### Key Features:
10
+ * - **Command Execution**: The `execute` method allows for running system commands with specified options and environment variable configurations.
11
+ * - **Structured Output**: The method returns a structured output containing the exit code, standard output, and error output of the executed command.
12
+ *
13
+ * ### Use Cases:
14
+ * - **System Integration**: This module is ideal for applications that need to interact with the underlying operating system or execute external processes as part of their functionality.
15
+ * - **Automation and Scripting**: Developers can use this module to automate tasks by executing shell commands from within their applications.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Command } from "@aerokit/sdk/platform";
20
+ *
21
+ * const result = Command.execute("ls -l", { workingDirectory: "/home/user" }, { "ENV_VAR": "value" }, ["OLD_ENV_VAR"]);
22
+ * console.log("Exit Code:", result.exitCode);
23
+ * console.log("Standard Output:", result.standardOutput);
24
+ * console.log("Error Output:", result.errorOutput);
25
+ * ```
26
+ */
1
27
  /**
2
28
  * Defines the configuration options for the command execution process.
3
29
  */
@@ -1,3 +1,41 @@
1
+ /**
2
+ * @module platform/engines
3
+ * @package @aerokit/sdk/platform
4
+ * @name Engines
5
+ * @overview
6
+ *
7
+ * The Engines module provides a class for interacting with the platform's execution engines, such as JavaScript or Groovy. It allows developers to execute scripts or processes within the context of a project, passing parameters and optionally enabling debug mode. The module abstracts the complexities of engine execution, providing a simple interface for running code in various supported languages.
8
+ *
9
+ * ### Key Features:
10
+ * - **Engine Type Management**: Retrieve the list of available engine types supported by the platform.
11
+ * - **Script Execution**: Execute project scripts or processes using a specified engine type, with support for passing parameters and enabling debug mode.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Multi-Language Support**: This module is ideal for applications that need to execute code in different languages supported by the platform, such as JavaScript or Groovy.
15
+ * - **Project-Based Execution**: Developers can use this module to run scripts within the context of a project, allowing for better organization and management of code.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Engine } from "@aerokit/sdk/platform";
20
+ *
21
+ * // Get available engine types
22
+ * const engineTypes = Engine.getTypes();
23
+ * console.log("Available Engines:", engineTypes);
24
+ *
25
+ * // Create an instance of the Engine class for JavaScript
26
+ * const jsEngine = new Engine("javascript");
27
+ *
28
+ * // Execute a script within a project context
29
+ * const result = jsEngine.execute(
30
+ * "MyProject",
31
+ * "lib/script.js",
32
+ * "",
33
+ * { param1: "value1", param2: 42 },
34
+ * false
35
+ * );
36
+ * console.log("Execution Result:", result);
37
+ * ```
38
+ */
1
39
  /**
2
40
  * Interface defining the execution parameters expected by the Engine class.
3
41
  */
@@ -1,3 +1,22 @@
1
+ /**
2
+ * @module platform/index
3
+ * @package @aerokit/sdk/platform
4
+ * @overview
5
+ *
6
+ * This module provides platform-specific utilities and abstractions for the Aerokit SDK.
7
+ * It exposes command execution, engine management, lifecycle control, OS information,
8
+ * problem reporting, registry/repository handling, and workspace operations.
9
+ *
10
+ * The main components of this module are:
11
+ * - Command: Execution of platform commands and process interaction.
12
+ * - Engine: Management of pluggable execution engines.
13
+ * - Lifecycle: Application/service lifecycle helpers.
14
+ * - OS: Operating system information and utilities.
15
+ * - Problems: Unified problem reporting and diagnostics collection.
16
+ * - Registry: Package/extension registry interfaces.
17
+ * - Repository: Repository layout and access abstractions.
18
+ * - Workspace: Workspace path and file handling helpers.
19
+ */
1
20
  export * from "./command";
2
21
  export { Command as command } from "./command";
3
22
  export * from "./engines";
@@ -1,3 +1,32 @@
1
+ /**
2
+ * @module platform/lifecycle
3
+ * @package @aerokit/sdk/platform
4
+ * @name Lifecycle
5
+ * @overview
6
+ *
7
+ * The Lifecycle module provides a static utility class for managing the lifecycle of projects on the platform, including publishing and unpublishing projects. It abstracts the complexities of project deployment, allowing developers to easily control the availability of their projects through simple method calls.
8
+ *
9
+ * ### Key Features:
10
+ * - **Project Publishing**: The `publish` method allows developers to publish a specific project or all projects within a workspace for a given user.
11
+ * - **Project Unpublishing**: The `unpublish` method enables developers to unpublish a specific project or all currently deployed projects, making them unavailable for use.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Deployment Management**: This module is ideal for applications that need to manage the deployment status of projects on the platform, allowing for dynamic control over which projects are available at any given time.
15
+ * - **Automated Deployment**: Developers can use this module to automate the publishing and unpublishing of projects as part of their development and deployment workflows.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Lifecycle } from "@aerokit/sdk/platform";
20
+ *
21
+ * // Publish a specific project
22
+ * const publishResult = Lifecycle.publish("john_doe", "my_workspace", "my_project");
23
+ * console.log("Publish Result:", publishResult);
24
+ *
25
+ * // Unpublish all currently deployed projects
26
+ * const unpublishResult = Lifecycle.unpublish();
27
+ * console.log("Unpublish Result:", unpublishResult);
28
+ * ```
29
+ */
1
30
  /**
2
31
  * @class Lifecycle
3
32
  * @description Static utility class to publish and unpublish projects on the platform.
@@ -1,3 +1,33 @@
1
+ /**
2
+ * @module platform/os
3
+ * @package @aerokit/sdk/platform
4
+ * @name OS
5
+ * @overview
6
+ *
7
+ * The OS module provides a static utility class for retrieving operating system information and checking OS types. It leverages the platform's access to Java's SystemUtils for system properties, allowing developers to easily determine the operating system their application is running on. This can be particularly useful for applications that need to perform OS-specific operations or optimizations.
8
+ *
9
+ * ### Key Features:
10
+ * - **OS Name Retrieval**: Access the full name of the operating system through a static constant.
11
+ * - **OS Type Checking**: Static methods to check if the operating system is a variant of Windows or Unix (including Linux, macOS, and BSD).
12
+ *
13
+ * ### Use Cases:
14
+ * - **Cross-Platform Compatibility**: This module is ideal for applications that need to ensure compatibility across different operating systems by conditionally executing code based on the OS type.
15
+ * - **System Information**: Developers can use this module to gather information about the operating system for logging, debugging, or analytics purposes.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { OS } from "@aerokit/sdk/platform";
20
+ *
21
+ * console.log("Operating System:", OS.OS_NAME);
22
+ * if (OS.isWindows()) {
23
+ * console.log("Running on Windows");
24
+ * } else if (OS.isUnix()) {
25
+ * console.log("Running on a Unix-like OS");
26
+ * } else {
27
+ * console.log("Running on an unknown OS");
28
+ * }
29
+ * ```
30
+ */
1
31
  /**
2
32
  * @class OS
3
33
  * @description Provides static methods and constants related to the operating system
@@ -1,3 +1,39 @@
1
+ /**
2
+ * @module platform/problems
3
+ * @package @aerokit/sdk/platform
4
+ * @name Problems
5
+ * @overview
6
+ *
7
+ * The Problems module provides a static utility class for managing system problems and issues through the platform's ProblemsFacade. It allows developers to save new problems, fetch existing ones, update their status, and delete them as needed. This module abstracts the complexities of problem management, providing a simple interface for handling issues that arise during development or runtime.
8
+ *
9
+ * ### Key Features:
10
+ * - **Problem Recording**: Save detailed information about problems, including location, type, cause, and expected outcomes.
11
+ * - **Problem Retrieval**: Fetch individual problems by ID or retrieve all problems with optional filtering and batching.
12
+ * - **Status Management**: Update the status of problems to indicate whether they are active, solved, or ignored.
13
+ * - **Problem Deletion**: Remove specific problems or clear all problems based on their status.
14
+ *
15
+ * ### Use Cases:
16
+ * - **Issue Tracking**: This module is ideal for applications that need to track and manage issues that occur during development or runtime, providing a structured way to log and resolve problems.
17
+ * - **Automated Problem Handling**: Developers can use this module to automate the handling of known issues by updating their status or deleting them as part of maintenance routines.
18
+ *
19
+ * ### Example Usage:
20
+ * ```ts
21
+ * import { Problems } from "@aerokit/sdk/platform";
22
+ *
23
+ * // Save a new problem
24
+ * Problems.save("/path/to/file.js", "Syntax Error", "10", "15", "Unexpected token", "Expected ';'", "Syntax", "JavaScript", "const a = ;", "file.js");
25
+ *
26
+ * // Fetch all problems
27
+ * const allProblems = Problems.fetchAllProblems();
28
+ * console.log("All Problems:", allProblems);
29
+ *
30
+ * // Update the status of a problem
31
+ * Problems.updateStatus(1, Problems.SOLVED);
32
+ *
33
+ * // Delete a specific problem
34
+ * Problems.deleteProblem(1);
35
+ * ```
36
+ */
1
37
  /**
2
38
  * @interface Problem
3
39
  * @description Represents a single problem or issue recorded in the system.
@@ -1,3 +1,42 @@
1
+ /**
2
+ * @module platform/registry
3
+ * @package @aerokit/sdk/platform
4
+ * @name Registry
5
+ * @overview
6
+ *
7
+ * The Registry module provides a set of utilities and data structures for interacting with the platform's Registry/Repository, which manages files and directories (Artefacts and Collections). It allows developers to retrieve content and metadata from the registry using simple JavaScript interfaces, abstracting the underlying complexities of the Java-based registry system. The module includes classes for representing both individual resources (Artefacts) and collections of resources (Directories), as well as a class for accessing detailed metadata about these resources.
8
+ *
9
+ * ### Key Features:
10
+ * - **Content Retrieval**: Methods to get the content of registry resources as byte arrays or text.
11
+ * - **Resource Navigation**: Classes to represent and navigate through directories and artefacts in the registry.
12
+ * - **Metadata Access**: Ability to access detailed information about resources, such as creation date, size, and permissions.
13
+ *
14
+ * ### Use Cases:
15
+ * - **File Management**: This module is ideal for applications that need to manage files and directories within the platform's registry, allowing for easy access and manipulation of stored resources.
16
+ * - **Metadata Analysis**: Developers can use this module to analyze resource metadata for auditing, reporting, or conditional logic based on resource attributes.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Registry } from "@aerokit/sdk/platform";
21
+ *
22
+ * // Get the root directory of the public registry
23
+ * const rootDirectory = Registry.getRoot();
24
+ * console.log("Root Directory Path:", rootDirectory.getPath());
25
+ *
26
+ * // List all artefacts in the root directory
27
+ * const artefacts = rootDirectory.getArtefactsNames();
28
+ * console.log("Artefacts in Root Directory:", artefacts);
29
+ *
30
+ * // Get a specific artefact and its content
31
+ * const myFile = rootDirectory.getArtefact("myFile.txt");
32
+ * if (myFile.exists()) {
33
+ * const content = myFile.getText();
34
+ * console.log("Content of myFile.txt:", content);
35
+ * } else {
36
+ * console.log("myFile.txt does not exist in the registry.");
37
+ * }
38
+ * ```
39
+ */
1
40
  /**
2
41
  * @class Registry
3
42
  * @description Static utility class providing high-level access to the RegistryFacade for
@@ -1,3 +1,43 @@
1
+ /**
2
+ * @module platform/repository
3
+ * @package @aerokit/sdk/platform
4
+ * @name Repository
5
+ * @overview
6
+ *
7
+ * The Repository module provides a wrapper for the platform's RepositoryFacade, allowing developers to manage files (Resources) and folders (Collections) within the repository. It offers high-level methods for creating, retrieving, updating, and deleting resources and collections by their paths, as well as handling content in both string and byte array formats. The module abstracts the complexities of repository interactions, providing a simple interface for file management operations.
8
+ *
9
+ * ### Key Features:
10
+ * - **Resource Management**: Create, retrieve, update, and delete resources (files) with support for both text and binary content.
11
+ * - **Collection Management**: Create, retrieve, and delete collections (folders), as well as manage their contents.
12
+ * - **Metadata Access**: Retrieve detailed information about resources and collections, including permissions, size, and timestamps.
13
+ * - **Search Functionality**: Search for resources using glob patterns to find files matching specific criteria.
14
+ *
15
+ * ### Use Cases:
16
+ * - **File Storage**: This module is ideal for applications that need to store and manage files within the platform's repository, such as configuration files, data exports, or user-generated content.
17
+ * - **Content Management**: Developers can use this module to organize files into collections (folders) and manage their lifecycle effectively.
18
+ *
19
+ * ### Example Usage:
20
+ * ```ts
21
+ * import { Repository } from "@aerokit/sdk/platform";
22
+ *
23
+ * // Create a new resource with text content
24
+ * const resource = Repository.createResource("/myproject/data.txt", "Hello, Repository!", "text/plain");
25
+ * console.log("Resource created at path:", resource.getPath());
26
+ *
27
+ * // Update the resource content with binary data
28
+ * const binaryContent = [0x48, 0x65, 0x6C, 0x6C, 0x6F]; // "Hello" in bytes
29
+ * resource.setContent(binaryContent);
30
+ * console.log("Resource content updated with binary data.");
31
+ *
32
+ * // Create a new collection (folder)
33
+ * const collection = Repository.createCollection("/myproject/documents");
34
+ * console.log("Collection created at path:", collection.getPath());
35
+ *
36
+ * // Move the resource into the new collection
37
+ * resource.moveTo("/myproject/documents/data.txt");
38
+ * console.log("Resource moved to new path:", resource.getPath());
39
+ * ```
40
+ */
1
41
  /**
2
42
  * @class Repository
3
43
  * @description Static utility class providing high-level methods for interacting with the