@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
package/webda.module.json CHANGED
@@ -2,34 +2,33 @@
2
2
  "beans": {},
3
3
  "deployers": {},
4
4
  "moddas": {
5
- "Webda/Aggregator": "lib/stores/aggregator:default",
6
- "Webda/AliasStore": "lib/stores/aliasstore:AliasStore",
5
+ "Webda/Aggregator": "lib/stores/aggregator:AggregatorService",
7
6
  "Webda/AsyncEvents": "lib/services/asyncevents:EventService",
8
7
  "Webda/Authentication": "lib/services/authentication:Authentication",
9
8
  "Webda/Binary": "lib/services/binary:BinaryService",
10
- "Webda/ConfigurationService": "lib/services/configuration:default",
9
+ "Webda/ConfigurationService": "lib/services/configuration:ConfigurationService",
11
10
  "Webda/ConsoleLogger": "lib/utils/logger:ConsoleLoggerService",
12
11
  "Webda/CookieSessionManager": "lib/utils/session:CookieSessionManager",
13
12
  "Webda/CronService": "lib/services/cron:CronService",
14
- "Webda/CryptoService": "lib/services/cryptoservice:default",
15
- "Webda/DebugMailer": "lib/services/debugmailer:default",
13
+ "Webda/CryptoService": "lib/services/cryptoservice:CryptoService",
14
+ "Webda/DebugMailer": "lib/services/debugmailer:DebugMailer",
16
15
  "Webda/FileBinary": "lib/services/filebinary:FileBinary",
17
16
  "Webda/FileConfiguration": "lib/services/fileconfiguration:FileConfigurationService",
18
17
  "Webda/FileLogger": "lib/utils/logger:FileLoggerService",
19
18
  "Webda/FileQueue": "lib/queues/filequeue:FileQueue",
20
19
  "Webda/FileStore": "lib/stores/file:FileStore",
21
- "Webda/InvitationService": "lib/services/invitationservice:default",
20
+ "Webda/InvitationService": "lib/services/invitationservice:InvitationService",
22
21
  "Webda/KubernetesConfigurationService": "lib/services/kubernetesconfiguration:KubernetesConfigurationService",
23
22
  "Webda/Mailer": "lib/services/mailer:Mailer",
24
- "Webda/Mapper": "lib/stores/mapper:default",
23
+ "Webda/Mapper": "lib/stores/mapper:MapperService",
25
24
  "Webda/MemoryLogger": "lib/utils/logger:MemoryLoggerService",
26
25
  "Webda/MemoryQueue": "lib/queues/memoryqueue:MemoryQueue",
27
26
  "Webda/MemoryStore": "lib/stores/memory:MemoryStore",
28
27
  "Webda/ModelsOperationsService": "lib/services/domainservice:ModelsOperationsService",
29
28
  "Webda/MultiNotificationService": "lib/services/notificationservice:default",
30
29
  "Webda/PrometheusService": "lib/services/prometheus:PrometheusService",
31
- "Webda/RESTDomainService": "lib/services/domainservice:RESTDomainService",
32
- "Webda/ResourceService": "lib/services/resource:default"
30
+ "Webda/RESTDomainService": "lib/rest/restdomainservice:RESTDomainService",
31
+ "Webda/ResourceService": "lib/services/resource:ResourceService"
33
32
  },
34
33
  "models": {
35
34
  "graph": {
@@ -44,6 +43,16 @@
44
43
  }
45
44
  ]
46
45
  },
46
+ "Webda/MyIdent": {
47
+ "links": [
48
+ {
49
+ "attribute": "_user",
50
+ "model": "Webda/MySimpleUser",
51
+ "type": "LINK"
52
+ }
53
+ ]
54
+ },
55
+ "Webda/MySimpleUser": {},
47
56
  "Webda/OwnerModel": {
48
57
  "links": [
49
58
  {
@@ -69,6 +78,24 @@
69
78
  }
70
79
  ]
71
80
  },
81
+ "Webda/Task": {
82
+ "links": [
83
+ {
84
+ "attribute": "_user",
85
+ "model": "Webda/User",
86
+ "type": "LINK"
87
+ }
88
+ ]
89
+ },
90
+ "Webda/TestIdent": {
91
+ "links": [
92
+ {
93
+ "attribute": "_user",
94
+ "model": "Webda/User",
95
+ "type": "LINK"
96
+ }
97
+ ]
98
+ },
72
99
  "Webda/User": {},
73
100
  "Webda/UuidModel": {}
74
101
  },
@@ -76,22 +103,32 @@
76
103
  "Webda/AclModel": {},
77
104
  "Webda/RoleModel": {},
78
105
  "Webda/User": {
79
- "Webda/SimpleUser": {}
106
+ "Webda/SimpleUser": {
107
+ "Webda/MySimpleUser": {}
108
+ }
80
109
  },
81
110
  "Webda/UuidModel": {
82
111
  "Webda/OwnerModel": {
83
- "Webda/Ident": {}
112
+ "Webda/Ident": {
113
+ "Webda/TestIdent": {},
114
+ "Webda/MyIdent": {}
115
+ },
116
+ "Webda/Task": {}
84
117
  }
85
118
  }
86
119
  },
87
120
  "plurals": {},
