@quan-erp/shared-backend-core 1.0.1

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 (558) hide show
  1. package/README.md +3 -0
  2. package/dist/0d45f5fd/5KlFrPzh.js +1 -0
  3. package/dist/0d45f5fd/B39PJnPI.js +1 -0
  4. package/dist/0d45f5fd/B9PiPcem.js +1 -0
  5. package/dist/0d45f5fd/B9n9G1yv.js +1 -0
  6. package/dist/0d45f5fd/BG4uzJH8.js +1 -0
  7. package/dist/0d45f5fd/BSYoBKie.js +1 -0
  8. package/dist/0d45f5fd/BSoQlFtK.js +1 -0
  9. package/dist/0d45f5fd/BdIoxvqZ.js +1 -0
  10. package/dist/0d45f5fd/Bjtfltpk.js +1 -0
  11. package/dist/0d45f5fd/BnAtyUlK.js +1 -0
  12. package/dist/0d45f5fd/BnVVAcqU.js +1 -0
  13. package/dist/0d45f5fd/BpygDVVM.js +1 -0
  14. package/dist/0d45f5fd/BtsQx3aY.js +1 -0
  15. package/dist/0d45f5fd/CCA7LWmS.js +1 -0
  16. package/dist/0d45f5fd/CKB1ifMq.js +1 -0
  17. package/dist/0d45f5fd/CRwWF7UI.js +1 -0
  18. package/dist/0d45f5fd/CXJRBJWG.js +1 -0
  19. package/dist/0d45f5fd/CXtVchjo.js +1 -0
  20. package/dist/0d45f5fd/Cai5KXIT.js +1 -0
  21. package/dist/0d45f5fd/Cg31gF4E.js +1 -0
  22. package/dist/0d45f5fd/Cq4RSZy9.js +1 -0
  23. package/dist/0d45f5fd/DC3PtGPu.js +1 -0
  24. package/dist/0d45f5fd/DIFFnF56.js +1 -0
  25. package/dist/0d45f5fd/DOcmAiwD.js +1 -0
  26. package/dist/0d45f5fd/Da8GroSP.js +1 -0
  27. package/dist/0d45f5fd/Di60wa_E.js +1 -0
  28. package/dist/0d45f5fd/DvG5qFao.js +1 -0
  29. package/dist/0d45f5fd/DyEymKEk.js +1 -0
  30. package/dist/0d45f5fd/UGXY0ODE.js +1 -0
  31. package/dist/0d45f5fd/__eOk8J6.js +1 -0
  32. package/dist/0d45f5fd/asmaHIQv.js +1 -0
  33. package/dist/0d45f5fd/da7f739f/06cc432b/25p0Miq_.js +1 -0
  34. package/dist/0d45f5fd/da7f739f/06cc432b/5s8pBnVf.js +1 -0
  35. package/dist/0d45f5fd/da7f739f/06cc432b/BE5KBeOK.js +1 -0
  36. package/dist/0d45f5fd/da7f739f/06cc432b/BEPU-S6o.js +1 -0
  37. package/dist/0d45f5fd/da7f739f/06cc432b/BWziVYGZ.js +1 -0
  38. package/dist/0d45f5fd/da7f739f/06cc432b/BmoqY6qK.js +1 -0
  39. package/dist/0d45f5fd/da7f739f/06cc432b/BoAUIetu.js +1 -0
  40. package/dist/0d45f5fd/da7f739f/06cc432b/BwEGj0SR.js +1 -0
  41. package/dist/0d45f5fd/da7f739f/06cc432b/C1HmfU8l.js +1 -0
  42. package/dist/0d45f5fd/da7f739f/06cc432b/CcS-MRSy.js +1 -0
  43. package/dist/0d45f5fd/da7f739f/06cc432b/CtrMkht2.js +1 -0
  44. package/dist/0d45f5fd/da7f739f/06cc432b/CvvA02Hw.js +1 -0
  45. package/dist/0d45f5fd/da7f739f/06cc432b/Cyqt_ETc.js +1 -0
  46. package/dist/0d45f5fd/da7f739f/06cc432b/DGkvCdvx.js +1 -0
  47. package/dist/0d45f5fd/da7f739f/06cc432b/DScQTTOQ.js +1 -0
  48. package/dist/0d45f5fd/da7f739f/06cc432b/DZmJZNCG.js +1 -0
  49. package/dist/0d45f5fd/da7f739f/06cc432b/DfpMAyYK.js +1 -0
  50. package/dist/0d45f5fd/da7f739f/06cc432b/DoVADpy9.js +1 -0
  51. package/dist/0d45f5fd/da7f739f/06cc432b/GwLgwN_L.js +1 -0
  52. package/dist/0d45f5fd/da7f739f/06cc432b/U9R2mFhp.js +1 -0
  53. package/dist/0d45f5fd/da7f739f/06cc432b/oLO9WiPq.js +1 -0
  54. package/dist/0d45f5fd/da7f739f/06cc432b/wumOP7IP.js +1 -0
  55. package/dist/0d45f5fd/da7f739f/06cc432b/xadXToXe.js +1 -0
  56. package/dist/0d45f5fd/da7f739f/BmmPTjeD.js +1 -0
  57. package/dist/0d45f5fd/da7f739f/CvY_IQUA.js +1 -0
  58. package/dist/0d45f5fd/da7f739f/CzJW4exV.js +1 -0
  59. package/dist/0d45f5fd/da7f739f/Db3MBFjV.js +1 -0
  60. package/dist/0d45f5fd/da7f739f/DtAPNglw.js +1 -0
  61. package/dist/0d45f5fd/da7f739f/fr7kJRNu.js +1 -0
  62. package/dist/0d45f5fd/evrUwPJ-.js +1 -0
  63. package/dist/0d45f5fd/o9g8wBjh.js +1 -0
  64. package/dist/2ad56231/01dcea55/AwPsPqwP.js +1 -0
  65. package/dist/2ad56231/01dcea55/Cz1YOfmh.js +1 -0
  66. package/dist/2ad56231/01dcea55/DbyYeAcK.js +1 -0
  67. package/dist/2ad56231/1242ab99/BA2IW6c-.js +1 -0
  68. package/dist/2ad56231/1242ab99/CsEQAHhz.js +1 -0
  69. package/dist/2ad56231/1242ab99/Dw013QG2.js +1 -0
  70. package/dist/2ad56231/258b1873/DJawI8Tt.js +1 -0
  71. package/dist/2ad56231/258b1873/DzDc9Y5O.js +1 -0
  72. package/dist/2ad56231/2c0a4857/BwRIrBb3.js +1 -0
  73. package/dist/2ad56231/2d464c7d/83Yc1Hce.js +1 -0
  74. package/dist/2ad56231/2d464c7d/B9IugnhI.js +1 -0
  75. package/dist/2ad56231/3549b002/B4AKkY6Y.js +1 -0
  76. package/dist/2ad56231/3549b002/BwXRw8qz.js +1 -0
  77. package/dist/2ad56231/3b9c358f/B9TqbaT4.js +1 -0
  78. package/dist/2ad56231/3b9c358f/NMwzw7gO.js +1 -0
  79. package/dist/2ad56231/466e5b9c/Buwsv_7w.js +1 -0
  80. package/dist/2ad56231/466e5b9c/CeA-GNfe.js +1 -0
  81. package/dist/2ad56231/54246ca2/BH4qJOxT.js +1 -0
  82. package/dist/2ad56231/54246ca2/BLxcE0jr.js +1 -0
  83. package/dist/2ad56231/54246ca2/CLTAEbdq.js +1 -0
  84. package/dist/2ad56231/60be9861/D_PpGELJ.js +1 -0
  85. package/dist/2ad56231/618b8c8d/CVcmoBY3.js +1 -0
  86. package/dist/2ad56231/618b8c8d/xJCbY_5T.js +1 -0
  87. package/dist/2ad56231/7f3fa48c/Dj2y3_YR.js +1 -0
  88. package/dist/2ad56231/7f3fa48c/uFEX-gjF.js +1 -0
  89. package/dist/2ad56231/7f9ba364/Czs1Ohri.js +1 -0
  90. package/dist/2ad56231/7f9ba364/DiH_Qe6t.js +1 -0
  91. package/dist/2ad56231/83b99aea/CKYFeURr.js +1 -0
  92. package/dist/2ad56231/83b99aea/NkYh5QNp.js +1 -0
  93. package/dist/2ad56231/85000c0b/CT5JfXDU.js +1 -0
  94. package/dist/2ad56231/9983e5f2/B-nEfBPG.js +1 -0
  95. package/dist/2ad56231/9983e5f2/CsSmIxA6.js +1 -0
  96. package/dist/2ad56231/9d263798/4EVoBbMS.js +1 -0
  97. package/dist/2ad56231/Cb2X6t1P.js +1 -0
  98. package/dist/2ad56231/DvZRtj63.js +1 -0
  99. package/dist/2ad56231/a7b85550/D-_A5y4Y.js +1 -0
  100. package/dist/2ad56231/a7b85550/bLwrG6oQ.js +1 -0
  101. package/dist/2ad56231/e6eaea18/7517017f/fOK4Yqwl.js +1 -0
  102. package/dist/2ad56231/e6eaea18/DH0d9qaL.js +1 -0
  103. package/dist/2ad56231/e6eaea18/sVUlA6tr.js +1 -0
  104. package/dist/2ad56231/e938ace2/DW_NuK5v.js +1 -0
  105. package/dist/2ad56231/e938ace2/De4S4dnC.js +1 -0
  106. package/dist/2ad56231/ec72b956/ClRr2YrL.js +1 -0
  107. package/dist/2ad56231/ec72b956/Ctb6muYY.js +1 -0
  108. package/dist/2ad56231/vRD99Hpr.js +1 -0
  109. package/dist/2cc49785/5sVGLc0F.js +1 -0
  110. package/dist/2cc49785/B5fBjtkr.js +1 -0
  111. package/dist/2cc49785/BAffXqRd.js +1 -0
  112. package/dist/2cc49785/BCYnJvIR.js +1 -0
  113. package/dist/2cc49785/BIOKfeGU.js +1 -0
  114. package/dist/2cc49785/BKJkVgsW.js +1 -0
  115. package/dist/2cc49785/Bd1ydJag.js +1 -0
  116. package/dist/2cc49785/C4OM0mLw.js +1 -0
  117. package/dist/2cc49785/CL8e3nzY.js +1 -0
  118. package/dist/2cc49785/CLlWYd0R.js +1 -0
  119. package/dist/2cc49785/ClYe_VwO.js +1 -0
  120. package/dist/2cc49785/Cu5EkDoB.js +1 -0
  121. package/dist/2cc49785/XvEhrcTr.js +1 -0
  122. package/dist/2cc49785/_aC-WIP1.js +1 -0
  123. package/dist/2cc49785/a57L0oEj.js +1 -0
  124. package/dist/2cc49785/e6eaea18/Cjqk0vWG.js +1 -0
  125. package/dist/2cc49785/e6eaea18/D0fNkjon.js +1 -0
  126. package/dist/2cc49785/e6eaea18/D3Dn1MIt.js +1 -0
  127. package/dist/2cc49785/e6eaea18/yhPGRXBG.js +1 -0
  128. package/dist/2cc49785/hhsuZ2nK.js +1 -0
  129. package/dist/2cc49785/jng0g1H1.js +1 -0
  130. package/dist/2cc49785/k2901Fu3.js +1 -0
  131. package/dist/46b42b42/CEmdabCT.js +1 -0
  132. package/dist/6610c73e/04f8996d/BWF6rOkR.js +1 -0
  133. package/dist/6610c73e/04f8996d/CaXcz_i7.js +1 -0
  134. package/dist/6610c73e/04f8996d/CmjhNO_P.js +1 -0
  135. package/dist/6610c73e/04f8996d/DKxCvRhP.js +1 -0
  136. package/dist/6610c73e/04f8996d/DtGMr0d5.js +1 -0
  137. package/dist/6610c73e/04f8996d/Z48L3dXG.js +1 -0
  138. package/dist/6610c73e/09355034/CODWyl4K.js +1 -0
  139. package/dist/6610c73e/09355034/gHwDpi39.js +1 -0
  140. package/dist/6610c73e/108201be/CXkV9Wml.js +1 -0
  141. package/dist/6610c73e/108201be/Cu4DoJ6P.js +1 -0
  142. package/dist/6610c73e/108201be/DTOIXs__.js +1 -0
  143. package/dist/6610c73e/2882bf13/DrsfObL3.js +1 -0
  144. package/dist/6610c73e/2882bf13/bCn1uuNp.js +1 -0
  145. package/dist/6610c73e/2a1073a6/B_5Deuzb.js +1 -0
  146. package/dist/6610c73e/2a1073a6/CkBoFImc.js +1 -0
  147. package/dist/6610c73e/340a3320/DMu-yu6w.js +1 -0
  148. package/dist/6610c73e/340a3320/WtvAQ1Zk.js +1 -0
  149. package/dist/6610c73e/3cae9be6/DZFOH9Z2.js +1 -0
  150. package/dist/6610c73e/3cae9be6/lxWv5dai.js +1 -0
  151. package/dist/6610c73e/48e13c1e/BaWTxVuk.js +1 -0
  152. package/dist/6610c73e/48e13c1e/DC8jiBLc.js +1 -0
  153. package/dist/6610c73e/4b168d88/CBc-ilUo.js +1 -0
  154. package/dist/6610c73e/4b168d88/Dk7iGuFo.js +1 -0
  155. package/dist/6610c73e/4b168d88/NIu8TJUV.js +1 -0
  156. package/dist/6610c73e/5e1ecee0/CuVdoLW5.js +1 -0
  157. package/dist/6610c73e/5e689e2b/BBEFD0MJ.js +1 -0
  158. package/dist/6610c73e/5e689e2b/D63jRed3.js +1 -0
  159. package/dist/6610c73e/5e689e2b/si0E7vy4.js +1 -0
  160. package/dist/6610c73e/6e1815de/DAEjspug.js +1 -0
  161. package/dist/6610c73e/82de49c1/CsBZXKps.js +1 -0
  162. package/dist/6610c73e/87f29211/00282ba1/BKMWpuIK.js +1 -0
  163. package/dist/6610c73e/87f29211/00282ba1/Cz6fk5Wc.js +1 -0
  164. package/dist/6610c73e/87f29211/00282ba1/UFVg93nd.js +1 -0
  165. package/dist/6610c73e/87f29211/0f8de574/CpohrteO.js +1 -0
  166. package/dist/6610c73e/87f29211/3681c247/CS5g0xlW.js +1 -0
  167. package/dist/6610c73e/87f29211/3681c247/D3o0RqEX.js +1 -0
  168. package/dist/6610c73e/87f29211/6fd89734/9YxHEjDK.js +1 -0
  169. package/dist/6610c73e/87f29211/87f29211/C6uLcJPv.js +1 -0
  170. package/dist/6610c73e/87f29211/a9d0df18/B72PlhwA.js +1 -0
  171. package/dist/6610c73e/87f29211/a9d0df18/BCYE1vDG.js +1 -0
  172. package/dist/6610c73e/87f29211/a9d0df18/BSCkvdZ1.js +1 -0
  173. package/dist/6610c73e/87f29211/a9d0df18/BVg40SgX.js +1 -0
  174. package/dist/6610c73e/87f29211/a9d0df18/CMGCNHO4.js +1 -0
  175. package/dist/6610c73e/87f29211/b10ca3c4/BOLYM85y.js +1 -0
  176. package/dist/6610c73e/87f29211/b10ca3c4/D24x_3dy.js +1 -0
  177. package/dist/6610c73e/87f29211/b10ca3c4/DE25xVRs.js +1 -0
  178. package/dist/6610c73e/87f29211/fc973325/BAl3nDHD.js +1 -0
  179. package/dist/6610c73e/87f29211/fc973325/C64aaE_N.js +1 -0
  180. package/dist/6610c73e/87f29211/fc973325/DfF3lHvu.js +1 -0
  181. package/dist/6610c73e/8a6cead4/HoQvvqKQ.js +1 -0
  182. package/dist/6610c73e/D9H-YP7D.js +1 -0
  183. package/dist/6610c73e/b77349bf/BMAKW8m1.js +1 -0
  184. package/dist/6610c73e/b77349bf/D6WADvlw.js +1 -0
  185. package/dist/6610c73e/bbc5e661/hSkxlapS.js +1 -0
  186. package/dist/6610c73e/bbc5e661/tRmwB0Ab.js +1 -0
  187. package/dist/6610c73e/bd5c70f7/mOPMbxOa.js +1 -0
  188. package/dist/6610c73e/c374eea5/C_oo4cXt.js +1 -0
  189. package/dist/6610c73e/c374eea5/DAMptVg5.js +1 -0
  190. package/dist/6610c73e/da7f739f/BYicXwEj.js +1 -0
  191. package/dist/6610c73e/da7f739f/s2U4XeTc.js +1 -0
  192. package/dist/6610c73e/f38c764c/ClTmuz3f.js +1 -0
  193. package/dist/6610c73e/f38c764c/FzrDaVim.js +1 -0
  194. package/dist/6610c73e/f38c764c/qDdEVNYd.js +1 -0
  195. package/dist/6610c73e/fdeb3389/BR9K3ZBb.js +1 -0
  196. package/dist/6610c73e/fdeb3389/BW0M26Pt.js +1 -0
  197. package/dist/871f3f39/3-RV1Nvh.js +1 -0
  198. package/dist/871f3f39/B0WsLvd-.js +1 -0
  199. package/dist/871f3f39/B46GW4Vh.js +1 -0
  200. package/dist/871f3f39/BGoChp9H.js +1 -0
  201. package/dist/871f3f39/BHmcll93.js +1 -0
  202. package/dist/871f3f39/BY-kbHqP.js +1 -0
  203. package/dist/871f3f39/Bbr4nitJ.js +1 -0
  204. package/dist/871f3f39/Bc6LGIQu.js +1 -0
  205. package/dist/871f3f39/BdXXlrKL.js +1 -0
  206. package/dist/871f3f39/BoqeRGCn.js +1 -0
  207. package/dist/871f3f39/Bu9hWZCD.js +1 -0
  208. package/dist/871f3f39/C2m7j5qh.js +1 -0
  209. package/dist/871f3f39/CFN-fsiD.js +1 -0
  210. package/dist/871f3f39/CUS6_AMK.js +1 -0
  211. package/dist/871f3f39/Cmsu5KK7.js +1 -0
  212. package/dist/871f3f39/Cx5X1Vvz.js +1 -0
  213. package/dist/871f3f39/D1xWpNbO.js +1 -0
  214. package/dist/871f3f39/D3YMKsRk.js +1 -0
  215. package/dist/871f3f39/D6g3V5OE.js +1 -0
  216. package/dist/871f3f39/DcqjrN7k.js +1 -0
  217. package/dist/871f3f39/QBqrZxtz.js +1 -0
  218. package/dist/871f3f39/kgYqEVK1.js +1 -0
  219. package/dist/871f3f39/lTtOC6ek.js +1 -0
  220. package/dist/871f3f39/po68uTxW.js +1 -0
  221. package/dist/9477dda6/CFyCv-GB.js +1 -0
  222. package/dist/9477dda6/DIoDs5M_.js +1 -0
  223. package/dist/9f80922e/5XFiGZsG.js +1 -0
  224. package/dist/BWkMrHuo.js +1 -0
  225. package/dist/DJSe7osj.js +1 -0
  226. package/dist/abe2c417/B1Ewpect.js +1 -0
  227. package/dist/abe2c417/BqnwMeCy.js +1 -0
  228. package/dist/abe2c417/C0G57Pwe.js +1 -0
  229. package/dist/abe2c417/CEB_j614.js +1 -0
  230. package/dist/abe2c417/CLABtmwy.js +1 -0
  231. package/dist/abe2c417/CNiL-ChU.js +1 -0
  232. package/dist/abe2c417/CV67ztVb.js +1 -0
  233. package/dist/abe2c417/CaWcWRhY.js +1 -0
  234. package/dist/abe2c417/CoVXKJh5.js +1 -0
  235. package/dist/abe2c417/DBb4G-HP.js +1 -0
  236. package/dist/abe2c417/DCY3ehAH.js +1 -0
  237. package/dist/abe2c417/DKWvNL0q.js +1 -0
  238. package/dist/abe2c417/DT_whRfi.js +1 -0
  239. package/dist/abe2c417/LXm3t009.js +1 -0
  240. package/dist/abe2c417/Lvd3rf8x.js +1 -0
  241. package/dist/abe2c417/kEG-y8qb.js +1 -0
  242. package/dist/abe2c417/ugzW3tmu.js +1 -0
  243. package/dist/abe2c417/yBBNgsRd.js +1 -0
  244. package/dist/d58efc4e/DtLRjtgg.js +1 -0
  245. package/dist/fbc6c1d4/D5cBvB9j.js +1 -0
  246. package/dist/fd7f274b/BG5oN9EM.js +1 -0
  247. package/dist/fd7f274b/BobTe5_-.js +1 -0
  248. package/dist/fd7f274b/Bq2MX2tN.js +1 -0
  249. package/dist/fd7f274b/C0kwc9km.js +1 -0
  250. package/dist/fd7f274b/CpGOV-2E.js +1 -0
  251. package/dist/fd7f274b/CsgOaYTS.js +1 -0
  252. package/dist/fd7f274b/D24GT5y1.js +1 -0
  253. package/dist/fd7f274b/ST9KOcsE.js +1 -0
  254. package/dist/fd7f274b/npvNsAoI.js +1 -0
  255. package/dist/index.js +1 -0
  256. package/dist/types/0274021b/47a09c7e.d.ts +4 -0
  257. package/dist/types/0d45f5fd/000288c6.d.ts +22 -0
  258. package/dist/types/0d45f5fd/02800656.d.ts +17 -0
  259. package/dist/types/0d45f5fd/0fb8754a.d.ts +77 -0
  260. package/dist/types/0d45f5fd/13052334.d.ts +62 -0
  261. package/dist/types/0d45f5fd/1428ba3f.d.ts +3 -0
  262. package/dist/types/0d45f5fd/1c59aca9.d.ts +302 -0
  263. package/dist/types/0d45f5fd/262b0493.d.ts +21 -0
  264. package/dist/types/0d45f5fd/2881a088.d.ts +26 -0
  265. package/dist/types/0d45f5fd/496c2854.d.ts +14 -0
  266. package/dist/types/0d45f5fd/4b41f653.d.ts +15 -0
  267. package/dist/types/0d45f5fd/4ced2577.d.ts +28 -0
  268. package/dist/types/0d45f5fd/4db5cc33.d.ts +165 -0
  269. package/dist/types/0d45f5fd/4dd6b41d.d.ts +80 -0
  270. package/dist/types/0d45f5fd/5c6ee442.d.ts +24 -0
  271. package/dist/types/0d45f5fd/60dffdb5.d.ts +57 -0
  272. package/dist/types/0d45f5fd/6559a8c1.d.ts +104 -0
  273. package/dist/types/0d45f5fd/6d626690.d.ts +66 -0
  274. package/dist/types/0d45f5fd/78464d38.d.ts +189 -0
  275. package/dist/types/0d45f5fd/7932a0bf.d.ts +28 -0
  276. package/dist/types/0d45f5fd/7ec9eec1.d.ts +28 -0
  277. package/dist/types/0d45f5fd/885b723d.d.ts +59 -0
  278. package/dist/types/0d45f5fd/8e161648.d.ts +67 -0
  279. package/dist/types/0d45f5fd/8e609bb7.d.ts +1 -0
  280. package/dist/types/0d45f5fd/93c2615f.d.ts +27 -0
  281. package/dist/types/0d45f5fd/96fd122b.d.ts +24 -0
  282. package/dist/types/0d45f5fd/9a2c73cf.d.ts +365 -0
  283. package/dist/types/0d45f5fd/a1a2ec11.d.ts +142 -0
  284. package/dist/types/0d45f5fd/a45e63d6.d.ts +4 -0
  285. package/dist/types/0d45f5fd/a73ae28b.d.ts +48 -0
  286. package/dist/types/0d45f5fd/b5020a96.d.ts +36 -0
  287. package/dist/types/0d45f5fd/b528e7a2.d.ts +81 -0
  288. package/dist/types/0d45f5fd/ba35bfca.d.ts +36 -0
  289. package/dist/types/0d45f5fd/d453df06.d.ts +34 -0
  290. package/dist/types/0d45f5fd/d9b4a449.d.ts +316 -0
  291. package/dist/types/0d45f5fd/da7f739f/06cc432b/06650bfd.d.ts +13 -0
  292. package/dist/types/0d45f5fd/da7f739f/06cc432b/228cff9f.d.ts +13 -0
  293. package/dist/types/0d45f5fd/da7f739f/06cc432b/2a8ae20e.d.ts +13 -0
  294. package/dist/types/0d45f5fd/da7f739f/06cc432b/3110d02c.d.ts +13 -0
  295. package/dist/types/0d45f5fd/da7f739f/06cc432b/3d168b1c.d.ts +22 -0
  296. package/dist/types/0d45f5fd/da7f739f/06cc432b/4650afb2.d.ts +13 -0
  297. package/dist/types/0d45f5fd/da7f739f/06cc432b/483335d4.d.ts +37 -0
  298. package/dist/types/0d45f5fd/da7f739f/06cc432b/5173b4f0.d.ts +26 -0
  299. package/dist/types/0d45f5fd/da7f739f/06cc432b/539f31f2.d.ts +25 -0
  300. package/dist/types/0d45f5fd/da7f739f/06cc432b/546ed991.d.ts +43 -0
  301. package/dist/types/0d45f5fd/da7f739f/06cc432b/5f1c4d9b.d.ts +48 -0
  302. package/dist/types/0d45f5fd/da7f739f/06cc432b/8db0fea5.d.ts +15 -0
  303. package/dist/types/0d45f5fd/da7f739f/06cc432b/a10395b5.d.ts +13 -0
  304. package/dist/types/0d45f5fd/da7f739f/06cc432b/aabb6337.d.ts +13 -0
  305. package/dist/types/0d45f5fd/da7f739f/06cc432b/b16083fb.d.ts +29 -0
  306. package/dist/types/0d45f5fd/da7f739f/06cc432b/b5784cae.d.ts +38 -0
  307. package/dist/types/0d45f5fd/da7f739f/06cc432b/b69d1169.d.ts +13 -0
  308. package/dist/types/0d45f5fd/da7f739f/06cc432b/b9a7f4ad.d.ts +20 -0
  309. package/dist/types/0d45f5fd/da7f739f/06cc432b/c794fb87.d.ts +27 -0
  310. package/dist/types/0d45f5fd/da7f739f/06cc432b/d1eb6a2a.d.ts +40 -0
  311. package/dist/types/0d45f5fd/da7f739f/06cc432b/d5ee1c94.d.ts +36 -0
  312. package/dist/types/0d45f5fd/da7f739f/06cc432b/d6e89c7c.d.ts +13 -0
  313. package/dist/types/0d45f5fd/da7f739f/06cc432b/d8b70efb.d.ts +13 -0
  314. package/dist/types/0d45f5fd/da7f739f/06cc432b/e2a08a0c.d.ts +27 -0
  315. package/dist/types/0d45f5fd/da7f739f/079fe83d.d.ts +14 -0
  316. package/dist/types/0d45f5fd/da7f739f/2a1fe862.d.ts +26 -0
  317. package/dist/types/0d45f5fd/da7f739f/2d25ebcf.d.ts +8 -0
  318. package/dist/types/0d45f5fd/da7f739f/3e71dc06.d.ts +4 -0
  319. package/dist/types/0d45f5fd/da7f739f/597ef69e.d.ts +90 -0
  320. package/dist/types/0d45f5fd/da7f739f/a588a26e.d.ts +80 -0
  321. package/dist/types/0d45f5fd/da7f739f/f7427a8d.d.ts +33 -0
  322. package/dist/types/0d45f5fd/da7f739f/fb5fafa3.d.ts +12 -0
  323. package/dist/types/0d45f5fd/ec0a65fc.d.ts +32 -0
  324. package/dist/types/0d45f5fd/ed08a5cd.d.ts +17 -0
  325. package/dist/types/0d45f5fd/ee447758.d.ts +3 -0
  326. package/dist/types/0d45f5fd/f7da2669.d.ts +6 -0
  327. package/dist/types/2ad56231/01dcea55/0a5f3cca.d.ts +26 -0
  328. package/dist/types/2ad56231/01dcea55/1cdf989f.d.ts +13 -0
  329. package/dist/types/2ad56231/01dcea55/344c0cbf.d.ts +12 -0
  330. package/dist/types/2ad56231/01dcea55/3a555783.d.ts +17 -0
  331. package/dist/types/2ad56231/1242ab99/21beedc5.d.ts +53 -0
  332. package/dist/types/2ad56231/1242ab99/7b7754ee.d.ts +12 -0
  333. package/dist/types/2ad56231/1242ab99/abc978a7.d.ts +32 -0
  334. package/dist/types/2ad56231/1242ab99/e5ff734c.d.ts +6 -0
  335. package/dist/types/2ad56231/258b1873/2f33bb8d.d.ts +10 -0
  336. package/dist/types/2ad56231/258b1873/418b84b4.d.ts +5 -0
  337. package/dist/types/2ad56231/258b1873/f476762d.d.ts +56 -0
  338. package/dist/types/2ad56231/2c0a4857/2b466258.d.ts +11 -0
  339. package/dist/types/2ad56231/2d464c7d/55d4f50c.d.ts +8 -0
  340. package/dist/types/2ad56231/2d464c7d/e9a5b7d1.d.ts +4 -0
  341. package/dist/types/2ad56231/3549b002/8f6249d6.d.ts +7 -0
  342. package/dist/types/2ad56231/3549b002/9a52fb7c.d.ts +10 -0
  343. package/dist/types/2ad56231/3b9c358f/00c829a8.d.ts +12 -0
  344. package/dist/types/2ad56231/3b9c358f/298aef08.d.ts +93 -0
  345. package/dist/types/2ad56231/3b9c358f/8e609bb7.d.ts +1 -0
  346. package/dist/types/2ad56231/466e5b9c/b9f2cf40.d.ts +12 -0
  347. package/dist/types/2ad56231/466e5b9c/ba999e69.d.ts +63 -0
  348. package/dist/types/2ad56231/466e5b9c/cf4df18c.d.ts +19 -0
  349. package/dist/types/2ad56231/517bc292.d.ts +4 -0
  350. package/dist/types/2ad56231/54246ca2/ba53415c.d.ts +43 -0
  351. package/dist/types/2ad56231/54246ca2/c766feba.d.ts +38 -0
  352. package/dist/types/2ad56231/54246ca2/ddde299e.d.ts +10 -0
  353. package/dist/types/2ad56231/60be9861/b353ab56.d.ts +6 -0
  354. package/dist/types/2ad56231/618b8c8d/328b7669.d.ts +29 -0
  355. package/dist/types/2ad56231/618b8c8d/f362ec51.d.ts +11 -0
  356. package/dist/types/2ad56231/618b8c8d/febc0d90.d.ts +9 -0
  357. package/dist/types/2ad56231/7f3fa48c/33ac582f.d.ts +14 -0
  358. package/dist/types/2ad56231/7f3fa48c/5319afba.d.ts +93 -0
  359. package/dist/types/2ad56231/7f3fa48c/66bbc22d.d.ts +40 -0
  360. package/dist/types/2ad56231/7f9ba364/09265e63.d.ts +19 -0
  361. package/dist/types/2ad56231/7f9ba364/0ac71637.d.ts +27 -0
  362. package/dist/types/2ad56231/7f9ba364/e4ec6555.d.ts +45 -0
  363. package/dist/types/2ad56231/83b99aea/14bdfadf.d.ts +10 -0
  364. package/dist/types/2ad56231/83b99aea/6244682b.d.ts +4 -0
  365. package/dist/types/2ad56231/83b99aea/fc1f5daa.d.ts +10 -0
  366. package/dist/types/2ad56231/85000c0b/4024111d.d.ts +34 -0
  367. package/dist/types/2ad56231/85000c0b/632c90fb.d.ts +8 -0
  368. package/dist/types/2ad56231/9983e5f2/16ee99b3.d.ts +58 -0
  369. package/dist/types/2ad56231/9983e5f2/587bf67d.d.ts +21 -0
  370. package/dist/types/2ad56231/9983e5f2/9b6e3ed3.d.ts +10 -0
  371. package/dist/types/2ad56231/9ab6b92e.d.ts +41 -0
  372. package/dist/types/2ad56231/9d263798/45449764.d.ts +18 -0
  373. package/dist/types/2ad56231/a7b85550/0024064d.d.ts +51 -0
  374. package/dist/types/2ad56231/a7b85550/656e3fe6.d.ts +5 -0
  375. package/dist/types/2ad56231/a7b85550/c98f53f7.d.ts +8 -0
  376. package/dist/types/2ad56231/ceaf7c2a.d.ts +26 -0
  377. package/dist/types/2ad56231/d065312a.d.ts +8 -0
  378. package/dist/types/2ad56231/e6eaea18/29b1bffc.d.ts +27 -0
  379. package/dist/types/2ad56231/e6eaea18/66d737cb.d.ts +19 -0
  380. package/dist/types/2ad56231/e6eaea18/6f5b7e90.d.ts +9 -0
  381. package/dist/types/2ad56231/e6eaea18/7517017f/7682dd42.d.ts +17 -0
  382. package/dist/types/2ad56231/e938ace2/2f240da4.d.ts +3 -0
  383. package/dist/types/2ad56231/e938ace2/4c4d66e7.d.ts +10 -0
  384. package/dist/types/2ad56231/e938ace2/c2e78ccc.d.ts +52 -0
  385. package/dist/types/2ad56231/ec72b956/d75444a8.d.ts +81 -0
  386. package/dist/types/2ad56231/ec72b956/d8c49f52.d.ts +22 -0
  387. package/dist/types/2ad56231/ec72b956/d96821de.d.ts +8 -0
  388. package/dist/types/2cc49785/048ca935.d.ts +10 -0
  389. package/dist/types/2cc49785/0f9f5cc9.d.ts +17 -0
  390. package/dist/types/2cc49785/1a4ff9f0.d.ts +15 -0
  391. package/dist/types/2cc49785/1fa712bf.d.ts +6 -0
  392. package/dist/types/2cc49785/265711a1.d.ts +11 -0
  393. package/dist/types/2cc49785/290169fd.d.ts +27 -0
  394. package/dist/types/2cc49785/2a1b2f6a.d.ts +25 -0
  395. package/dist/types/2cc49785/30e64fb4.d.ts +3 -0
  396. package/dist/types/2cc49785/35b9365a.d.ts +16 -0
  397. package/dist/types/2cc49785/46f89c68.d.ts +15 -0
  398. package/dist/types/2cc49785/4b7aaf01.d.ts +17 -0
  399. package/dist/types/2cc49785/5442f571.d.ts +20 -0
  400. package/dist/types/2cc49785/55670d06.d.ts +9 -0
  401. package/dist/types/2cc49785/56873654.d.ts +8 -0
  402. package/dist/types/2cc49785/5b00ec2d.d.ts +16 -0
  403. package/dist/types/2cc49785/75f9e41b.d.ts +13 -0
  404. package/dist/types/2cc49785/79c7a4c3.d.ts +9 -0
  405. package/dist/types/2cc49785/abb76582.d.ts +9 -0
  406. package/dist/types/2cc49785/e6eaea18/1228d90a.d.ts +50 -0
  407. package/dist/types/2cc49785/e6eaea18/17392bb9.d.ts +26 -0
  408. package/dist/types/2cc49785/e6eaea18/3fde60ac.d.ts +4 -0
  409. package/dist/types/2cc49785/e6eaea18/7dee4a42.d.ts +29 -0
  410. package/dist/types/2cc49785/e6eaea18/e337a2ef.d.ts +24 -0
  411. package/dist/types/2cc49785/e8dcc4f1.d.ts +28 -0
  412. package/dist/types/46b42b42/df62afb5.d.ts +43 -0
  413. package/dist/types/6610c73e/04f8996d/45843092.d.ts +87 -0
  414. package/dist/types/6610c73e/04f8996d/49f69d48.d.ts +12 -0
  415. package/dist/types/6610c73e/04f8996d/57b46faf.d.ts +67 -0
  416. package/dist/types/6610c73e/04f8996d/a671786c.d.ts +35 -0
  417. package/dist/types/6610c73e/04f8996d/b2dc285c.d.ts +8 -0
  418. package/dist/types/6610c73e/04f8996d/b9b7d6f9.d.ts +1 -0
  419. package/dist/types/6610c73e/09355034/5f5422ae.d.ts +22 -0
  420. package/dist/types/6610c73e/09355034/cec9d8a9.d.ts +6 -0
  421. package/dist/types/6610c73e/108201be/29b7d59c.d.ts +6 -0
  422. package/dist/types/6610c73e/108201be/aba2513d.d.ts +18 -0
  423. package/dist/types/6610c73e/108201be/c917408b.d.ts +9 -0
  424. package/dist/types/6610c73e/2882bf13/1b635431.d.ts +10 -0
  425. package/dist/types/6610c73e/2882bf13/5a5d4923.d.ts +20 -0
  426. package/dist/types/6610c73e/2882bf13/d0680253.d.ts +14 -0
  427. package/dist/types/6610c73e/2a1073a6/13feb6a7.d.ts +36 -0
  428. package/dist/types/6610c73e/2a1073a6/48a99f86.d.ts +6 -0
  429. package/dist/types/6610c73e/2a1073a6/d21224de.d.ts +10 -0
  430. package/dist/types/6610c73e/340a3320/7e87c266.d.ts +9 -0
  431. package/dist/types/6610c73e/340a3320/c0e4e1db.d.ts +13 -0
  432. package/dist/types/6610c73e/3cae9be6/43329c4e.d.ts +17 -0
  433. package/dist/types/6610c73e/3cae9be6/51c12952.d.ts +5 -0
  434. package/dist/types/6610c73e/48e13c1e/493a30cc.d.ts +10 -0
  435. package/dist/types/6610c73e/48e13c1e/62990ad1.d.ts +9 -0
  436. package/dist/types/6610c73e/4b168d88/08e67542.d.ts +17 -0
  437. package/dist/types/6610c73e/4b168d88/413ef4e3.d.ts +80 -0
  438. package/dist/types/6610c73e/4b168d88/d96befb1.d.ts +15 -0
  439. package/dist/types/6610c73e/5e1ecee0/83f47684.d.ts +6 -0
  440. package/dist/types/6610c73e/5e689e2b/08490b99.d.ts +37 -0
  441. package/dist/types/6610c73e/5e689e2b/a01d5c2f.d.ts +17 -0
  442. package/dist/types/6610c73e/5e689e2b/f6474de5.d.ts +13 -0
  443. package/dist/types/6610c73e/6e1815de/1ec1270e.d.ts +11 -0
  444. package/dist/types/6610c73e/6e1815de/cb4e0d9d.d.ts +10 -0
  445. package/dist/types/6610c73e/70e2c566.d.ts +14 -0
  446. package/dist/types/6610c73e/82de49c1/5a8e8a6f.d.ts +1 -0
  447. package/dist/types/6610c73e/82de49c1/a1399ef0.d.ts +17 -0
  448. package/dist/types/6610c73e/87f29211/00282ba1/99f0dde7.d.ts +14 -0
  449. package/dist/types/6610c73e/87f29211/00282ba1/cc85368e.d.ts +14 -0
  450. package/dist/types/6610c73e/87f29211/00282ba1/da49a2f9.d.ts +19 -0
  451. package/dist/types/6610c73e/87f29211/0f8de574/da48b377.d.ts +33 -0
  452. package/dist/types/6610c73e/87f29211/366ce10d.d.ts +1 -0
  453. package/dist/types/6610c73e/87f29211/3681c247/826d0be4.d.ts +25 -0
  454. package/dist/types/6610c73e/87f29211/3681c247/d3e02bcf.d.ts +45 -0
  455. package/dist/types/6610c73e/87f29211/6fd89734/7c0d7562.d.ts +3 -0
  456. package/dist/types/6610c73e/87f29211/87f29211/05219fd0.d.ts +4 -0
  457. package/dist/types/6610c73e/87f29211/87f29211/453ab4b4.d.ts +15 -0
  458. package/dist/types/6610c73e/87f29211/87f29211/8e609bb7.d.ts +1 -0
  459. package/dist/types/6610c73e/87f29211/a9d0df18/16022771.d.ts +118 -0
  460. package/dist/types/6610c73e/87f29211/a9d0df18/326e8c85.d.ts +18 -0
  461. package/dist/types/6610c73e/87f29211/a9d0df18/4ca22be8.d.ts +17 -0
  462. package/dist/types/6610c73e/87f29211/a9d0df18/8e25f6cf.d.ts +3 -0
  463. package/dist/types/6610c73e/87f29211/a9d0df18/fcfbd6d1.d.ts +5 -0
  464. package/dist/types/6610c73e/87f29211/b10ca3c4/805c4d09.d.ts +27 -0
  465. package/dist/types/6610c73e/87f29211/b10ca3c4/f5def7dc.d.ts +25 -0
  466. package/dist/types/6610c73e/87f29211/b10ca3c4/f6334307.d.ts +27 -0
  467. package/dist/types/6610c73e/87f29211/fc973325/1abe9fb9.d.ts +26 -0
  468. package/dist/types/6610c73e/87f29211/fc973325/60e62909.d.ts +9 -0
  469. package/dist/types/6610c73e/87f29211/fc973325/8e609bb7.d.ts +1 -0
  470. package/dist/types/6610c73e/87f29211/fc973325/9c8f6046.d.ts +23 -0
  471. package/dist/types/6610c73e/8a6cead4/40c4faf7.d.ts +8 -0
  472. package/dist/types/6610c73e/b77349bf/2349cc94.d.ts +13 -0
  473. package/dist/types/6610c73e/b77349bf/6d87f127.d.ts +12 -0
  474. package/dist/types/6610c73e/b77349bf/af3f15da.d.ts +29 -0
  475. package/dist/types/6610c73e/b96961ed.d.ts +31 -0
  476. package/dist/types/6610c73e/bbc5e661/1f1e37e4.d.ts +12 -0
  477. package/dist/types/6610c73e/bbc5e661/803a3b35.d.ts +6 -0
  478. package/dist/types/6610c73e/bbc5e661/edfe1989.d.ts +14 -0
  479. package/dist/types/6610c73e/bd5c70f7/cf852c15.d.ts +20 -0
  480. package/dist/types/6610c73e/c374eea5/4f55037c.d.ts +36 -0
  481. package/dist/types/6610c73e/c374eea5/8a8646a7.d.ts +9 -0
  482. package/dist/types/6610c73e/c374eea5/d76ffdee.d.ts +38 -0
  483. package/dist/types/6610c73e/da7f739f/186461ad.d.ts +20 -0
  484. package/dist/types/6610c73e/da7f739f/e016487a.d.ts +45 -0
  485. package/dist/types/6610c73e/f38c764c/4d91b5ee.d.ts +79 -0
  486. package/dist/types/6610c73e/f38c764c/50b90d0c.d.ts +33 -0
  487. package/dist/types/6610c73e/f38c764c/e1fae94b.d.ts +14 -0
  488. package/dist/types/6610c73e/fdeb3389/16152e20.d.ts +103 -0
  489. package/dist/types/6610c73e/fdeb3389/1f95de59.d.ts +19 -0
  490. package/dist/types/6610c73e/fdeb3389/81528d33.d.ts +8 -0
  491. package/dist/types/871f3f39/0de2afa3.d.ts +22 -0
  492. package/dist/types/871f3f39/2bfe94e3.d.ts +13 -0
  493. package/dist/types/871f3f39/2cd973f1.d.ts +7 -0
  494. package/dist/types/871f3f39/4d0fa07f.d.ts +14 -0
  495. package/dist/types/871f3f39/4dbaf1b6.d.ts +19 -0
  496. package/dist/types/871f3f39/4ec64ebc.d.ts +9 -0
  497. package/dist/types/871f3f39/517ae8c6.d.ts +4 -0
  498. package/dist/types/871f3f39/5724033a.d.ts +6 -0
  499. package/dist/types/871f3f39/6a0d07bb.d.ts +7 -0
  500. package/dist/types/871f3f39/7029faf8.d.ts +11 -0
  501. package/dist/types/871f3f39/708e3b90.d.ts +24 -0
  502. package/dist/types/871f3f39/799e57cf.d.ts +6 -0
  503. package/dist/types/871f3f39/7bee220c.d.ts +24 -0
  504. package/dist/types/871f3f39/871a1ed2.d.ts +10 -0
  505. package/dist/types/871f3f39/9341b4c5.d.ts +8 -0
  506. package/dist/types/871f3f39/a05a44ce.d.ts +42 -0
  507. package/dist/types/871f3f39/a1a44bf4.d.ts +18 -0
  508. package/dist/types/871f3f39/a225cc21.d.ts +19 -0
  509. package/dist/types/871f3f39/aa0f851c.d.ts +5 -0
  510. package/dist/types/871f3f39/ab461a4e.d.ts +7 -0
  511. package/dist/types/871f3f39/bdf74ccb.d.ts +23 -0
  512. package/dist/types/871f3f39/c6cb560c.d.ts +20 -0
  513. package/dist/types/871f3f39/e4e56e24.d.ts +35 -0
  514. package/dist/types/871f3f39/f2188d12.d.ts +9 -0
  515. package/dist/types/871f3f39/fd939073.d.ts +17 -0
  516. package/dist/types/9477dda6/6e82db8c.d.ts +19 -0
  517. package/dist/types/9477dda6/99edb198.d.ts +3 -0
  518. package/dist/types/9477dda6/a16c3886.d.ts +27 -0
  519. package/dist/types/9477dda6/a68fa9aa.d.ts +61 -0
  520. package/dist/types/9f80922e/3e32acfa.d.ts +22 -0
  521. package/dist/types/abe2c417/2b7d3deb.d.ts +9 -0
  522. package/dist/types/abe2c417/3237d5fa.d.ts +25 -0
  523. package/dist/types/abe2c417/55c65af8.d.ts +2 -0
  524. package/dist/types/abe2c417/61b22a6d.d.ts +1 -0
  525. package/dist/types/abe2c417/6b4e0f9e.d.ts +10 -0
  526. package/dist/types/abe2c417/7a260fda.d.ts +1 -0
  527. package/dist/types/abe2c417/7e2c18ef.d.ts +12 -0
  528. package/dist/types/abe2c417/84d2a9ed.d.ts +2 -0
  529. package/dist/types/abe2c417/8daabb83.d.ts +8 -0
  530. package/dist/types/abe2c417/8f79089f.d.ts +26 -0
  531. package/dist/types/abe2c417/a39169c6.d.ts +308 -0
  532. package/dist/types/abe2c417/b2732e39.d.ts +1 -0
  533. package/dist/types/abe2c417/dc04a1bd.d.ts +10 -0
  534. package/dist/types/abe2c417/e2fcc201.d.ts +17 -0
  535. package/dist/types/abe2c417/e7055140.d.ts +1 -0
  536. package/dist/types/abe2c417/ee24e24a.d.ts +1 -0
  537. package/dist/types/abe2c417/ef5d95cf.d.ts +44 -0
  538. package/dist/types/abe2c417/f7f8ce4e.d.ts +9 -0
  539. package/dist/types/abe2c417/f9ceab53.d.ts +50 -0
  540. package/dist/types/b7ca7461.d.ts +18 -0
  541. package/dist/types/d58efc4e/0bb17e35.d.ts +2 -0
  542. package/dist/types/d58efc4e/9f2ae4fe.d.ts +11 -0
  543. package/dist/types/d58efc4e/b8cff974.d.ts +3 -0
  544. package/dist/types/fbc6c1d4/80614691.d.ts +23 -0
  545. package/dist/types/fd7f274b/0daaeab3.d.ts +5 -0
  546. package/dist/types/fd7f274b/116d81bf.d.ts +1 -0
  547. package/dist/types/fd7f274b/272670be.d.ts +1 -0
  548. package/dist/types/fd7f274b/396495ab.d.ts +1 -0
  549. package/dist/types/fd7f274b/3c41945d.d.ts +1 -0
  550. package/dist/types/fd7f274b/41af1e6f.d.ts +38 -0
  551. package/dist/types/fd7f274b/4f9e1401.d.ts +4 -0
  552. package/dist/types/fd7f274b/6a4e3ffe.d.ts +9 -0
  553. package/dist/types/fd7f274b/6d8bea2a.d.ts +10 -0
  554. package/dist/types/fd7f274b/83451de8.d.ts +12 -0
  555. package/dist/types/fd7f274b/c5ce5c8f.d.ts +11 -0
  556. package/dist/types/index.d.ts +21 -0
  557. package/external.json +33 -0
  558. package/package.json +110 -0
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Property decorator that injects the core `MigrationService` into the decorated property.
3
+ *
4
+ * This provides services or controllers with the ability to programmatically check,
5
+ * run, or rollback database migrations within the Quan ERP environment.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * @Service()
10
+ * class MyService {
11
+ * @InjectMigrationManager()
12
+ * private migrationManager: MigrationService;
13
+ *
14
+ * async upgrade() {
15
+ * await this.migrationManager.runMigrations('my-plugin', '1.0.0', [InitMigration]);
16
+ * }
17
+ * }
18
+ * ```
19
+ */
20
+ export declare function InjectMigrationManager(): (target: any, propertyKey: string | symbol) => void;
21
+ export declare function getMigrationConfig(target: any, propertyKey: string | symbol): any;
@@ -0,0 +1,26 @@
1
+ import { Manager, RegistryValue } from "./d453df06.js";
2
+ type ExposeOptions = {
3
+ serviceTagName: string;
4
+ version: string;
5
+ };
6
+ export declare function Expose(serviceTagName: string, version: string): (target: any) => void;
7
+ export declare function getExposeConfig(target: any): ExposeOptions | undefined;
8
+ type InjectOptions = {
9
+ class: any;
10
+ plugin: string;
11
+ name: string;
12
+ };
13
+ export declare function InjectExposeApi(cls: any, plugin?: string, name?: string): PropertyDecorator;
14
+ export declare function getInjectExpose(target: any, propertyKey: string | symbol): InjectOptions | undefined;
15
+ type ExposeAPIRegistryValue = {
16
+ serviceTagName: string;
17
+ version: string;
18
+ };
19
+ export declare class ExposeAPIManager extends Manager<any, ExposeAPIRegistryValue> {
20
+ static readonly DEFAULT_NAME: "default";
21
+ register(value: ExposeAPIRegistryValue, metadata?: (Partial<RegistryValue<ExposeAPIRegistryValue>> & Record<string, any>) | null, plugin?: string, name?: string): void;
22
+ registerFromClass(cls: any, instance: any, serviceTagName: string, version: string, plugin?: string, name?: string): void;
23
+ findByClass(cls: any, plugin: string): any;
24
+ protected getClassUniqueName(cls: any, length?: number): any;
25
+ }
26
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Manager responsible for tracking active background jobs and tasks.
3
+ *
4
+ * This manager provides a coordination point for the application to ensure that
5
+ * long-running operations (like plugin installations, database migrations, or
6
+ * heavy background tasks) are completed before the server process is shut down.
7
+ */
8
+ export declare class GracefulJobManager {
9
+ private counter;
10
+ count(): void;
11
+ unCount(): void;
12
+ isSafeShutdown(pad?: number): boolean;
13
+ getRemaining(): number;
14
+ }
@@ -0,0 +1,15 @@
1
+ export interface TokenUserInfo {
2
+ id: number;
3
+ name: string;
4
+ role: {
5
+ id: number;
6
+ name: string;
7
+ };
8
+ username: string;
9
+ roleId: number;
10
+ }
11
+ export interface RequestedUser {
12
+ valid: boolean;
13
+ payload: TokenUserInfo;
14
+ error?: any;
15
+ }
@@ -0,0 +1,28 @@
1
+ import { HttpMethod } from "./1c59aca9.js";
2
+ import { OpenAI as OpenAIClient } from 'openai';
3
+ export type AIToolOption = {
4
+ requiredApiPermission: {
5
+ method: HttpMethod;
6
+ url: string;
7
+ }[];
8
+ argParser?: (args: any) => any;
9
+ toolDetail: OpenAIClient.Chat.Completions.ChatCompletionFunctionTool;
10
+ };
11
+ export type AIToolMetadata = AIToolOption & {
12
+ methodName: string;
13
+ };
14
+ /**
15
+ * Decorator to register a method as an AI tool.
16
+ *
17
+ * @description
18
+ * This decorator internally uses `@OnInit()` to register the tool function.
19
+ * Consequently, all AI tools will be registered only after the containing `@Module()` or modules class specified in the `module: []` property have been fully initialized.
20
+ *
21
+ * @param option - Configuration options for the AI tool, including required API permissions and tool details.
22
+ * @returns A method decorator that stores AI tool metadata on the class constructor.
23
+ */
24
+ export declare function AITool(option: AIToolOption): MethodDecorator;
25
+ /**
26
+ * Retrieves AI tool configurations for a given target (instance or constructor).
27
+ */
28
+ export declare function getAIToolConfig(target: any): AIToolMetadata[];
@@ -0,0 +1,165 @@
1
+ import "reflect-metadata";
2
+ import express, { Express } from 'express';
3
+ import type { IAppInstance } from '@quan-erp/shared-types';
4
+ import { DataSourceManager } from "./78464d38.js";
5
+ import { CacheManager } from "./9a2c73cf.js";
6
+ import { RouteManager } from "./1c59aca9.js";
7
+ import { WebsocketManager } from "./a1a2ec11.js";
8
+ import { ContainerRegistryManager } from "./885b723d.js";
9
+ import { LoggerManager } from "./4dd6b41d.js";
10
+ import { LifeCycleManager } from "./8e161648.js";
11
+ import { PluginEnvConfigManager } from "./b528e7a2.js";
12
+ import { PluginConfigOption } from "./b5020a96.js";
13
+ import { ExposeAPIManager } from "./2881a088.js";
14
+ import { AppEventCallback, AppEvents, CoreApp } from "./d9b4a449.js";
15
+ import { GlobalMiddlewareManager, IMiddleware, MiddlewarePosition } from "./6559a8c1.js";
16
+ import { AnalyticsManager } from "./a45e63d6.js";
17
+ import { PluginManager } from "./ed08a5cd.js";
18
+ import { GracefulJobManager } from "./496c2854.js";
19
+ import { PluginServiceEventManager } from "./60dffdb5.js";
20
+ import { WorkflowNodeManager } from "./da7f739f/fb5fafa3.js";
21
+ export declare function GetAppInstance(): IAppInstance | null;
22
+ export declare class App implements CoreApp {
23
+ private readonly pluginManager;
24
+ private readonly registryManager;
25
+ private readonly pluginExposeAPIManager;
26
+ private readonly datasourceManager;
27
+ private readonly cacheManager;
28
+ private readonly queueManager;
29
+ private readonly websocketManager;
30
+ private readonly routeManager;
31
+ private readonly loggerManager;
32
+ private readonly configManager;
33
+ private readonly workflowManager;
34
+ private readonly pluginEnvConfigManager;
35
+ private readonly lifecycleManager;
36
+ private readonly globalMiddlewareManager;
37
+ private readonly appEventHandler;
38
+ private readonly analyticsManager;
39
+ private readonly gracefuljobManager;
40
+ private readonly pluginServiceEventManager;
41
+ private readonly appId;
42
+ private pluginConfig;
43
+ private expressApp?;
44
+ private readonly appRouter;
45
+ private readonly readiness;
46
+ private readonly appVersion;
47
+ private readonly availablePluginSecretKey;
48
+ set express(value: Express);
49
+ get express(): Express | undefined;
50
+ on(event: AppEvents, callback: AppEventCallback): void;
51
+ off(event: AppEvents): void;
52
+ /**
53
+ * Bootstraps and starts the Quan ERP application.
54
+ *
55
+ * This is the main entry point that orchestrates the entire application lifecycle.
56
+ * It performs the following orchestration in sequence:
57
+ * 1. **Kernel Initialization**: Sets up Express, the core Logger, and the global container.
58
+ * 2. **Security & Basics**: Applies CORS, body parsing, and session-level middlewares.
59
+ * 3. **Real-time Layer**: Configures the HTTP server to handle Websocket upgrades.
60
+ * 4. **Global Pipeline**: Sets up readiness gates and global request/exception middlewares.
61
+ * 5. **Infrastructure Bootstrap**: Initializes the built-in database (PostgreSQL) and loads Environment configs.
62
+ * 6. **Module Loading**: Processes `builtinModules`, the `rootServerClass`, and custom `modules`.
63
+ * 7. **Plugin Engine**: Configures local plugin storage and provides endpoints for plugin asset serving.
64
+ * 8. **Workflow Engine**: Initializes the workflow runner and loads flows from the filesystem.
65
+ * 9. **Migrations**: Executes system-level migrations for built-in services.
66
+ * 10. **Lifecycle Phase I**: Executes all `OnInit` hooks across all loaded modules.
67
+ * 11. **Plugin Restoration**: Dynamically re-installs all plugins previously marked as installed in the DB.
68
+ * 12. **Lifecycle Phase II**: Executes `OnAllModuleLoaded` hooks.
69
+ * 13. **Networking**: Starts the HTTP listener and triggers `OnHttpServerStartListening`.
70
+ *
71
+ * @param rootServerClass - The main class decorated with `@Server` defining the app configuration.
72
+ * @returns A promise resolving to the fully initialized `App` instance.
73
+ * @throws Error if the server is already running or if critical configuration is missing.
74
+ */
75
+ static run(rootServerClass: any): Promise<App>;
76
+ /**
77
+ * Dynamically installs and initializes a plugin into the running application.
78
+ *
79
+ * This complex orchestration includes:
80
+ * 1. **Network Resolution**: Optionally downloads and unzips plugin packages.
81
+ * 2. **Dependency Validation**: Verifies base kernel version and required plugin dependencies.
82
+ * 3. **Import Rewriting**: Dynamically patches JS `import` statements to resolve `@quan-erp-plugins/` aliases.
83
+ * 4. **Database Integration**: Executes plugin migrations and reloads all data sources.
84
+ * 5. **Module Resolution**: Processes the plugin's root module via the dependency injector.
85
+ * 6. **Lifecycle Management**: Triggers `onInstall`, `onReady`, and scoped `OnInit` hooks.
86
+ * 7. **Atomic Rollback**: Automatically cleans up files and rolls back DB migrations on failure.
87
+ *
88
+ * @param pluginName - Unique identifier for the plugin.
89
+ * @param version - Version string (e.g., '1.0.0').
90
+ * @param options - Configuration for network downloads, lifecycle triggers, and migration behavior.
91
+ * @throws Error if dependencies are missing, versions are incompatible, or instantiation fails.
92
+ */
93
+ installPlugin(pluginName: string, version: string, options?: {
94
+ network?: boolean;
95
+ callReadyLifeCycle?: boolean;
96
+ ignoreAppReadiness?: boolean;
97
+ ignoreMigrations?: boolean;
98
+ }): Promise<void>;
99
+ /**
100
+ * Uninstalls a plugin and systematically cleans up all associated resources.
101
+ *
102
+ * The uninstallation process ensures system integrity by:
103
+ * 1. **Dependency Guard**: Preventing the removal of plugins that others depend on.
104
+ * 2. **Lifecycle Termination**: Executing `OnUninstall` and `OnShutdown` hooks.
105
+ * 3. **Registry Cleanup**: Removing all instances and definitions from the DI container.
106
+ * 4. **Networking & API**: Deregistering Express routes and Websocket servers.
107
+ * 5. **Database Decoupling**: Removing entities, closing data sources, and reloading the ORM state.
108
+ * 6. **Subsystem Purge**: Clearing associated caches, queues, workflows, and middlewares.
109
+ * 7. **Storage Cleanup**: Physically deleting the plugin's code and assets from disk.
110
+ *
111
+ * @param pluginName - Unique identifier for the plugin to uninstall.
112
+ * @throws Error if the plugin is a system plugin or if other plugins rely on it.
113
+ */
114
+ uninstallPlugin(pluginName: string): Promise<void>;
115
+ private startHealthCheckConfig;
116
+ private isAllReady;
117
+ private isAllHealthy;
118
+ private isAllWorkingProperly;
119
+ getRegistryManager(): ContainerRegistryManager;
120
+ getExportRegistryManager(): ExposeAPIManager;
121
+ getRouteManager(): RouteManager;
122
+ getDataSourceManager(): DataSourceManager;
123
+ getCacheManager(): CacheManager;
124
+ getExpressApp(): Express;
125
+ getLifecycleManager(): LifeCycleManager;
126
+ getPluginEnvConfigManager(): PluginEnvConfigManager;
127
+ getLoggerManager(): LoggerManager;
128
+ getGlobalMiddlewareManager(): GlobalMiddlewareManager;
129
+ getWebsocketManager(): WebsocketManager;
130
+ getAppInstance(): IAppInstance;
131
+ getAnalyticsManager(): AnalyticsManager;
132
+ getPluginServiceEventManager(): PluginServiceEventManager;
133
+ getWorkflowManager(): WorkflowNodeManager;
134
+ getAppRouter(): express.Router;
135
+ getVersion(): string;
136
+ getAppId(): string;
137
+ getPluginManager(): PluginManager;
138
+ get<T>(cls: new (...args: any[]) => T, plugin?: string, name?: string): T | undefined;
139
+ /**
140
+ * Registers a global middleware filter into the application's processing pipeline.
141
+ *
142
+ * @param middleware - The middleware class (implementing `IMiddleware`) to instantiate.
143
+ * @param pluginName - The name of the plugin registering this filter.
144
+ * @param position - The relative position in the middleware stack (default: AFTER_ROOT_ROUTE).
145
+ */
146
+ addGlobalFilter(middleware: new () => IMiddleware, pluginName: string, position?: MiddlewarePosition): void;
147
+ /**
148
+ * Registers a global exception filter to handle errors during the request lifecycle.
149
+ *
150
+ * @param middleware - The exception filter class (implementing `IMiddleware`) to instantiate.
151
+ * @param pluginName - The name of the plugin registering this filter.
152
+ */
153
+ addGlobalExceptionFilter(middleware: new () => IMiddleware, pluginName: string): void;
154
+ /**
155
+ * @returns The manager responsible for tracking long-running background jobs
156
+ * to ensure graceful server shutdown.
157
+ */
158
+ getGracefulJobManager(): GracefulJobManager;
159
+ getPluginConfig(): PluginConfigOption | undefined;
160
+ /**
161
+ * Logs comprehensive debug information for all kernel subsystems.
162
+ * The output is controlled by the `DEBUG_LOG` environment variable (comma-separated).
163
+ */
164
+ logDebugInfo(): void;
165
+ }
@@ -0,0 +1,80 @@
1
+ import 'reflect-metadata';
2
+ import { BuiltinLogger } from "../abe2c417/7e2c18ef.js";
3
+ import { Manager, RegistryValue } from "./d453df06.js";
4
+ /**
5
+ * Standard interface for all logging implementations in the Quan ERP kernel.
6
+ *
7
+ * Each method accepts a `message` (data to log) and an optional `instance`
8
+ * to provide context (e.g., the class or object where the log was triggered).
9
+ */
10
+ export interface Loggable {
11
+ /** Logs general operational information. */
12
+ log(message: any, instance?: any): void;
13
+ /** Logs technical errors, typically followed by stack traces. */
14
+ error(message: any, instance?: any): void;
15
+ /** Logs potentially harmful situations or deprecation warnings. */
16
+ warn(message: any, instance?: any): void;
17
+ /** Logs verbose information useful for debugging. */
18
+ debug(message: any, instance?: any): void;
19
+ /** Logs high-level informational messages. */
20
+ info(message: any, instance?: any): void;
21
+ /** Logs highly detailed flow information (e.g., DB queries). */
22
+ trace(message: any, instance?: any): void;
23
+ /** Logs critical errors that may cause application failure. */
24
+ fatal(message: any, instance?: any): void;
25
+ }
26
+ /**
27
+ * @function Logger
28
+ *
29
+ * Class decorator to attach logging capabilities to a class.
30
+ * Allows specifying one or more logger implementations that
31
+ * will be associated with the class via metadata.
32
+ *
33
+ * Metadata is stored under the `LOGGER_CLASS_KEY` symbol.
34
+ *
35
+ * @param LoggerClass - Constructor of a class implementing `Loggable`.
36
+ * Defaults to `DefaultLogger`.
37
+ * @param name - Optional name to identify the logger instance.
38
+ *
39
+ * Usage Example:
40
+ * ```ts
41
+ * @Logger(MyCustomLogger, "custom")
42
+ * class MyService {
43
+ * doSomething() {
44
+ * // MyCustomLogger will be available for logging this class
45
+ * }
46
+ * }
47
+ * ```
48
+ *
49
+ * Multiple loggers can be added by calling the decorator multiple times
50
+ * or by attaching multiple logger classes with different names.
51
+ */
52
+ export declare function Logger(LoggerClass?: new () => Loggable, name?: string): ClassDecorator;
53
+ export declare function getLoggerConfig(target: any): {
54
+ name?: string;
55
+ cls: (new () => Loggable);
56
+ }[];
57
+ type InjectLoggerOptions = {
58
+ cls: string;
59
+ };
60
+ /**
61
+ * Property decorator to inject a logger instance into a class property.
62
+ *
63
+ * @param cls - The logger class constructor to inject. Usually a class that implements the `Loggable` interface.
64
+ *
65
+ * @returns PropertyDecorator - Applies metadata to the property for dependency injection.
66
+ */
67
+ export declare function InjectLogger(cls: new () => any): PropertyDecorator;
68
+ export declare function getInjectLogger(target: any, propertyKey: string | symbol): InjectLoggerOptions | undefined;
69
+ export declare function getDefaultLogger(): BuiltinLogger;
70
+ export declare class LoggerManager extends Manager<Loggable> {
71
+ constructor();
72
+ static get default(): BuiltinLogger;
73
+ getDefaultLogger(): Loggable | undefined;
74
+ register(instance: Loggable, metadata?: (Partial<{}> & Record<string, any>) | null, plugin?: string, name?: string): void;
75
+ registerFromClass(cls: any, instance: any, plugin?: string, name?: string): void;
76
+ findByClass(cls: any, plugin?: string): RegistryValue<Loggable> | undefined;
77
+ protected getClassUniqueName(cls: any, length?: number): any;
78
+ logDebugInfo(): void;
79
+ }
80
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Constant used to identify metadata properties set by Quan ERP decorators.
3
+ *
4
+ * This string serves as a unique key for storing and retrieving metadata
5
+ * (such as controller routes, service names, or plugin configurations)
6
+ * on class prototypes and properties via the Reflect API.
7
+ */
8
+ export declare const ANNOTATION_NAME: string;
9
+ /**
10
+ * Default URL route prefix for accessing installed plugins.
11
+ *
12
+ * When a plugin is loaded, its public assets (like frontend code) are typically
13
+ * served under this path, allowing the main application to route requests
14
+ * to the correct plugin module.
15
+ */
16
+ export declare const INSTALLED_PLUGIN_ROUTE: string;
17
+ /**
18
+ * Default URL route prefix for accessing available (but not yet installed) plugins.
19
+ *
20
+ * This route is used to expose a list of plugins that can be installed by the user.
21
+ * It allows the frontend to discover and fetch plugin metadata or assets from the
22
+ * local plugin repository.
23
+ */
24
+ export declare const AVAILABLE_PLUGIN_ROUTE: string;
@@ -0,0 +1,57 @@
1
+ import { EntityManager } from "typeorm";
2
+ import { Manager } from "./d453df06.js";
3
+ export type Callback = (option: {
4
+ fromPluginName: string;
5
+ dataSourceManager: DatasourceInfo[];
6
+ data: any;
7
+ }) => Promise<void> | PromiseLike<void> | void;
8
+ export type DatasourceInfo = {
9
+ name: string;
10
+ pluginName: string;
11
+ sourceManager: EntityManager;
12
+ };
13
+ export type PluginServiceEmitOption = {
14
+ fromPluginName: string;
15
+ eventName: string;
16
+ dataSourceManager?: DatasourceInfo[];
17
+ data: any;
18
+ };
19
+ export type PluginServiceEventRegisterOption = {
20
+ pluginName: string;
21
+ eventName: string;
22
+ callback: Callback;
23
+ };
24
+ export type IPluginServiceEventManager = {
25
+ emit: (option: Omit<PluginServiceEmitOption, 'fromPluginName'>) => Promise<void>;
26
+ register: (option: Omit<PluginServiceEventRegisterOption, 'pluginName'>) => void;
27
+ };
28
+ /**
29
+ * Property decorator that injects the `PluginServiceEventManager` for cross-plugin communication.
30
+ *
31
+ * This provides services or controllers with an interface to:
32
+ * 1. **Emit Global Events**: Notify other plugins about specific state changes or actions.
33
+ * 2. **Register Listeners**: Subscribe to events emitted by other plugins.
34
+ *
35
+ * The injected manager is scoped, typically mapping to the `IPluginServiceEventManager` interface.
36
+ */
37
+ export declare function InjectPluginServiceEventManager(): (target: any, propertyKey: string | symbol) => void;
38
+ export declare function getInjectPluginServiceEventManager(target: any, propertyKey: string | symbol): boolean;
39
+ /**
40
+ * Orchestrator for cross-plugin synchronous and asynchronous events.
41
+ *
42
+ * Unlike standard event emitters, the `PluginServiceEventManager` is designed
43
+ * for the Quan ERP modular architecture. It allows plugins to communicate without
44
+ * direct hard dependencies, passing along rich context like the source plugin's
45
+ * database entity managers via `DatasourceInfo`.
46
+ *
47
+ * Features:
48
+ * 1. **Event Caching**: Optimizes dispatch performance by maintaining a map of listeners per event name.
49
+ * 2. **Transactional Context**: Supports passing `EntityManager` references across plugin boundaries.
50
+ * 3. **Plugin Scoping**: Automatically tracks which plugin registered which handler.
51
+ */
52
+ export declare class PluginServiceEventManager extends Manager<Callback> {
53
+ private cachedCallback;
54
+ register(instance: Callback, metadata?: (Partial<any> & Record<string, any>) | null, plugin?: string, evtName?: string): void;
55
+ emit(option: PluginServiceEmitOption): Promise<void>;
56
+ clearCache(): void;
57
+ }
@@ -0,0 +1,104 @@
1
+ import 'reflect-metadata';
2
+ import express, { NextFunction, Request, Response } from 'express';
3
+ import { Manager } from "./d453df06.js";
4
+ export declare const MIDDLEWARE_KEY = "middleware";
5
+ export declare enum MiddlewareType {
6
+ CLASS_HANDLER = 0,
7
+ HANDLER = 1
8
+ }
9
+ export declare enum MiddlewarePosition {
10
+ BEFORE_ROUTE = "BEFORE_ROUTE",
11
+ BEFORE_ROOT_ROUTE = "BEFORE_ROOT",
12
+ AFTER_ROOT_ROUTE = "AFTER_ROOT"
13
+ }
14
+ export type GlobalMiddleWarePosition = Exclude<MiddlewarePosition, MiddlewarePosition.BEFORE_ROUTE>;
15
+ export type MiddlewareHandler = (express.RequestHandler | (new () => IMiddleware));
16
+ export type MiddlewareHandlerInstanceType = (express.RequestHandler | IMiddleware);
17
+ export type MiddlewareExceptionHandler = (express.RequestHandler | (new () => IExceptionMiddleware));
18
+ export type MiddlewareExceptionHandlerInstanceType = (express.ErrorRequestHandler | IExceptionMiddleware);
19
+ export type Middlewares = {
20
+ type: MiddlewareType;
21
+ handler: MiddlewareHandler;
22
+ position: MiddlewarePosition;
23
+ };
24
+ type MiddlewareMetadata = {
25
+ /** The plugin this middleware belongs to. */
26
+ plugin: string;
27
+ /** Optional name for the middleware. */
28
+ name?: string;
29
+ };
30
+ /**
31
+ * Class decorator to define metadata for a middleware class.
32
+ *
33
+ * @param props - Metadata properties:
34
+ * - `plugin` (string): The plugin this middleware belongs to.
35
+ * - `name` (string): Optional name for the middleware.
36
+ *
37
+ * @returns ClassDecorator - Applies the metadata to the target middleware class.
38
+ */
39
+ export declare function MiddlewareMetadata(props: MiddlewareMetadata): (target: any) => void;
40
+ export declare function getMiddlewareMetadata(target: any): MiddlewareMetadata | null;
41
+ /**
42
+ * @function Middleware
43
+ *
44
+ * Class and method decorator to attach middleware to Express routes.
45
+ * Supports both function-based request handlers and class-based middleware
46
+ * implementing the `IMiddleware` interface.
47
+ *
48
+ * Middleware can be applied:
49
+ * - At the class level (applies to all routes in the class)
50
+ * - At the method level (applies to a specific route)
51
+ *
52
+ * @param position - Position where the middleware should execute:
53
+ * `BEFORE_ROUTE` or `AFTER_ROUTE`.
54
+ * @param middleware - One or more middleware handlers:
55
+ * - Function: `(req, res, next) => void` (Express RequestHandler)
56
+ * - Class: A class implementing `IMiddleware` with a `.handler` method
57
+ *
58
+ * Middleware are stored in metadata under the `MIDDLEWARE_KEY` symbol.
59
+ *
60
+ * Usage Example:
61
+ * ```ts
62
+ * @Middleware(authMiddleware)
63
+ * class UserController {
64
+ *
65
+ * @Middleware(logMiddleware)
66
+ * getUser(req: Request, res: Response) {
67
+ * res.send("Hello");
68
+ * }
69
+ * }
70
+ * ```
71
+ *
72
+ * Notes:
73
+ * - Throws an error if a middleware is neither a valid function nor a class implementing `IMiddleware`.
74
+ * - Method-level middleware is merged with any existing metadata for the same method.
75
+ * - Class-level middleware is merged with any existing metadata for the class prototype.
76
+ */
77
+ export declare function Middleware(...middleware: MiddlewareHandler[]): ClassDecorator & MethodDecorator;
78
+ export declare function getMiddleware(controller: any, handler?: any): Middlewares[];
79
+ export declare const DEFAULT_MIDDLEWARE_HANDLER_NAME: string;
80
+ export interface IMiddleware {
81
+ handler(...args: any[]): any;
82
+ }
83
+ export interface IExceptionMiddleware extends IMiddleware {
84
+ handler(error: Error, req: Request, res: Response, next: NextFunction): any;
85
+ }
86
+ export interface IExpressMiddleware extends IMiddleware {
87
+ handler(req: Request, res: Response, next: NextFunction): any;
88
+ }
89
+ type GlobalMiddlewareMetadata = {
90
+ position: MiddlewarePosition;
91
+ };
92
+ export declare class GlobalMiddlewareManager extends Manager<MiddlewareHandlerInstanceType, GlobalMiddlewareMetadata> {
93
+ private exceptionHandlerMiddleware;
94
+ private cachedExceptionHandlerMiddlewares;
95
+ private cachedMiddleware;
96
+ register(instance: MiddlewareHandlerInstanceType, metadata?: (Partial<GlobalMiddlewareMetadata> & Record<string, any>) | null, plugin?: string, name?: string): void;
97
+ registerGlobalExceptionHandler(middleware: MiddlewareExceptionHandlerInstanceType, pluginName: string): void;
98
+ getAllHandler(): MiddlewareHandlerInstanceType[];
99
+ getAllExceptionHandlers(): MiddlewareExceptionHandlerInstanceType[];
100
+ deRegisterByScope(plugin: string, name?: string): void | Promise<void> | PromiseLike<void>;
101
+ invalidateCache(): void;
102
+ logDebugInfo(): void;
103
+ }
104
+ export {};
@@ -0,0 +1,66 @@
1
+ type AIEntityMetadataOption = {
2
+ description: string;
3
+ };
4
+ /**
5
+ * Class decorator that provides metadata about a database entity to the AI assistant.
6
+ *
7
+ * This decorator allows developers to describe the purpose of an entity (table)
8
+ * and its relationships in a way that the AI assistant can understand, enabling
9
+ * more accurate data querying and reasoning.
10
+ *
11
+ * @param options - Configuration including descriptions and field-level metadata for the AI.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * @AIEntityInfo({
16
+ * description: 'Stores user profile information and authentication settings.'
17
+ * })
18
+ * @Entity()
19
+ * class UserEntity { ... }
20
+ * ```
21
+ */
22
+ export declare function AIEntityInfo(options: AIEntityMetadataOption): ClassDecorator;
23
+ export declare function getAIEntityInfo(target: Function): AIEntityMetadataOption | undefined;
24
+ type AIColumnMetadataOption = {
25
+ description: string;
26
+ };
27
+ /**
28
+ * Property decorator that provides metadata about a specific entity column to the AI assistant.
29
+ *
30
+ * This decorator allows developers to define field-level semantics, such as:
31
+ * 1. **Description**: Explaining what the field stores (e.g., 'The unique email address of the user').
32
+ * 2. **Context**: Providing hints for the AI on how to interpret the data.
33
+ *
34
+ * @param options - Configuration including the field description for the AI.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * @Entity()
39
+ * class UserEntity {
40
+ * @AIColumnInfo({
41
+ * description: 'The preferred language/locale of the user.'
42
+ * })
43
+ * @Column()
44
+ * locale: string;
45
+ * }
46
+ * ```
47
+ */
48
+ export declare function AIColumnInfo(options: AIColumnMetadataOption): PropertyDecorator;
49
+ export declare function getAIColumnInfo(target: Function, propertyKey: string): AIColumnMetadataOption | undefined;
50
+ /**
51
+ * Class decorator that explicitly excludes a database entity from the AI assistant's visibility.
52
+ *
53
+ * Use this for tables containing sensitive information, internal system state,
54
+ * or data that is not relevant for AI-powered querying and reporting.
55
+ */
56
+ export declare function AIExcludeEntity(): ClassDecorator;
57
+ export declare function getAIExcludeEntity(target: Function): boolean | undefined;
58
+ /**
59
+ * Property decorator that explicitly excludes a specific column from the AI assistant's visibility.
60
+ *
61
+ * Use this for fields containing sensitive data (e.g., passwords, internal keys)
62
+ * or internal metadata that should not be exposed through the AI assistant interface.
63
+ */
64
+ export declare function AIExcludeColumn(): (target: Object, propertyKey: string) => void;
65
+ export declare function getAIExcludeColumn(target: any, propertyKey: string): boolean;
66
+ export {};