@aerokit/sdk 12.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/LICENSE +277 -0
  2. package/README.md +170 -0
  3. package/dist/cjs/bpm/deployer.js +57 -0
  4. package/dist/cjs/bpm/index.js +35 -0
  5. package/dist/cjs/bpm/process.js +636 -0
  6. package/dist/cjs/bpm/tasks.js +973 -0
  7. package/dist/cjs/bpm/values.js +82 -0
  8. package/dist/cjs/cache/cache.js +64 -0
  9. package/dist/cjs/cache/index.js +26 -0
  10. package/dist/cjs/cms/cmis.js +689 -0
  11. package/dist/cjs/cms/index.js +26 -0
  12. package/dist/cjs/component/decorators.js +126 -0
  13. package/dist/cjs/component/index.js +36 -0
  14. package/dist/cjs/core/configurations.js +110 -0
  15. package/dist/cjs/core/context.js +47 -0
  16. package/dist/cjs/core/env.js +45 -0
  17. package/dist/cjs/core/globals.js +54 -0
  18. package/dist/cjs/core/index.js +35 -0
  19. package/dist/cjs/db/dao.js +795 -0
  20. package/dist/cjs/db/database.js +904 -0
  21. package/dist/cjs/db/decorators.js +167 -0
  22. package/dist/cjs/db/index.js +72 -0
  23. package/dist/cjs/db/insert.js +51 -0
  24. package/dist/cjs/db/orm.js +245 -0
  25. package/dist/cjs/db/ormstatements.js +243 -0
  26. package/dist/cjs/db/procedure.js +112 -0
  27. package/dist/cjs/db/query.js +57 -0
  28. package/dist/cjs/db/repository.js +148 -0
  29. package/dist/cjs/db/sequence.js +59 -0
  30. package/dist/cjs/db/sql.js +516 -0
  31. package/dist/cjs/db/store.js +172 -0
  32. package/dist/cjs/db/translator.js +100 -0
  33. package/dist/cjs/db/update.js +43 -0
  34. package/dist/cjs/etcd/client.js +174 -0
  35. package/dist/cjs/etcd/index.js +26 -0
  36. package/dist/cjs/extensions/decorators.js +40 -0
  37. package/dist/cjs/extensions/extensions.js +108 -0
  38. package/dist/cjs/extensions/index.js +39 -0
  39. package/dist/cjs/git/client.js +277 -0
  40. package/dist/cjs/git/index.js +26 -0
  41. package/dist/cjs/http/client-async.js +224 -0
  42. package/dist/cjs/http/client.js +145 -0
  43. package/dist/cjs/http/decorators.js +76 -0
  44. package/dist/cjs/http/errors/ForbiddenError.js +41 -0
  45. package/dist/cjs/http/errors/ValidationError.js +41 -0
  46. package/dist/cjs/http/errors.js +26 -0
  47. package/dist/cjs/http/index.js +59 -0
  48. package/dist/cjs/http/request.js +281 -0
  49. package/dist/cjs/http/response.js +452 -0
  50. package/dist/cjs/http/rs/resource-common.js +32 -0
  51. package/dist/cjs/http/rs/resource-http-controller.js +306 -0
  52. package/dist/cjs/http/rs/resource-mappings.js +130 -0
  53. package/dist/cjs/http/rs/resource-method.js +218 -0
  54. package/dist/cjs/http/rs/resource.js +232 -0
  55. package/dist/cjs/http/rs.js +31 -0
  56. package/dist/cjs/http/session.js +124 -0
  57. package/dist/cjs/http/upload.js +144 -0
  58. package/dist/cjs/http/utils.js +106 -0
  59. package/dist/cjs/index.js +1 -0
  60. package/dist/cjs/indexing/index.js +29 -0
  61. package/dist/cjs/indexing/searcher.js +70 -0
  62. package/dist/cjs/indexing/writer.js +45 -0
  63. package/dist/cjs/integrations/index.js +26 -0
  64. package/dist/cjs/integrations/integrations.js +55 -0
  65. package/dist/cjs/io/bytes.js +101 -0
  66. package/dist/cjs/io/files.js +344 -0
  67. package/dist/cjs/io/image.js +43 -0
  68. package/dist/cjs/io/index.js +38 -0
  69. package/dist/cjs/io/streams.js +243 -0
  70. package/dist/cjs/io/zip.js +251 -0
  71. package/dist/cjs/job/decorators.js +40 -0
  72. package/dist/cjs/job/index.js +39 -0
  73. package/dist/cjs/job/scheduler.js +347 -0
  74. package/dist/cjs/junit/index.js +18 -0
  75. package/dist/cjs/junit/junit.js +67 -0
  76. package/dist/cjs/kafka/consumer.js +70 -0
  77. package/dist/cjs/kafka/index.js +29 -0
  78. package/dist/cjs/kafka/producer.js +70 -0
  79. package/dist/cjs/log/index.js +26 -0
  80. package/dist/cjs/log/logging.js +174 -0
  81. package/dist/cjs/mail/client.js +153 -0
  82. package/dist/cjs/mail/index.js +26 -0
  83. package/dist/cjs/messaging/consumer.js +83 -0
  84. package/dist/cjs/messaging/decorators.js +40 -0
  85. package/dist/cjs/messaging/index.js +42 -0
  86. package/dist/cjs/messaging/producer.js +81 -0
  87. package/dist/cjs/mongodb/client.js +627 -0
  88. package/dist/cjs/mongodb/dao.js +390 -0
  89. package/dist/cjs/mongodb/index.js +36 -0
  90. package/dist/cjs/net/decorators.js +40 -0
  91. package/dist/cjs/net/index.js +42 -0
  92. package/dist/cjs/net/soap.js +228 -0
  93. package/dist/cjs/net/websockets.js +151 -0
  94. package/dist/cjs/net/wrappers/onClose.js +2 -0
  95. package/dist/cjs/net/wrappers/onError.js +2 -0
  96. package/dist/cjs/net/wrappers/onMessage.js +2 -0
  97. package/dist/cjs/net/wrappers/onOpen.js +2 -0
  98. package/dist/cjs/pdf/index.js +26 -0
  99. package/dist/cjs/pdf/pdf.js +160 -0
  100. package/dist/cjs/platform/command.js +47 -0
  101. package/dist/cjs/platform/engines.js +70 -0
  102. package/dist/cjs/platform/index.js +47 -0
  103. package/dist/cjs/platform/lifecycle.js +49 -0
  104. package/dist/cjs/platform/os.js +51 -0
  105. package/dist/cjs/platform/problems.js +127 -0
  106. package/dist/cjs/platform/registry.js +319 -0
  107. package/dist/cjs/platform/repository.js +498 -0
  108. package/dist/cjs/platform/workspace.js +574 -0
  109. package/dist/cjs/qldb/index.js +26 -0
  110. package/dist/cjs/qldb/qldb.js +24 -0
  111. package/dist/cjs/rabbitmq/consumer.js +50 -0
  112. package/dist/cjs/rabbitmq/index.js +29 -0
  113. package/dist/cjs/rabbitmq/producer.js +38 -0
  114. package/dist/cjs/redis/client.js +190 -0
  115. package/dist/cjs/redis/index.js +26 -0
  116. package/dist/cjs/security/decorators.js +48 -0
  117. package/dist/cjs/security/index.js +40 -0
  118. package/dist/cjs/security/oauth.js +75 -0
  119. package/dist/cjs/security/user.js +88 -0
  120. package/dist/cjs/template/engines.js +139 -0
  121. package/dist/cjs/template/index.js +26 -0
  122. package/dist/cjs/utils/alphanumeric.js +107 -0
  123. package/dist/cjs/utils/base64.js +104 -0
  124. package/dist/cjs/utils/converter.js +78 -0
  125. package/dist/cjs/utils/digest.js +167 -0
  126. package/dist/cjs/utils/escape.js +160 -0
  127. package/dist/cjs/utils/hex.js +104 -0
  128. package/dist/cjs/utils/index.js +68 -0
  129. package/dist/cjs/utils/jsonpath.js +489 -0
  130. package/dist/cjs/utils/qrcode.js +41 -0
  131. package/dist/cjs/utils/url.js +82 -0
  132. package/dist/cjs/utils/utf8.js +61 -0
  133. package/dist/cjs/utils/uuid.js +48 -0
  134. package/dist/cjs/utils/xml.js +57 -0
  135. package/dist/dts/bpm/deployer.d.ts +29 -0
  136. package/dist/dts/bpm/index.d.ts +8 -0
  137. package/dist/dts/bpm/process.d.ts +433 -0
  138. package/dist/dts/bpm/tasks.d.ts +2022 -0
  139. package/dist/dts/bpm/values.d.ts +38 -0
  140. package/dist/dts/cache/cache.d.ts +30 -0
  141. package/dist/dts/cache/index.d.ts +2 -0
  142. package/dist/dts/cms/cmis.d.ts +413 -0
  143. package/dist/dts/cms/index.d.ts +2 -0
  144. package/dist/dts/component/decorators.d.ts +52 -0
  145. package/dist/dts/component/index.d.ts +2 -0
  146. package/dist/dts/core/configurations.d.ts +65 -0
  147. package/dist/dts/core/context.d.ts +19 -0
  148. package/dist/dts/core/env.d.ts +23 -0
  149. package/dist/dts/core/globals.d.ts +30 -0
  150. package/dist/dts/core/index.d.ts +8 -0
  151. package/dist/dts/db/dao.d.ts +8 -0
  152. package/dist/dts/db/database.d.ts +507 -0
  153. package/dist/dts/db/decorators.d.ts +89 -0
  154. package/dist/dts/db/index.d.ts +25 -0
  155. package/dist/dts/db/insert.d.ts +32 -0
  156. package/dist/dts/db/orm.d.ts +44 -0
  157. package/dist/dts/db/ormstatements.d.ts +4 -0
  158. package/dist/dts/db/procedure.d.ts +25 -0
  159. package/dist/dts/db/query.d.ts +48 -0
  160. package/dist/dts/db/repository.d.ts +64 -0
  161. package/dist/dts/db/sequence.d.ts +34 -0
  162. package/dist/dts/db/sql.d.ts +267 -0
  163. package/dist/dts/db/store.d.ts +138 -0
  164. package/dist/dts/db/translator.d.ts +26 -0
  165. package/dist/dts/db/update.d.ts +21 -0
  166. package/dist/dts/etcd/client.d.ts +92 -0
  167. package/dist/dts/etcd/index.d.ts +2 -0
  168. package/dist/dts/extensions/decorators.d.ts +11 -0
  169. package/dist/dts/extensions/extensions.d.ts +41 -0
  170. package/dist/dts/extensions/index.d.ts +4 -0
  171. package/dist/dts/git/client.d.ts +478 -0
  172. package/dist/dts/git/index.d.ts +2 -0
  173. package/dist/dts/http/client-async.d.ts +158 -0
  174. package/dist/dts/http/client.d.ts +180 -0
  175. package/dist/dts/http/decorators.d.ts +11 -0
  176. package/dist/dts/http/errors/ForbiddenError.d.ts +20 -0
  177. package/dist/dts/http/errors/ValidationError.d.ts +20 -0
  178. package/dist/dts/http/errors.d.ts +2 -0
  179. package/dist/dts/http/index.d.ts +16 -0
  180. package/dist/dts/http/request.d.ts +158 -0
  181. package/dist/dts/http/response.d.ts +281 -0
  182. package/dist/dts/http/rs/resource-common.d.ts +11 -0
  183. package/dist/dts/http/rs/resource-http-controller.d.ts +43 -0
  184. package/dist/dts/http/rs/resource-mappings.d.ts +70 -0
  185. package/dist/dts/http/rs/resource-method.d.ts +206 -0
  186. package/dist/dts/http/rs/resource.d.ts +126 -0
  187. package/dist/dts/http/rs.d.ts +4 -0
  188. package/dist/dts/http/session.d.ts +81 -0
  189. package/dist/dts/http/upload.d.ts +100 -0
  190. package/dist/dts/http/utils.d.ts +54 -0
  191. package/dist/dts/index.d.ts +0 -0
  192. package/dist/dts/indexing/index.d.ts +4 -0
  193. package/dist/dts/indexing/searcher.d.ts +47 -0
  194. package/dist/dts/indexing/writer.d.ts +22 -0
  195. package/dist/dts/integrations/index.d.ts +2 -0
  196. package/dist/dts/integrations/integrations.d.ts +118 -0
  197. package/dist/dts/io/bytes.d.ts +56 -0
  198. package/dist/dts/io/files.d.ts +261 -0
  199. package/dist/dts/io/image.d.ts +22 -0
  200. package/dist/dts/io/index.d.ts +10 -0
  201. package/dist/dts/io/streams.d.ts +172 -0
  202. package/dist/dts/io/zip.d.ts +178 -0
  203. package/dist/dts/job/decorators.d.ts +11 -0
  204. package/dist/dts/job/index.d.ts +4 -0
  205. package/dist/dts/job/scheduler.d.ts +250 -0
  206. package/dist/dts/junit/index.d.ts +1 -0
  207. package/dist/dts/junit/junit.d.ts +50 -0
  208. package/dist/dts/kafka/consumer.d.ts +48 -0
  209. package/dist/dts/kafka/index.d.ts +4 -0
  210. package/dist/dts/kafka/producer.d.ts +50 -0
  211. package/dist/dts/log/index.d.ts +2 -0
  212. package/dist/dts/log/logging.d.ts +102 -0
  213. package/dist/dts/mail/client.d.ts +90 -0
  214. package/dist/dts/mail/index.d.ts +2 -0
  215. package/dist/dts/messaging/consumer.d.ts +61 -0
  216. package/dist/dts/messaging/decorators.d.ts +11 -0
  217. package/dist/dts/messaging/index.d.ts +6 -0
  218. package/dist/dts/messaging/producer.d.ts +59 -0
  219. package/dist/dts/mongodb/client.d.ts +367 -0
  220. package/dist/dts/mongodb/dao.d.ts +24 -0
  221. package/dist/dts/mongodb/index.d.ts +2 -0
  222. package/dist/dts/net/decorators.d.ts +11 -0
  223. package/dist/dts/net/index.d.ts +6 -0
  224. package/dist/dts/net/soap.d.ts +115 -0
  225. package/dist/dts/net/websockets.d.ts +100 -0
  226. package/dist/dts/net/wrappers/onClose.d.ts +0 -0
  227. package/dist/dts/net/wrappers/onError.d.ts +0 -0
  228. package/dist/dts/net/wrappers/onMessage.d.ts +0 -0
  229. package/dist/dts/net/wrappers/onOpen.d.ts +0 -0
  230. package/dist/dts/pdf/index.d.ts +2 -0
  231. package/dist/dts/pdf/pdf.d.ts +72 -0
  232. package/dist/dts/platform/command.d.ts +41 -0
  233. package/dist/dts/platform/engines.d.ts +35 -0
  234. package/dist/dts/platform/index.d.ts +16 -0
  235. package/dist/dts/platform/lifecycle.d.ts +22 -0
  236. package/dist/dts/platform/os.d.ts +23 -0
  237. package/dist/dts/platform/problems.d.ts +114 -0
  238. package/dist/dts/platform/registry.d.ts +227 -0
  239. package/dist/dts/platform/repository.d.ts +354 -0
  240. package/dist/dts/platform/workspace.d.ts +421 -0
  241. package/dist/dts/qldb/index.d.ts +2 -0
  242. package/dist/dts/qldb/qldb.d.ts +1 -0
  243. package/dist/dts/rabbitmq/consumer.d.ts +25 -0
  244. package/dist/dts/rabbitmq/index.d.ts +4 -0
  245. package/dist/dts/rabbitmq/producer.d.ts +15 -0
  246. package/dist/dts/redis/client.d.ts +134 -0
  247. package/dist/dts/redis/index.d.ts +2 -0
  248. package/dist/dts/security/decorators.d.ts +4 -0
  249. package/dist/dts/security/index.d.ts +5 -0
  250. package/dist/dts/security/oauth.d.ts +39 -0
  251. package/dist/dts/security/user.d.ts +51 -0
  252. package/dist/dts/template/engines.d.ts +98 -0
  253. package/dist/dts/template/index.d.ts +2 -0
  254. package/dist/dts/utils/alphanumeric.d.ts +39 -0
  255. package/dist/dts/utils/base64.d.ts +48 -0
  256. package/dist/dts/utils/converter.d.ts +44 -0
  257. package/dist/dts/utils/digest.d.ts +50 -0
  258. package/dist/dts/utils/escape.d.ts +110 -0
  259. package/dist/dts/utils/hex.d.ts +48 -0
  260. package/dist/dts/utils/index.d.ts +23 -0
  261. package/dist/dts/utils/jsonpath.d.ts +22 -0
  262. package/dist/dts/utils/qrcode.d.ts +16 -0
  263. package/dist/dts/utils/url.d.ts +50 -0
  264. package/dist/dts/utils/utf8.d.ts +33 -0
  265. package/dist/dts/utils/uuid.d.ts +21 -0
  266. package/dist/dts/utils/xml.d.ts +22 -0
  267. package/dist/esm/bpm/deployer.mjs +38 -0
  268. package/dist/esm/bpm/index.mjs +15 -0
  269. package/dist/esm/bpm/process.mjs +617 -0
  270. package/dist/esm/bpm/tasks.mjs +954 -0
  271. package/dist/esm/bpm/values.mjs +63 -0
  272. package/dist/esm/cache/cache.mjs +45 -0
  273. package/dist/esm/cache/index.mjs +6 -0
  274. package/dist/esm/cms/cmis.mjs +660 -0
  275. package/dist/esm/cms/index.mjs +6 -0
  276. package/dist/esm/component/decorators.mjs +107 -0
  277. package/dist/esm/component/index.mjs +6 -0
  278. package/dist/esm/core/configurations.mjs +91 -0
  279. package/dist/esm/core/context.mjs +28 -0
  280. package/dist/esm/core/env.mjs +26 -0
  281. package/dist/esm/core/globals.mjs +35 -0
  282. package/dist/esm/core/index.mjs +15 -0
  283. package/dist/esm/db/dao.mjs +775 -0
  284. package/dist/esm/db/database.mjs +885 -0
  285. package/dist/esm/db/decorators.mjs +148 -0
  286. package/dist/esm/db/index.mjs +42 -0
  287. package/dist/esm/db/insert.mjs +32 -0
  288. package/dist/esm/db/orm.mjs +225 -0
  289. package/dist/esm/db/ormstatements.mjs +223 -0
  290. package/dist/esm/db/procedure.mjs +93 -0
  291. package/dist/esm/db/query.mjs +38 -0
  292. package/dist/esm/db/repository.mjs +129 -0
  293. package/dist/esm/db/sequence.mjs +40 -0
  294. package/dist/esm/db/sql.mjs +497 -0
  295. package/dist/esm/db/store.mjs +153 -0
  296. package/dist/esm/db/translator.mjs +81 -0
  297. package/dist/esm/db/update.mjs +24 -0
  298. package/dist/esm/etcd/client.mjs +155 -0
  299. package/dist/esm/etcd/index.mjs +6 -0
  300. package/dist/esm/extensions/decorators.mjs +21 -0
  301. package/dist/esm/extensions/extensions.mjs +89 -0
  302. package/dist/esm/extensions/index.mjs +9 -0
  303. package/dist/esm/git/client.mjs +258 -0
  304. package/dist/esm/git/index.mjs +6 -0
  305. package/dist/esm/http/client-async.mjs +205 -0
  306. package/dist/esm/http/client.mjs +126 -0
  307. package/dist/esm/http/decorators.mjs +47 -0
  308. package/dist/esm/http/errors/ForbiddenError.mjs +22 -0
  309. package/dist/esm/http/errors/ValidationError.mjs +22 -0
  310. package/dist/esm/http/errors.mjs +7 -0
  311. package/dist/esm/http/index.mjs +29 -0
  312. package/dist/esm/http/request.mjs +262 -0
  313. package/dist/esm/http/response.mjs +433 -0
  314. package/dist/esm/http/rs/resource-common.mjs +13 -0
  315. package/dist/esm/http/rs/resource-http-controller.mjs +287 -0
  316. package/dist/esm/http/rs/resource-mappings.mjs +111 -0
  317. package/dist/esm/http/rs/resource-method.mjs +199 -0
  318. package/dist/esm/http/rs/resource.mjs +213 -0
  319. package/dist/esm/http/rs.mjs +12 -0
  320. package/dist/esm/http/session.mjs +105 -0
  321. package/dist/esm/http/upload.mjs +125 -0
  322. package/dist/esm/http/utils.mjs +87 -0
  323. package/dist/esm/index.mjs +1 -0
  324. package/dist/esm/indexing/index.mjs +9 -0
  325. package/dist/esm/indexing/searcher.mjs +51 -0
  326. package/dist/esm/indexing/writer.mjs +26 -0
  327. package/dist/esm/integrations/index.mjs +6 -0
  328. package/dist/esm/integrations/integrations.mjs +36 -0
  329. package/dist/esm/io/bytes.mjs +82 -0
  330. package/dist/esm/io/files.mjs +325 -0
  331. package/dist/esm/io/image.mjs +24 -0
  332. package/dist/esm/io/index.mjs +18 -0
  333. package/dist/esm/io/streams.mjs +224 -0
  334. package/dist/esm/io/zip.mjs +232 -0
  335. package/dist/esm/job/decorators.mjs +21 -0
  336. package/dist/esm/job/index.mjs +9 -0
  337. package/dist/esm/job/scheduler.mjs +328 -0
  338. package/dist/esm/junit/index.mjs +2 -0
  339. package/dist/esm/junit/junit.mjs +48 -0
  340. package/dist/esm/kafka/consumer.mjs +51 -0
  341. package/dist/esm/kafka/index.mjs +9 -0
  342. package/dist/esm/kafka/producer.mjs +51 -0
  343. package/dist/esm/log/index.mjs +6 -0
  344. package/dist/esm/log/logging.mjs +155 -0
  345. package/dist/esm/mail/client.mjs +134 -0
  346. package/dist/esm/mail/index.mjs +6 -0
  347. package/dist/esm/messaging/consumer.mjs +64 -0
  348. package/dist/esm/messaging/decorators.mjs +21 -0
  349. package/dist/esm/messaging/index.mjs +12 -0
  350. package/dist/esm/messaging/producer.mjs +62 -0
  351. package/dist/esm/mongodb/client.mjs +608 -0
  352. package/dist/esm/mongodb/dao.mjs +360 -0
  353. package/dist/esm/mongodb/index.mjs +7 -0
  354. package/dist/esm/net/decorators.mjs +21 -0
  355. package/dist/esm/net/index.mjs +12 -0
  356. package/dist/esm/net/soap.mjs +209 -0
  357. package/dist/esm/net/websockets.mjs +132 -0
  358. package/dist/esm/net/wrappers/onClose.mjs +2 -0
  359. package/dist/esm/net/wrappers/onError.mjs +2 -0
  360. package/dist/esm/net/wrappers/onMessage.mjs +2 -0
  361. package/dist/esm/net/wrappers/onOpen.mjs +2 -0
  362. package/dist/esm/pdf/index.mjs +6 -0
  363. package/dist/esm/pdf/pdf.mjs +141 -0
  364. package/dist/esm/platform/command.mjs +28 -0
  365. package/dist/esm/platform/engines.mjs +51 -0
  366. package/dist/esm/platform/index.mjs +27 -0
  367. package/dist/esm/platform/lifecycle.mjs +30 -0
  368. package/dist/esm/platform/os.mjs +32 -0
  369. package/dist/esm/platform/problems.mjs +108 -0
  370. package/dist/esm/platform/registry.mjs +300 -0
  371. package/dist/esm/platform/repository.mjs +479 -0
  372. package/dist/esm/platform/workspace.mjs +555 -0
  373. package/dist/esm/qldb/index.mjs +6 -0
  374. package/dist/esm/qldb/qldb.mjs +5 -0
  375. package/dist/esm/rabbitmq/consumer.mjs +31 -0
  376. package/dist/esm/rabbitmq/index.mjs +9 -0
  377. package/dist/esm/rabbitmq/producer.mjs +19 -0
  378. package/dist/esm/redis/client.mjs +171 -0
  379. package/dist/esm/redis/index.mjs +6 -0
  380. package/dist/esm/security/decorators.mjs +29 -0
  381. package/dist/esm/security/index.mjs +10 -0
  382. package/dist/esm/security/oauth.mjs +56 -0
  383. package/dist/esm/security/user.mjs +69 -0
  384. package/dist/esm/template/engines.mjs +120 -0
  385. package/dist/esm/template/index.mjs +6 -0
  386. package/dist/esm/utils/alphanumeric.mjs +88 -0
  387. package/dist/esm/utils/base64.mjs +85 -0
  388. package/dist/esm/utils/converter.mjs +59 -0
  389. package/dist/esm/utils/digest.mjs +148 -0
  390. package/dist/esm/utils/escape.mjs +141 -0
  391. package/dist/esm/utils/hex.mjs +85 -0
  392. package/dist/esm/utils/index.mjs +38 -0
  393. package/dist/esm/utils/jsonpath.mjs +470 -0
  394. package/dist/esm/utils/qrcode.mjs +22 -0
  395. package/dist/esm/utils/url.mjs +63 -0
  396. package/dist/esm/utils/utf8.mjs +42 -0
  397. package/dist/esm/utils/uuid.mjs +29 -0
  398. package/dist/esm/utils/xml.mjs +38 -0
  399. package/package.json +58 -0