88
121
  "list": {
89
- "Webda/AclModel": "lib/models/aclmodel:default",
122
+ "Webda/AclModel": "lib/models/aclmodel:AclModel",
90
123
  "Webda/CoreModel": "lib/models/coremodel:CoreModel",
91
124
  "Webda/Ident": "lib/models/ident:Ident",
125
+ "Webda/MyIdent": "lib/models/test:MyIdent",
126
+ "Webda/MySimpleUser": "lib/models/test:MySimpleUser",
92
127
  "Webda/OwnerModel": "lib/models/ownermodel:OwnerModel",
93
128
  "Webda/RoleModel": "lib/models/rolemodel:RoleModel",
94
- "Webda/SimpleUser": "lib/models/user:SimpleUser",
129
+ "Webda/SimpleUser": "lib/models/simpleuser:SimpleUser",
130
+ "Webda/Task": "lib/test:Task",
131
+ "Webda/TestIdent": "lib/test:TestIdent",
95
132
  "Webda/User": "lib/models/user:User",
96
133
  "Webda/UuidModel": "lib/models/coremodel:UuidModel"
97
134
  },
@@ -124,7 +161,7 @@
124
161
  "Webda/Ident": {
125
162
  "_type": "string",
126
163
  "uid": "string",
127
- "__profile": "unknown",
164
+ "__profile": "any",
128
165
  "__tokens": "IdentTokens",
129
166
  "_lastUsed": "Date",
130
167
  "_user": "ModelLink<User>",
@@ -146,6 +183,52 @@
146
183
  "_lastUpdate": "Date",
147
184
  "__deleted": "boolean"
148
185
  },
186
+ "Webda/MyIdent": {
187
+ "toto": "string",
188
+ "_user": "ModelLink<MySimpleUser>",
189
+ "_type": "string",
190
+ "uid": "string",
191
+ "__profile": "any",
192
+ "__tokens": "IdentTokens",
193
+ "_lastUsed": "Date",
194
+ "__new": "boolean",
195
+ "_failedLogin": "number",
196
+ "_lastValidationEmail": "number",
197
+ "_validation": "Date",
198
+ "email": "string",
199
+ "provider": "string",
200
+ "public": "boolean",
201
+ "uuid": "string",
202
+ "__class": "CoreModelDefinition<this>",
203
+ "__type": "string",
204
+ "__types": "string[]",
205
+ "__ctx": "OperationContext",
206
+ "__store": "Store<this>",
207
+ "__dirty": "Set<string | symbol>",
208
+ "_creationDate": "Date",
209
+ "_lastUpdate": "Date",
210
+ "__deleted": "boolean"
211
+ },
212
+ "Webda/MySimpleUser": {
213
+ "_idents": "ModelMapLoader<MyIdent, \"_type\" | \"uuid\" | \"email\">[]",
214
+ "_groups": "string[]",
215
+ "_roles": "string[]",
216
+ "__password": "string",
217
+ "displayName": "string",
218
+ "_lastPasswordRecovery": "number",
219
+ "_avatar": "string",
220
+ "locale": "string",
221
+ "email": "string",
222
+ "__class": "CoreModelDefinition<this>",
223
+ "__type": "string",
224
+ "__types": "string[]",
225
+ "__ctx": "OperationContext",
226
+ "__store": "Store<this>",
227
+ "__dirty": "Set<string | symbol>",
228
+ "_creationDate": "Date",
229
+ "_lastUpdate": "Date",
230
+ "__deleted": "boolean"
231
+ },
149
232
  "Webda/OwnerModel": {
150
233
  "_user": "ModelLink<User>",
151
234
  "public": "boolean",
@@ -191,6 +274,53 @@
191
274
  "_lastUpdate": "Date",
192
275
  "__deleted": "boolean"
193
276
  },
277
+ "Webda/Task": {
278
+ "_autoListener": "number",
279
+ "plop": "any",
280
+ "plop2": "any",
281
+ "card": "any",
282
+ "test": "any",
283
+ "bouzouf": "any",
284
+ "side": "string",
285
+ "_gotContext": "boolean",
286
+ "_user": "ModelLink<User>",
287
+ "public": "boolean",
288
+ "uuid": "string",
289
+ "__class": "CoreModelDefinition<this>",
290
+ "__type": "string",
291
+ "__types": "string[]",
292
+ "__ctx": "OperationContext",
293
+ "__store": "Store<this>",
294
+ "__dirty": "Set<string | symbol>",
295
+ "_creationDate": "Date",
296
+ "_lastUpdate": "Date",
297
+ "__deleted": "boolean"
298
+ },
299
+ "Webda/TestIdent": {
300
+ "_type": "string",
301
+ "uid": "string",
302
+ "__profile": "any",
303
+ "__tokens": "IdentTokens",
304
+ "_lastUsed": "Date",
305
+ "_user": "ModelLink<User>",
306
+ "__new": "boolean",
307
+ "_failedLogin": "number",
308
+ "_lastValidationEmail": "number",
309
+ "_validation": "Date",
310
+ "email": "string",
311
+ "provider": "string",
312
+ "public": "boolean",
313
+ "uuid": "string",
314
+ "__class": "CoreModelDefinition<this>",
315
+ "__type": "string",
316
+ "__types": "string[]",
317
+ "__ctx": "OperationContext",
318
+ "__store": "Store<this>",
319
+ "__dirty": "Set<string | symbol>",
320
+ "_creationDate": "Date",
321
+ "_lastUpdate": "Date",
322
+ "__deleted": "boolean"
323
+ },
194
324
  "Webda/User": {
195
325
  "__password": "string",
196
326
  "displayName": "string",
@@ -272,7 +402,8 @@
272
402
  },
273
403
  "target": {
274
404
  "type": "string",
275
- "description": "Target store"
405
+ "description": "Store an aggregate of the fields",
406
+ "default": "Registry"
276
407
  },
277
408
  "async": {
278
409
  "type": "boolean",
@@ -292,8 +423,7 @@
292
423
  "description": "Delete source if target object is deleted"
293
424
  },
