@ozdao/prometheus-framework 0.2.252 → 0.2.254

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. package/dist/auth.server.js +298 -14
  2. package/dist/auth.server.mjs +298 -14
  3. package/dist/builder.js +4 -4
  4. package/dist/builder.mjs +4 -4
  5. package/dist/chats.server.js +110 -0
  6. package/dist/chats.server.mjs +111 -0
  7. package/dist/community.server.js +38 -21
  8. package/dist/community.server.mjs +38 -21
  9. package/dist/events.server.js +38 -18
  10. package/dist/events.server.mjs +38 -17
  11. package/dist/files.server.js +12 -3
  12. package/dist/files.server.mjs +12 -3
  13. package/dist/gallery.server.js +17 -4
  14. package/dist/gallery.server.mjs +17 -4
  15. package/dist/organizations.server.js +43 -26
  16. package/dist/organizations.server.mjs +43 -26
  17. package/dist/products.server.js +49 -23
  18. package/dist/products.server.mjs +49 -22
  19. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
  20. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
  22. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
  24. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
  25. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
  26. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
  58. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
  59. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
  60. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
  61. package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
  62. package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
  63. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
  64. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
  65. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
  66. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
  67. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
  68. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
  69. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
  70. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
  71. package/dist/prometheus-framework/src/modules/chats/chats.client.cjs +31 -0
  72. package/dist/prometheus-framework/src/modules/chats/chats.client.cjs.map +1 -0
  73. package/dist/prometheus-framework/src/modules/chats/chats.client.js +31 -0
  74. package/dist/prometheus-framework/src/modules/chats/chats.client.js.map +1 -0
  75. package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
  76. package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
  77. package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
  78. package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
  79. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
  80. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
  82. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
  84. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
  86. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
  88. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
  90. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
  104. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
  105. package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
  106. package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
  107. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
  108. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
  109. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
  110. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
  111. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
  138. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
  140. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
  142. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
  144. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +500 -500
  146. package/dist/prometheus-framework/src/modules/pages/pages.client.js +500 -500
  147. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +179 -0
  148. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
  149. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +179 -0
  150. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
  151. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +64 -0
  152. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
  153. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +64 -0
  154. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +2 -2
  156. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -2
  157. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  158. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
  166. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
  167. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
  168. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
  169. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/products/products.client.cjs +72 -7
  178. package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
  179. package/dist/prometheus-framework/src/modules/products/products.client.js +114 -49
  180. package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
  181. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
  182. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
  183. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
  184. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
  185. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
  186. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  187. package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
  188. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  189. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
  190. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
  191. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
  192. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
  193. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +21 -2
  194. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs.map +1 -1
  195. package/dist/prometheus-framework/src/modules/reports/reports.client.js +20 -1
  196. package/dist/prometheus-framework/src/modules/reports/reports.client.js.map +1 -1
  197. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
  199. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
  201. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +2 -2
  202. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
  203. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +2 -2
  204. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
  205. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
  206. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
  208. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  209. package/dist/reports.server.js +21 -8
  210. package/dist/reports.server.mjs +21 -8
  211. package/package.json +9 -1
  212. package/src/builder/webpack/webpack.config.client.js +2 -2
  213. package/src/builder/webpack/webpack.config.server.js +1 -1
  214. package/src/builder/webpack/webpack.config.spa.js +1 -1
  215. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  216. package/src/modules/auth/auth.client.js +16 -3
  217. package/src/modules/auth/auth.server.js +22 -1
  218. package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
  219. package/src/modules/auth/controllers/services/auth.service.js +0 -1
  220. package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
  221. package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
  222. package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
  223. package/src/modules/auth/views/router/users.js +79 -0
  224. package/src/modules/backoffice/backoffice.client.js +53 -11
  225. package/src/modules/backoffice/router/backoffice.js +29 -2
  226. package/src/modules/chats/chats.client.js +48 -0
  227. package/src/modules/chats/chats.server.js +32 -0
  228. package/src/modules/community/community.client.js +56 -10
  229. package/src/modules/community/community.server.js +35 -14
  230. package/src/modules/community/models/comment.model.js +7 -7
  231. package/src/modules/community/models/reaction.model.js +5 -5
  232. package/src/modules/community/router/blogposts.js +55 -57
  233. package/src/modules/events/events.server.js +37 -16
  234. package/src/modules/events/models/ticket.model.js +6 -6
  235. package/src/modules/files/files.server.js +17 -7
  236. package/src/modules/gallery/gallery.client.js +44 -8
  237. package/src/modules/gallery/gallery.server.js +28 -9
  238. package/src/modules/gallery/router/gallery.router.js +2 -2
  239. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  240. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  241. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  242. package/src/modules/orders/orders.client.js +4 -1
  243. package/src/modules/orders/orders.server.js +1 -0
  244. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  245. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  246. package/src/modules/organizations/components/pages/Department.vue +1 -1
  247. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  248. package/src/modules/organizations/components/pages/Members.vue +1 -1
  249. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  250. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  251. package/src/modules/organizations/controllers/organizations.controller.js +0 -2
  252. package/src/modules/organizations/models/department.model.js +7 -7
  253. package/src/modules/organizations/models/membership.model.js +5 -5
  254. package/src/modules/organizations/organizations.client.js +71 -16
  255. package/src/modules/organizations/organizations.server.js +43 -18
  256. package/src/modules/organizations/router/organizations.js +6 -13
  257. package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +20 -19
  258. package/src/modules/{marketplace → products}/components/pages/Catalog.vue +5 -5
  259. package/src/modules/products/components/pages/Products.vue +2 -2
  260. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  261. package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
  262. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  263. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  264. package/src/modules/products/models/category.model.js +3 -3
  265. package/src/modules/products/models/product.model.js +7 -7
  266. package/src/modules/products/products.client.js +93 -25
  267. package/src/modules/products/products.server.js +47 -16
  268. package/src/modules/products/router/marketplace.router.js +38 -0
  269. package/src/modules/products/router/products.router.js +72 -32
  270. package/src/modules/reports/models/report.model.js +4 -4
  271. package/src/modules/reports/reports.client.js +35 -14
  272. package/src/modules/reports/reports.server.js +27 -8
  273. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  274. package/src/modules/spots/components/pages/Map.vue +1 -1
  275. package/src/modules/spots/components/pages/Spot.vue +1 -1
  276. package/src/modules/backoffice/router/admin.js +0 -51
  277. package/src/modules/landing/components/pages/404.vue +0 -3
  278. package/src/modules/landing/components/pages/Farming.vue +0 -226
  279. package/src/modules/landing/components/pages/Governance.vue +0 -144
  280. package/src/modules/landing/components/pages/Home.vue +0 -51
  281. package/src/modules/landing/components/pages/Hotel.vue +0 -43
  282. package/src/modules/landing/router/landing.js +0 -39
  283. package/src/modules/legal/components/pages/Legal.vue +0 -62
  284. package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
  285. package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
  286. package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
  287. package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
  288. package/src/modules/legal/legal.client.js +0 -18
  289. package/src/modules/legal/router/legal.js +0 -59
  290. package/src/modules/marketplace/router/marketplace.js +0 -54
  291. package/src/modules/users/router/users.js +0 -90
  292. package/src/modules/users/users.client.js +0 -22
  293. package/src/modules/users/users.server.js +0 -13
  294. /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
  295. /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
  296. /package/src/modules/{users → auth}/models/request.model.js +0 -0
  297. /package/src/modules/{users → auth}/models/user.model.js +0 -0
  298. /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
  299. /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
  300. /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
  301. /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
  302. /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
  303. /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
  304. /package/src/modules/{users → auth/views}/router/account.js +0 -0
  305. /package/src/modules/{users → auth/views}/store/users.js +0 -0
  306. /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
  307. /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
  308. /package/src/modules/{projects → governance}/models/project.model.js +0 -0
  309. /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
  310. /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -93,8 +93,6 @@ const addMembersQuantity = addMembersQuantity$1.addMembersQuantity_1;
