@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,32 @@
1
+ /**
2
+ * Interface used to wrap complex or other specific values for database insertion.
3
+ */
4
+ export interface InsertParameter {
5
+ readonly value: any;
6
+ }
7
+ /**
8
+ * Type alias for a single allowed parameter value in an INSERT statement.
9
+ */
10
+ type ParameterValue = string | number | boolean | Date | InsertParameter;
11
+ /**
12
+ * Provides static methods for executing INSERT SQL statements.
13
+ */
14
+ export declare class Insert {
15
+ /**
16
+ * Executes a single parameterized INSERT statement.
17
+ * * @param sql The SQL query to execute, with '?' placeholders for parameters.
18
+ * @param parameters An optional array of values to replace the '?' placeholders.
19
+ * @param datasourceName The name of the database connection to use (optional).
20
+ * @returns An array of records representing the result of the insertion (e.g., generated keys).
21
+ */
22
+ static execute(sql: string, parameters?: ParameterValue[], datasourceName?: string): Array<Record<string, any>>;
23
+ /**
24
+ * Executes multiple parameterized INSERT statements as a batch operation.
25
+ * * @param sql The SQL query to execute, with '?' placeholders for parameters.
26
+ * @param parameters An optional array of parameter arrays, where each inner array corresponds to one execution of the SQL statement.
27
+ * @param datasourceName The name of the database connection to use (optional).
28
+ * @returns An array of records representing the results of the batched insertions.
29
+ */
30
+ static executeMany(sql: string, parameters?: ParameterValue[][], datasourceName?: string): Array<Record<string, any>>;
31
+ }
32
+ export {};
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Supported ORM schema:
3
+ * ```
4
+ * {
5
+ * name: <string>,
6
+ * table: <string>,
7
+ * properties: [{
8
+ * name: <string>,
9
+ * column: <string>,
10
+ * id: <boolean>,
11
+ * required: <boolean>,
12
+ * unique: <boolean>,
13
+ * dbValue: <function>,
14
+ * value: <function>,
15
+ * allowedOps: <Array['insert','update']>
16
+ * }],
17
+ * associations: [{
18
+ * name: <string>,
19
+ * joinKey: <string>,
20
+ * key: <string>,
21
+ * type: <ORM.ASSOCIATION_TYPES>,
22
+ * targetDao: <function|DAO>,
23
+ * joinDao: <function|DAO>,
24
+ * defaults: <Object>,
25
+ * }]
26
+ * }
27
+ * ```
28
+ *
29
+ */
30
+ export interface ORMDefinition {
31
+ table: string;
32
+ properties: {
33
+ name: string;
34
+ column: string;
35
+ type: string;
36
+ id?: boolean;
37
+ required?: boolean;
38
+ unique?: boolean;
39
+ autoIncrement?: boolean;
40
+ allowedOps?: ('insert' | 'update')[];
41
+ }[];
42
+ }
43
+ export declare function ORM(orm: ORMDefinition): void;
44
+ export declare function get(orm: ORMDefinition): any;
@@ -0,0 +1,4 @@
1
+ import { SQLBuilder } from "./sql";
2
+ import { Connection } from "./database";
3
+ export declare function ORMStatements(orm: any, dialect: SQLBuilder): void;
4
+ export declare function create(orm: any, connection?: Connection): any;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @interface ProcedureParameter
3
+ * @description Defines a structured parameter for procedure calls, allowing the type
4
+ * to be explicitly defined when the natural JavaScript type mapping is insufficient.
5
+ */
6
+ export interface ProcedureParameter {
7
+ type: string;
8
+ value: any;
9
+ }
10
+ export declare class Procedure {
11
+ /**
12
+ * Executes a DDL/DML statement to create or modify a stored procedure without results.
13
+ * * @param {string} sql The SQL statement (e.g., CREATE PROCEDURE).
14
+ * @param {string} [datasourceName] Optional name of the data source to use.
15
+ */
16
+ static create(sql: string, datasourceName?: string): void;
17
+ /**
18
+ * Executes a stored procedure call and returns the result set(s).
19
+ * * @param {string} sql The callable statement (e.g., {CALL my_procedure(?, ?)}).
20
+ * @param {(string | number | ProcedureParameter)[]} [parameters=[]] An array of parameters. Primitives (string/number) are automatically typed. Use ProcedureParameter for explicit types.
21
+ * @param {string} [datasourceName] Optional name of the data source to use.
22
+ * @returns {any[]} An array of JSON objects representing the result set(s).
23
+ */
24
+ static execute(sql: string, parameters?: (string | number | ProcedureParameter)[], datasourceName?: string): any[];
25
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * API Query
3
+ *
4
+ */
5
+ /**
6
+ * Interface used to wrap complex or specific values for non-named queries.
7
+ */
8
+ export interface QueryParameter {
9
+ readonly value: any;
10
+ }
11
+ /**
12
+ * Interface defining a parameter for a named query (using placeholders like :paramName).
13
+ */
14
+ export interface NamedQueryParameter {
15
+ readonly name: string;
16
+ readonly type: string;
17
+ readonly value: any;
18
+ }
19
+ /**
20
+ * Interface to specify formatting options for the query result set.
21
+ */
22
+ export interface ResultParameter {
23
+ readonly dateFormat: string;
24
+ }
25
+ /**
26
+ * Provides static methods for executing parameterized SQL SELECT statements.
27
+ */
28
+ export declare class Query {
29
+ /**
30
+ * Executes a standard SQL query with positional parameters ('?').
31
+ *
32
+ * @param sql The SQL query to execute.
33
+ * @param parameters An optional array of values (primitives or QueryParameter objects) to replace '?' placeholders.
34
+ * @param datasourceName The name of the database connection to use (optional).
35
+ * @param resultParameter Optional formatting parameters for the result set (e.g., date format).
36
+ * @returns An array of records representing the query results.
37
+ */
38
+ static execute(sql: string, parameters?: (string | number | boolean | Date | QueryParameter)[], datasourceName?: string, resultParameter?: ResultParameter): any[];
39
+ /**
40
+ * Executes a SQL query with named parameters (e.g., ":name", ":id").
41
+ *
42
+ * @param sql The SQL query to execute.
43
+ * @param parameters An optional array of NamedQueryParameter objects.
44
+ * @param datasourceName The name of the database connection to use (optional).
45
+ * @returns An array of records representing the query results.
46
+ */
47
+ static executeNamed(sql: string, parameters?: NamedQueryParameter[], datasourceName?: string): any[];
48
+ }
@@ -0,0 +1,64 @@
1
+ import { EntityConstructor, Options } from "@aerokit/sdk/db";
2
+ /**
3
+ * Represents the data structure passed to the event trigger method before/after an operation.
4
+ */
5
+ export interface EntityEvent<T> {
6
+ readonly operation: 'create' | 'update' | 'delete';
7
+ readonly table: string;
8
+ readonly entity: Partial<T>;
9
+ readonly key: {
10
+ name: string;
11
+ column: string;
12
+ value: string | number;
13
+ };
14
+ readonly previousEntity?: T;
15
+ }
16
+ /**
17
+ * Abstract base class for data access/business logic, wrapping the `store` API.
18
+ * It handles entity metadata lookup, CRUD operations, translation, and event triggering.
19
+ * @template T The entity type (must be an object).
20
+ */
21
+ export declare abstract class Repository<T extends Record<string, any>> {
22
+ private entityConstructor;
23
+ constructor(entityConstructor: EntityConstructor);
24
+ protected getEntityName(): string;
25
+ protected getTableName(): string;
26
+ protected getIdName(): string;
27
+ protected getIdColumn(): string;
28
+ /**
29
+ * Finds all entities matching the given options.
30
+ */
31
+ findAll(options?: Options): T[];
32
+ /**
33
+ * Finds a single entity by its primary key ID.
34
+ */
35
+ findById(id: number | string, options?: Options): T | undefined;
36
+ /**
37
+ * Creates a new entity in the database.
38
+ * @returns The generated ID (string or number).
39
+ */
40
+ create(entity: T): string | number;
41
+ /**
42
+ * Updates an existing entity.
43
+ * The entity must contain the primary key.
44
+ */
45
+ update(entity: T): void;
46
+ /**
47
+ * Creates the entity if the ID is null/undefined, otherwise updates it.
48
+ * If an ID is provided but the entity doesn't exist, it creates it.
49
+ * @returns The entity's ID.
50
+ */
51
+ upsert(entity: T): string | number;
52
+ /**
53
+ * Deletes an entity by its primary key ID.
54
+ */
55
+ deleteById(id: number | string): void;
56
+ /**
57
+ * Counts the number of entities matching the given options.
58
+ */
59
+ count(options?: Options): number;
60
+ /**
61
+ * Protected method intended for subclass overriding or internal event handling.
62
+ */
63
+ protected triggerEvent(_data: EntityEvent<T>): Promise<void>;
64
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * API Sequence
3
+ *
4
+ * Provides static methods for managing and accessing database sequences.
5
+ */
6
+ /**
7
+ * Utility class for interacting with database sequence objects.
8
+ */
9
+ export declare class Sequence {
10
+ /**
11
+ * Retrieves the next available value from a specified sequence.
12
+ *
13
+ * @param sequence The name of the database sequence.
14
+ * @param tableName Optional: The name of the table associated with the sequence (depends on database dialect/facade implementation).
15
+ * @param datasourceName Optional: The name of the database connection to use.
16
+ * @returns The next sequence value as a number.
17
+ */
18
+ static nextval(sequence: string, tableName?: string, datasourceName?: string): number;
19
+ /**
20
+ * Creates a new database sequence.
21
+ *
22
+ * @param sequence The name of the sequence to create.
23
+ * @param start Optional: The starting value for the sequence (defaults to 1 if not provided).
24
+ * @param datasourceName Optional: The name of the database connection to use.
25
+ */
26
+ static create(sequence: string, start?: number, datasourceName?: string): void;
27
+ /**
28
+ * Drops (deletes) an existing database sequence.
29
+ *
30
+ * @param sequence The name of the sequence to drop.
31
+ * @param datasourceName Optional: The name of the database connection to use.
32
+ */
33
+ static drop(sequence: string, datasourceName?: string): void;
34
+ }
@@ -0,0 +1,267 @@
1
+ import { Connection } from "./database";
2
+ /**
3
+ * Union type representing all supported SQL data types.
4
+ */
5
+ export type DataType = "VARCHAR" | "TEXT" | "CHAR" | "DATE" | "SECONDDATE" | "TIME" | "DATETIME" | "TIMESTAMP" | "INTEGER" | "INT" | "TINYINT" | "BIGINT" | "SMALLINT" | "REAL" | "DOUBLE" | "DOUBLE PRECISIO" | "BOOLEAN" | "BLOB" | "DECIMAL" | "BIT" | "NVARCHAR" | "FLOAT" | "BYTE" | "NCLOB" | "ARRAY" | "VARBINARY" | "BINARY VARYIN" | "SHORTTEXT" | "ALPHANUM" | "CLOB" | "SMALLDECIMAL" | "BINARY" | "ST_POINT" | "ST_GEOMETRY" | "CHARACTER VARYIN" | "BINARY LARG OBJECT" | "CHARACTER LARG OBJECT" | "CHARACTER" | "NCHAR" | "NUMERIC";
6
+ /**
7
+ * Abstract base class for all SQL builders. Handles connection, native facade,
8
+ * and parameter collection.
9
+ */
10
+ declare abstract class AbstractSQLBuilder {
11
+ readonly params: any[];
12
+ protected readonly connection?: Connection;
13
+ protected native: any;
14
+ constructor(connection?: Connection);
15
+ /**
16
+ * Hook for subclasses to set up the native builder object (e.g., calling .select()).
17
+ */
18
+ protected prepareBuilder(builder: any): any;
19
+ parameters(): any[];
20
+ /**
21
+ * Adds parameter(s) to the internal list. Handles single values and arrays of values.
22
+ */
23
+ protected addParameter(value: any | any[]): void;
24
+ /**
25
+ * Builds and returns the final SQL string.
26
+ */
27
+ build(): string;
28
+ }
29
+ /**
30
+ * Main entry point for the SQL Builder. Acts as a factory for specific builders.
31
+ */
32
+ export declare class SQLBuilder extends AbstractSQLBuilder {
33
+ /**
34
+ * Factory method to get a dialect-specific SQLBuilder instance.
35
+ */
36
+ static getDialect(connection?: Connection): SQLBuilder;
37
+ select(): SelectBuilder;
38
+ insert(): InsertBuilder;
39
+ update(): UpdateBuilder;
40
+ delete(): DeleteBuilder;
41
+ nextval(name: string): NextvalBuilder;
42
+ create(): CreateBuilder;
43
+ drop(): DropBuilder;
44
+ }
45
+ /**
46
+ * Builder for SELECT statements.
47
+ */
48
+ export declare class SelectBuilder extends AbstractSQLBuilder {
49
+ protected prepareBuilder(builder: any): any;
50
+ distinct(): SelectBuilder;
51
+ forUpdate(): SelectBuilder;
52
+ column(column: string): SelectBuilder;
53
+ from(table: string, alias?: string): SelectBuilder;
54
+ join(table: string, on: string, alias?: string, parameters?: any | any[]): SelectBuilder;
55
+ innerJoin(table: string, on: string, alias?: string, parameters?: any | any[]): SelectBuilder;
56
+ outerJoin(table: string, on: string, alias?: string, parameters?: any | any[]): SelectBuilder;
57
+ leftJoin(table: string, on: string, alias?: string, parameters?: any | any[]): SelectBuilder;
58
+ rightJoin(table: string, on: string, alias?: string, parameters?: any | any[]): SelectBuilder;
59
+ fullJoin(table: string, on: string, alias?: string, parameters?: any | any[]): SelectBuilder;
60
+ /**
61
+ * Sets the WHERE condition.
62
+ * @param condition The SQL condition string (e.g., "column1 = ?").
63
+ * @param parameters Optional parameters to replace '?' in the condition.
64
+ */
65
+ where(condition: string, parameters?: any | any[]): SelectBuilder;
66
+ order(column: string, asc?: boolean): SelectBuilder;
67
+ group(column: string): SelectBuilder;
68
+ limit(limit: number): SelectBuilder;
69
+ offset(offset: number): SelectBuilder;
70
+ having(having: string): SelectBuilder;
71
+ union(select: string): SelectBuilder;
72
+ }
73
+ /**
74
+ * Builder for INSERT statements.
75
+ */
76
+ export declare class InsertBuilder extends AbstractSQLBuilder {
77
+ protected prepareBuilder(builder: any): any;
78
+ into(table: string): InsertBuilder;
79
+ column(column: string): InsertBuilder;
80
+ /**
81
+ * Sets the value for the last column specified.
82
+ * @param value The value placeholder (e.g., "?") or literal.
83
+ * @param parameters Optional parameters if a placeholder was used.
84
+ */
85
+ value(value: string, parameters?: any | any[]): InsertBuilder;
86
+ select(select: string): InsertBuilder;
87
+ }
88
+ /**
89
+ * Builder for UPDATE statements.
90
+ */
91
+ export declare class UpdateBuilder extends AbstractSQLBuilder {
92
+ protected prepareBuilder(builder: any): any;
93
+ table(table: string): UpdateBuilder;
94
+ /**
95
+ * Sets a column to a value.
96
+ * @param column The column name.
97
+ * @param value The value placeholder (e.g., "?") or literal.
98
+ * @param parameters Optional parameters if a placeholder was used.
99
+ */
100
+ set(column: string, value: string, parameters?: any | any[]): UpdateBuilder;
101
+ /**
102
+ * Sets the WHERE condition for the update.
103
+ * @param condition The SQL condition string (e.g., "column1 = ?").
104
+ * @param parameters Optional parameters to replace '?' in the condition.
105
+ */
106
+ where(condition: string, parameters?: any | any[]): UpdateBuilder;
107
+ }
108
+ /**
109
+ * Builder for DELETE statements.
110
+ */
111
+ export declare class DeleteBuilder extends AbstractSQLBuilder {
112
+ protected prepareBuilder(builder: any): any;
113
+ from(table: string): DeleteBuilder;
114
+ /**
115
+ * Sets the WHERE condition for the deletion.
116
+ * @param condition The SQL condition string (e.g., "column1 = ?").
117
+ * @param parameters Optional parameters to replace '?' in the condition.
118
+ */
119
+ where(condition: string, parameters?: any | any[]): DeleteBuilder;
120
+ }
121
+ /**
122
+ * Builder for selecting the next value from a sequence.
123
+ */
124
+ export declare class NextvalBuilder extends AbstractSQLBuilder {
125
+ private name;
126
+ constructor(name: string, connection?: Connection);
127
+ protected prepareBuilder(builder: any): any;
128
+ }
129
+ /**
130
+ * Builder for CREATE statements (Table, View, Sequence).
131
+ */
132
+ export declare class CreateBuilder extends AbstractSQLBuilder {
133
+ table(table: string): CreateTableBuilder;
134
+ view(view: string): CreateViewBuilder;
135
+ sequence(sequence: string): CreateSequenceBuilder;
136
+ }
137
+ /**
138
+ * Builder for CREATE TABLE statements.
139
+ */
140
+ export declare class CreateTableBuilder extends AbstractSQLBuilder {
141
+ constructor(table: string, connection?: Connection);
142
+ /**
143
+ * Adds a generic column definition.
144
+ * @param args Additional dialect-specific arguments passed as an array to native.
145
+ */
146
+ column(name: string, type: DataType, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, isFuzzyIndexEnabled?: boolean, ...args: string[]): CreateTableBuilder;
147
+ /**
148
+ * Adds a VARCHAR column.
149
+ * @param args Additional dialect-specific arguments passed as an array to native.
150
+ */
151
+ columnVarchar(name: string, length: number, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, ...args: string[]): CreateTableBuilder;
152
+ /**
153
+ * Adds an NVARCHAR column.
154
+ * @param args Additional dialect-specific arguments passed as an array to native.
155
+ */
156
+ columnNvarchar(name: string, length: number, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, ...args: string[]): CreateTableBuilder;
157
+ /**
158
+ * Adds a CHAR column.
159
+ * @param args Additional dialect-specific arguments passed as an array to native.
160
+ */
161
+ columnChar(name: string, length: number, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, ...args: string[]): CreateTableBuilder;
162
+ /**
163
+ * Adds a DATE column.
164
+ * @param args Additional dialect-specific arguments passed as an array to native.
165
+ */
166
+ columnDate(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
167
+ /**
168
+ * Adds a TIME column.
169
+ * @param args Additional dialect-specific arguments passed as an array to native.
170
+ */
171
+ columnTime(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
172
+ /**
173
+ * Adds a TIMESTAMP column.
174
+ * @param args Additional dialect-specific arguments passed as an array to native.
175
+ */
176
+ columnTimestamp(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
177
+ /**
178
+ * Adds an INTEGER column.
179
+ * @param args Additional dialect-specific arguments passed as an array to native.
180
+ */
181
+ columnInteger(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, ...args: string[]): CreateTableBuilder;
182
+ /**
183
+ * Adds a TINYINT column.
184
+ * @param args Additional dialect-specific arguments passed as an array to native.
185
+ */
186
+ columnTinyint(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
187
+ /**
188
+ * Adds a BIGINT column.
189
+ * @param args Additional dialect-specific arguments passed as an array to native.
190
+ */
191
+ columnBigint(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, ...args: string[]): CreateTableBuilder;
192
+ /**
193
+ * Adds a SMALLINT column.
194
+ * @param args Additional dialect-specific arguments passed as an array to native.
195
+ */
196
+ columnSmallint(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
197
+ /**
198
+ * Adds a REAL column.
199
+ * @param args Additional dialect-specific arguments passed as an array to native.
200
+ */
201
+ columnReal(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
202
+ /**
203
+ * Adds a DOUBLE column.
204
+ * @param args Additional dialect-specific arguments passed as an array to native.
205
+ */
206
+ columnDouble(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
207
+ /**
208
+ * Adds a BOOLEAN column.
209
+ * @param args Additional dialect-specific arguments passed as an array to native.
210
+ */
211
+ columnBoolean(name: string, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, ...args: string[]): CreateTableBuilder;
212
+ /**
213
+ * Adds a BLOB column.
214
+ * @param args Additional dialect-specific arguments passed as an array to native.
215
+ */
216
+ columnBlob(name: string, isNullable?: boolean, ...args: string[]): CreateTableBuilder;
217
+ /**
218
+ * Adds a DECIMAL column with precision and scale.
219
+ * @param args Additional dialect-specific arguments passed as an array to native.
220
+ */
221
+ columnDecimal(name: string, precision: number, scale: number, isPrimaryKey?: boolean, isNullable?: boolean, isUnique?: boolean, isIdentity?: boolean, ...args: string[]): CreateTableBuilder;
222
+ primaryKey(columns: string[], name?: string): CreateTableBuilder;
223
+ foreignKey(name: string, columns: string[], referencedTable: string, referencedColumns: string[], referencedTableSchema?: string): CreateTableBuilder;
224
+ unique(name: string, columns: string[]): CreateTableBuilder;
225
+ check(name: string, expression: string): CreateTableBuilder;
226
+ }
227
+ /**
228
+ * Builder for CREATE VIEW statements.
229
+ */
230
+ export declare class CreateViewBuilder extends AbstractSQLBuilder {
231
+ constructor(view: string, connection?: Connection);
232
+ column(column: string): CreateViewBuilder;
233
+ asSelect(select: string): CreateViewBuilder;
234
+ }
235
+ /**
236
+ * Builder for CREATE SEQUENCE statements.
237
+ */
238
+ export declare class CreateSequenceBuilder extends AbstractSQLBuilder {
239
+ constructor(sequence: string, connection?: Connection);
240
+ }
241
+ /**
242
+ * Builder for DROP statements (Table, View, Sequence).
243
+ */
244
+ export declare class DropBuilder extends AbstractSQLBuilder {
245
+ table(table: string): DropTableBuilder;
246
+ view(view: string): DropViewBuilder;
247
+ sequence(sequence: string): DropSequenceBuilder;
248
+ }
249
+ /**
250
+ * Builder for DROP TABLE statements.
251
+ */
252
+ export declare class DropTableBuilder extends AbstractSQLBuilder {
253
+ constructor(table: string, connection?: Connection);
254
+ }
255
+ /**
256
+ * Builder for DROP VIEW statements.
257
+ */
258
+ export declare class DropViewBuilder extends AbstractSQLBuilder {
259
+ constructor(view: string, connection?: Connection);
260
+ }
261
+ /**
262
+ * Builder for DROP SEQUENCE statements.
263
+ */
264
+ export declare class DropSequenceBuilder extends AbstractSQLBuilder {
265
+ constructor(sequence: string, connection?: Connection);
266
+ }
267
+ export {};
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Defines the available comparison operators for query conditions.
3
+ */
4
+ export declare enum Operator {
5
+ EQ = "=",// Equals
6
+ NE = "<>",// Not Equals
7
+ GT = ">",// Greater Than
8
+ LT = "<",// Less Than
9
+ GE = ">=",// Greater Than or Equals
10
+ LE = "<=",// Less Than or Equals
11
+ LIKE = "LIKE",// SQL LIKE operator
12
+ BETWEEN = "BETWEEN",// SQL BETWEEN operator (requires two values)
13
+ IN = "IN"
14
+ }
15
+ /**
16
+ * Defines the direction for sorting.
17
+ */
18
+ export declare enum Direction {
19
+ ASC = "ASC",// Ascending
20
+ DESC = "DESC"
21
+ }
22
+ /**
23
+ * Represents a single condition for filtering data.
24
+ */
25
+ export interface Condition {
26
+ propertyName: string;
27
+ operator: Operator;
28
+ value: any | any[];
29
+ }
30
+ /**
31
+ * Represents a single sorting instruction.
32
+ */
33
+ export interface Sort {
34
+ propertyName: string;
35
+ direction: Direction;
36
+ }
37
+ /**
38
+ * Defines optional parameters for list and count operations.
39
+ */
40
+ export interface Options {
41
+ conditions?: Condition[];
42
+ sorts?: Sort[];
43
+ limit?: number;
44
+ offset?: number;
45
+ language?: string;
46
+ }
47
+ /**
48
+ * Facade class for interacting with the underlying Dirigible Data Store.
49
+ * All methods serialize/deserialize JavaScript objects to/from JSON strings
50
+ * before interacting with the native Java facade.
51
+ */
52
+ export declare class Store {
53
+ /**
54
+ * Saves a new entry to the data store.
55
+ * @param name The entity/table name.
56
+ * @param entry The JavaScript object to save.
57
+ * @returns The ID of the newly created entry (string or number).
58
+ */
59
+ static save(name: string, entry: any): string | number;
60
+ /**
61
+ * Inserts a new entry or updates an existing one if the ID is present.
62
+ * @param name The entity/table name.
63
+ * @param entry The JavaScript object to insert/update.
64
+ */
65
+ static upsert(name: string, entry: any): void;
66
+ /**
67
+ * Updates an existing entry.
68
+ * @param name The entity/table name.
69
+ * @param entry The JavaScript object with the ID and updated data.
70
+ */
71
+ static update(name: string, entry: any): void;
72
+ /**
73
+ * Lists entries based on optional filtering, sorting, and pagination options.
74
+ * @param name The entity/table name.
75
+ * @param options Optional {@link Options} for query execution.
76
+ * @returns An array of JavaScript objects.
77
+ */
78
+ static list(name: string, options?: Options): any[];
79
+ /**
80
+ * Counts the number of entries based on optional filtering options.
81
+ * @param name The entity/table name.
82
+ * @param options Optional {@link Options} for query execution.
83
+ * @returns The count of matching entries.
84
+ */
85
+ static count(name: string, options?: Options): number;
86
+ /**
87
+ * Retrieves a single entry by its ID.
88
+ * @param name The entity/table name.
89
+ * @param id The ID of the entry.
90
+ * @returns The entry object, or undefined if not found.
91
+ */
92
+ static get(name: string, id: any): any | undefined;
93
+ /**
94
+ * Deletes an entry by its ID.
95
+ * @param name The entity/table name.
96
+ * @param id The ID of the entry to remove.
97
+ */
98
+ static remove(name: string, id: any): void;
99
+ /**
100
+ * Finds entries matching an example object (query-by-example).
101
+ * @param name The entity/table name.
102
+ * @param example An object containing properties to match.
103
+ * @param limit Maximum number of results to return.
104
+ * @param offset Number of results to skip.
105
+ * @returns An array of matching JavaScript objects.
106
+ */
107
+ static find(name: string, example: any, limit?: number, offset?: number): any[];
108
+ /**
109
+ * Queries all entries for a given entity name with pagination.
110
+ * @param name The entity/table name.
111
+ * @param limit Maximum number of results to return.
112
+ * @param offset Number of results to skip.
113
+ * @returns An array of JavaScript objects.
114
+ */
115
+ static query(name: string, limit?: number, offset?: number): any[];
116
+ /**
117
+ * Queries all entries for a given entity name without pagination.
118
+ * @param name The entity/table name.
119
+ * @returns An array of all JavaScript objects.
120
+ */
121
+ static queryNative(name: string): any[];
122
+ /**
123
+ * Gets the name of the entity associated with the store name.
124
+ */
125
+ static getEntityName(name: string): string;
126
+ /**
127
+ * Gets the underlying database table name for the entity.
128
+ */
129
+ static getTableName(name: string): string;
130
+ /**
131
+ * Gets the property name used as the ID field in the entity object.
132
+ */
133
+ static getIdName(name: string): string;
134
+ /**
135
+ * Gets the underlying database column name used for the ID field.
136
+ */
137
+ static getIdColumn(name: string): string;
138
+ }