294
425
  "key": {
295
- "type": "string",
296
- "default": "index"
426
+ "type": "string"
297
427
  },
298
428
  "openapi": {
299
429
  "type": "object",
@@ -314,142 +444,6 @@
314
444
  "$schema": "http://json-schema.org/draft-07/schema#",
315
445
  "title": "AggregatorService"
316
446
  },
317
- "Webda/AliasStore": {
318
- "type": "object",
319
- "properties": {
320
- "type": {
321
- "type": "string",
322
- "description": "Type of the service"
323
- },
324
- "url": {
325
- "type": "string",
326
- "description": "URL on which to serve the content"
327
- },
328
- "model": {
329
- "type": "string",
330
- "description": "Webda model to use within the Store",
331
- "default": "Webda/CoreModel"
332
- },
333
- "additionalModels": {
334
- "type": "array",
335
- "items": {
336
- "type": "string"
337
- },
338
- "description": "Additional models\n\nAllow this store to manage other models",
339
- "default": []
340
- },
341
- "asyncDelete": {
342
- "type": "boolean",
343
- "description": "async delete"
344
- },
345
- "expose": {
346
- "$ref": "#/definitions/StoreExposeParameters",
347
- "description": "Expose the service to an urls",
348
- "deprecated": "will probably be removed in 4.0 in favor of Expose annotation"
349
- },
350
- "strict": {
351
- "type": "boolean",
352
- "description": "Allow to load object that does not have the type data\n\nIf set to true, then the Store will only managed the defined _model and no model extending this one",
353
- "default": false
354
- },
355
- "defaultModel": {
356
- "type": "boolean",
357
- "description": "When __type model not found, use the model If strict is setup this parameter is not used",
358
- "default": true
359
- },
360
- "forceModel": {
361
- "type": "boolean",
362
- "description": "If set, Store will ignore the __type",
363
- "default": false
364
- },
365
- "slowQueryThreshold": {
366
- "type": "number",
367
- "description": "Slow query threshold",
368
- "default": 30000
369
- },
370
- "modelAliases": {
371
- "type": "object",
372
- "additionalProperties": {
373
- "type": "string"
374
- },
375
- "description": "Model Aliases to allow easier rename of Model"
376
- },
377
- "noCache": {
378
- "type": "boolean",
379
- "description": "Disable default memory cache"
380
- },
381
- "targetStore": {
382
- "type": "string",
383
- "description": "Store to alias"
384
- },
385
- "idTemplate": {
386
- "type": "string",
387
- "description": "Store to alias"
388
- },
389
- "openapi": {
390
- "type": "object",
391
- "additionalProperties": true
392
- }
393
- },
394
- "required": [
395
- "asyncDelete",
396
- "idTemplate",
397
- "slowQueryThreshold",
398
- "targetStore",
399
- "type"
400
- ],
401
- "$schema": "http://json-schema.org/draft-07/schema#",
402
- "definitions": {
403
- "StoreExposeParameters": {
404
- "type": "object",
405
- "properties": {
406
- "url": {
407
- "type": "string",
408
- "description": "URL endpoint to use to expose REST Resources API",
409
- "default": "service.getName().toLowerCase()"
410
- },
411
- "restrict": {
412
- "type": "object",
413
- "properties": {
414
- "create": {
415
- "type": "boolean",
416
- "description": "Do not expose the POST"
417
- },
418
- "update": {
419
- "type": "boolean",
420
- "description": "Do not expose the PUT and PATCH"
421
- },
422
- "get": {
423
- "type": "boolean",
424
- "description": "Do not expose the GET"
425
- },
426
- "delete": {
427
- "type": "boolean",
428
- "description": "Do not expose the DELETE"
429
- },
430
- "query": {
431
- "type": "boolean",
432
- "description": "Do not expose the query endpoint"
433
- }
434
- },
435
- "description": "You can restrict any part of the CRUD",
436
- "default": {}
437
- },
438
- "queryMethod": {
439
- "type": "string",
440
- "enum": [
441
- "PUT",
442
- "GET"
443
- ],
444
- "description": "For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging",
445
- "default": "GET"
446
- }
447
- },
448
- "deprecated": "Store should not be exposed directly anymore\nYou should use the DomainService instead"
449
- }
450
- },
451
- "title": "AliasStore"
452
- },
453
447
  "Webda/AsyncEvents": {
454
448
  "type": "object",
455
449
  "properties": {
@@ -596,17 +590,6 @@
596
590
  "type": "string",
597
591
  "description": "URL on which to serve the content"
598
592
  },
599
- "map": {
600
- "type": "object",
601
- "additionalProperties": {
602
- "type": "array",
603
- "items": {
604
- "type": "string"
605
- }
606
- },
607
- "description": "Define the map to Object collection\n\nkey is a Store name the string[] represent all valids attributes to store files in",
608
- "deprecated": true
609
- },
610
593
  "models": {
611
594
  "type": "object",
612
595
  "additionalProperties": {
@@ -617,41 +600,10 @@
617
600
  },
618
601
  "description": "Define the map of models\n* indicates all models\n\nkey is a Store name the string[] represent all valids attributes to store files in * indicates all attributes"
619
602
  },
620
- "expose": {
621
- "type": "object",
622
- "properties": {
623
- "url": {
624
- "type": "string",
625
- "description": "URL to expose the service to"
626
- },
627
- "restrict": {
628
- "type": "object",
629
- "properties": {
630
- "get": {
631
- "type": "boolean",
632
- "description": "Restrict GET"
633
- },
634
- "create": {
635
- "type": "boolean",
636
- "description": "Restrict POST"
637
- },
638
- "delete": {
639
- "type": "boolean",
640
- "description": "Restrict DELETE"
641
- },
642
- "metadata": {
643
- "type": "boolean",
644
- "description": "Restrict update of metadata"
645
- }
646
- },
647
- "description": "Restrict some APIs"
648
- }
649
- },
650
- "required": [
651
- "url"
652
- ],
653
- "description": "Expose the service to http",
654
- "deprecated": "will be removed in 4.0"
603
+ "maxFileSize": {
604
+ "type": "number",
605
+ "description": "Define the maximum filesize to accept as direct upload",
606
+ "default": "10*1024*1024"
655
607
  },
656
608
  "openapi": {
657
609
  "type": "object",
@@ -659,7 +611,6 @@
659
611
  }
660
612
  },
661
613
  "required": [
662
- "map",
663
614
  "models",
664
615
  "type"
665
616
  ],
@@ -1028,7 +979,7 @@
1028
979
  ],
