@ductape/sdk 0.0.4-v5 → 0.0.4-v51

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 (338) hide show
  1. package/README.md +1 -1
  2. package/dist/api/services/appApi.service.d.ts +48 -2
  3. package/dist/api/services/appApi.service.js +101 -2
  4. package/dist/api/services/appApi.service.js.map +1 -1
  5. package/dist/api/services/pricingApi.service.d.ts +10 -0
  6. package/dist/api/services/pricingApi.service.js +34 -0
  7. package/dist/api/services/pricingApi.service.js.map +1 -0
  8. package/dist/api/services/processorApi.service.d.ts +12 -2
  9. package/dist/api/services/processorApi.service.js +12 -2
  10. package/dist/api/services/processorApi.service.js.map +1 -1
  11. package/dist/api/services/productsApi.service.d.ts +40 -1
  12. package/dist/api/services/productsApi.service.js +105 -1
  13. package/dist/api/services/productsApi.service.js.map +1 -1
  14. package/dist/api/services/userApi.service.js +1 -0
  15. package/dist/api/services/userApi.service.js.map +1 -1
  16. package/dist/api/services/workspaceApi.service.js +1 -0
  17. package/dist/api/services/workspaceApi.service.js.map +1 -1
  18. package/dist/api/services/workspaceSecretsApi.service.d.ts +75 -0
  19. package/dist/api/services/workspaceSecretsApi.service.js +62 -0
  20. package/dist/api/services/workspaceSecretsApi.service.js.map +1 -0
  21. package/dist/api/urls.d.ts +6 -1
  22. package/dist/api/urls.js +12 -2
  23. package/dist/api/urls.js.map +1 -1
  24. package/dist/api/utils/cache.utils.d.ts +1 -1
  25. package/dist/api/utils/cache.utils.js +10 -4
  26. package/dist/api/utils/cache.utils.js.map +1 -1
  27. package/dist/api/utils/strings.utils.d.ts +2 -0
  28. package/dist/api/utils/strings.utils.js +14 -0
  29. package/dist/api/utils/strings.utils.js.map +1 -1
  30. package/dist/apps/services/app.service.d.ts +51 -33
  31. package/dist/apps/services/app.service.js +488 -244
  32. package/dist/apps/services/app.service.js.map +1 -1
  33. package/dist/apps/validators/joi-validators/create.appAction.validator.d.ts +1 -2
  34. package/dist/apps/validators/joi-validators/create.appAction.validator.js +21 -2
  35. package/dist/apps/validators/joi-validators/create.appAction.validator.js.map +1 -1
  36. package/dist/apps/validators/joi-validators/create.appWebhook.validator.d.ts +1 -2
  37. package/dist/apps/validators/joi-validators/create.appWebhook.validator.js +2 -15
  38. package/dist/apps/validators/joi-validators/create.appWebhook.validator.js.map +1 -1
  39. package/dist/apps/validators/joi-validators/update.appAction.validator.js +11 -1
  40. package/dist/apps/validators/joi-validators/update.appAction.validator.js.map +1 -1
  41. package/dist/apps/validators/joi-validators/update.appActionResponse.validator.d.ts +1 -1
  42. package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js +34 -1
  43. package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js.map +1 -1
  44. package/dist/apps/validators/joi-validators/update.appWebhook.validator.d.ts +1 -2
  45. package/dist/apps/validators/joi-validators/update.appWebhook.validator.js +2 -14
  46. package/dist/apps/validators/joi-validators/update.appWebhook.validator.js.map +1 -1
  47. package/dist/clients/pricing.client.d.ts +3 -0
  48. package/dist/clients/pricing.client.js +33 -0
  49. package/dist/clients/pricing.client.js.map +1 -0
  50. package/dist/database/adapters/base.adapter.d.ts +176 -0
  51. package/dist/database/adapters/base.adapter.js +31 -0
  52. package/dist/database/adapters/base.adapter.js.map +1 -0
  53. package/dist/database/adapters/dynamodb.adapter.d.ts +91 -0
  54. package/dist/database/adapters/dynamodb.adapter.js +1608 -0
  55. package/dist/database/adapters/dynamodb.adapter.js.map +1 -0
  56. package/dist/database/adapters/mongodb.adapter.d.ts +71 -0
  57. package/dist/database/adapters/mongodb.adapter.js +1072 -0
  58. package/dist/database/adapters/mongodb.adapter.js.map +1 -0
  59. package/dist/database/adapters/mysql.adapter.d.ts +146 -0
  60. package/dist/database/adapters/mysql.adapter.js +1492 -0
  61. package/dist/database/adapters/mysql.adapter.js.map +1 -0
  62. package/dist/database/adapters/postgresql.adapter.d.ts +147 -0
  63. package/dist/database/adapters/postgresql.adapter.js +1603 -0
  64. package/dist/database/adapters/postgresql.adapter.js.map +1 -0
  65. package/dist/database/database.service.d.ts +232 -0
  66. package/dist/database/database.service.js +802 -0
  67. package/dist/database/database.service.js.map +1 -0
  68. package/dist/database/index.d.ts +18 -0
  69. package/dist/database/index.js +98 -0
  70. package/dist/database/index.js.map +1 -0
  71. package/dist/database/types/aggregation.types.d.ts +261 -0
  72. package/dist/database/types/aggregation.types.js +21 -0
  73. package/dist/database/types/aggregation.types.js.map +1 -0
  74. package/dist/database/types/connection.types.d.ts +132 -0
  75. package/dist/database/types/connection.types.js +6 -0
  76. package/dist/database/types/connection.types.js.map +1 -0
  77. package/dist/database/types/database.types.d.ts +175 -0
  78. package/dist/database/types/database.types.js +75 -0
  79. package/dist/database/types/database.types.js.map +1 -0
  80. package/dist/database/types/index.d.ts +12 -0
  81. package/dist/database/types/index.js +37 -0
  82. package/dist/database/types/index.js.map +1 -0
  83. package/dist/database/types/index.types.d.ts +220 -0
  84. package/dist/database/types/index.types.js +27 -0
  85. package/dist/database/types/index.types.js.map +1 -0
  86. package/dist/database/types/migration.types.d.ts +205 -0
  87. package/dist/database/types/migration.types.js +44 -0
  88. package/dist/database/types/migration.types.js.map +1 -0
  89. package/dist/database/types/query.types.d.ts +305 -0
  90. package/dist/database/types/query.types.js +57 -0
  91. package/dist/database/types/query.types.js.map +1 -0
  92. package/dist/database/types/result.types.d.ts +220 -0
  93. package/dist/database/types/result.types.js +6 -0
  94. package/dist/database/types/result.types.js.map +1 -0
  95. package/dist/database/types/schema.types.d.ts +190 -0
  96. package/dist/database/types/schema.types.js +69 -0
  97. package/dist/database/types/schema.types.js.map +1 -0
  98. package/dist/database/utils/helpers.d.ts +66 -0
  99. package/dist/database/utils/helpers.js +501 -0
  100. package/dist/database/utils/helpers.js.map +1 -0
  101. package/dist/database/utils/migration.utils.d.ts +151 -0
  102. package/dist/database/utils/migration.utils.js +476 -0
  103. package/dist/database/utils/migration.utils.js.map +1 -0
  104. package/dist/database/utils/transaction.d.ts +64 -0
  105. package/dist/database/utils/transaction.js +130 -0
  106. package/dist/database/utils/transaction.js.map +1 -0
  107. package/dist/database/validators/connection.validator.d.ts +20 -0
  108. package/dist/database/validators/connection.validator.js +267 -0
  109. package/dist/database/validators/connection.validator.js.map +1 -0
  110. package/dist/database/validators/query.validator.d.ts +31 -0
  111. package/dist/database/validators/query.validator.js +305 -0
  112. package/dist/database/validators/query.validator.js.map +1 -0
  113. package/dist/database/validators/schema.validator.d.ts +31 -0
  114. package/dist/database/validators/schema.validator.js +334 -0
  115. package/dist/database/validators/schema.validator.js.map +1 -0
  116. package/dist/graph/adapters/arangodb.adapter.d.ts +80 -0
  117. package/dist/graph/adapters/arangodb.adapter.js +1393 -0
  118. package/dist/graph/adapters/arangodb.adapter.js.map +1 -0
  119. package/dist/graph/adapters/base.adapter.d.ts +228 -0
  120. package/dist/graph/adapters/base.adapter.js +38 -0
  121. package/dist/graph/adapters/base.adapter.js.map +1 -0
  122. package/dist/graph/adapters/index.d.ts +10 -0
  123. package/dist/graph/adapters/index.js +23 -0
  124. package/dist/graph/adapters/index.js.map +1 -0
  125. package/dist/graph/adapters/memgraph.adapter.d.ts +85 -0
  126. package/dist/graph/adapters/memgraph.adapter.js +1491 -0
  127. package/dist/graph/adapters/memgraph.adapter.js.map +1 -0
  128. package/dist/graph/adapters/neo4j.adapter.d.ts +88 -0
  129. package/dist/graph/adapters/neo4j.adapter.js +1861 -0
  130. package/dist/graph/adapters/neo4j.adapter.js.map +1 -0
  131. package/dist/graph/adapters/neptune.adapter.d.ts +87 -0
  132. package/dist/graph/adapters/neptune.adapter.js +1430 -0
  133. package/dist/graph/adapters/neptune.adapter.js.map +1 -0
  134. package/dist/graph/graph.service.d.ts +278 -0
  135. package/dist/graph/graph.service.js +687 -0
  136. package/dist/graph/graph.service.js.map +1 -0
  137. package/dist/graph/index.d.ts +11 -0
  138. package/dist/graph/index.js +42 -0
  139. package/dist/graph/index.js.map +1 -0
  140. package/dist/graph/types/connection.types.d.ts +158 -0
  141. package/dist/graph/types/connection.types.js +43 -0
  142. package/dist/graph/types/connection.types.js.map +1 -0
  143. package/dist/graph/types/graph.types.d.ts +144 -0
  144. package/dist/graph/types/graph.types.js +84 -0
  145. package/dist/graph/types/graph.types.js.map +1 -0
  146. package/dist/graph/types/index.d.ts +11 -0
  147. package/dist/graph/types/index.js +35 -0
  148. package/dist/graph/types/index.js.map +1 -0
  149. package/dist/graph/types/node.types.d.ts +193 -0
  150. package/dist/graph/types/node.types.js +49 -0
  151. package/dist/graph/types/node.types.js.map +1 -0
  152. package/dist/graph/types/path.types.d.ts +224 -0
  153. package/dist/graph/types/path.types.js +38 -0
  154. package/dist/graph/types/path.types.js.map +1 -0
  155. package/dist/graph/types/query.types.d.ts +247 -0
  156. package/dist/graph/types/query.types.js +23 -0
  157. package/dist/graph/types/query.types.js.map +1 -0
  158. package/dist/graph/types/relationship.types.d.ts +224 -0
  159. package/dist/graph/types/relationship.types.js +35 -0
  160. package/dist/graph/types/relationship.types.js.map +1 -0
  161. package/dist/graph/types/result.types.d.ts +237 -0
  162. package/dist/graph/types/result.types.js +7 -0
  163. package/dist/graph/types/result.types.js.map +1 -0
  164. package/dist/graph/validators/index.d.ts +81 -0
  165. package/dist/graph/validators/index.js +243 -0
  166. package/dist/graph/validators/index.js.map +1 -0
  167. package/dist/imports/imports.service.d.ts +3 -3
  168. package/dist/imports/imports.service.js +7 -7
  169. package/dist/imports/imports.service.js.map +1 -1
  170. package/dist/imports/imports.types.d.ts +8 -0
  171. package/dist/imports/repos/postmanV21.repo.d.ts +1 -1
  172. package/dist/imports/repos/postmanV21.repo.js +29 -2
  173. package/dist/imports/repos/postmanV21.repo.js.map +1 -1
  174. package/dist/index.d.ts +1244 -150
  175. package/dist/index.js +1309 -209
  176. package/dist/index.js.map +1 -1
  177. package/dist/inputs/inputs.service.js +2 -2
  178. package/dist/inputs/inputs.service.js.map +1 -1
  179. package/dist/inputs/utils/inputs.utils.create.js +1 -1
  180. package/dist/inputs/utils/inputs.utils.create.js.map +1 -1
  181. package/dist/logs/logs.types.d.ts +5 -0
  182. package/dist/logs/logs.types.js +1 -0
  183. package/dist/logs/logs.types.js.map +1 -1
  184. package/dist/parsers/index.d.ts +3 -0
  185. package/dist/parsers/index.js +27 -0
  186. package/dist/parsers/index.js.map +1 -0
  187. package/dist/parsers/pipelines/postman.pipelines.d.ts +15 -0
  188. package/dist/parsers/pipelines/postman.pipelines.js +103 -0
  189. package/dist/parsers/pipelines/postman.pipelines.js.map +1 -0
  190. package/dist/parsers/types/postman.types.d.ts +200 -0
  191. package/dist/parsers/types/postman.types.js +3 -0
  192. package/dist/parsers/types/postman.types.js.map +1 -0
  193. package/dist/parsers/utils/postman.utils.d.ts +12 -0
  194. package/dist/parsers/utils/postman.utils.js +116 -0
  195. package/dist/parsers/utils/postman.utils.js.map +1 -0
  196. package/dist/parsers/validators/postman-auth.validators.d.ts +10 -0
  197. package/dist/parsers/validators/postman-auth.validators.js +127 -0
  198. package/dist/parsers/validators/postman-auth.validators.js.map +1 -0
  199. package/dist/parsers/validators/postman-request.validators.d.ts +13 -0
  200. package/dist/parsers/validators/postman-request.validators.js +139 -0
  201. package/dist/parsers/validators/postman-request.validators.js.map +1 -0
  202. package/dist/parsers/validators/postman-response.validators.d.ts +13 -0
  203. package/dist/parsers/validators/postman-response.validators.js +150 -0
  204. package/dist/parsers/validators/postman-response.validators.js.map +1 -0
  205. package/dist/parsers/validators/postman-variable.validators.d.ts +14 -0
  206. package/dist/parsers/validators/postman-variable.validators.js +163 -0
  207. package/dist/parsers/validators/postman-variable.validators.js.map +1 -0
  208. package/dist/pricing/pricing.repo.d.ts +0 -0
  209. package/dist/pricing/pricing.repo.js +1 -0
  210. package/dist/pricing/pricing.repo.js.map +1 -0
  211. package/dist/pricing/pricing.service.d.ts +24 -0
  212. package/dist/pricing/pricing.service.js +51 -0
  213. package/dist/pricing/pricing.service.js.map +1 -0
  214. package/dist/pricing/pricing.types.d.ts +76 -0
  215. package/dist/pricing/pricing.types.js +21 -0
  216. package/dist/pricing/pricing.types.js.map +1 -0
  217. package/dist/pricing/utils/string.utils.d.ts +1 -0
  218. package/dist/pricing/utils/string.utils.js +9 -0
  219. package/dist/pricing/utils/string.utils.js.map +1 -0
  220. package/dist/processor/repos/sms.repo.d.ts +4 -4
  221. package/dist/processor/repos/sms.repo.js +23 -10
  222. package/dist/processor/repos/sms.repo.js.map +1 -1
  223. package/dist/processor/services/messagebrokers/kafka.service.js +0 -2
  224. package/dist/processor/services/messagebrokers/kafka.service.js.map +1 -1
  225. package/dist/processor/services/messagebrokers/rabbitmq.service.d.ts +9 -1
  226. package/dist/processor/services/messagebrokers/rabbitmq.service.js +40 -11
  227. package/dist/processor/services/messagebrokers/rabbitmq.service.js.map +1 -1
  228. package/dist/processor/services/processor.service.d.ts +38 -10
  229. package/dist/processor/services/processor.service.js +533 -248
  230. package/dist/processor/services/processor.service.js.map +1 -1
  231. package/dist/processor/services/request.service.d.ts +36 -0
  232. package/dist/processor/services/request.service.js +304 -0
  233. package/dist/processor/services/request.service.js.map +1 -0
  234. package/dist/processor/types/request.types.d.ts +14 -0
  235. package/dist/processor/types/request.types.js +3 -0
  236. package/dist/processor/types/request.types.js.map +1 -0
  237. package/dist/processor/utils/processor.utils.d.ts +3 -0
  238. package/dist/processor/utils/processor.utils.js +84 -22
  239. package/dist/processor/utils/processor.utils.js.map +1 -1
  240. package/dist/processor/utils/request.utils.d.ts +20 -0
  241. package/dist/processor/utils/request.utils.js +113 -0
  242. package/dist/processor/utils/request.utils.js.map +1 -0
  243. package/dist/products/services/products.service.d.ts +114 -77
  244. package/dist/products/services/products.service.js +805 -362
  245. package/dist/products/services/products.service.js.map +1 -1
  246. package/dist/products/services/utils/crypt.utils.d.ts +1 -0
  247. package/dist/products/services/utils/crypt.utils.js +17 -0
  248. package/dist/products/services/utils/crypt.utils.js.map +1 -0
  249. package/dist/products/services/utils/functions.utils.d.ts +13 -0
  250. package/dist/products/services/utils/functions.utils.js +289 -0
  251. package/dist/products/services/utils/functions.utils.js.map +1 -0
  252. package/dist/products/services/utils/objects.utils.d.ts +13 -0
  253. package/dist/products/services/utils/objects.utils.js +89 -0
  254. package/dist/products/services/utils/objects.utils.js.map +1 -0
  255. package/dist/products/services/utils/string.utils.d.ts +12 -0
  256. package/dist/products/services/utils/string.utils.js +168 -0
  257. package/dist/products/services/utils/string.utils.js.map +1 -0
  258. package/dist/products/utils/string.utils.d.ts +1 -1
  259. package/dist/products/utils/string.utils.js +14 -2
  260. package/dist/products/utils/string.utils.js.map +1 -1
  261. package/dist/products/validators/index.d.ts +4 -1
  262. package/dist/products/validators/index.js +7 -1
  263. package/dist/products/validators/index.js.map +1 -1
  264. package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.d.ts +15 -4
  265. package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js +501 -109
  266. package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js.map +1 -1
  267. package/dist/products/validators/joi-validators/create.productEnv.validator.js +1 -0
  268. package/dist/products/validators/joi-validators/create.productEnv.validator.js.map +1 -1
  269. package/dist/products/validators/joi-validators/create.productGraph.validator.d.ts +3 -0
  270. package/dist/products/validators/joi-validators/create.productGraph.validator.js +82 -0
  271. package/dist/products/validators/joi-validators/create.productGraph.validator.js.map +1 -0
  272. package/dist/products/validators/joi-validators/create.productGraphAction.validator.d.ts +14 -0
  273. package/dist/products/validators/joi-validators/create.productGraphAction.validator.js +696 -0
  274. package/dist/products/validators/joi-validators/create.productGraphAction.validator.js.map +1 -0
  275. package/dist/products/validators/joi-validators/create.productHealthcheck.validator.d.ts +4 -0
  276. package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js +58 -0
  277. package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js.map +1 -0
  278. package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js +1 -0
  279. package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js.map +1 -1
  280. package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js +9 -4
  281. package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js.map +1 -1
  282. package/dist/products/validators/joi-validators/create.productNotification.validator.js +5 -2
  283. package/dist/products/validators/joi-validators/create.productNotification.validator.js.map +1 -1
  284. package/dist/products/validators/joi-validators/create.userAuth.validator.js +1 -0
  285. package/dist/products/validators/joi-validators/create.userAuth.validator.js.map +1 -1
  286. package/dist/products/validators/joi-validators/update.dataValue.validator.js +1 -0
  287. package/dist/products/validators/joi-validators/update.dataValue.validator.js.map +1 -1
  288. package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.d.ts +6 -0
  289. package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js +28 -26
  290. package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js.map +1 -1
  291. package/dist/products/validators/joi-validators/update.productEnv.validator.js +3 -0
  292. package/dist/products/validators/joi-validators/update.productEnv.validator.js.map +1 -1
  293. package/dist/products/validators/joi-validators/update.productGraph.validator.d.ts +3 -0
  294. package/dist/products/validators/joi-validators/update.productGraph.validator.js +87 -0
  295. package/dist/products/validators/joi-validators/update.productGraph.validator.js.map +1 -0
  296. package/dist/products/validators/joi-validators/update.productGraphAction.validator.d.ts +7 -0
  297. package/dist/products/validators/joi-validators/update.productGraphAction.validator.js +72 -0
  298. package/dist/products/validators/joi-validators/update.productGraphAction.validator.js.map +1 -0
  299. package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js +1 -0
  300. package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js.map +1 -1
  301. package/dist/products/validators/joi-validators/update.userAuth.validator.js +1 -0
  302. package/dist/products/validators/joi-validators/update.userAuth.validator.js.map +1 -1
  303. package/dist/test/test.health.d.ts +1 -0
  304. package/dist/test/test.health.js +49 -0
  305. package/dist/test/test.health.js.map +1 -0
  306. package/dist/test/test.import.js +51 -4
  307. package/dist/test/test.import.js.map +1 -1
  308. package/dist/test/test.imports.js +22 -7
  309. package/dist/test/test.imports.js.map +1 -1
  310. package/dist/test/test.notifiers.d.ts +1 -0
  311. package/dist/test/test.notifiers.js +85 -0
  312. package/dist/test/test.notifiers.js.map +1 -0
  313. package/dist/test/test.processor.js +30 -115
  314. package/dist/test/test.processor.js.map +1 -1
  315. package/dist/test/test.products.d.ts +1 -0
  316. package/dist/test/test.products.js +49 -0
  317. package/dist/test/test.products.js.map +1 -0
  318. package/dist/tsconfig.tsbuildinfo +1 -0
  319. package/dist/types/appBuilder.types.d.ts +5 -12
  320. package/dist/types/enums.d.ts +4 -1
  321. package/dist/types/enums.js +3 -0
  322. package/dist/types/enums.js.map +1 -1
  323. package/dist/types/index.types.d.ts +4 -0
  324. package/dist/types/pricing.types.d.ts +4 -0
  325. package/dist/types/pricing.types.js +3 -0
  326. package/dist/types/pricing.types.js.map +1 -0
  327. package/dist/types/processor.types.d.ts +67 -11
  328. package/dist/types/processor.types.js.map +1 -1
  329. package/dist/types/productsBuilder.types.d.ts +132 -14
  330. package/dist/types/productsBuilder.types.js +69 -4
  331. package/dist/types/productsBuilder.types.js.map +1 -1
  332. package/dist/types/request-tracker.interface.d.ts +0 -0
  333. package/dist/types/request-tracker.interface.js +1 -0
  334. package/dist/types/request-tracker.interface.js.map +1 -0
  335. package/dist/utils/constants.d.ts +1 -0
  336. package/dist/utils/constants.js +5 -0
  337. package/dist/utils/constants.js.map +1 -0
  338. package/package.json +17 -3
