@webda/core 3.16.4 → 4.0.0-beta.2

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 (452) hide show
  1. package/lib/application.d.ts +29 -8
  2. package/lib/application.d.ts.map +1 -0
  3. package/lib/application.js +65 -38
  4. package/lib/application.js.map +1 -1
  5. package/lib/application.spec.d.ts +1 -0
  6. package/lib/application.spec.d.ts.map +1 -0
  7. package/lib/application.spec.js +57 -43
  8. package/lib/application.spec.js.map +1 -1
  9. package/lib/core.d.ts +16 -12
  10. package/lib/core.d.ts.map +1 -0
  11. package/lib/core.js +105 -80
  12. package/lib/core.js.map +1 -1
  13. package/lib/core.spec.d.ts +1 -0
  14. package/lib/core.spec.d.ts.map +1 -0
  15. package/lib/core.spec.js +96 -67
  16. package/lib/core.spec.js.map +1 -1
  17. package/lib/errors.d.ts +59 -60
  18. package/lib/errors.d.ts.map +1 -0
  19. package/lib/errors.js +92 -108
  20. package/lib/errors.js.map +1 -1
  21. package/lib/errors.spec.d.ts +1 -0
  22. package/lib/errors.spec.d.ts.map +1 -0
  23. package/lib/errors.spec.js +1 -1
  24. package/lib/errors.spec.js.map +1 -1
  25. package/lib/index.d.ts +6 -3
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +6 -3
  28. package/lib/index.js.map +1 -1
  29. package/lib/models/aclmodel.d.ts +2 -2
  30. package/lib/models/aclmodel.d.ts.map +1 -0
  31. package/lib/models/aclmodel.js +8 -9
  32. package/lib/models/aclmodel.js.map +1 -1
  33. package/lib/models/aclmodel.spec.d.ts +1 -0
  34. package/lib/models/aclmodel.spec.d.ts.map +1 -0
  35. package/lib/models/aclmodel.spec.js +3 -3
  36. package/lib/models/aclmodel.spec.js.map +1 -1
  37. package/lib/models/coremodel.d.ts +15 -0
  38. package/lib/models/coremodel.d.ts.map +1 -0
  39. package/lib/models/coremodel.js +35 -28
  40. package/lib/models/coremodel.js.map +1 -1
  41. package/lib/models/coremodel.spec.d.ts +1 -0
  42. package/lib/models/coremodel.spec.d.ts.map +1 -0
  43. package/lib/models/coremodel.spec.js +33 -31
  44. package/lib/models/coremodel.spec.js.map +1 -1
  45. package/lib/models/deployment.d.ts +1 -0
  46. package/lib/models/deployment.d.ts.map +1 -0
  47. package/lib/models/ident.d.ts +17 -2
  48. package/lib/models/ident.d.ts.map +1 -0
  49. package/lib/models/ident.js +0 -14
  50. package/lib/models/ident.js.map +1 -1
  51. package/lib/models/ident.spec.d.ts +1 -0
  52. package/lib/models/ident.spec.d.ts.map +1 -0
  53. package/lib/models/ident.spec.js +1 -20
  54. package/lib/models/ident.spec.js.map +1 -1
  55. package/lib/models/ownermodel.d.ts +1 -0
  56. package/lib/models/ownermodel.d.ts.map +1 -0
  57. package/lib/models/ownermodel.spec.d.ts +1 -0
  58. package/lib/models/ownermodel.spec.d.ts.map +1 -0
  59. package/lib/models/ownermodel.spec.js +57 -33
  60. package/lib/models/ownermodel.spec.js.map +1 -1
  61. package/lib/models/relations.d.ts +1 -0
  62. package/lib/models/relations.d.ts.map +1 -0
  63. package/lib/models/relations.js +3 -3
  64. package/lib/models/relations.js.map +1 -1
  65. package/lib/models/relations.spec.d.ts +2 -0
  66. package/lib/models/relations.spec.d.ts.map +1 -0
  67. package/lib/models/relations.spec.js +10 -17
  68. package/lib/models/relations.spec.js.map +1 -1
  69. package/lib/models/rolemodel.d.ts +1 -0
  70. package/lib/models/rolemodel.d.ts.map +1 -0
  71. package/lib/models/rolemodel.js +2 -2
  72. package/lib/models/rolemodel.js.map +1 -1
  73. package/lib/models/rolemodel.spec.d.ts +1 -0
  74. package/lib/models/rolemodel.spec.d.ts.map +1 -0
  75. package/lib/models/rolemodel.spec.js +5 -1
  76. package/lib/models/rolemodel.spec.js.map +1 -1
  77. package/lib/models/simpleuser.d.ts +47 -0
  78. package/lib/models/simpleuser.d.ts.map +1 -0
  79. package/lib/models/simpleuser.js +84 -0
  80. package/lib/models/simpleuser.js.map +1 -0
  81. package/lib/models/test.d.ts +11 -0
  82. package/lib/models/test.d.ts.map +1 -0
  83. package/lib/models/test.js +7 -0
  84. package/lib/models/test.js.map +1 -0
  85. package/lib/models/user.d.ts +2 -35
  86. package/lib/models/user.d.ts.map +1 -0
  87. package/lib/models/user.js +3 -74
  88. package/lib/models/user.js.map +1 -1
  89. package/lib/models/user.spec.d.ts +1 -0
  90. package/lib/models/user.spec.d.ts.map +1 -0
  91. package/lib/models/user.spec.js +7 -6
  92. package/lib/models/user.spec.js.map +1 -1
  93. package/lib/queues/filequeue.d.ts +1 -0
  94. package/lib/queues/filequeue.d.ts.map +1 -0
  95. package/lib/queues/filequeue.js +5 -5
  96. package/lib/queues/filequeue.js.map +1 -1
  97. package/lib/queues/filequeue.spec.d.ts +1 -0
  98. package/lib/queues/filequeue.spec.d.ts.map +1 -0
  99. package/lib/queues/filequeue.spec.js +11 -5
  100. package/lib/queues/filequeue.spec.js.map +1 -1
  101. package/lib/queues/memoryqueue.d.ts +14 -0
  102. package/lib/queues/memoryqueue.d.ts.map +1 -0
  103. package/lib/queues/memoryqueue.js +38 -7
  104. package/lib/queues/memoryqueue.js.map +1 -1
  105. package/lib/queues/memoryqueue.spec.d.ts +1 -0
  106. package/lib/queues/memoryqueue.spec.d.ts.map +1 -0
  107. package/lib/queues/memoryqueue.spec.js +18 -7
  108. package/lib/queues/memoryqueue.spec.js.map +1 -1
  109. package/lib/queues/pubsubservice.d.ts +1 -0
  110. package/lib/queues/pubsubservice.d.ts.map +1 -0
  111. package/lib/queues/queue.spec.d.ts +3 -2
  112. package/lib/queues/queue.spec.d.ts.map +1 -0
  113. package/lib/queues/queue.spec.js +5 -3
  114. package/lib/queues/queue.spec.js.map +1 -1
  115. package/lib/queues/queueservice.d.ts +1 -0
  116. package/lib/queues/queueservice.d.ts.map +1 -0
  117. package/lib/queues/queueservice.js +7 -7
  118. package/lib/queues/queueservice.js.map +1 -1
  119. package/lib/rest/restdomainservice.d.ts +63 -0
  120. package/lib/rest/restdomainservice.d.ts.map +1 -0
  121. package/lib/rest/restdomainservice.js +687 -0
  122. package/lib/rest/restdomainservice.js.map +1 -0
  123. package/lib/rest/restdomainservice.spec.d.ts +2 -0
  124. package/lib/rest/restdomainservice.spec.d.ts.map +1 -0
  125. package/lib/rest/restdomainservice.spec.js +124 -0
  126. package/lib/rest/restdomainservice.spec.js.map +1 -0
  127. package/lib/{router.d.ts → rest/router.d.ts} +6 -4
  128. package/lib/rest/router.d.ts.map +1 -0
  129. package/lib/{router.js → rest/router.js} +33 -23
  130. package/lib/rest/router.js.map +1 -0
  131. package/lib/rest/router.spec.d.ts +2 -0
  132. package/lib/rest/router.spec.d.ts.map +1 -0
  133. package/lib/{router.spec.js → rest/router.spec.js} +54 -28
  134. package/lib/rest/router.spec.js.map +1 -0
  135. package/lib/services/asyncevents.d.ts +1 -0
  136. package/lib/services/asyncevents.d.ts.map +1 -0
  137. package/lib/services/asyncevents.js +4 -4
  138. package/lib/services/asyncevents.js.map +1 -1
  139. package/lib/services/asyncevents.spec.d.ts +1 -0
  140. package/lib/services/asyncevents.spec.d.ts.map +1 -0
  141. package/lib/services/asyncevents.spec.js +10 -10
  142. package/lib/services/asyncevents.spec.js.map +1 -1
  143. package/lib/services/authentication.d.ts +2 -1
  144. package/lib/services/authentication.d.ts.map +1 -0
  145. package/lib/services/authentication.js +26 -25
  146. package/lib/services/authentication.js.map +1 -1
  147. package/lib/services/authentication.spec.d.ts +1 -0
  148. package/lib/services/authentication.spec.d.ts.map +1 -0
  149. package/lib/services/authentication.spec.js +24 -24
  150. package/lib/services/authentication.spec.js.map +1 -1
  151. package/lib/services/binary.d.ts +13 -87
  152. package/lib/services/binary.d.ts.map +1 -0
  153. package/lib/services/binary.js +39 -421
  154. package/lib/services/binary.js.map +1 -1
  155. package/lib/services/binary.spec.d.ts +19 -22
  156. package/lib/services/binary.spec.d.ts.map +1 -0
  157. package/lib/services/binary.spec.js +87 -374
  158. package/lib/services/binary.spec.js.map +1 -1
  159. package/lib/services/cloudbinary.d.ts +3 -2
  160. package/lib/services/cloudbinary.d.ts.map +1 -0
  161. package/lib/services/cloudbinary.js +1 -1
  162. package/lib/services/cloudbinary.js.map +1 -1
  163. package/lib/services/cloudbinary.spec.d.ts +1 -8
  164. package/lib/services/cloudbinary.spec.d.ts.map +1 -0
  165. package/lib/services/cloudbinary.spec.js +4 -130
  166. package/lib/services/cloudbinary.spec.js.map +1 -1
  167. package/lib/services/configuration.d.ts +10 -1
  168. package/lib/services/configuration.d.ts.map +1 -0
  169. package/lib/services/configuration.js +22 -7
  170. package/lib/services/configuration.js.map +1 -1
  171. package/lib/services/configuration.spec.d.ts +1 -0
  172. package/lib/services/configuration.spec.d.ts.map +1 -0
  173. package/lib/services/configuration.spec.js +60 -17
  174. package/lib/services/configuration.spec.js.map +1 -1
  175. package/lib/services/cron.d.ts +2 -1
  176. package/lib/services/cron.d.ts.map +1 -0
  177. package/lib/services/cron.js +10 -10
  178. package/lib/services/cron.js.map +1 -1
  179. package/lib/services/cron.spec.d.ts +1 -0
  180. package/lib/services/cron.spec.d.ts.map +1 -0
  181. package/lib/services/cron.spec.js +2 -2
  182. package/lib/services/cron.spec.js.map +1 -1
  183. package/lib/services/cryptoservice.d.ts +3 -2
  184. package/lib/services/cryptoservice.d.ts.map +1 -0
  185. package/lib/services/cryptoservice.js +29 -30
  186. package/lib/services/cryptoservice.js.map +1 -1
  187. package/lib/services/cryptoservice.spec.d.ts +1 -0
  188. package/lib/services/cryptoservice.spec.d.ts.map +1 -0
  189. package/lib/services/cryptoservice.spec.js +17 -17
  190. package/lib/services/cryptoservice.spec.js.map +1 -1
  191. package/lib/services/debugmailer.d.ts +2 -2
  192. package/lib/services/debugmailer.d.ts.map +1 -0
  193. package/lib/services/debugmailer.js +1 -2
  194. package/lib/services/debugmailer.js.map +1 -1
  195. package/lib/services/debugmailer.spec.d.ts +1 -0
  196. package/lib/services/debugmailer.spec.d.ts.map +1 -0
  197. package/lib/services/debugmailer.spec.js +6 -3
  198. package/lib/services/debugmailer.spec.js.map +1 -1
  199. package/lib/services/domainservice.d.ts +167 -47
  200. package/lib/services/domainservice.d.ts.map +1 -0
  201. package/lib/services/domainservice.js +520 -753
  202. package/lib/services/domainservice.js.map +1 -1
  203. package/lib/services/domainservice.spec.d.ts +1 -0
  204. package/lib/services/domainservice.spec.d.ts.map +1 -0
  205. package/lib/services/domainservice.spec.js +201 -31
  206. package/lib/services/domainservice.spec.js.map +1 -1
  207. package/lib/services/filebinary.d.ts +8 -5
  208. package/lib/services/filebinary.d.ts.map +1 -0
  209. package/lib/services/filebinary.js +34 -32
  210. package/lib/services/filebinary.js.map +1 -1
  211. package/lib/services/filebinary.spec.d.ts +12 -8
  212. package/lib/services/filebinary.spec.d.ts.map +1 -0
  213. package/lib/services/filebinary.spec.js +135 -122
  214. package/lib/services/filebinary.spec.js.map +1 -1
  215. package/lib/services/fileconfiguration.d.ts +2 -1
  216. package/lib/services/fileconfiguration.d.ts.map +1 -0
  217. package/lib/services/fileconfiguration.js +1 -1
  218. package/lib/services/fileconfiguration.js.map +1 -1
  219. package/lib/services/fileconfiguration.spec.d.ts +1 -0
  220. package/lib/services/fileconfiguration.spec.d.ts.map +1 -0
  221. package/lib/services/fileconfiguration.spec.js +65 -27
  222. package/lib/services/fileconfiguration.spec.js.map +1 -1
  223. package/lib/services/invitationservice.d.ts +2 -1
  224. package/lib/services/invitationservice.d.ts.map +1 -0
  225. package/lib/services/invitationservice.js +19 -16
  226. package/lib/services/invitationservice.js.map +1 -1
  227. package/lib/services/invitationservice.spec.d.ts +1 -0
  228. package/lib/services/invitationservice.spec.d.ts.map +1 -0
  229. package/lib/services/invitationservice.spec.js +73 -22
  230. package/lib/services/invitationservice.spec.js.map +1 -1
  231. package/lib/services/kubernetesconfiguration.d.ts +1 -0
  232. package/lib/services/kubernetesconfiguration.d.ts.map +1 -0
  233. package/lib/services/kubernetesconfiguration.js +0 -2
  234. package/lib/services/kubernetesconfiguration.js.map +1 -1
  235. package/lib/services/kubernetesconfiguration.spec.d.ts +1 -0
  236. package/lib/services/kubernetesconfiguration.spec.d.ts.map +1 -0
  237. package/lib/services/kubernetesconfiguration.spec.js +67 -8
  238. package/lib/services/kubernetesconfiguration.spec.js.map +1 -1
  239. package/lib/services/mailer.d.ts +1 -0
  240. package/lib/services/mailer.d.ts.map +1 -0
  241. package/lib/services/mailer.js +3 -3
  242. package/lib/services/mailer.js.map +1 -1
  243. package/lib/services/mailer.spec.d.ts +1 -0
  244. package/lib/services/mailer.spec.d.ts.map +1 -0
  245. package/lib/services/mailer.spec.js +18 -4
  246. package/lib/services/mailer.spec.js.map +1 -1
  247. package/lib/services/notificationservice.d.ts +1 -0
  248. package/lib/services/notificationservice.d.ts.map +1 -0
  249. package/lib/services/notificationservice.js +1 -1
  250. package/lib/services/notificationservice.js.map +1 -1
  251. package/lib/services/notificationservice.spec.d.ts +1 -0
  252. package/lib/services/notificationservice.spec.d.ts.map +1 -0
  253. package/lib/services/notificationservice.spec.js +8 -3
  254. package/lib/services/notificationservice.spec.js.map +1 -1
  255. package/lib/services/oauth.d.ts +6 -3
  256. package/lib/services/oauth.d.ts.map +1 -0
  257. package/lib/services/oauth.js +11 -8
  258. package/lib/services/oauth.js.map +1 -1
  259. package/lib/services/oauth.spec.d.ts +1 -0
  260. package/lib/services/oauth.spec.d.ts.map +1 -0
  261. package/lib/services/oauth.spec.js +39 -15
  262. package/lib/services/oauth.spec.js.map +1 -1
  263. package/lib/services/prometheus.d.ts +1 -0
  264. package/lib/services/prometheus.d.ts.map +1 -0
  265. package/lib/services/prometheus.spec.d.ts +1 -0
  266. package/lib/services/prometheus.spec.d.ts.map +1 -0
  267. package/lib/services/prometheus.spec.js +38 -19
  268. package/lib/services/prometheus.spec.js.map +1 -1
  269. package/lib/services/resource.d.ts +21 -1
  270. package/lib/services/resource.d.ts.map +1 -0
  271. package/lib/services/resource.js +20 -3
  272. package/lib/services/resource.js.map +1 -1
  273. package/lib/services/resource.spec.d.ts +1 -0
  274. package/lib/services/resource.spec.d.ts.map +1 -0
  275. package/lib/services/resource.spec.js +38 -20
  276. package/lib/services/resource.spec.js.map +1 -1
  277. package/lib/services/service.d.ts +2 -2
  278. package/lib/services/service.d.ts.map +1 -0
  279. package/lib/services/service.js +13 -23
  280. package/lib/services/service.js.map +1 -1
  281. package/lib/services/service.spec.d.ts +1 -0
  282. package/lib/services/service.spec.d.ts.map +1 -0
  283. package/lib/services/service.spec.js +58 -40
  284. package/lib/services/service.spec.js.map +1 -1
  285. package/lib/stores/aggregator.d.ts +10 -3
  286. package/lib/stores/aggregator.d.ts.map +1 -0
  287. package/lib/stores/aggregator.js +6 -6
  288. package/lib/stores/aggregator.js.map +1 -1
  289. package/lib/stores/file.d.ts +3 -2
  290. package/lib/stores/file.d.ts.map +1 -0
  291. package/lib/stores/file.js +13 -13
  292. package/lib/stores/file.js.map +1 -1
  293. package/lib/stores/file.spec.d.ts +5 -11
  294. package/lib/stores/file.spec.d.ts.map +1 -0
  295. package/lib/stores/file.spec.js +20 -114
  296. package/lib/stores/file.spec.js.map +1 -1
  297. package/lib/stores/mapper.d.ts +2 -1
  298. package/lib/stores/mapper.d.ts.map +1 -0
  299. package/lib/stores/mapper.js +12 -12
  300. package/lib/stores/mapper.js.map +1 -1
  301. package/lib/stores/mapper.spec.d.ts +1 -0
  302. package/lib/stores/mapper.spec.d.ts.map +1 -0
  303. package/lib/stores/mapper.spec.js +24 -17
  304. package/lib/stores/mapper.spec.js.map +1 -1
  305. package/lib/stores/memory.d.ts +2 -1
  306. package/lib/stores/memory.d.ts.map +1 -0
  307. package/lib/stores/memory.js +15 -15
  308. package/lib/stores/memory.js.map +1 -1
  309. package/lib/stores/memory.spec.d.ts +7 -13
  310. package/lib/stores/memory.spec.d.ts.map +1 -0
  311. package/lib/stores/memory.spec.js +118 -183
  312. package/lib/stores/memory.spec.js.map +1 -1
  313. package/lib/stores/modelmapper.d.ts +1 -0
  314. package/lib/stores/modelmapper.d.ts.map +1 -0
  315. package/lib/stores/modelmapper.js +8 -10
  316. package/lib/stores/modelmapper.js.map +1 -1
  317. package/lib/stores/store.d.ts +4 -145
  318. package/lib/stores/store.d.ts.map +1 -0
  319. package/lib/stores/store.js +54 -654
  320. package/lib/stores/store.js.map +1 -1
  321. package/lib/stores/store.spec.d.ts +11 -19
  322. package/lib/stores/store.spec.d.ts.map +1 -0
  323. package/lib/stores/store.spec.js +99 -268
  324. package/lib/stores/store.spec.js.map +1 -1
  325. package/lib/test.d.ts +109 -6
  326. package/lib/test.d.ts.map +1 -0
  327. package/lib/test.js +245 -22
  328. package/lib/test.js.map +1 -1
  329. package/lib/unpackedapplication.d.ts +3 -2
  330. package/lib/unpackedapplication.d.ts.map +1 -0
  331. package/lib/unpackedapplication.js +29 -16
  332. package/lib/unpackedapplication.js.map +1 -1
  333. package/lib/utils/abstractdeployer.d.ts +1 -0
  334. package/lib/utils/abstractdeployer.d.ts.map +1 -0
  335. package/lib/utils/abstractdeployer.spec.d.ts +1 -0
  336. package/lib/utils/abstractdeployer.spec.d.ts.map +1 -0
  337. package/lib/utils/case.d.ts +1 -0
  338. package/lib/utils/case.d.ts.map +1 -0
  339. package/lib/utils/case.spec.d.ts +1 -0
  340. package/lib/utils/case.spec.d.ts.map +1 -0
  341. package/lib/utils/context.d.ts +37 -17
  342. package/lib/utils/context.d.ts.map +1 -0
  343. package/lib/utils/context.js +53 -42
  344. package/lib/utils/context.js.map +1 -1
  345. package/lib/utils/context.spec.d.ts +1 -0
  346. package/lib/utils/context.spec.d.ts.map +1 -0
  347. package/lib/utils/context.spec.js +21 -14
  348. package/lib/utils/context.spec.js.map +1 -1
  349. package/lib/utils/cookie.d.ts +1 -0
  350. package/lib/utils/cookie.d.ts.map +1 -0
  351. package/lib/utils/cookie.js +2 -2
  352. package/lib/utils/cookie.js.map +1 -1
  353. package/lib/utils/cookie.spec.d.ts +1 -0
  354. package/lib/utils/cookie.spec.d.ts.map +1 -0
  355. package/lib/utils/cookie.spec.js +20 -10
  356. package/lib/utils/cookie.spec.js.map +1 -1
  357. package/lib/utils/esm.d.ts +1 -0
  358. package/lib/utils/esm.d.ts.map +1 -0
  359. package/lib/utils/httpcontext.d.ts +1 -0
  360. package/lib/utils/httpcontext.d.ts.map +1 -0
  361. package/lib/utils/httpcontext.js +7 -7
  362. package/lib/utils/httpcontext.js.map +1 -1
  363. package/lib/utils/httpcontext.spec.d.ts +1 -0
  364. package/lib/utils/httpcontext.spec.d.ts.map +1 -0
  365. package/lib/utils/httpcontext.spec.js +7 -7
  366. package/lib/utils/httpcontext.spec.js.map +1 -1
  367. package/lib/utils/logger.d.ts +1 -0
  368. package/lib/utils/logger.d.ts.map +1 -0
  369. package/lib/utils/logger.spec.d.ts +1 -0
  370. package/lib/utils/logger.spec.d.ts.map +1 -0
  371. package/lib/utils/logger.spec.js +5 -5
  372. package/lib/utils/logger.spec.js.map +1 -1
  373. package/lib/utils/serializers.d.ts +6 -4
  374. package/lib/utils/serializers.d.ts.map +1 -0
  375. package/lib/utils/serializers.js +30 -27
  376. package/lib/utils/serializers.js.map +1 -1
  377. package/lib/utils/serializers.spec.d.ts +1 -0
  378. package/lib/utils/serializers.spec.d.ts.map +1 -0
  379. package/lib/utils/serializers.spec.js +12 -14
  380. package/lib/utils/serializers.spec.js.map +1 -1
  381. package/lib/utils/session.d.ts +2 -5
  382. package/lib/utils/session.d.ts.map +1 -0
  383. package/lib/utils/session.js +1 -11
  384. package/lib/utils/session.js.map +1 -1
  385. package/lib/utils/session.spec.d.ts +1 -0
  386. package/lib/utils/session.spec.d.ts.map +1 -0
  387. package/lib/utils/session.spec.js +22 -12
  388. package/lib/utils/session.spec.js.map +1 -1
  389. package/lib/utils/throttler.d.ts +1 -4
  390. package/lib/utils/throttler.d.ts.map +1 -0
  391. package/lib/utils/throttler.js +1 -9
  392. package/lib/utils/throttler.js.map +1 -1
  393. package/lib/utils/throttler.spec.d.ts +1 -0
  394. package/lib/utils/throttler.spec.d.ts.map +1 -0
  395. package/lib/utils/throttler.spec.js +4 -6
  396. package/lib/utils/throttler.spec.js.map +1 -1
  397. package/lib/utils/waiter.d.ts +1 -0
  398. package/lib/utils/waiter.d.ts.map +1 -0
  399. package/lib/utils/waiter.js +3 -3
  400. package/lib/utils/waiter.js.map +1 -1
  401. package/lib/utils/waiter.spec.d.ts +1 -0
  402. package/lib/utils/waiter.spec.d.ts.map +1 -0
  403. package/lib/utils/waiter.spec.js +6 -6
  404. package/lib/utils/waiter.spec.js.map +1 -1
  405. package/package.json +20 -16
  406. package/test/config.json +6 -90
  407. package/test/data/.env +1 -0
  408. package/webda.module.json +607 -377
  409. package/lib/router.js.map +0 -1
  410. package/lib/router.spec.d.ts +0 -1
  411. package/lib/router.spec.js.map +0 -1
  412. package/lib/stores/aliasstore.d.ts +0 -108
  413. package/lib/stores/aliasstore.js +0 -168
  414. package/lib/stores/aliasstore.js.map +0 -1
  415. package/lib/stores/aliasstore.spec.d.ts +0 -11
  416. package/lib/stores/aliasstore.spec.js +0 -89
  417. package/lib/stores/aliasstore.spec.js.map +0 -1
  418. package/lib/stores/webdaql/WebdaQLLexer.d.ts +0 -54
  419. package/lib/stores/webdaql/WebdaQLLexer.js +0 -295
  420. package/lib/stores/webdaql/WebdaQLLexer.js.map +0 -1
  421. package/lib/stores/webdaql/WebdaQLParserLexer.d.ts +0 -54
  422. package/lib/stores/webdaql/WebdaQLParserLexer.js +0 -295
  423. package/lib/stores/webdaql/WebdaQLParserLexer.js.map +0 -1
  424. package/lib/stores/webdaql/WebdaQLParserListener.d.ts +0 -296
  425. package/lib/stores/webdaql/WebdaQLParserListener.js +0 -3
  426. package/lib/stores/webdaql/WebdaQLParserListener.js.map +0 -1
  427. package/lib/stores/webdaql/WebdaQLParserParser.d.ts +0 -311
  428. package/lib/stores/webdaql/WebdaQLParserParser.js +0 -1807
  429. package/lib/stores/webdaql/WebdaQLParserParser.js.map +0 -1
  430. package/lib/stores/webdaql/WebdaQLParserVisitor.d.ts +0 -181
  431. package/lib/stores/webdaql/WebdaQLParserVisitor.js +0 -3
  432. package/lib/stores/webdaql/WebdaQLParserVisitor.js.map +0 -1
  433. package/lib/stores/webdaql/query.d.ts +0 -390
  434. package/lib/stores/webdaql/query.js +0 -702
  435. package/lib/stores/webdaql/query.js.map +0 -1
  436. package/lib/stores/webdaql/query.spec.d.ts +0 -1
  437. package/lib/stores/webdaql/query.spec.js +0 -206
  438. package/lib/stores/webdaql/query.spec.js.map +0 -1
  439. package/test/config-file-missing-file-no-default.json +0 -44
  440. package/test/config-file-missing-file.json +0 -55
  441. package/test/config-file-no-reload.json +0 -69
  442. package/test/config-file-reload.json +0 -68
  443. package/test/config-invitation.json +0 -63
  444. package/test/config-kube-reload.json +0 -68
  445. package/test/config-reload.json +0 -66
  446. package/test/config.old.json +0 -152
  447. package/test/moddas/annotatedservice.js +0 -23
  448. package/test/moddas/debugmailer.js +0 -13
  449. package/test/moddas/fakeservice.js +0 -4
  450. package/test/moddas/voidstore.js +0 -66
  451. package/test/models/ident.js +0 -36
  452. package/test/models/task.js +0 -42