1029
980
  "description": "Interface to specify the Service parameters",
1030
981
  "$schema": "http://json-schema.org/draft-07/schema#",
1031
- "title": "ModelsOperationsService"
982
+ "title": "CronService"
1032
983
  },
1033
984
  "Webda/CryptoService": {
1034
985
  "type": "object",
@@ -1296,17 +1247,6 @@
1296
1247
  "type": "string",
1297
1248
  "description": "URL on which to serve the content"
1298
1249
  },
1299
- "map": {
1300
- "type": "object",
1301
- "additionalProperties": {
1302
- "type": "array",
1303
- "items": {
1304
- "type": "string"
1305
- }
1306
- },
1307
- "description": "Define the map to Object collection\n\nkey is a Store name the string[] represent all valids attributes to store files in",
1308
- "deprecated": true
1309
- },
1310
1250
  "models": {
1311
1251
  "type": "object",
1312
1252
  "additionalProperties": {
@@ -1317,41 +1257,10 @@
1317
1257
  },
1318
1258
  "description": "Define the map of models\n* indicates all models\n\nkey is a Store name the string[] represent all valids attributes to store files in * indicates all attributes"
1319
1259
  },
1320
- "expose": {
1321
- "type": "object",
1322
- "properties": {
1323
- "url": {
1324
- "type": "string",
1325
- "description": "URL to expose the service to"
1326
- },
1327
- "restrict": {
1328
- "type": "object",
1329
- "properties": {
1330
- "get": {
1331
- "type": "boolean",
1332
- "description": "Restrict GET"
1333
- },
1334
- "create": {
1335
- "type": "boolean",
1336
- "description": "Restrict POST"
1337
- },
1338
- "delete": {
1339
- "type": "boolean",
1340
- "description": "Restrict DELETE"
1341
- },
1342
- "metadata": {
1343
- "type": "boolean",
1344
- "description": "Restrict update of metadata"
1345
- }
1346
- },
1347
- "description": "Restrict some APIs"
1348
- }
1349
- },
1350
- "required": [
1351
- "url"
1352
- ],
1353
- "description": "Expose the service to http",
1354
- "deprecated": "will be removed in 4.0"
1260
+ "maxFileSize": {
1261
+ "type": "number",
1262
+ "description": "Define the maximum filesize to accept as direct upload",
1263
+ "default": "10*1024*1024"
1355
1264
  },
1356
1265
  "prefix": {
1357
1266
  "type": "string"
@@ -1372,7 +1281,6 @@
1372
1281
  },
1373
1282
  "required": [
1374
1283
  "folder",
1375
- "map",
1376
1284
  "models",
1377
1285
  "type"
1378
1286
  ],
@@ -1549,15 +1457,6 @@
1549
1457
  "description": "Additional models\n\nAllow this store to manage other models",
1550
1458
  "default": []
1551
1459
  },
1552
- "asyncDelete": {
1553
- "type": "boolean",
1554
- "description": "async delete"
1555
- },
1556
- "expose": {
1557
- "$ref": "#/definitions/StoreExposeParameters",
1558
- "description": "Expose the service to an urls",
1559
- "deprecated": "will probably be removed in 4.0 in favor of Expose annotation"
1560
- },
1561
1460
  "strict": {
1562
1461
  "type": "boolean",
1563
1462
  "description": "Allow to load object that does not have the type data\n\nIf set to true, then the Store will only managed the defined _model and no model extending this one",
@@ -1607,61 +1506,11 @@
1607
1506
  }
1608
1507
  },
1609
1508
  "required": [
1610
- "asyncDelete",
1611
1509
  "folder",
1612
1510
  "slowQueryThreshold",
1613
1511
  "type"
1614
1512
  ],
1615
1513
  "$schema": "http://json-schema.org/draft-07/schema#",
1616
- "definitions": {
1617
- "StoreExposeParameters": {
1618
- "type": "object",
1619
- "properties": {
1620
- "url": {
1621
- "type": "string",
1622
- "description": "URL endpoint to use to expose REST Resources API",
1623
- "default": "service.getName().toLowerCase()"
1624
- },
1625
- "restrict": {
1626
- "type": "object",
1627
- "properties": {
1628
- "create": {
1629
- "type": "boolean",
1630
- "description": "Do not expose the POST"
1631
- },
1632
- "update": {
1633
- "type": "boolean",
1634
- "description": "Do not expose the PUT and PATCH"
1635
- },
1636
- "get": {
1637
- "type": "boolean",
1638
- "description": "Do not expose the GET"
1639
- },
1640
- "delete": {
1641
- "type": "boolean",
1642
- "description": "Do not expose the DELETE"
1643
- },
1644
- "query": {
1645
- "type": "boolean",
1646
- "description": "Do not expose the query endpoint"
1647
- }
1648
- },
1649
- "description": "You can restrict any part of the CRUD",
1650
- "default": {}
1651
- },
1652
- "queryMethod": {
1653
- "type": "string",
1654
- "enum": [
1655
- "PUT",
1656
- "GET"
1657
- ],
1658
- "description": "For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging",
1659
- "default": "GET"
1660
- }
1661
- },
1662
- "deprecated": "Store should not be exposed directly anymore\nYou should use the DomainService instead"
1663
- }
1664
- },
1665
1514
  "title": "FileStore"