@@ -0,0 +1,247 @@
1
+ /**
2
+ * Query Types
3
+ * Defines interfaces for graph query operations
4
+ */
5
+ import { GraphQueryLanguage } from './graph.types';
6
+ import { GraphConnectionConfig, IProductGraphConfig } from './connection.types';
7
+ /**
8
+ * Raw query options
9
+ */
10
+ export interface IRawQueryOptions {
11
+ query: string;
12
+ params?: Record<string, any>;
13
+ language?: GraphQueryLanguage;
14
+ timeout?: number;
15
+ readonly?: boolean;
16
+ database?: string;
17
+ }
18
+ /**
19
+ * Query execution context
20
+ */
21
+ export interface IQueryContext {
22
+ config: GraphConnectionConfig | IProductGraphConfig;
23
+ transactionId?: string;
24
+ sessionId?: string;
25
+ }
26
+ /**
27
+ * Cypher-specific query options
28
+ */
29
+ export interface ICypherQueryOptions extends IRawQueryOptions {
30
+ language: GraphQueryLanguage.CYPHER;
31
+ profile?: boolean;
32
+ explain?: boolean;
33
+ }
34
+ /**
35
+ * Gremlin-specific query options
36
+ */
37
+ export interface IGremlinQueryOptions extends IRawQueryOptions {
38
+ language: GraphQueryLanguage.GREMLIN;
39
+ bindings?: Record<string, any>;
40
+ evaluationTimeout?: number;
41
+ }
42
+ /**
43
+ * AQL (ArangoDB)-specific query options
44
+ */
45
+ export interface IAQLQueryOptions extends IRawQueryOptions {
46
+ language: GraphQueryLanguage.AQL;
47
+ count?: boolean;
48
+ batchSize?: number;
49
+ cache?: boolean;
50
+ memoryLimit?: number;
51
+ ttl?: number;
52
+ fullCount?: boolean;
53
+ optimizer?: {
54
+ rules?: string[];
55
+ };
56
+ }
57
+ /**
58
+ * Union type for language-specific query options
59
+ */
60
+ export type LanguageQueryOptions = ICypherQueryOptions | IGremlinQueryOptions | IAQLQueryOptions | IRawQueryOptions;
61
+ /**
62
+ * Query statistics
63
+ */
64
+ export interface IQueryStatistics {
65
+ nodesCreated?: number;
66
+ nodesDeleted?: number;
67
+ relationshipsCreated?: number;
68
+ relationshipsDeleted?: number;
69
+ propertiesSet?: number;
70
+ labelsAdded?: number;
71
+ labelsRemoved?: number;
72
+ indexesAdded?: number;
73
+ indexesRemoved?: number;
74
+ constraintsAdded?: number;
75
+ constraintsRemoved?: number;
76
+ containsUpdates: boolean;
77
+ containsSystemUpdates?: boolean;
78
+ }
79
+ /**
80
+ * Query plan information
81
+ */
82
+ export interface IQueryPlan {
83
+ operatorType: string;
84
+ arguments?: Record<string, any>;
85
+ identifiers?: string[];
86
+ children?: IQueryPlan[];
87
+ rows?: number;
88
+ estimatedRows?: number;
89
+ dbHits?: number;
90
+ pageCacheHits?: number;
91
+ pageCacheMisses?: number;
92
+ time?: number;
93
+ }
94
+ /**
95
+ * Query profile information
96
+ */
97
+ export interface IQueryProfile extends IQueryPlan {
98
+ actualRows: number;
99
+ actualDbHits: number;
100
+ actualTime: number;
101
+ memory?: number;
102
+ }
103
+ /**
104
+ * Query notification (warnings/hints)
105
+ */
106
+ export interface IQueryNotification {
107
+ code: string;
108
+ title: string;
109
+ description: string;
110
+ severity: 'WARNING' | 'INFORMATION' | 'HINT';
111
+ position?: {
112
+ offset?: number;
113
+ line?: number;
114
+ column?: number;
115
+ };
116
+ }
117
+ /**
118
+ * Query metadata
119
+ */
120
+ export interface IQueryMetadata {
121
+ statistics?: IQueryStatistics;
122
+ plan?: IQueryPlan;
123
+ profile?: IQueryProfile;
124
+ notifications?: IQueryNotification[];
125
+ executionTime: number;
126
+ dbHits?: number;
127
+ serverVersion?: string;
128
+ queryLanguage: GraphQueryLanguage;
129
+ }
130
+ /**
131
+ * Aggregation function types
132
+ */
133
+ export declare enum AggregationFunction {
134
+ COUNT = "COUNT",
135
+ SUM = "SUM",
136
+ AVG = "AVG",
137
+ MIN = "MIN",
138
+ MAX = "MAX",
139
+ COLLECT = "COLLECT",
140
+ STDEV = "STDEV",
141
+ PERCENTILE_CONT = "PERCENTILE_CONT",
142
+ PERCENTILE_DISC = "PERCENTILE_DISC"
143
+ }
144
+ /**
145
+ * Aggregation options
146
+ */
147
+ export interface IAggregationOptions {
148
+ function: AggregationFunction;
149
+ property?: string;
150
+ alias?: string;
151
+ distinct?: boolean;
152
+ percentile?: number;
153
+ }
154
+ /**
155
+ * Group by options for graph queries
156
+ */
157
+ export interface IGraphGroupByOptions {
158
+ groupBy: string[];
159
+ aggregations: IAggregationOptions[];
160
+ having?: IHavingClause;
161
+ orderBy?: IGraphOrderBy[];
162
+ limit?: number;
163
+ }
164
+ /**
165
+ * Having clause for aggregation filtering
166
+ */
167
+ export interface IHavingClause {
168
+ aggregation: AggregationFunction;
169
+ property?: string;
170
+ operator: '=' | '<>' | '>' | '>=' | '<' | '<=';
171
+ value: number;
172
+ }
173
+ /**
174
+ * Order by for graph queries
175
+ */
176
+ export interface IGraphOrderBy {
177
+ expression: string;
178
+ direction: 'ASC' | 'DESC';
179
+ nulls?: 'FIRST' | 'LAST';
180
+ }
181
+ /**
182
+ * Pagination options
183
+ */
184
+ export interface IPaginationOptions {
185
+ skip?: number;
186
+ limit?: number;
187
+ cursor?: string;
188
+ }
189
+ /**
190
+ * Full-text search options
191
+ */
192
+ export interface IFullTextSearchOptions {
193
+ index: string;
194
+ query: string;
195
+ labels?: string[];
196
+ score?: boolean;
197
+ limit?: number;
198
+ analyzer?: string;
199
+ }
200
+ /**
201
+ * Vector search options (for vector indexes)
202
+ */
203
+ export interface IVectorSearchOptions {
204
+ index: string;
205
+ vector: number[];
206
+ topK: number;
207
+ labels?: string[];
208
+ minScore?: number;
209
+ }
210
+ /**
211
+ * Batch query options
212
+ */
213
+ export interface IBatchQueryOptions {
214
+ queries: IRawQueryOptions[];
215
+ sequential?: boolean;
216
+ stopOnError?: boolean;
217
+ transactional?: boolean;
218
+ }
219
+ /**
220
+ * Query template definition
221
+ */
222
+ export interface IQueryTemplate {
223
+ name: string;
224
+ query: string;
225
+ language: GraphQueryLanguage;
226
+ parameters?: IQueryParameterDefinition[];
227
+ description?: string;
228
+ }
229
+ /**
230
+ * Query parameter definition
231
+ */
232
+ export interface IQueryParameterDefinition {
233
+ name: string;
234
+ type: 'string' | 'number' | 'boolean' | 'array' | 'object' | 'date';
235
+ required?: boolean;
236
+ defaultValue?: any;
237
+ description?: string;
238
+ }
239
+ /**
240
+ * Prepared query (with bound parameters)
241
+ */
242
+ export interface IPreparedQuery {
243
+ template: IQueryTemplate;
244
+ params: Record<string, any>;
245
+ validate(): boolean;
246
+ execute<T = any>(): Promise<T>;
247
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /**
3
+ * Query Types
4
+ * Defines interfaces for graph query operations
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AggregationFunction = void 0;
8
+ /**
9
+ * Aggregation function types
10
+ */
11
+ var AggregationFunction;
12
+ (function (AggregationFunction) {
13
+ AggregationFunction["COUNT"] = "COUNT";
14
+ AggregationFunction["SUM"] = "SUM";
15
+ AggregationFunction["AVG"] = "AVG";
16
+ AggregationFunction["MIN"] = "MIN";
17
+ AggregationFunction["MAX"] = "MAX";
18
+ AggregationFunction["COLLECT"] = "COLLECT";
19
+ AggregationFunction["STDEV"] = "STDEV";
20
+ AggregationFunction["PERCENTILE_CONT"] = "PERCENTILE_CONT";
21
+ AggregationFunction["PERCENTILE_DISC"] = "PERCENTILE_DISC";
22
+ })(AggregationFunction || (exports.AggregationFunction = AggregationFunction = {}));
23
+ //# sourceMappingURL=query.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.types.js","sourceRoot":"","sources":["../../../src/graph/types/query.types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+IH;;GAEG;AACH,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,kCAAW,CAAA;IACX,kCAAW,CAAA;IACX,kCAAW,CAAA;IACX,0CAAmB,CAAA;IACnB,sCAAe,CAAA;IACf,0DAAmC,CAAA;IACnC,0DAAmC,CAAA;AACrC,CAAC,EAVW,mBAAmB,mCAAnB,mBAAmB,QAU9B"}
@@ -0,0 +1,224 @@
1
+ /**
2
+ * Relationship Types
3
+ * Defines interfaces for graph relationships (edges)
4
+ */
5
+ import { INode, NodeProperties, NodePropertyValue, NodeComparisonOperator } from './node.types';
6
+ /**
7
+ * Relationship property types
8
+ */
9
+ export type RelationshipPropertyValue = NodePropertyValue;
10
+ export type RelationshipProperties = Record<string, RelationshipPropertyValue>;
11
+ /**
12
+ * Represents a relationship (edge) in the graph
13
+ */
14
+ export interface IRelationship<T extends RelationshipProperties = RelationshipProperties> {
15
+ id: string | number;
16
+ type: string;
17
+ startNodeId: string | number;
18
+ endNodeId: string | number;
19
+ properties: T;
20
+ elementId?: string;
21
+ startNodeElementId?: string;
22
+ endNodeElementId?: string;
23
+ metadata?: IRelationshipMetadata;
24
+ }
25
+ /**
26
+ * Relationship with attached nodes
27
+ */
28
+ export interface IRelationshipWithNodes<R extends RelationshipProperties = RelationshipProperties, S extends NodeProperties = NodeProperties, E extends NodeProperties = NodeProperties> extends IRelationship<R> {
29
+ startNode: INode<S>;
30
+ endNode: INode<E>;
31
+ }
32
+ /**
33
+ * Relationship metadata
34
+ */
35
+ export interface IRelationshipMetadata {
36
+ createdAt?: Date;
37
+ updatedAt?: Date;
38
+ weight?: number;
39
+ version?: number;
40
+ }
41
+ /**
42
+ * Relationship direction
43
+ */
44
+ export declare enum RelationshipDirection {
45
+ OUTGOING = "OUTGOING",// (a)-[r]->(b)
46
+ INCOMING = "INCOMING",// (a)<-[r]-(b)
47
+ BOTH = "BOTH"
48
+ }
49
+ /**
50
+ * Options for creating a relationship
51
+ */
52
+ export interface ICreateRelationshipOptions<T extends RelationshipProperties = RelationshipProperties> {
53
+ type: string;
54
+ fromNode: INodeReference;
55
+ toNode: INodeReference;
56
+ properties?: T;
57
+ returnRelationship?: boolean;
58
+ onConflict?: 'error' | 'ignore' | 'merge';
59
+ }
60
+ /**
61
+ * Reference to a node (for relationship endpoints)
62
+ */
63
+ export interface INodeReference {
64
+ id?: string | number;
65
+ labels?: string | string[];
66
+ properties?: Partial<NodeProperties>;
67
+ where?: IRelationshipNodeWhere;
68
+ }
69
+ /**
70
+ * Node where clause in relationship context
71
+ */
72
+ export interface IRelationshipNodeWhere {
73
+ property: string;
74
+ operator: NodeComparisonOperator;
75
+ value: NodePropertyValue;
76
+ }
77
+ /**
78
+ * Options for finding relationships
79
+ */
80
+ export interface IFindRelationshipsOptions {
81
+ type?: string | string[];
82
+ direction?: RelationshipDirection;
83
+ fromNode?: INodeReference;
84
+ toNode?: INodeReference;
85
+ where?: IRelationshipWhereClause;
86
+ properties?: Partial<RelationshipProperties>;
87
+ orderBy?: IRelationshipOrderBy[];
88
+ skip?: number;
89
+ limit?: number;
90
+ returnProperties?: string[];
91
+ includeNodes?: boolean;
92
+ }
93
+ /**
94
+ * Relationship where clause
95
+ */
96
+ export interface IRelationshipWhereClause {
97
+ property: string;
98
+ operator: NodeComparisonOperator;
99
+ value: RelationshipPropertyValue;
100
+ and?: IRelationshipWhereClause[];
101
+ or?: IRelationshipWhereClause[];
102
+ }
103
+ /**
104
+ * Order by for relationship queries
105
+ */
106
+ export interface IRelationshipOrderBy {
107
+ property: string;
108
+ direction: 'ASC' | 'DESC';
109
+ }
110
+ /**
111
+ * Options for updating a relationship
112
+ */
113
+ export interface IUpdateRelationshipOptions {
114
+ id?: string | number;
115
+ type?: string;
116
+ fromNode?: INodeReference;
117
+ toNode?: INodeReference;
118
+ where?: IRelationshipWhereClause;
119
+ set?: Partial<RelationshipProperties>;
120
+ remove?: string[];
121
+ returnRelationship?: boolean;
122
+ }
123
+ /**
124
+ * Options for deleting relationships
125
+ */
126
+ export interface IDeleteRelationshipOptions {
127
+ id?: string | number;
128
+ type?: string | string[];
129
+ fromNode?: INodeReference;
130
+ toNode?: INodeReference;
131
+ where?: IRelationshipWhereClause;
132
+ returnCount?: boolean;
133
+ }
134
+ /**
135
+ * Options for merging relationships
136
+ */
137
+ export interface IMergeRelationshipOptions<T extends RelationshipProperties = RelationshipProperties> {
138
+ type: string;
139
+ fromNode: INodeReference;
140
+ toNode: INodeReference;
141
+ matchProperties?: Partial<T>;
142
+ onCreate?: Partial<T>;
143
+ onMatch?: Partial<T>;
144
+ returnRelationship?: boolean;
145
+ }
146
+ /**
147
+ * Relationship type definition for schema
148
+ */
149
+ export interface IRelationshipTypeDefinition {
150
+ type: string;
151
+ properties?: IRelationshipPropertyDefinition[];
152
+ constraints?: IRelationshipConstraint[];
153
+ indexes?: IRelationshipIndex[];
154
+ validStartLabels?: string[];
155
+ validEndLabels?: string[];
156
+ }
157
+ /**
158
+ * Relationship property definition
159
+ */
160
+ export interface IRelationshipPropertyDefinition {
161
+ name: string;
162
+ type: 'string' | 'integer' | 'float' | 'boolean' | 'date' | 'datetime' | 'list' | 'map';
163
+ required?: boolean;
164
+ indexed?: boolean;
165
+ defaultValue?: RelationshipPropertyValue;
166
+ }
167
+ /**
168
+ * Relationship constraint types
169
+ */
170
+ export declare enum RelationshipConstraintType {
171
+ EXISTS = "EXISTS",
172
+ UNIQUE = "UNIQUE"
173
+ }
174
+ /**
175
+ * Relationship constraint definition
176
+ */
177
+ export interface IRelationshipConstraint {
178
+ name: string;
179
+ type: RelationshipConstraintType;
180
+ properties: string[];
181
+ relationshipType: string;
182
+ }
183
+ /**
184
+ * Relationship index types
185
+ */
186
+ export declare enum RelationshipIndexType {
187
+ BTREE = "BTREE",
188
+ FULLTEXT = "FULLTEXT",
189
+ RANGE = "RANGE",
190
+ TEXT = "TEXT"
191
+ }
192
+ /**
193
+ * Relationship index definition
194
+ */
195
+ export interface IRelationshipIndex {
196
+ name: string;
197
+ type: RelationshipIndexType;
198
+ properties: string[];
199
+ relationshipType: string;
200
+ options?: Record<string, any>;
201
+ }
202
+ /**
203
+ * Batch relationship operation
204
+ */
205
+ export interface IBatchRelationshipOperation<T extends RelationshipProperties = RelationshipProperties> {
206
+ operation: 'create' | 'update' | 'delete' | 'merge';
207
+ type?: string;
208
+ fromNode?: INodeReference;
209
+ toNode?: INodeReference;
210
+ properties?: T;
211
+ where?: IRelationshipWhereClause;
212
+ id?: string | number;
213
+ }
214
+ /**
215
+ * Relationship pattern for pattern matching
216
+ */
217
+ export interface IRelationshipPattern {
218
+ variable?: string;
219
+ type?: string | string[];
220
+ direction?: RelationshipDirection;
221
+ properties?: Partial<RelationshipProperties>;
222
+ minHops?: number;
223
+ maxHops?: number;
224
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * Relationship Types
4
+ * Defines interfaces for graph relationships (edges)
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.RelationshipIndexType = exports.RelationshipConstraintType = exports.RelationshipDirection = void 0;
8
+ /**
9
+ * Relationship direction
10
+ */
11
+ var RelationshipDirection;
12
+ (function (RelationshipDirection) {
13
+ RelationshipDirection["OUTGOING"] = "OUTGOING";
14
+ RelationshipDirection["INCOMING"] = "INCOMING";
15
+ RelationshipDirection["BOTH"] = "BOTH";
16
+ })(RelationshipDirection || (exports.RelationshipDirection = RelationshipDirection = {}));
17
+ /**
18
+ * Relationship constraint types
19
+ */
20
+ var RelationshipConstraintType;
21
+ (function (RelationshipConstraintType) {
22
+ RelationshipConstraintType["EXISTS"] = "EXISTS";
23
+ RelationshipConstraintType["UNIQUE"] = "UNIQUE";
24
+ })(RelationshipConstraintType || (exports.RelationshipConstraintType = RelationshipConstraintType = {}));
25
+ /**
26
+ * Relationship index types
27
+ */
28
+ var RelationshipIndexType;
29
+ (function (RelationshipIndexType) {
30
+ RelationshipIndexType["BTREE"] = "BTREE";
31
+ RelationshipIndexType["FULLTEXT"] = "FULLTEXT";
32
+ RelationshipIndexType["RANGE"] = "RANGE";
33
+ RelationshipIndexType["TEXT"] = "TEXT";
34
+ })(RelationshipIndexType || (exports.RelationshipIndexType = RelationshipIndexType = {}));
35
+ //# sourceMappingURL=relationship.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relationship.types.js","sourceRoot":"","sources":["../../../src/graph/types/relationship.types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+CH;;GAEG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,sCAAa,CAAA;AACf,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAmID;;GAEG;AACH,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,+CAAiB,CAAA;IACjB,+CAAiB,CAAA;AACnB,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAYD;;GAEG;AACH,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}