@@ -1,390 +0,0 @@
1
- import { AbstractParseTreeVisitor, ParseTree } from "antlr4ts/tree/index.js";
2
- import { WebdaQLLexer } from "./WebdaQLLexer.js";
3
- import { AndLogicExpressionContext, BinaryComparisonExpressionContext, BooleanLiteralContext, ContainsExpressionContext, InExpressionContext, IntegerLiteralContext, LikeExpressionContext, LimitExpressionContext, OffsetExpressionContext, OrLogicExpressionContext, OrderExpressionContext, OrderFieldExpressionContext, SetExpressionContext, StringLiteralContext, WebdaqlContext } from "./WebdaQLParserParser.js";
4
- import { WebdaQLParserVisitor } from "./WebdaQLParserVisitor.js";
5
- type value = boolean | string | number;
6
- /**
7
- * Meta Query Language
8
- *
9
- *
10
- */
11
- export declare namespace WebdaQL {
12
- interface OrderBy {
13
- field: string;
14
- direction: "ASC" | "DESC";
15
- }
16
- function PrependCondition(query?: string, condition?: string): string;
17
- /**
18
- * Create Expression based on the parsed token
19
- *
20
- * Expression allow to optimize and split between Query and Filter
21
- */
22
- class ExpressionBuilder extends AbstractParseTreeVisitor<Query> implements WebdaQLParserVisitor<any> {
23
- /**
24
- * Contain the parsed limit
25
- */
26
- limit: number;
27
- /**
28
- * Contain the parsed offset
29
- */
30
- offset: string;
31
- orderBy: OrderBy[];
32
- /**
33
- * Default result for the override
34
- * @returns
35
- */
36
- protected defaultResult(): Query;
37
- /**
38
- * Get offset
39
- * @returns
40
- */
41
- getOffset(): string;
42
- /**
43
- * Get limit
44
- * @returns
45
- */
46
- getLimit(): number;
47
- /**
48
- * Read the limit
49
- * @param ctx
50
- */
51
- visitLimitExpression(ctx: LimitExpressionContext): void;
52
- /**
53
- * Read the offset if provided
54
- * @param ctx
55
- */
56
- visitOffsetExpression(ctx: OffsetExpressionContext): void;
57
- /**
58
- * Visit a order field expression
59
- */
60
- visitOrderFieldExpression(ctx: OrderFieldExpressionContext): OrderBy;
61
- /**
62
- * Read the order by values
63
- */
64
- visitOrderExpression(ctx: OrderExpressionContext): void;
65
- /**
66
- * Return only AndExpression
67
- * @param ctx
68
- * @returns
69
- */
70
- visitWebdaql(ctx: WebdaqlContext): Query;
71
- /**
72
- * Simplify Logic expression and regroup them
73
- * @param ctx
74
- * @returns
75
- */
76
- getComparison(ctx: AndLogicExpressionContext | OrLogicExpressionContext): any[];
77
- /**
78
- * Get the AndExpression, regrouping all the parameters
79
- *
80
- * By default the parser is doing a AND (b AND (c AND d)) creating 3 depth expressions
81
- * This visitor simplify to a AND b AND c AND d with only one Expression
82
- */
83
- visitAndLogicExpression(ctx: AndLogicExpressionContext): AndExpression;
84
- /**
85
- * Implement the BinaryComparison with all methods managed
86
- */
87
- visitBinaryComparisonExpression(ctx: BinaryComparisonExpressionContext): ComparisonExpression<ComparisonOperator>;
88
- /**
89
- * Visit each value of the [..., ..., ...] set
90
- */
91
- visitSetExpression(ctx: SetExpressionContext): value[];
92
- /**
93
- * a LIKE "%A?"
94
- * @param ctx
95
- * @returns
96
- */
97
- visitLikeExpression(ctx: LikeExpressionContext): ComparisonExpression<"LIKE">;
98
- /**
99
- * Map the a IN ['b','c']
100
- */
101
- visitInExpression(ctx: InExpressionContext): ComparisonExpression<"IN">;
102
- /**
103
- * Map the a CONTAINS 'b'
104
- */
105
- visitContainsExpression(ctx: ContainsExpressionContext): ComparisonExpression<"CONTAINS">;
106
- /**
107
- * Get the OrExpression, regrouping all the parameters
108
- *
109
- * By default the parser is doing a OR (b OR (c OR d)) creating 3 depth expressions
110
- * This visitor simplify to a OR b OR c OR d with only one Expression
111
- */
112
- visitOrLogicExpression(ctx: OrLogicExpressionContext): OrExpression;
113
- /**
114
- * Read the string literal (removing the simple or double bracket)
115
- */
116
- visitStringLiteral(ctx: StringLiteralContext): string;
117
- /**
118
- * Read the boolean literal
119
- */
120
- visitBooleanLiteral(ctx: BooleanLiteralContext): boolean;
121
- /**
122
- * Read the number literal
123
- */
124
- visitIntegerLiteral(ctx: IntegerLiteralContext): number;
125
- }
126
- /**
127
- * Represent a full Query
128
- */
129
- interface Query {
130
- /**
131
- * Filtering part of the expression
132
- */
133
- filter: Expression;
134
- /**
135
- * Limit value
136
- */
137
- limit?: number;
138
- /**
139
- * Offset value
140
- */
141
- continuationToken?: string;
142
- /**
143
- * Order by clause
144
- */
145
- orderBy?: OrderBy[];
146
- /**
147
- * Get the string representation of the query
148
- */
149
- toString(): string;
150
- }
151
- /**
152
- * Represent the query expression or subset
153
- */
154
- abstract class Expression<T = string> {
155
- operator: T;
156
- constructor(operator: T);
157
- /**
158
- * Evaluate the expression for the target object
159
- * @param target to evaluate
160
- */
161
- abstract eval(target: any): boolean;
162
- /**
163
- * Return the representation of the expression
164
- * @param depth
165
- */
166
- abstract toString(depth?: number): string;
167
- }
168
- type ComparisonOperator = "=" | "<=" | ">=" | "<" | ">" | "!=" | "LIKE" | "IN" | "CONTAINS";
169
- /**
170
- * Comparison expression
171
- */
172
- class ComparisonExpression<T extends ComparisonOperator = ComparisonOperator> extends Expression<T> {
173
- /**
174
- * Right side of the comparison
175
- */
176
- value: value | value[];
177
- /**
178
- * Attribute to read from the object (split by .)
179
- */
180
- attribute: string[];
181
- /**
182
- *
183
- * @param operator of the expression
184
- * @param attribute of the object to read
185
- * @param value
186
- */
187
- constructor(operator: T, attribute: string, value: value | any[]);
188
- static likeToRegex(like: string): RegExp;
189
- /**
190
- * Read the value from the object
191
- *
192
- * @param target
193
- * @returns
194
- */
195
- static getAttributeValue(target: any, attribute: string[]): any;
196
- /**
197
- * Set the value of the attribute based on the assignment
198
- *
199
- * If used as a Set expression
200
- * @param target
201
- */
202
- setAttributeValue(target: any): void;
203
- /**
204
- * @override
205
- */
206
- eval(target: any): boolean;
207
- /**
208
- * Return a string represantation of a value
209
- */
210
- toStringValue(value: value | value[]): string;
211
- /**
212
- * Allow subclass to create different display
213
- */
214
- toStringAttribute(): string;
215
- /**
216
- * Allow subclass to create different display
217
- */
218
- toStringOperator(): T;
219
- /**
220
- * @override
221
- */
222
- toString(): string;
223
- }
224
- /**
225
- * Abstract logic expression (AND|OR)
226
- *
227
- * Could add XOR in the future
228
- */
229
- abstract class LogicalExpression<T> extends Expression<T> {
230
- /**
231
- * Contains the members of the logical expression
232
- */
233
- children: Expression[];
234
- /**
235
- *
236
- * @param operator
237
- * @param children
238
- */
239
- constructor(operator: T, children: Expression[]);
240
- /**
241
- * @override
242
- */
243
- toString(depth?: number): string;
244
- }
245
- /**
246
- * AND Expression implementation
247
- */
248
- class AndExpression extends LogicalExpression<"AND"> {
249
- /**
250
- * @param children Expressions to use for AND
251
- */
252
- constructor(children: Expression[]);
253
- /**
254
- * @override
255
- */
256
- eval(target: any): boolean;
257
- }
258
- /**
259
- * OR Expression implementation
260
- */
261
- class OrExpression extends LogicalExpression<"OR"> {
262
- /**
263
- * @param children Expressions to use for OR
264
- */
265
- constructor(children: Expression[]);
266
- /**
267
- * @override
268
- */
269
- eval(target: any): boolean;
270
- }
271
- /**
272
- *
273
- */
274
- class QueryValidator {
275
- protected sql: string;
276
- protected lexer: WebdaQLLexer;
277
- protected tree: WebdaqlContext;
278
- protected query: Query;
279
- protected builder: ExpressionBuilder;
280
- constructor(sql: string, builder?: ExpressionBuilder);
281
- hasCondition(): boolean;
282
- toString(): string;
283
- merge(query: string, type?: "OR" | "AND"): this;
284
- /**
285
- * Get offset
286
- * @returns
287
- */
288
- getOffset(): string;
289
- /**
290
- * Get limit
291
- * @returns
292
- */
293
- getLimit(): number;
294
- /**
295
- * Get the expression by itself
296
- * @returns
297
- */
298
- getExpression(): Expression;
299
- /**
300
- * Retrieve parsed query
301
- * @returns
302
- */
303
- getQuery(): Query;
304
- /**
305
- * Verify if a target fit the expression
306
- * @param target
307
- * @returns
308
- */
309
- eval(target: any): boolean;
310
- /**
311
- * Display parse tree back as query
312
- * @param tree
313
- * @returns
314
- */
315
- displayTree(tree?: ParseTree): string;
316
- }
317
- /**
318
- * For now reuse same parser
319
- */
320
- class SetterValidator extends QueryValidator {
321
- constructor(sql: string);
322
- eval(target: any): boolean;
323
- assign(target: any, expression: Expression): void;
324
- }
325
- class PartialValidator extends QueryValidator {
326
- builder: PartialExpressionBuilder;
327
- constructor(query: string, builder?: PartialExpressionBuilder);
328
- /**
329
- * Eval the query
330
- * @param target
331
- * @param partial
332
- * @returns
333
- */
334
- eval(target: any, partial?: boolean): boolean;
335
- /**
336
- * Return if the result ignored some fields
337
- * @returns
338
- */
339
- wasPartialMatch(): boolean;
340
- }
341
- class PartialComparisonExpression<T extends ComparisonOperator = ComparisonOperator> extends ComparisonExpression<T> {
342
- protected builder: PartialExpressionBuilder;
343
- constructor(builder: PartialExpressionBuilder, op: T, attribute: string, value: any);
344
- /**
345
- * Override the eval to check if the attribute is present
346
- * if not and we are in partial mode, return true
347
- *
348
- * @param target
349
- * @returns
350
- */
351
- eval(target: any): boolean;
352
- }
353
- class PartialExpressionBuilder extends ExpressionBuilder {
354
- /**
355
- * Enforce the partial mode
356
- */
357
- partial: boolean;
358
- /**
359
- * If eval was called in partial mode
360
- */
361
- partialMatch: boolean;
362
- setPartial(partial: boolean): void;
363
- setPartialMatch(partial: boolean): void;
364
- /**
365
- * a LIKE "%A?"
366
- * @param ctx
367
- * @returns
368
- */
369
- visitLikeExpression(ctx: any): PartialComparisonExpression<"LIKE">;
370
- /**
371
- * Implement the BinaryComparison with all methods managed
372
- */
373
- visitBinaryComparisonExpression(ctx: any): PartialComparisonExpression<any>;
374
- /**
375
- * Map the a IN ['b','c']
376
- */
377
- visitInExpression(ctx: any): PartialComparisonExpression<"IN">;
378
- /**
379
- * Map the a CONTAINS 'b'
380
- */
381
- visitContainsExpression(ctx: any): PartialComparisonExpression<"CONTAINS">;
382
- }
383
- /**
384
- * Remove artifact from sanitize-html inside query
385
- * @param query
386
- * @returns
387
- */
388
- function unsanitize(query: string): string;
389
- }
390
- export {};