1666
1515
  },
1667
1516
  "Webda/Ident": {
@@ -1704,10 +1553,12 @@
1704
1553
  "_lastUsed": {
1705
1554
  "type": "string",
1706
1555
  "format": "date-time",
1556
+ "description": "Last time the ident was used",
1707
1557
  "readOnly": true
1708
1558
  },
1709
1559
  "_failedLogin": {
1710
1560
  "type": "number",
1561
+ "description": "If the ident is validated",
1711
1562
  "readOnly": true
1712
1563
  },
1713
1564
  "_lastValidationEmail": {
@@ -2084,15 +1935,6 @@
2084
1935
  "description": "Additional models\n\nAllow this store to manage other models",
2085
1936
  "default": []
2086
1937
  },
2087
- "asyncDelete": {
2088
- "type": "boolean",
2089
- "description": "async delete"
2090
- },
2091
- "expose": {
2092
- "$ref": "#/definitions/StoreExposeParameters",
2093
- "description": "Expose the service to an urls",
2094
- "deprecated": "will probably be removed in 4.0 in favor of Expose annotation"
2095
- },
2096
1938
  "strict": {
2097
1939
  "type": "boolean",
2098
1940
  "description": "Allow to load object that does not have the type data\n\nIf set to true, then the Store will only managed the defined _model and no model extending this one",
@@ -2161,61 +2003,11 @@
2161
2003
  }
2162
2004
  },
2163
2005
  "required": [
2164
- "asyncDelete",
2165
2006
  "slowQueryThreshold",
2166
2007
  "type"
2167
2008
  ],
2168
2009
  "description": "Memory store",
2169
2010
  "$schema": "http://json-schema.org/draft-07/schema#",
2170
- "definitions": {
2171
- "StoreExposeParameters": {
2172
- "type": "object",
2173
- "properties": {
2174
- "url": {
2175
- "type": "string",
2176
- "description": "URL endpoint to use to expose REST Resources API",
2177
- "default": "service.getName().toLowerCase()"
2178
- },
2179
- "restrict": {
2180
- "type": "object",
2181
- "properties": {
2182
- "create": {
2183
- "type": "boolean",
2184
- "description": "Do not expose the POST"
2185
- },
2186
- "update": {
2187
- "type": "boolean",
2188
- "description": "Do not expose the PUT and PATCH"
2189
- },
2190
- "get": {
2191
- "type": "boolean",
2192
- "description": "Do not expose the GET"
2193
- },
2194
- "delete": {
2195
- "type": "boolean",
2196
- "description": "Do not expose the DELETE"
2197
- },
2198
- "query": {
2199
- "type": "boolean",
2200
- "description": "Do not expose the query endpoint"
2201
- }
2202
- },
2203
- "description": "You can restrict any part of the CRUD",
2204
- "default": {}
2205
- },
2206
- "queryMethod": {
2207
- "type": "string",
2208
- "enum": [
2209
- "PUT",
2210
- "GET"
2211
- ],
2212
- "description": "For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging",
2213
- "default": "GET"
2214
- }
2215
- },
2216
- "deprecated": "Store should not be exposed directly anymore\nYou should use the DomainService instead"
2217
- }
2218
- },
2219
2011
  "title": "MemoryStore"
2220
2012
  },
2221
2013
  "Webda/ModelsOperationsService": {
@@ -2229,6 +2021,35 @@
2229
2021
  "type": "string",
2230
2022
  "description": "URL on which to serve the content"
2231
2023
  },
2024
+ "operations": {
2025
+ "type": "boolean",
2026
+ "description": "Expose objects as operations too",
2027
+ "default": true
2028
+ },
2029
+ "nameTransfomer": {
2030
+ "$ref": "#/definitions/TransformCaseType",
2031
+ "description": "Transform the name of the model to be used in the URL",
2032
+ "default": "camelCase"
2033
+ },
2034
+ "queryMethod": {
2035
+ "type": "string",
2036
+ "enum": [
2037
+ "PUT",
2038
+ "GET"
2039
+ ],
2040
+ "description": "Method used for query objects",
2041
+ "default": "PUT"
2042
+ },
2043
+ "models": {
2044
+ "type": "array",
2045
+ "items": {
2046
+ "type": "string"
2047
+ },
2048
+ "description": "List of models to include\n\nIf model is prefixed with a ! it will be excluded",
2049
+ "default": [
2050
+ "*"
2051
+ ]
2052
+ },
2232
2053
  "openapi": {
2233
2054
  "type": "object",
2234
2055
  "additionalProperties": true
@@ -2237,8 +2058,23 @@
2237
2058
  "required": [
2238
2059
  "type"
2239
2060
  ],
2240
- "description": "Interface to specify the Service parameters",
2241
2061
  "$schema": "http://json-schema.org/draft-07/schema#",
2062
+ "definitions": {
2063
+ "TransformCaseType": {
2064
+ "type": "string",
2065
+ "enum": [
2066
+ "none",
2067
+ "camelCase",
2068
+ "ENV_VAR",
2069
+ "snake_case",
2070
+ "PascalCase",
2071
+ "kebab-case",
2072
+ "UPPERCASE",
2073
+ "lowercase"
2074
+ ],
2075
+ "description": "Transform the name of the model to be used in the URL"
2076
+ }
2077
+ },
2242
2078
  "title": "ModelsOperationsService"
2243
2079
  },