@@ -0,0 +1,354 @@
1
+ /**
2
+ * @class Repository
3
+ * @description Static utility class providing high-level methods for interacting with the
4
+ * repository facade to manage resources and collections by path.
5
+ */
6
+ export declare class Repository {
7
+ /**
8
+ * Retrieves a resource (file) object from the repository by its path.
9
+ *
10
+ * @param {string} path The absolute path to the resource.
11
+ * @returns {Resource} A Resource instance wrapping the native repository object.
12
+ */
13
+ static getResource(path: string): Resource;
14
+ /**
15
+ * Creates a new resource (file) with content provided as a string.
16
+ *
17
+ * @param {string} path The absolute path where the resource should be created.
18
+ * @param {string} content The string content for the resource.
19
+ * @param {string} contentType The MIME type of the content (e.g., "text/plain").
20
+ * @returns {Resource} The newly created Resource instance.
21
+ */
22
+ static createResource(path: string, content: string, contentType: string): Resource;
23
+ /**
24
+ * Creates a new resource (file) with content provided as a native byte array.
25
+ *
26
+ * @param {string} path The absolute path where the resource should be created.
27
+ * @param {any[]} content The native byte array content.
28
+ * @param {string} contentType The MIME type of the content.
29
+ * @returns {Resource} The newly created Resource instance.
30
+ */
31
+ static createResourceNative(path: string, content: any[], contentType: string): Resource;
32
+ /**
33
+ * Updates the content of an existing resource using a string.
34
+ *
35
+ * @param {string} path The absolute path to the resource to update.
36
+ * @param {string} content The new string content.
37
+ * @returns {Resource} The updated Resource instance.
38
+ */
39
+ static updateResource(path: string, content: string): Resource;
40
+ /**
41
+ * Updates the content of an existing resource using a native byte array.
42
+ *
43
+ * @param {string} path The absolute path to the resource to update.
44
+ * @param {any[]} content The new native byte array content.
45
+ * @returns {Resource} The updated Resource instance.
46
+ */
47
+ static updateResourceNative(path: string, content: any[]): Resource;
48
+ /**
49
+ * Deletes the resource (file) at the specified path.
50
+ *
51
+ * @param {string} path The absolute path of the resource to delete.
52
+ */
53
+ static deleteResource(path: string): void;
54
+ /**
55
+ * Retrieves a collection (folder) object from the repository by its path.
56
+ *
57
+ * @param {string} path The absolute path to the collection.
58
+ * @returns {Collection} A Collection instance wrapping the native repository object.
59
+ */
60
+ static getCollection(path: string): Collection;
61
+ /**
62
+ * Creates a new collection (folder) at the specified path.
63
+ *
64
+ * @param {string} path The absolute path where the collection should be created.
65
+ * @returns {Collection} The newly created Collection instance.
66
+ */
67
+ static createCollection(path: string): Collection;
68
+ /**
69
+ * Deletes the collection (folder) at the specified path.
70
+ *
71
+ * @param {string} path The absolute path of the collection to delete.
72
+ */
73
+ static deleteCollection(path: string): void;
74
+ /**
75
+ * Searches the repository starting from a given path for resources matching a glob pattern.
76
+ *
77
+ * @param {string} path The starting path for the search.
78
+ * @param {string} pattern The glob pattern to match resource names against (e.g., "*.js").
79
+ * @returns {string[]} An array of repository paths (strings) that match the search criteria.
80
+ */
81
+ static find(path: string, pattern: string): string[];
82
+ }
83
+ /**
84
+ * @class Resource
85
+ * @description Represents a file or resource (non-collection) within the Repository,
86
+ * providing instance methods for file operations.
87
+ */
88
+ export declare class Resource {
89
+ private readonly native;
90
+ /**
91
+ * @constructor
92
+ * @param {any} native The native Java object instance representing the repository resource.
93
+ */
94
+ constructor(native: any);
95
+ /**
96
+ * Gets the name of the resource (file name).
97
+ * @returns {string} The name.
98
+ */
99
+ getName(): string;
100
+ /**
101
+ * Gets the full repository path of the resource.
102
+ * @returns {string} The repository path.
103
+ */
104
+ getPath(): string;
105
+ /**
106
+ * Gets the parent collection (folder) of this resource.
107
+ * @returns {Collection} The parent Collection instance.
108
+ */
109
+ getParent(): Collection;
110
+ /**
111
+ * Gets detailed metadata about the resource.
112
+ * @returns {EntityInformation} The metadata object.
113
+ */
114
+ getInformation(): EntityInformation;
115
+ /**
116
+ * Creates the resource if it does not already exist.
117
+ */
118
+ create(): void;
119
+ /**
120
+ * Deletes the resource from the repository.
121
+ */
122
+ delete(): void;
123
+ /**
124
+ * Renames the resource within its current collection.
125
+ * @param {string} name The new name for the resource.
126
+ */
127
+ renameTo(name: string): void;
128
+ /**
129
+ * Moves the resource to a new path.
130
+ * @param {string} path The new absolute path for the resource.
131
+ */
132
+ moveTo(path: string): void;
133
+ /**
134
+ * Copies the resource to a new path.
135
+ * @param {string} path The new absolute path for the copied resource.
136
+ */
137
+ copyTo(path: string): void;
138
+ /**
139
+ * Checks if the resource currently exists in the repository.
140
+ * @returns {boolean} True if the resource exists, false otherwise.
141
+ */
142
+ exists(): boolean;
143
+ /**
144
+ * Checks if the resource (file) is empty (has zero size).
145
+ * @returns {boolean} True if the content is empty, false otherwise.
146
+ */
147
+ isEmpty(): boolean;
148
+ /**
149
+ * Gets the content of the resource as a text string.
150
+ * @returns {string} The text content.
151
+ */
152
+ getText(): string;
153
+ /**
154
+ * Gets the content of the resource as a JavaScript-friendly byte array.
155
+ * @returns {any[]} The content bytes.
156
+ */
157
+ getContent(): any[];
158
+ /**
159
+ * Gets the content of the resource as its native Java byte array representation.
160
+ * @returns {any[]} The content bytes.
161
+ */
162
+ getContentNative(): any[];
163
+ /**
164
+ * Sets the content of the resource using a text string.
165
+ * The string is converted to a byte array before saving.
166
+ * @param {string} text The new text content.
167
+ */
168
+ setText(text: string): void;
169
+ /**
170
+ * Sets the content of the resource using a JavaScript byte array.
171
+ * The array is converted to a native byte array before saving.
172
+ * @param {any[]} content The new content bytes.
173
+ */
174
+ setContent(content: any[]): void;
175
+ /**
176
+ * Sets the content of the resource using a native Java byte array.
177
+ * @param {any[]} content The new native content bytes.
178
+ */
179
+ setContentNative(content: any[]): void;
180
+ /**
181
+ * Checks if the resource content is determined to be binary.
182
+ * @returns {boolean} True if binary, false if text.
183
+ */
184
+ isBinary(): boolean;
185
+ /**
186
+ * Gets the content type (MIME type) of the resource.
187
+ * @returns {string} The content type string.
188
+ */
189
+ getContentType(): string;
190
+ }
191
+ /**
192
+ * @class Collection
193
+ * @description Represents a directory or folder within the Repository, providing
194
+ * instance methods for collection and resource management.
195
+ */
196
+ export declare class Collection {
197
+ private readonly native;
198
+ /**
199
+ * @constructor
200
+ * @param {any} native The native Java object instance representing the repository collection.
201
+ */
202
+ constructor(native: any);
203
+ /**
204
+ * Gets the name of the collection (folder name).
205
+ * @returns {string} The name.
206
+ */
207
+ getName(): string;
208
+ /**
209
+ * Gets the full repository path of the collection.
210
+ * @returns {string} The repository path.
211
+ */
212
+ getPath(): string;
213
+ /**
214
+ * Gets the parent collection (folder) of this collection.
215
+ * @returns {Collection} The parent Collection instance.
216
+ */
217
+ getParent(): Collection;
218
+ /**
219
+ * Gets detailed metadata about the collection.
220
+ * @returns {EntityInformation} The metadata object.
221
+ */
222
+ getInformation(): EntityInformation;
223
+ /**
224
+ * Creates the collection if it does not already exist.
225
+ */
226
+ create(): void;
227
+ /**
228
+ * Deletes the collection from the repository.
229
+ */
230
+ delete(): void;
231
+ /**
232
+ * Renames the collection within its current parent.
233
+ * @param {string} name The new name for the collection.
234
+ */
235
+ renameTo(name: string): void;
236
+ /**
237
+ * Moves the collection to a new path.
238
+ * @param {string} path The new absolute path for the collection.
239
+ */
240
+ moveTo(path: string): void;
241
+ /**
242
+ * Copies the collection to a new path.
243
+ * @param {string} path The new absolute path for the copied collection.
244
+ */
245
+ copyTo(path: string): void;
246
+ /**
247
+ * Checks if the collection currently exists in the repository.
248
+ * @returns {boolean} True if the collection exists, false otherwise.
249
+ */
250
+ exists(): boolean;
251
+ /**
252
+ * Checks if the collection is empty (contains no files or sub-directories).
253
+ * @returns {boolean} True if empty, false otherwise.
254
+ */
255
+ isEmpty(): boolean;
256
+ /**
257
+ * Gets the names of all sub-collections (folders) within this collection.
258
+ * @returns {string[]} An array of sub-collection names.
259
+ */
260
+ getCollectionsNames(): string[];
261
+ /**
262
+ * Creates a new sub-collection (folder) within this collection.
263
+ * @param {string} name The name of the new sub-collection.
264
+ * @returns {Collection} The newly created Collection instance.
265
+ */
266
+ createCollection(name: string): Collection;
267
+ /**
268
+ * Gets a specific sub-collection by name.
269
+ * @param {string} name The name of the sub-collection.
270
+ * @returns {Collection} The child Collection instance.
271
+ */
272
+ getCollection(name: string): Collection;
273
+ /**
274
+ * Removes a sub-collection by name.
275
+ * @param {string} name The name of the sub-collection to remove.
276
+ */
277
+ removeCollection(name: string): void;
278
+ /**
279
+ * Gets the names of all resources (files) within this collection.
280
+ * @returns {string[]} An array of resource names.
281
+ */
282
+ getResourcesNames(): string[];
283
+ /**
284
+ * Gets a specific resource (file) by name.
285
+ * @param {string} name The name of the resource.
286
+ * @returns {Resource} The child Resource instance.
287
+ */
288
+ getResource(name: string): Resource;
289
+ /**
290
+ * Removes a resource (file) by name.
291
+ * @param {string} name The name of the resource to remove.
292
+ */
293
+ removeResource(name: string): void;
294
+ /**
295
+ * Creates a new resource (file) within this collection.
296
+ * @param {string} name The name of the new resource.
297
+ * @param {string} content The string content for the resource.
298
+ * @returns {Resource} The newly created Resource instance.
299
+ */
300
+ createResource(name: string, content: string): Resource;
301
+ }
302
+ /**
303
+ * @class EntityInformation
304
+ * @description Represents detailed metadata (creation date, size, permissions, etc.) for a
305
+ * Resource or Collection.
306
+ */
307
+ export declare class EntityInformation {
308
+ private readonly native;
309
+ /**
310
+ * @constructor
311
+ * @param {any} native The native Java object instance holding the entity information.
312
+ */
313
+ constructor(native: any);
314
+ /**
315
+ * Gets the name of the entity (resource or collection).
316
+ * @returns {string} The name.
317
+ */
318
+ getName(): string;
319
+ /**
320
+ * Gets the full repository path of the entity.
321
+ * @returns {string} The repository path.
322
+ */
323
+ getPath(): string;
324
+ /**
325
+ * Gets the access permissions for the entity (typically an integer bitmask).
326
+ * @returns {number} The permissions value.
327
+ */
328
+ getPermissions(): number;
329
+ /**
330
+ * Gets the size of the resource content in bytes (0 for a collection).
331
+ * @returns {number} The size in bytes.
332
+ */
333
+ getSize(): number;
334
+ /**
335
+ * Gets the user who created the entity.
336
+ * @returns {string} The creator's name.
337
+ */
338
+ getCreatedBy(): string;
339
+ /**
340
+ * Gets the creation timestamp.
341
+ * @returns {Date} The creation date and time.
342
+ */
343
+ getCreatedAt(): Date;
344
+ /**
345
+ * Gets the user who last modified the entity.
346
+ * @returns {string} The modifier's name.
347
+ */
348
+ getModifiedBy(): string;
349
+ /**
350
+ * Gets the last modification timestamp.
351
+ * @returns {Date} The modification date and time.
352
+ */
353
+ getModifiedAt(): Date;
354
+ }