93
93
  const controllerFactory$5 = (db) => {
94
94
  const Organization = db.organization;
95
95
  const Membership = db.membership;
96
- db.user;
97
- db.role;
98
96
  const read = async (req, res) => {
99
97
  const sortParam = req.query.sortParam || "numberOfProducts";
100
98
  const sortOrder = req.query.sortOrder || "desc";
@@ -914,14 +912,14 @@ const accessesSchema$2 = {
914
912
  };
915
913
  var accesses_schema = accessesSchema$2;
916
914
  const accessesSchema$1 = accesses_schema;
917
- var department_model = (mongoose) => {
918
- const departmentSchema = new mongoose.Schema({
915
+ var department_model = (db) => {
916
+ const departmentSchema = new db.mongoose.Schema({
919
917
  owner: {
920
- type: mongoose.Schema.Types.ObjectId,
918
+ type: db.mongoose.Schema.Types.ObjectId,
921
919
  ref: "User"
922
920
  },
923
921
  organization: {
924
- type: mongoose.Schema.Types.ObjectId,
922
+ type: db.mongoose.Schema.Types.ObjectId,
925
923
  ref: "Organization"
926
924
  },
927
925
  profile: {
@@ -948,7 +946,7 @@ var department_model = (mongoose) => {
948
946
  members: [
949
947
  {
950
948
  user: {
951
- type: mongoose.Schema.Types.ObjectId,
949
+ type: db.mongoose.Schema.Types.ObjectId,
952
950
  ref: "User"
953
951
  },
954
952
  position: {
@@ -959,7 +957,7 @@ var department_model = (mongoose) => {
959
957
  ],
960
958
  subdepartments: [
961
959
  {
962
- type: mongoose.Schema.Types.ObjectId,
960
+ type: db.mongoose.Schema.Types.ObjectId,
963
961
  ref: "Department"
964
962
  }
965
963
  ]
@@ -967,7 +965,7 @@ var department_model = (mongoose) => {
967
965
  timestamps: true
968
966
  });
969
967
  departmentSchema.index({ organization: 1 });
970
- const Department = mongoose.model("Department", departmentSchema);
968
+ const Department = db.mongoose.model("Department", departmentSchema);
971
969
  return Department;
972
970
  };
973
971
  const applyEngagementSchema = engagement_schema.engagement_schema;
@@ -1039,10 +1037,10 @@ var organization_model = (db) => {
1039
1037
  const Organization = db.mongoose.model("Organization", OrganizationSchema);
1040
1038
  return Organization;
1041
1039
  };
1042
- var membership_model = (mongoose) => {
1043
- const MembershipSchema = new mongoose.Schema({
1040
+ var membership_model = (db) => {
1041
+ const MembershipSchema = new db.mongoose.Schema({
1044
1042
  user: {
1045
- type: mongoose.Schema.Types.ObjectId,
1043
+ type: db.mongoose.Schema.Types.ObjectId,
1046
1044
  ref: "User",
1047
1045
  required: true
1048
1046
  },
@@ -1062,7 +1060,7 @@ var membership_model = (mongoose) => {
1062
1060
  },
1063
1061
  target: {
1064
1062
  // заменяем 'organization' на 'target', так как это может быть или User, или Organization
1065
- type: mongoose.Schema.Types.ObjectId,
1063
+ type: db.mongoose.Schema.Types.ObjectId,
1066
1064
  ref: function(value) {
1067
1065
  if (this.type === "user") return "User";
1068
1066
  if (this.type === "organization") return "Organization";
@@ -1073,7 +1071,7 @@ var membership_model = (mongoose) => {
1073
1071
  timestamps: true
1074
1072
  });
1075
1073
  MembershipSchema.index({ user: 1, target: 1 });
1076
- const Membership = mongoose.model("Membership", MembershipSchema);
1074
+ const Membership = db.mongoose.model("Membership", MembershipSchema);
1077
1075
  return Membership;
1078
1076
  };
1079
1077
  const applyOwnershipSchema = ownership_schema.ownership_schema;
@@ -1132,19 +1130,38 @@ const DepartmentModel = department_model;
1132
1130
  const OrganizationModel = organization_model;
1133
1131
  const MembershipModel = membership_model;
1134
1132
  const InviteModel = invite_model;
1133
+ function initializeOrganization(app, db, origins, publicPath) {
1134
+ db.department = DepartmentModel(db);
1135
+ db.organization = OrganizationModel(db);
1136
+ db.membership = MembershipModel(db);
1137
+ db.invite = InviteModel(db);
1138
+ if (app) {
1139
+ departmentsRoutes(app, db);
1140
+ organizationsRoutes(app, db);
1141
+ membershipsRoutes(app, db);
1142
+ invitesRoutes(app, db);
1143
+ }
1144
+ }
1135
1145
  var organizations_server = {
1136
- DepartmentsController,
1137
- OrganizationsController,
1138
- MembershipsController,
1139
- InvitesController,
1140
- departmentsRoutes,
1141
- organizationsRoutes,
1142
- membershipsRoutes,
1143
- invitesRoutes,
1144
- DepartmentModel,
1145
- OrganizationModel,
1146
- MembershipModel,
1147
- InviteModel
1146
+ initialize: initializeOrganization,
1147
+ models: {
1148
+ DepartmentModel,
1149
+ OrganizationModel,
1150
+ MembershipModel,
1151
+ InviteModel
1152
+ },
1153
+ routes: {
1154
+ departmentsRoutes,
1155
+ organizationsRoutes,
1156
+ membershipsRoutes,
1157
+ invitesRoutes
1158
+ },
1159
+ controllers: {
1160
+ DepartmentsController,
1161
+ OrganizationsController,
1162
+ MembershipsController,
1163
+ InvitesController
1164
+ }
1148
1165
  };
1149
1166
  const organizations_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(organizations_server);
1150
1167
  module.exports = organizations_server$1;
@@ -92,8 +92,6 @@ const addMembersQuantity = addMembersQuantity_1;
92
92
  const controllerFactory$5 = (db) => {
93
93
  const Organization = db.organization;
94
94
  const Membership = db.membership;
95
- db.user;
96
- db.role;
97
95
  const read = async (req, res) => {
98
96
  const sortParam = req.query.sortParam || "numberOfProducts";
99
97
  const sortOrder = req.query.sortOrder || "desc";
@@ -913,14 +911,14 @@ const accessesSchema$2 = {
913
911
  };
914
912
  var accesses_schema = accessesSchema$2;
915
913
  const accessesSchema$1 = accesses_schema;
916
- var department_model = (mongoose) => {
917
- const departmentSchema = new mongoose.Schema({
914
+ var department_model = (db) => {
915
+ const departmentSchema = new db.mongoose.Schema({
918
916
  owner: {
919
- type: mongoose.Schema.Types.ObjectId,
917
+ type: db.mongoose.Schema.Types.ObjectId,
920
918
  ref: "User"
921
919
  },
922
920
  organization: {
923
- type: mongoose.Schema.Types.ObjectId,
921
+ type: db.mongoose.Schema.Types.ObjectId,
924
922
  ref: "Organization"
925
923
  },
926
924
  profile: {
@@ -947,7 +945,7 @@ var department_model = (mongoose) => {
947
945
  members: [
948
946
  {
949
947
  user: {
950
- type: mongoose.Schema.Types.ObjectId,
948
+ type: db.mongoose.Schema.Types.ObjectId,
951
949
  ref: "User"
952
950
  },
953
951
  position: {
@@ -958,7 +956,7 @@ var department_model = (mongoose) => {
958
956
  ],
959
957
  subdepartments: [
960
958
  {
961
- type: mongoose.Schema.Types.ObjectId,
959
+ type: db.mongoose.Schema.Types.ObjectId,
962
960
  ref: "Department"
963
961
  }
964
962
  ]
@@ -966,7 +964,7 @@ var department_model = (mongoose) => {
966
964
  timestamps: true
967
965
  });
968
966
  departmentSchema.index({ organization: 1 });
969
- const Department = mongoose.model("Department", departmentSchema);
967
+ const Department = db.mongoose.model("Department", departmentSchema);
970
968
  return Department;
971
969
  };
972
970
  const applyEngagementSchema = engagement_schema;
@@ -1038,10 +1036,10 @@ var organization_model = (db) => {
1038
1036
  const Organization = db.mongoose.model("Organization", OrganizationSchema);
1039
1037
  return Organization;
1040
1038
  };
1041
- var membership_model = (mongoose) => {
1042
- const MembershipSchema = new mongoose.Schema({
1039
+ var membership_model = (db) => {
1040
+ const MembershipSchema = new db.mongoose.Schema({
1043
1041
  user: {
1044
- type: mongoose.Schema.Types.ObjectId,
1042
+ type: db.mongoose.Schema.Types.ObjectId,
1045
1043
  ref: "User",
1046
1044
  required: true
1047
1045
  },
@@ -1061,7 +1059,7 @@ var membership_model = (mongoose) => {
1061
1059
  },
1062
1060
  target: {
1063
1061
  // заменяем 'organization' на 'target', так как это может быть или User, или Organization
1064
- type: mongoose.Schema.Types.ObjectId,
1062
+ type: db.mongoose.Schema.Types.ObjectId,
1065
1063
  ref: function(value) {
1066
1064
  if (this.type === "user") return "User";
1067
1065
  if (this.type === "organization") return "Organization";
@@ -1072,7 +1070,7 @@ var membership_model = (mongoose) => {
1072
1070
  timestamps: true
1073
1071
  });
1074
1072
  MembershipSchema.index({ user: 1, target: 1 });
1075
- const Membership = mongoose.model("Membership", MembershipSchema);
1073
+ const Membership = db.mongoose.model("Membership", MembershipSchema);
1076
1074
  return Membership;
1077
1075
  };
1078
1076
  const applyOwnershipSchema = ownership_schema;
@@ -1131,19 +1129,38 @@ const DepartmentModel = department_model;
1131
1129
  const OrganizationModel = organization_model;
1132
1130
  const MembershipModel = membership_model;
1133
1131
  const InviteModel = invite_model;
1132
+ function initializeOrganization(app, db, origins, publicPath) {
1133
+ db.department = DepartmentModel(db);
1134
+ db.organization = OrganizationModel(db);
1135
+ db.membership = MembershipModel(db);
1136
+ db.invite = InviteModel(db);
1137
+ if (app) {
1138
+ departmentsRoutes(app, db);
1139
+ organizationsRoutes(app, db);
1140
+ membershipsRoutes(app, db);
1141
+ invitesRoutes(app, db);
1142
+ }
1143
+ }
1134
1144
  var organizations_server = {
1135
- DepartmentsController,
1136
- OrganizationsController,
1137
- MembershipsController,
1138
- InvitesController,
1139
- departmentsRoutes,
1140
- organizationsRoutes,
1141
- membershipsRoutes,
1142
- invitesRoutes,
1143
- DepartmentModel,
1144
- OrganizationModel,
1145
- MembershipModel,
1146
- InviteModel
1145
+ initialize: initializeOrganization,
1146
+ models: {
1147
+ DepartmentModel,
1148
+ OrganizationModel,
1149
+ MembershipModel,
1150
+ InviteModel
1151
+ },
1152
+ routes: {
1153
+ departmentsRoutes,
1154
+ organizationsRoutes,
1155
+ membershipsRoutes,
1156
+ invitesRoutes
1157
+ },
1158
+ controllers: {
1159
+ DepartmentsController,
1160
+ OrganizationsController,
1161
+ MembershipsController,
1162
+ InvitesController
1163
+ }
1147
1164
  };
1148
1165
  const organizations_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(organizations_server);
1149
1166
  export {
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
4
3
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
5
4
  require("uuid");
@@ -7,8 +6,8 @@ const require$$0 = require("mongoose");
7
6
  require("path");
8
7
  const require$$3 = require("openai");
9
8
  const queryProcessor = require("./queryProcessor-CcsJEUBr.js");
10
- var product_model = (mongoose) => {
11
- const ProductSchema = new mongoose.Schema({
9
+ var product_model = (db) => {
10
+ const ProductSchema = new db.mongoose.Schema({
12
11
  status: { type: String },
13
12
  name: { type: String },
14
13
  category: { type: Array },
@@ -28,7 +27,7 @@ var product_model = (mongoose) => {
28
27
  prices: { type: Array },
29
28
  //
30
29
  variants: [{
31
- _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
30
+ _id: { type: db.mongoose.Schema.Types.ObjectId, auto: true },
32
31
  name: { type: String },
33
32
  price: { type: Number },
34
33
  options: [{
@@ -39,7 +38,7 @@ var product_model = (mongoose) => {
39
38
  }],
40
39
  ingredients: [{
41
40
  _id: {
42
- type: mongoose.Schema.Types.ObjectId,
41
+ type: db.mongoose.Schema.Types.ObjectId,
43
42
  ref: "Product"
44
43
  },
45
44
  price: {
@@ -74,11 +73,11 @@ var product_model = (mongoose) => {
74
73
  }],
75
74
  // Refactor
76
75
  owner: {
77
- type: mongoose.Schema.Types.ObjectId,
76
+ type: db.mongoose.Schema.Types.ObjectId,
78
77
  ref: "User"
79
78
  },
80
79
  organization: {
81
- type: mongoose.Schema.Types.ObjectId,
80
+ type: db.mongoose.Schema.Types.ObjectId,
82
81
  ref: "Organization"
83
82
  }
84
83
  }, {
@@ -89,12 +88,11 @@ var product_model = (mongoose) => {
89
88
  ProductSchema.index({ organization: 1 });
90
89
  ProductSchema.index({ category: 1 });
91
90
  ProductSchema.index({ price: 1 });
92
- const Product = mongoose.model("Product", ProductSchema);
91
+ const Product = db.mongoose.model("Product", ProductSchema);
93
92
  return Product;
94
93
  };
95
- const product_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(product_model);
96
- var category_model = (mongoose) => {
97
- const СategorySchema = new mongoose.Schema({
94
+ var category_model = (db) => {
95
+ const СategorySchema = new db.mongoose.Schema({
98
96
  name: {
99
97
  type: String,
100
98
  required: true,
@@ -162,10 +160,9 @@ var category_model = (mongoose) => {
162
160
  }
163
161
  });
164
162
  СategorySchema.index({ "owner.target": 1, "creator.target": 1 });
165
- const Сategory = mongoose.model("Сategory", СategorySchema, "categories");
163
+ const Сategory = db.mongoose.model("Сategory", СategorySchema, "categories");
166
164
  return Сategory;
167
165
  };
168
- const category_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(category_model);
169
166
  const applyOwnershipSchema = ownership_schema.ownership_schema;
170
167
  var leftover_model = (db) => {
171
168
  const LeftoverSchema = new db.mongoose.Schema({
@@ -216,7 +213,6 @@ var leftover_model = (db) => {
216
213
  const Leftover = db.mongoose.model("Leftover", LeftoverSchema);
217
214
  return Leftover;
218
215
  };
219
- const leftover_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(leftover_model);
220
216
  const ObjectId = require$$0.Types.ObjectId;
221
217
  const OpenAI = require$$3;
222
218
  const openai = new OpenAI({
@@ -554,7 +550,6 @@ var products_routes = function(app, db, allowedOrigins) {
554
550
  controller.getProductRecommendation
555
551
  );
556
552
  };
557
- const products_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(products_routes);
558
553
  const controllerFactory$3 = (db) => {
559
554
  const Category = db.category;
560
555
  const getCategories = async (req, res) => {
@@ -721,7 +716,6 @@ var categories_routes = function(app, db) {
721
716
  controller.deleteCategory
722
717
  );
723
718
  };
724
- const categories_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(categories_routes);
725
719
  const queryProcessorGlobals = queryProcessor.queryProcessor;
726
720
  const controllerFactory$1 = (db) => {
727
721
  const Leftover = db.leftover;
@@ -865,10 +859,42 @@ var leftovers_routes = function(app, db) {
865
859
  controller.delete
866
860
  );
867
861
  };
868
- const leftovers_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(leftovers_routes);
869
- exports.CategoryModel = category_model$1;
870
- exports.LeftoverModel = leftover_model$1;
871
- exports.ProductModel = product_model$1;
872
- exports.categoriesRoutes = categories_routes$1;
873
- exports.leftoversRoutes = leftovers_routes$1;
874
- exports.productsRoutes = products_routes$1;
862
+ const ProductModel = product_model;
863
+ const CategoryModel = category_model;
864
+ const LeftoverModel = leftover_model;
865
+ const productsRoutes = products_routes;
866
+ const categoriesRoutes = categories_routes;
867
+ const leftoversRoutes = leftovers_routes;
868
+ const ProductController = products_controller;
869
+ const CategoryController = categories_controller;
870
+ const LeftoverController = leftovers_controller;
871
+ function initializeProduct(app, db, origins, publicPath) {
872
+ db.product = ProductModel(db);
873
+ db.category = CategoryModel(db);
874
+ db.leftover = LeftoverModel(db);
875
+ if (app) {
876
+ productsRoutes(app, db);
877
+ categoriesRoutes(app, db);
878
+ leftoversRoutes(app, db);
879
+ }
880
+ }
881
+ var products_server = {
882
+ initialize: initializeProduct,
883
+ models: {
884
+ ProductModel,
885
+ CategoryModel,
886
+ LeftoverModel
887
+ },
888
+ routes: {
889
+ productsRoutes,
890
+ categoriesRoutes,
891
+ leftoversRoutes
892
+ },
893
+ controllers: {
894
+ ProductController,
895
+ CategoryController,
896
+ LeftoverController
897
+ }
898
+ };
899
+ const products_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(products_server);
900
+ module.exports = products_server$1;
@@ -5,8 +5,8 @@ import require$$0 from "mongoose";
5
5
  import "path";
6
6
  import require$$3 from "openai";
7
7
  import { q as queryProcessor } from "./queryProcessor-CU4A6Y4N.mjs";
8
- var product_model = (mongoose) => {
9
- const ProductSchema = new mongoose.Schema({
8
+ var product_model = (db) => {
9
+ const ProductSchema = new db.mongoose.Schema({
10
10
  status: { type: String },
11
11
  name: { type: String },
12
12
  category: { type: Array },
@@ -26,7 +26,7 @@ var product_model = (mongoose) => {
26
26
  prices: { type: Array },
27
27
  //
28
28
  variants: [{
29
- _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
29
+ _id: { type: db.mongoose.Schema.Types.ObjectId, auto: true },
30
30
  name: { type: String },
31
31
  price: { type: Number },
32
32
  options: [{
@@ -37,7 +37,7 @@ var product_model = (mongoose) => {
37
37
  }],
38
38
  ingredients: [{
39
39
  _id: {
40
- type: mongoose.Schema.Types.ObjectId,
40
+ type: db.mongoose.Schema.Types.ObjectId,
41
41
  ref: "Product"
42
42
  },
43
43
  price: {
@@ -72,11 +72,11 @@ var product_model = (mongoose) => {
72
72
  }],
73
73
  // Refactor
74
74
  owner: {
75
- type: mongoose.Schema.Types.ObjectId,
75
+ type: db.mongoose.Schema.Types.ObjectId,
76
76
  ref: "User"
77
77
  },
78
78
  organization: {
79
- type: mongoose.Schema.Types.ObjectId,
79
+ type: db.mongoose.Schema.Types.ObjectId,
80
80
  ref: "Organization"
81
81
  }
82
82
  }, {
@@ -87,12 +87,11 @@ var product_model = (mongoose) => {
87
87
  ProductSchema.index({ organization: 1 });
88
88
  ProductSchema.index({ category: 1 });
89
89
  ProductSchema.index({ price: 1 });
90
- const Product = mongoose.model("Product", ProductSchema);
90
+ const Product = db.mongoose.model("Product", ProductSchema);
91
91
  return Product;
92
92
  };
93
- const product_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(product_model);
94
- var category_model = (mongoose) => {
95
- const СategorySchema = new mongoose.Schema({
93
+ var category_model = (db) => {
94
+ const СategorySchema = new db.mongoose.Schema({
96
95
  name: {
97
96
  type: String,
98
97
  required: true,
@@ -160,10 +159,9 @@ var category_model = (mongoose) => {
160
159
  }
161
160
  });
162
161
  СategorySchema.index({ "owner.target": 1, "creator.target": 1 });
163
- const Сategory = mongoose.model("Сategory", СategorySchema, "categories");
162
+ const Сategory = db.mongoose.model("Сategory", СategorySchema, "categories");
164
163
  return Сategory;
165
164
  };
166
- const category_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(category_model);
167
165
  const applyOwnershipSchema = ownership_schema;
168
166
  var leftover_model = (db) => {
169
167
  const LeftoverSchema = new db.mongoose.Schema({
@@ -214,7 +212,6 @@ var leftover_model = (db) => {
214
212
  const Leftover = db.mongoose.model("Leftover", LeftoverSchema);
215
213
  return Leftover;
216
214
  };
217
- const leftover_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(leftover_model);
218
215
  const ObjectId = require$$0.Types.ObjectId;
219
216
  const OpenAI = require$$3;
220
217
  const openai = new OpenAI({
@@ -552,7 +549,6 @@ var products_routes = function(app, db, allowedOrigins) {
552
549
  controller.getProductRecommendation
553
550
  );
554
551
  };
555
- const products_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(products_routes);
556
552
  const controllerFactory$3 = (db) => {
557
553
  const Category = db.category;
558
554
  const getCategories = async (req, res) => {
@@ -719,7 +715,6 @@ var categories_routes = function(app, db) {
719
715
  controller.deleteCategory
720
716
  );
721
717
  };
722
- const categories_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(categories_routes);
723
718
  const queryProcessorGlobals = queryProcessor;
724
719
  const controllerFactory$1 = (db) => {
725
720
  const Leftover = db.leftover;
@@ -863,12 +858,44 @@ var leftovers_routes = function(app, db) {
863
858
  controller.delete
864
859
  );
865
860
  };
866
- const leftovers_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(leftovers_routes);
861
+ const ProductModel = product_model;
862
+ const CategoryModel = category_model;
863
+ const LeftoverModel = leftover_model;
864
+ const productsRoutes = products_routes;
865
+ const categoriesRoutes = categories_routes;
866
+ const leftoversRoutes = leftovers_routes;
867
+ const ProductController = products_controller;
868
+ const CategoryController = categories_controller;
869
+ const LeftoverController = leftovers_controller;
870
+ function initializeProduct(app, db, origins, publicPath) {
871
+ db.product = ProductModel(db);
872
+ db.category = CategoryModel(db);
873
+ db.leftover = LeftoverModel(db);
874
+ if (app) {
875
+ productsRoutes(app, db);
876
+ categoriesRoutes(app, db);
877
+ leftoversRoutes(app, db);
878
+ }
879
+ }
880
+ var products_server = {
881
+ initialize: initializeProduct,
882
+ models: {
883
+ ProductModel,
884
+ CategoryModel,
885
+ LeftoverModel
886
+ },
887
+ routes: {
888
+ productsRoutes,
889
+ categoriesRoutes,
890
+ leftoversRoutes
891
+ },
892
+ controllers: {
893
+ ProductController,
894
+ CategoryController,
895
+ LeftoverController
896
+ }
897
+ };
898
+ const products_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(products_server);
867
899
  export {
868
- category_model$1 as CategoryModel,
869
- leftover_model$1 as LeftoverModel,
870
- product_model$1 as ProductModel,
871
- categories_routes$1 as categoriesRoutes,
872
- leftovers_routes$1 as leftoversRoutes,
873
- products_routes$1 as productsRoutes
900
+ products_server$1 as default
874
901
  };
@@ -2,7 +2,9 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const auth = require("./views/store/auth.cjs");
4
4
  const twofa = require("./views/store/twofa.cjs");
5
+ const users = require("./views/store/users.cjs");
5
6
  const auth$1 = require("./views/router/auth.cjs");
7
+ const users$1 = require("./views/router/users.cjs");
6
8
  const auth_validation = require("./views/middlewares/auth.validation.cjs");
7
9
  const Auth = require("./views/components/layouts/Auth.vue.cjs");
8
10
  const EnterCode = require("./views/components/pages/EnterCode.vue.cjs");
@@ -11,22 +13,29 @@ const EnterPassword = require("./views/components/pages/EnterPassword.vue.cjs");
11
13
  const ResetPassword = require("./views/components/pages/ResetPassword.vue.cjs");
12
14
  const SignUp = require("./views/components/pages/SignUp.vue.cjs");
13
15
  const SignIn = require("./views/components/pages/SignIn.vue.cjs");
16
+ const Profile = require("./views/components/pages/Profile.vue.cjs");
17
+ const ProfileEdit = require("./views/components/pages/ProfileEdit.vue.cjs");
14
18
  const SliderFeatures = require("./views/components/sections/SliderFeatures.vue.cjs");
19
+ const FeaturedUsers = require("./views/components/sections/FeaturedUsers.vue.cjs");
15
20
  function initializeAuth(app, store, router, options = {}) {
16
21
  const route = options.route || "Home";
17
22
  router.addRoute(route, auth$1.default);
23
+ router.addRoute(route, users$1.default);
18
24
  store.addStore("auth", auth);
19
25
  store.addStore("twofa", twofa);
26
+ store.addStore("users", users);
20
27
  }
21
28
  const ModuleAuth = {
22
29
  initialize: initializeAuth,
23
30
  views: {
24
31
  store: {
25
32
  storeAuth: auth,
26
- storeTwofa: twofa
33
+ storeTwofa: twofa,
34
+ storeUsers: users
27
35
  },
28
36
  router: {
29
- routerAuth: auth$1.default
37
+ routerAuth: auth$1.default,
38
+ routerUsers: users$1.default
30
39
  },
31
40
  middlewares: {
32
41
  validationAuth: auth_validation
@@ -41,8 +50,11 @@ const ModuleAuth = {
41
50
  ResetPassword: ResetPassword.default,
42
51
  SignUp: SignUp.default,
43
52
  SignIn: SignIn.default,
53
+ Profile: Profile.default,
54
+ ProfileEdit: ProfileEdit.default,
44
55
  // Sections
45
- SliderFeatures: SliderFeatures.default
56
+ SliderFeatures: SliderFeatures.default,
57
+ FeaturedUsers: FeaturedUsers.default
46
58
  }
47
59
  }
48
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auth.client.cjs","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\n\n// Middlewares\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\n\n// Пример функции инициализации для модуля аутентификации\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa\n },\n router: {\n routerAuth\n },\n middlewares: {\n validationAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n // Sections\n SliderFeatures\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","storeAuth","storeTwofa","validationAuth","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","SliderFeatures"],"mappings":";;;;;;;;;;;;;;AAuBA,SAAS,eAAe,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AACxD,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,OAAAA,OAAU;AAEjC,QAAM,SAAS,QAAQC,IAAS;AAChC,QAAM,SAAS,SAASC,KAAU;AACpC;AAEK,MAAC,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,WAAMD;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,YAAMF,OAAU;AAAA,IACX;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMG;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC,KAAI;AAAA;AAAA,MAEV,WAAMC,UAAS;AAAA,MACf,QAAMC,OAAM;AAAA,MACZ,eAAMC,cAAa;AAAA,MACnB,eAAMC,cAAa;AAAA,MACnB,QAAMC,OAAM;AAAA,MACZ,QAAMC,OAAM;AAAA;AAAA,MAEZ,gBAAMC,eAAc;AAAA,IACf;AAAA,EACF;AACH;;"}
1
+ {"version":3,"file":"auth.client.cjs","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\nimport * as storeUsers from './views/store/users.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\nimport routerUsers from './views/router/users.js';\n\n// Middlewares\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\nimport Profile from './views/components/pages/Profile.vue';\nimport ProfileEdit from './views/components/pages/ProfileEdit.vue'\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\nimport FeaturedUsers from './views/components/sections/FeaturedUsers.vue';\n\n// Пример функции инициализации для модуля аутентификации\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n router.addRoute(route, routerUsers);\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n store.addStore('users', storeUsers);\n \n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa,\n storeUsers\n },\n router: {\n routerAuth,\n routerUsers\n },\n middlewares: {\n validationAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n Profile,\n ProfileEdit,\n // Sections\n SliderFeatures,\n FeaturedUsers\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","routerUsers","storeAuth","storeTwofa","storeUsers","validationAuth","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","Profile","ProfileEdit","SliderFeatures","FeaturedUsers"],"mappings":";;;;;;;;;;;;;;;;;;;AA4BA,SAAS,eAAe,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AACxD,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,OAAAA,OAAU;AACjC,SAAO,SAAS,OAAOC,QAAAA,OAAW;AAElC,QAAM,SAAS,QAAQC,IAAS;AAChC,QAAM,SAAS,SAASC,KAAU;AAClC,QAAM,SAAS,SAASC,KAAU;AAEpC;AAEK,MAAC,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,WAAMF;AAAAA,MACN,YAAMC;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,YAAMJ,OAAU;AAAA,MAChB,aAAMC,QAAW;AAAA,IACZ;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMI;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC,KAAI;AAAA;AAAA,MAEV,WAAMC,UAAS;AAAA,MACf,QAAMC,OAAM;AAAA,MACZ,eAAMC,cAAa;AAAA,MACnB,eAAMC,cAAa;AAAA,MACnB,QAAMC,OAAM;AAAA,MACZ,QAAMC,OAAM;AAAA,MACZ,SAAMC,QAAO;AAAA,MACb,aAAMC,YAAW;AAAA;AAAA,MAEjB,gBAAMC,eAAc;AAAA,MACpB,eAAMC,cAAa;AAAA,IACd;AAAA,EACF;AACH;;"}