2244
2080
  "Webda/MultiNotificationService": {
@@ -2277,6 +2113,172 @@
2277
2113
  "$schema": "http://json-schema.org/draft-07/schema#",
2278
2114
  "title": "MultiNotificationService"
2279
2115
  },
2116
+ "Webda/MyIdent": {
2117
+ "type": "object",
2118
+ "properties": {
2119
+ "_creationDate": {
2120
+ "type": "string",
2121
+ "format": "date-time",
2122
+ "description": "Creation date",
2123
+ "readOnly": true
2124
+ },
2125
+ "_lastUpdate": {
2126
+ "type": "string",
2127
+ "format": "date-time",
2128
+ "description": "Last update date",
2129
+ "readOnly": true
2130
+ },
2131
+ "uuid": {
2132
+ "type": "string",
2133
+ "description": "UUID of the object"
2134
+ },
2135
+ "_user": {
2136
+ "type": "string",
2137
+ "readOnly": true
2138
+ },
2139
+ "public": {
2140
+ "type": "boolean",
2141
+ "description": "Define if the object is publicly readable",
2142
+ "default": false
2143
+ },
2144
+ "_type": {
2145
+ "type": "string",
2146
+ "description": "Type of the ident",
2147
+ "readOnly": true
2148
+ },
2149
+ "uid": {
2150
+ "type": "string",
2151
+ "description": "Uid on the provider"
2152
+ },
2153
+ "_lastUsed": {
2154
+ "type": "string",
2155
+ "format": "date-time",
2156
+ "description": "Last time the ident was used",
2157
+ "readOnly": true
2158
+ },
2159
+ "_failedLogin": {
2160
+ "type": "number",
2161
+ "description": "If the ident is validated",
2162
+ "readOnly": true
2163
+ },
2164
+ "_lastValidationEmail": {
2165
+ "type": "number",
2166
+ "description": "If EmailIdent",
2167
+ "readOnly": true
2168
+ },
2169
+ "_validation": {
2170
+ "type": "string",
2171
+ "format": "date-time",
2172
+ "description": "When the ident was validated",
2173
+ "readOnly": true
2174
+ },
2175
+ "email": {
2176
+ "type": "string",
2177
+ "description": "Email for this ident if it exist"
2178
+ },
2179
+ "provider": {
2180
+ "type": "string",
2181
+ "description": "Provider id"
2182
+ },
2183
+ "toto": {
2184
+ "type": "string"
2185
+ }
2186
+ },
2187
+ "required": [
2188
+ "toto",
2189
+ "uid",
2190
+ "uuid"
2191
+ ],
2192
+ "$schema": "http://json-schema.org/draft-07/schema#",
2193
+ "title": "MyIdent"
2194
+ },
2195
+ "Webda/MySimpleUser": {
2196
+ "type": "object",
2197
+ "properties": {
2198
+ "_creationDate": {
2199
+ "type": "string",
2200
+ "format": "date-time",
2201
+ "description": "Creation date",
2202
+ "readOnly": true
2203
+ },
2204
+ "_lastUpdate": {
2205
+ "type": "string",
2206
+ "format": "date-time",
2207
+ "description": "Last update date",
2208
+ "readOnly": true
2209
+ },
2210
+ "displayName": {
2211
+ "type": "string",
2212
+ "description": "Display name for this user"
2213
+ },
2214
+ "_lastPasswordRecovery": {
2215
+ "type": "number",
2216
+ "description": "Last time the password was recovered",
2217
+ "readOnly": true
2218
+ },
2219
+ "_avatar": {
2220
+ "type": "string",
2221
+ "description": "Define the user avatar if exists",
2222
+ "readOnly": true
2223
+ },
2224
+ "locale": {
2225
+ "type": "string",
2226
+ "description": "Contains the locale of the user if known"
2227
+ },
2228
+ "email": {
2229
+ "type": "string",
2230
+ "description": "Contain main user email if exists"
2231
+ },
2232
+ "_groups": {
2233
+ "type": "array",
2234
+ "items": {
2235
+ "type": "string"
2236
+ },
2237
+ "description": "Groups for a user",
2238
+ "readOnly": true
2239
+ },
2240
+ "_roles": {
2241
+ "type": "array",
2242
+ "items": {
2243
+ "type": "string"
2244
+ },
2245
+ "description": "Roles of the user",
2246
+ "readOnly": true
2247
+ },
2248
+ "_idents": {
2249
+ "type": "array",
2250
+ "items": {
2251
+ "$ref": "#/definitions/ModelMapLoader%3Cclass-src_models_test.ts-132-222-src_models_test.ts-0-339%2C(%22_type%22%7C%22uuid%22%7C%22email%22)%3E"
2252
+ },
2253
+ "description": "Normal ident",
2254
+ "readOnly": true
2255
+ }
2256
+ },
2257
+ "required": [
2258
+ "displayName"
2259
+ ],
2260
+ "$schema": "http://json-schema.org/draft-07/schema#",
2261
+ "definitions": {
2262
+ "ModelMapLoader<class-src_models_test.ts-132-222-src_models_test.ts-0-339,(\"_type\"|\"uuid\"|\"email\")>": {
2263
+ "type": "object",
2264
+ "properties": {
2265
+ "_type": {},
2266
+ "uuid": {
2267
+ "type": "string",
2268
+ "description": "The uuid of the object"
2269
+ },
2270
+ "email": {}
2271
+ },
2272
+ "required": [
2273
+ "_type",
2274
+ "email",
2275
+ "uuid"
2276
+ ],
2277
+ "description": "Mapper attribute (target of a Mapper service)\n\nThis is not exported as when mapped the target is always an array TODO Handle 1:1 map"
2278
+ }
2279
+ },
2280
+ "title": "MySimpleUser"
2281
+ },
2280
2282
  "Webda/OwnerModel": {
2281
2283
  "type": "object",
2282
2284
  "properties": {
@@ -2402,6 +2404,21 @@
2402
2404
  "description": "Return the index file for any unfound resource Useful for single page application",
2403
2405
  "default": true
2404
2406
  },
2407
+ "cacheControl": {
2408
+ "type": "string",
2409
+ "description": "Cache control header to set",
2410
+ "default": "public, max-age=31536000"
2411
+ },
2412
+ "indexCacheControl": {
2413
+ "type": "string",
2414
+ "description": "Cache control for index file SPA usually do not cache the index file",
2415
+ "default": "no-cache, no-store, must-revalidate"
2416
+ },
2417
+ "allowHiddenFiles": {
2418
+ "type": "boolean",
2419
+ "description": "Serve also . prefixed files . files usually have some secrets and should not be served",
2420
+ "default": false
2421
+ },
2405
2422
  "openapi": {
2406
2423
  "type": "object",
2407
2424
  "additionalProperties": true
@@ -2427,11 +2444,13 @@
2427
2444
  },
2428
2445
  "operations": {
2429
2446
  "type": "boolean",
2430
- "description": "Expose objects as operations too"
2447
+ "description": "Expose objects as operations too",
2448
+ "default": true
2431
2449
  },
2432
2450
  "nameTransfomer": {
2433
2451
  "$ref": "#/definitions/TransformCaseType",
2434
- "description": "Transform the name of the model to be used in the URL"
2452
+ "description": "Transform the name of the model to be used in the URL",
2453
+ "default": "camelCase"
2435
2454
  },
2436
2455
  "queryMethod": {
2437
2456
  "type": "string",
@@ -2457,6 +2476,11 @@
2457
2476
  "description": "Expose the OpenAPI",
2458
2477
  "default": "true if debug false otherwise"
2459
2478
  },
2479
+ "swaggerVersion": {
2480
+ "type": "string",
2481
+ "description": "Swagger version to use\n\nhttps://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui.css https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-bundle.js https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-standalone-preset.js",
2482
+ "default": "3.19.5"
2483
+ },
2460
2484
  "openapi": {
2461
2485
  "type": "object",
2462
2486
  "additionalProperties": true
@@ -2464,10 +2488,7 @@
2464
2488
  },
2465
2489
  "required": [
2466
2490
  "exposeOpenAPI",
2467
- "models",
2468
- "nameTransfomer",
2469
- "operations",
2470
- "queryMethod",
2491
+ "swaggerVersion",
2471
2492
  "type"
2472
2493
  ],
2473
2494
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -2508,7 +2529,7 @@
2508
2529
  "$schema": "http://json-schema.org/draft-07/schema#",
2509
2530
  "title": "RoleModel"
2510
2531
  },
2511
- "Webda/User": {
2532
+ "Webda/SimpleUser": {
2512
2533
  "type": "object",
2513
2534
  "properties": {
2514
2535
  "_creationDate": {
@@ -2544,16 +2565,49 @@
2544
2565
  "email": {
2545
2566
  "type": "string",
2546
2567
  "description": "Contain main user email if exists"
2568
+ },
2569
+ "_groups": {
2570
+ "type": "array",
2571
+ "items": {
2572
+ "type": "string"
2573
+ },
2574
+ "description": "Groups for a user",
2575
+ "readOnly": true
2576
+ },
2577
+ "_roles": {
2578
+ "type": "array",
2579
+ "items": {
2580
+ "type": "string"
2581
+ },
2582
+ "description": "Roles of the user",
2583
+ "readOnly": true
2584
+ },
2585
+ "_idents": {
2586
+ "type": "array",
2587
+ "items": {
2588
+ "type": "object",
2589
+ "properties": {
2590
+ "uuid": {
2591
+ "type": "string"
2592
+ }
2593
+ },
2594
+ "required": [
2595
+ "uuid",
2596
+ "uuid"
2597
+ ],
2598
+ "additionalProperties": false
2599
+ },
2600
+ "readOnly": true
2547
2601
  }
2548
2602
  },
2549
2603
  "required": [
2550
2604
  "displayName"
2551
2605
  ],
2552
- "description": "First basic model for User",
2606
+ "description": "Simple user offers groups and roles management\n\nGroups and roles are defined just as string, no models",
2553
2607
  "$schema": "http://json-schema.org/draft-07/schema#",
2554
- "title": "User"
2608
+ "title": "SimpleUser"
2555
2609
  },
2556
- "Webda/UuidModel": {
2610
+ "Webda/Task": {
2557
2611
  "type": "object",
2558
2612
  "properties": {
2559
2613
  "_creationDate": {
@@ -2569,12 +2623,188 @@
2569
2623
  "readOnly": true
2570
2624
  },
2571
2625
  "uuid": {
2626
+ "type": "string",
2627
+ "description": "UUID of the object"
2628
+ },
2629
+ "_user": {
2630
+ "type": "string",
2631
+ "readOnly": true
2632
+ },
2633
+ "public": {
2634
+ "type": "boolean",
2635
+ "description": "Define if the object is publicly readable",
2636
+ "default": false
2637
+ },
2638
+ "_autoListener": {
2639
+ "type": "number",
2640
+ "readOnly": true
2641
+ },
2642
+ "plop": {},
2643
+ "plop2": {},
2644
+ "card": {},
2645
+ "test": {},
2646
+ "bouzouf": {},
2647
+ "side": {
2572
2648
  "type": "string"
2649
+ },
2650
+ "_gotContext": {
2651
+ "type": "boolean",
2652
+ "readOnly": true
2573
2653
  }
2574
2654
  },
2575
2655
  "required": [
2656
+ "bouzouf",
2657
+ "card",
2658
+ "plop",
2659
+ "plop2",
2660
+ "side",
2661
+ "test",
2576
2662
  "uuid"
2577
2663
  ],
2664
+ "$schema": "http://json-schema.org/draft-07/schema#",
2665
+ "title": "Task"
2666
+ },
2667
+ "Webda/TestIdent": {
2668
+ "type": "object",
2669
+ "properties": {
2670
+ "_creationDate": {
2671
+ "type": "string",
2672
+ "format": "date-time",
2673
+ "description": "Creation date",
2674
+ "readOnly": true
2675
+ },
2676
+ "_lastUpdate": {
2677
+ "type": "string",
2678
+ "format": "date-time",
2679
+ "description": "Last update date",
2680
+ "readOnly": true
2681
+ },
2682
+ "uuid": {
2683
+ "type": "string",
2684
+ "description": "UUID of the object"
2685
+ },
2686
+ "_user": {
2687
+ "type": "string",
2688
+ "readOnly": true
2689
+ },
2690
+ "public": {
2691
+ "type": "boolean",
2692
+ "description": "Define if the object is publicly readable",
2693
+ "default": false
2694
+ },
2695
+ "_type": {
2696
+ "type": "string",
2697
+ "description": "Type of the ident",
2698
+ "readOnly": true
2699
+ },
2700
+ "uid": {
2701
+ "type": "string",
2702
+ "description": "Uid on the provider"
2703
+ },
2704
+ "_lastUsed": {
2705
+ "type": "string",
2706
+ "format": "date-time",
2707
+ "description": "Last time the ident was used",
2708
+ "readOnly": true
2709
+ },
2710
+ "_failedLogin": {
2711
+ "type": "number",
2712
+ "description": "If the ident is validated",
2713
+ "readOnly": true
2714
+ },
2715
+ "_lastValidationEmail": {
2716
+ "type": "number",
2717
+ "description": "If EmailIdent",
2718
+ "readOnly": true
2719
+ },
2720
+ "_validation": {
2721
+ "type": "string",
2722
+ "format": "date-time",
2723
+ "description": "When the ident was validated",
2724
+ "readOnly": true
2725
+ },
2726
+ "email": {
2727
+ "type": "string",
2728
+ "description": "Email for this ident if it exist"
2729
+ },
2730
+ "provider": {
2731
+ "type": "string",
2732
+ "description": "Provider id"
2733
+ }
2734
+ },
2735
+ "required": [
2736
+ "uid",
2737
+ "uuid"
2738
+ ],
2739
+ "$schema": "http://json-schema.org/draft-07/schema#",
2740
+ "title": "TestIdent"
2741
+ },
2742
+ "Webda/User": {
2743
+ "type": "object",
2744
+ "properties": {
2745
+ "_creationDate": {
2746
+ "type": "string",
2747
+ "format": "date-time",
2748
+ "description": "Creation date",
2749
+ "readOnly": true
2750
+ },
2751
+ "_lastUpdate": {
2752
+ "type": "string",
2753
+ "format": "date-time",
2754
+ "description": "Last update date",
2755
+ "readOnly": true
2756
+ },
2757
+ "displayName": {
2758
+ "type": "string",
2759
+ "description": "Display name for this user"
2760
+ },
2761
+ "_lastPasswordRecovery": {
2762
+ "type": "number",
2763
+ "description": "Last time the password was recovered",
2764
+ "readOnly": true
2765
+ },
2766
+ "_avatar": {
2767
+ "type": "string",
2768
+ "description": "Define the user avatar if exists",
2769
+ "readOnly": true
2770
+ },
2771
+ "locale": {
2772
+ "type": "string",
2773
+ "description": "Contains the locale of the user if known"
2774
+ },
2775
+ "email": {
2776
+ "type": "string",
2777
+ "description": "Contain main user email if exists"
2778
+ }
2779
+ },
2780
+ "required": [
2781
+ "displayName"
2782
+ ],
2783
+ "description": "First basic model for User",
2784
+ "$schema": "http://json-schema.org/draft-07/schema#",
2785
+ "title": "User"
2786
+ },
2787
+ "Webda/UuidModel": {
2788
+ "type": "object",
2789
+ "properties": {
2790
+ "_creationDate": {
2791
+ "type": "string",
2792
+ "format": "date-time",
2793
+ "description": "Creation date",
2794
+ "readOnly": true
2795
+ },
2796
+ "_lastUpdate": {
2797
+ "type": "string",
2798
+ "format": "date-time",
2799
+ "description": "Last update date",
2800
+ "readOnly": true
2801
+ },
2802
+ "uuid": {
2803
+ "type": "string",
2804
+ "readOnly": true,
2805
+ "$generated": true
2806
+ }
2807
+ },
2578
2808
  "description": "CoreModel with a uuid",
2579
2809
  "$schema": "http://json-schema.org/draft-07/schema#",
2580
2810
  "title": "UuidModel"