@ozdao/prometheus-framework 0.1.36 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +217 -189
- package/dist/community.server.mjs +217 -189
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +100 -210
- package/dist/events.server.mjs +100 -210
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +212 -256
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +5 -1
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
@@ -0,0 +1,212 @@
|
|
1
|
+
import require$$0 from "mongoose";
|
2
|
+
const ObjectId = require$$0.Types.ObjectId;
|
3
|
+
function getBasicOptions(query) {
|
4
|
+
const { _id, url, status, owner, creator } = query;
|
5
|
+
const conditions = [];
|
6
|
+
if (_id) {
|
7
|
+
conditions.push({ _id: new ObjectId(_id) });
|
8
|
+
}
|
9
|
+
if (url) {
|
10
|
+
conditions.push({ url });
|
11
|
+
}
|
12
|
+
if (status) {
|
13
|
+
conditions.push({ status });
|
14
|
+
}
|
15
|
+
if (owner) {
|
16
|
+
conditions.push({ "owner.target": new ObjectId(owner) });
|
17
|
+
}
|
18
|
+
if (creator) {
|
19
|
+
conditions.push({ "creator.target": new ObjectId(creator) });
|
20
|
+
}
|
21
|
+
if (conditions.length > 0) {
|
22
|
+
return [{ $match: { $and: conditions } }];
|
23
|
+
} else {
|
24
|
+
return [];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function getTagsOptions(tags) {
|
28
|
+
if (tags && tags.length > 0) {
|
29
|
+
[{ $in: tags.split(",") }];
|
30
|
+
} else {
|
31
|
+
return [];
|
32
|
+
}
|
33
|
+
}
|
34
|
+
function getSortingOptions(query) {
|
35
|
+
const sortParam = query.sortParam || "date.start";
|
36
|
+
const sortOrder = query.sortOrder || "desc";
|
37
|
+
let sort = {
|
38
|
+
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
39
|
+
"_id": 1
|
40
|
+
};
|
41
|
+
return [{ $sort: sort }];
|
42
|
+
}
|
43
|
+
function getPaginationOptions(query) {
|
44
|
+
let pagination = {
|
45
|
+
skip: parseInt(query.skip) || 0,
|
46
|
+
limit: parseInt(query.limit) || 20
|
47
|
+
};
|
48
|
+
return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
|
49
|
+
}
|
50
|
+
function getCreatorUserLookupStage() {
|
51
|
+
return {
|
52
|
+
$lookup: {
|
53
|
+
from: "users",
|
54
|
+
localField: "creator.target",
|
55
|
+
foreignField: "_id",
|
56
|
+
as: "creatorUser"
|
57
|
+
}
|
58
|
+
};
|
59
|
+
}
|
60
|
+
function getCreatorOrganizationLookupStage() {
|
61
|
+
return {
|
62
|
+
$lookup: {
|
63
|
+
from: "organizations",
|
64
|
+
localField: "creator.target",
|
65
|
+
foreignField: "_id",
|
66
|
+
as: "creatorOrganization"
|
67
|
+
}
|
68
|
+
};
|
69
|
+
}
|
70
|
+
function getOwnerUserLookupStage() {
|
71
|
+
return {
|
72
|
+
$lookup: {
|
73
|
+
from: "users",
|
74
|
+
localField: "owner.target",
|
75
|
+
foreignField: "_id",
|
76
|
+
as: "ownerUser"
|
77
|
+
}
|
78
|
+
};
|
79
|
+
}
|
80
|
+
function getOwnerOrganizationLookupStage() {
|
81
|
+
return {
|
82
|
+
$lookup: {
|
83
|
+
from: "organizations",
|
84
|
+
localField: "owner.target",
|
85
|
+
foreignField: "_id",
|
86
|
+
as: "ownerOrganization"
|
87
|
+
}
|
88
|
+
};
|
89
|
+
}
|
90
|
+
function getAddFieldsCreatorOwnerStage() {
|
91
|
+
return {
|
92
|
+
$addFields: {
|
93
|
+
"creator.target": {
|
94
|
+
$cond: [
|
95
|
+
{ $eq: ["$creator.type", "user"] },
|
96
|
+
{ $arrayElemAt: ["$creatorUser", 0] },
|
97
|
+
{ $arrayElemAt: ["$creatorOrganization", 0] }
|
98
|
+
]
|
99
|
+
},
|
100
|
+
"owner.target": {
|
101
|
+
$cond: [
|
102
|
+
{ $eq: ["$owner.type", "user"] },
|
103
|
+
{ $arrayElemAt: ["$ownerUser", 0] },
|
104
|
+
{ $arrayElemAt: ["$ownerOrganization", 0] }
|
105
|
+
]
|
106
|
+
}
|
107
|
+
}
|
108
|
+
};
|
109
|
+
}
|
110
|
+
var queryProcessor = {
|
111
|
+
getBasicOptions,
|
112
|
+
getSortingOptions,
|
113
|
+
getPaginationOptions,
|
114
|
+
getTagsOptions,
|
115
|
+
// Creator and Owner
|
116
|
+
getCreatorUserLookupStage,
|
117
|
+
getCreatorOrganizationLookupStage,
|
118
|
+
getOwnerUserLookupStage,
|
119
|
+
getOwnerOrganizationLookupStage,
|
120
|
+
getAddFieldsCreatorOwnerStage
|
121
|
+
};
|
122
|
+
var common_schema = function applyCommonSchema(schema, db) {
|
123
|
+
schema.add({
|
124
|
+
status: {
|
125
|
+
type: String,
|
126
|
+
enum: ["draft", "published", "removed"],
|
127
|
+
default: "draft",
|
128
|
+
required: true
|
129
|
+
}
|
130
|
+
});
|
131
|
+
};
|
132
|
+
var engagement_schema = function applyEngagementSchema(schema, db) {
|
133
|
+
schema.add({ views: { type: Number, default: 0 } });
|
134
|
+
schema.post("aggregate", async function(docs) {
|
135
|
+
if (docs.length === 0)
|
136
|
+
return;
|
137
|
+
console.log("Post-aggregate hook in engagement schema triggered");
|
138
|
+
const model = this._model;
|
139
|
+
if (!model) {
|
140
|
+
console.error("No model is associated with this schema!");
|
141
|
+
return;
|
142
|
+
}
|
143
|
+
try {
|
144
|
+
await updateDocumentViews(docs, model);
|
145
|
+
} catch (error) {
|
146
|
+
console.error("Error updating views:", error);
|
147
|
+
}
|
148
|
+
});
|
149
|
+
async function updateDocumentViews(docs, model) {
|
150
|
+
const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
|
151
|
+
{ _id: doc._id },
|
152
|
+
{ $inc: { views: 1 } }
|
153
|
+
).exec());
|
154
|
+
await Promise.all(updateViewsPromises);
|
155
|
+
}
|
156
|
+
};
|
157
|
+
var ownership_schema = function applyOwnershipSchema(schema, db) {
|
158
|
+
schema.add({
|
159
|
+
owner: {
|
160
|
+
type: {
|
161
|
+
type: String,
|
162
|
+
required: true
|
163
|
+
},
|
164
|
+
target: {
|
165
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
166
|
+
refPath: "owner.type",
|
167
|
+
required: true
|
168
|
+
}
|
169
|
+
},
|
170
|
+
creator: {
|
171
|
+
hidden: {
|
172
|
+
type: Boolean,
|
173
|
+
required: true
|
174
|
+
},
|
175
|
+
type: {
|
176
|
+
type: String,
|
177
|
+
required: true
|
178
|
+
},
|
179
|
+
target: {
|
180
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
181
|
+
refPath: "creator.type",
|
182
|
+
required: true
|
183
|
+
}
|
184
|
+
}
|
185
|
+
});
|
186
|
+
schema.index({
|
187
|
+
"owner.target": 1,
|
188
|
+
"creator.target": 1
|
189
|
+
});
|
190
|
+
};
|
191
|
+
var metadata_schema = function applyMetadataSchema(schema, db) {
|
192
|
+
schema.add({
|
193
|
+
url: {
|
194
|
+
type: String,
|
195
|
+
required: true
|
196
|
+
},
|
197
|
+
tags: [{
|
198
|
+
type: String
|
199
|
+
}]
|
200
|
+
});
|
201
|
+
schema.index({
|
202
|
+
"url": 1,
|
203
|
+
"tags": 1
|
204
|
+
});
|
205
|
+
};
|
206
|
+
export {
|
207
|
+
common_schema as c,
|
208
|
+
engagement_schema as e,
|
209
|
+
metadata_schema as m,
|
210
|
+
ownership_schema as o,
|
211
|
+
queryProcessor as q
|
212
|
+
};
|
@@ -0,0 +1,211 @@
|
|
1
|
+
"use strict";
|
2
|
+
const require$$0 = require("mongoose");
|
3
|
+
const ObjectId = require$$0.Types.ObjectId;
|
4
|
+
function getBasicOptions(query) {
|
5
|
+
const { _id, url, status, owner, creator } = query;
|
6
|
+
const conditions = [];
|
7
|
+
if (_id) {
|
8
|
+
conditions.push({ _id: new ObjectId(_id) });
|
9
|
+
}
|
10
|
+
if (url) {
|
11
|
+
conditions.push({ url });
|
12
|
+
}
|
13
|
+
if (status) {
|
14
|
+
conditions.push({ status });
|
15
|
+
}
|
16
|
+
if (owner) {
|
17
|
+
conditions.push({ "owner.target": new ObjectId(owner) });
|
18
|
+
}
|
19
|
+
if (creator) {
|
20
|
+
conditions.push({ "creator.target": new ObjectId(creator) });
|
21
|
+
}
|
22
|
+
if (conditions.length > 0) {
|
23
|
+
return [{ $match: { $and: conditions } }];
|
24
|
+
} else {
|
25
|
+
return [];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
function getTagsOptions(tags) {
|
29
|
+
if (tags && tags.length > 0) {
|
30
|
+
[{ $in: tags.split(",") }];
|
31
|
+
} else {
|
32
|
+
return [];
|
33
|
+
}
|
34
|
+
}
|
35
|
+
function getSortingOptions(query) {
|
36
|
+
const sortParam = query.sortParam || "date.start";
|
37
|
+
const sortOrder = query.sortOrder || "desc";
|
38
|
+
let sort = {
|
39
|
+
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
40
|
+
"_id": 1
|
41
|
+
};
|
42
|
+
return [{ $sort: sort }];
|
43
|
+
}
|
44
|
+
function getPaginationOptions(query) {
|
45
|
+
let pagination = {
|
46
|
+
skip: parseInt(query.skip) || 0,
|
47
|
+
limit: parseInt(query.limit) || 20
|
48
|
+
};
|
49
|
+
return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
|
50
|
+
}
|
51
|
+
function getCreatorUserLookupStage() {
|
52
|
+
return {
|
53
|
+
$lookup: {
|
54
|
+
from: "users",
|
55
|
+
localField: "creator.target",
|
56
|
+
foreignField: "_id",
|
57
|
+
as: "creatorUser"
|
58
|
+
}
|
59
|
+
};
|
60
|
+
}
|
61
|
+
function getCreatorOrganizationLookupStage() {
|
62
|
+
return {
|
63
|
+
$lookup: {
|
64
|
+
from: "organizations",
|
65
|
+
localField: "creator.target",
|
66
|
+
foreignField: "_id",
|
67
|
+
as: "creatorOrganization"
|
68
|
+
}
|
69
|
+
};
|
70
|
+
}
|
71
|
+
function getOwnerUserLookupStage() {
|
72
|
+
return {
|
73
|
+
$lookup: {
|
74
|
+
from: "users",
|
75
|
+
localField: "owner.target",
|
76
|
+
foreignField: "_id",
|
77
|
+
as: "ownerUser"
|
78
|
+
}
|
79
|
+
};
|
80
|
+
}
|
81
|
+
function getOwnerOrganizationLookupStage() {
|
82
|
+
return {
|
83
|
+
$lookup: {
|
84
|
+
from: "organizations",
|
85
|
+
localField: "owner.target",
|
86
|
+
foreignField: "_id",
|
87
|
+
as: "ownerOrganization"
|
88
|
+
}
|
89
|
+
};
|
90
|
+
}
|
91
|
+
function getAddFieldsCreatorOwnerStage() {
|
92
|
+
return {
|
93
|
+
$addFields: {
|
94
|
+
"creator.target": {
|
95
|
+
$cond: [
|
96
|
+
{ $eq: ["$creator.type", "user"] },
|
97
|
+
{ $arrayElemAt: ["$creatorUser", 0] },
|
98
|
+
{ $arrayElemAt: ["$creatorOrganization", 0] }
|
99
|
+
]
|
100
|
+
},
|
101
|
+
"owner.target": {
|
102
|
+
$cond: [
|
103
|
+
{ $eq: ["$owner.type", "user"] },
|
104
|
+
{ $arrayElemAt: ["$ownerUser", 0] },
|
105
|
+
{ $arrayElemAt: ["$ownerOrganization", 0] }
|
106
|
+
]
|
107
|
+
}
|
108
|
+
}
|
109
|
+
};
|
110
|
+
}
|
111
|
+
var queryProcessor = {
|
112
|
+
getBasicOptions,
|
113
|
+
getSortingOptions,
|
114
|
+
getPaginationOptions,
|
115
|
+
getTagsOptions,
|
116
|
+
// Creator and Owner
|
117
|
+
getCreatorUserLookupStage,
|
118
|
+
getCreatorOrganizationLookupStage,
|
119
|
+
getOwnerUserLookupStage,
|
120
|
+
getOwnerOrganizationLookupStage,
|
121
|
+
getAddFieldsCreatorOwnerStage
|
122
|
+
};
|
123
|
+
var common_schema = function applyCommonSchema(schema, db) {
|
124
|
+
schema.add({
|
125
|
+
status: {
|
126
|
+
type: String,
|
127
|
+
enum: ["draft", "published", "removed"],
|
128
|
+
default: "draft",
|
129
|
+
required: true
|
130
|
+
}
|
131
|
+
});
|
132
|
+
};
|
133
|
+
var engagement_schema = function applyEngagementSchema(schema, db) {
|
134
|
+
schema.add({ views: { type: Number, default: 0 } });
|
135
|
+
schema.post("aggregate", async function(docs) {
|
136
|
+
if (docs.length === 0)
|
137
|
+
return;
|
138
|
+
console.log("Post-aggregate hook in engagement schema triggered");
|
139
|
+
const model = this._model;
|
140
|
+
if (!model) {
|
141
|
+
console.error("No model is associated with this schema!");
|
142
|
+
return;
|
143
|
+
}
|
144
|
+
try {
|
145
|
+
await updateDocumentViews(docs, model);
|
146
|
+
} catch (error) {
|
147
|
+
console.error("Error updating views:", error);
|
148
|
+
}
|
149
|
+
});
|
150
|
+
async function updateDocumentViews(docs, model) {
|
151
|
+
const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
|
152
|
+
{ _id: doc._id },
|
153
|
+
{ $inc: { views: 1 } }
|
154
|
+
).exec());
|
155
|
+
await Promise.all(updateViewsPromises);
|
156
|
+
}
|
157
|
+
};
|
158
|
+
var ownership_schema = function applyOwnershipSchema(schema, db) {
|
159
|
+
schema.add({
|
160
|
+
owner: {
|
161
|
+
type: {
|
162
|
+
type: String,
|
163
|
+
required: true
|
164
|
+
},
|
165
|
+
target: {
|
166
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
167
|
+
refPath: "owner.type",
|
168
|
+
required: true
|
169
|
+
}
|
170
|
+
},
|
171
|
+
creator: {
|
172
|
+
hidden: {
|
173
|
+
type: Boolean,
|
174
|
+
required: true
|
175
|
+
},
|
176
|
+
type: {
|
177
|
+
type: String,
|
178
|
+
required: true
|
179
|
+
},
|
180
|
+
target: {
|
181
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
182
|
+
refPath: "creator.type",
|
183
|
+
required: true
|
184
|
+
}
|
185
|
+
}
|
186
|
+
});
|
187
|
+
schema.index({
|
188
|
+
"owner.target": 1,
|
189
|
+
"creator.target": 1
|
190
|
+
});
|
191
|
+
};
|
192
|
+
var metadata_schema = function applyMetadataSchema(schema, db) {
|
193
|
+
schema.add({
|
194
|
+
url: {
|
195
|
+
type: String,
|
196
|
+
required: true
|
197
|
+
},
|
198
|
+
tags: [{
|
199
|
+
type: String
|
200
|
+
}]
|
201
|
+
});
|
202
|
+
schema.index({
|
203
|
+
"url": 1,
|
204
|
+
"tags": 1
|
205
|
+
});
|
206
|
+
};
|
207
|
+
exports.common_schema = common_schema;
|
208
|
+
exports.engagement_schema = engagement_schema;
|
209
|
+
exports.metadata_schema = metadata_schema;
|
210
|
+
exports.ownership_schema = ownership_schema;
|
211
|
+
exports.queryProcessor = queryProcessor;
|
@@ -0,0 +1,210 @@
|
|
1
|
+
import require$$0 from "mongoose";
|
2
|
+
const ObjectId = require$$0.Types.ObjectId;
|
3
|
+
function getBasicOptions(query) {
|
4
|
+
const { _id, url, status, owner, creator } = query;
|
5
|
+
const conditions = [];
|
6
|
+
if (_id) {
|
7
|
+
conditions.push({ _id: new ObjectId(_id) });
|
8
|
+
}
|
9
|
+
if (url) {
|
10
|
+
conditions.push({ url });
|
11
|
+
}
|
12
|
+
if (status) {
|
13
|
+
conditions.push({ status });
|
14
|
+
}
|
15
|
+
if (owner) {
|
16
|
+
conditions.push({ "owner.target": new ObjectId(owner) });
|
17
|
+
}
|
18
|
+
if (creator) {
|
19
|
+
conditions.push({ "creator.target": new ObjectId(creator) });
|
20
|
+
}
|
21
|
+
if (conditions.length > 0) {
|
22
|
+
return [{ $match: { $and: conditions } }];
|
23
|
+
} else {
|
24
|
+
return [];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function getTagsOptions(tags) {
|
28
|
+
if (tags && tags.length > 0) {
|
29
|
+
[{ $in: tags.split(",") }];
|
30
|
+
} else {
|
31
|
+
return [];
|
32
|
+
}
|
33
|
+
}
|
34
|
+
function getSortingOptions(param = "createdAt", order = "desc") {
|
35
|
+
let sort = {
|
36
|
+
[param]: order === "desc" ? -1 : 1,
|
37
|
+
"_id": 1
|
38
|
+
};
|
39
|
+
return [{ $sort: sort }];
|
40
|
+
}
|
41
|
+
function getPaginationOptions(skip, limit) {
|
42
|
+
let pagination = {
|
43
|
+
skip: parseInt(skip) || 0,
|
44
|
+
limit: parseInt(limit) || 20
|
45
|
+
};
|
46
|
+
return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
|
47
|
+
}
|
48
|
+
function getCreatorUserLookupStage() {
|
49
|
+
return {
|
50
|
+
$lookup: {
|
51
|
+
from: "users",
|
52
|
+
localField: "creator.target",
|
53
|
+
foreignField: "_id",
|
54
|
+
as: "creatorUser"
|
55
|
+
}
|
56
|
+
};
|
57
|
+
}
|
58
|
+
function getCreatorOrganizationLookupStage() {
|
59
|
+
return {
|
60
|
+
$lookup: {
|
61
|
+
from: "organizations",
|
62
|
+
localField: "creator.target",
|
63
|
+
foreignField: "_id",
|
64
|
+
as: "creatorOrganization"
|
65
|
+
}
|
66
|
+
};
|
67
|
+
}
|
68
|
+
function getOwnerUserLookupStage() {
|
69
|
+
return {
|
70
|
+
$lookup: {
|
71
|
+
from: "users",
|
72
|
+
localField: "owner.target",
|
73
|
+
foreignField: "_id",
|
74
|
+
as: "ownerUser"
|
75
|
+
}
|
76
|
+
};
|
77
|
+
}
|
78
|
+
function getOwnerOrganizationLookupStage() {
|
79
|
+
return {
|
80
|
+
$lookup: {
|
81
|
+
from: "organizations",
|
82
|
+
localField: "owner.target",
|
83
|
+
foreignField: "_id",
|
84
|
+
as: "ownerOrganization"
|
85
|
+
}
|
86
|
+
};
|
87
|
+
}
|
88
|
+
function getAddFieldsCreatorOwnerStage() {
|
89
|
+
return {
|
90
|
+
$addFields: {
|
91
|
+
"creator.target": {
|
92
|
+
$cond: [
|
93
|
+
{ $eq: ["$creator.type", "user"] },
|
94
|
+
{ $arrayElemAt: ["$creatorUser", 0] },
|
95
|
+
{ $arrayElemAt: ["$creatorOrganization", 0] }
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"owner.target": {
|
99
|
+
$cond: [
|
100
|
+
{ $eq: ["$owner.type", "user"] },
|
101
|
+
{ $arrayElemAt: ["$ownerUser", 0] },
|
102
|
+
{ $arrayElemAt: ["$ownerOrganization", 0] }
|
103
|
+
]
|
104
|
+
}
|
105
|
+
}
|
106
|
+
};
|
107
|
+
}
|
108
|
+
var queryProcessor = {
|
109
|
+
getBasicOptions,
|
110
|
+
getSortingOptions,
|
111
|
+
getPaginationOptions,
|
112
|
+
getTagsOptions,
|
113
|
+
// Creator and Owner
|
114
|
+
getCreatorUserLookupStage,
|
115
|
+
getCreatorOrganizationLookupStage,
|
116
|
+
getOwnerUserLookupStage,
|
117
|
+
getOwnerOrganizationLookupStage,
|
118
|
+
getAddFieldsCreatorOwnerStage
|
119
|
+
};
|
120
|
+
var common_schema = function applyCommonSchema(schema, db) {
|
121
|
+
schema.add({
|
122
|
+
status: {
|
123
|
+
type: String,
|
124
|
+
enum: ["draft", "published", "removed"],
|
125
|
+
default: "draft",
|
126
|
+
required: true
|
127
|
+
}
|
128
|
+
});
|
129
|
+
};
|
130
|
+
var engagement_schema = function applyEngagementSchema(schema, db) {
|
131
|
+
schema.add({ views: { type: Number, default: 0 } });
|
132
|
+
schema.post("aggregate", async function(docs) {
|
133
|
+
if (docs.length === 0)
|
134
|
+
return;
|
135
|
+
console.log("Post-aggregate hook in engagement schema triggered");
|
136
|
+
const model = this._model;
|
137
|
+
if (!model) {
|
138
|
+
console.error("No model is associated with this schema!");
|
139
|
+
return;
|
140
|
+
}
|
141
|
+
try {
|
142
|
+
await updateDocumentViews(docs, model);
|
143
|
+
} catch (error) {
|
144
|
+
console.error("Error updating views:", error);
|
145
|
+
}
|
146
|
+
});
|
147
|
+
async function updateDocumentViews(docs, model) {
|
148
|
+
const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
|
149
|
+
{ _id: doc._id },
|
150
|
+
{ $inc: { views: 1 } }
|
151
|
+
).exec());
|
152
|
+
await Promise.all(updateViewsPromises);
|
153
|
+
}
|
154
|
+
};
|
155
|
+
var ownership_schema = function applyOwnershipSchema(schema, db) {
|
156
|
+
schema.add({
|
157
|
+
owner: {
|
158
|
+
type: {
|
159
|
+
type: String,
|
160
|
+
required: true
|
161
|
+
},
|
162
|
+
target: {
|
163
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
164
|
+
refPath: "owner.type",
|
165
|
+
required: true
|
166
|
+
}
|
167
|
+
},
|
168
|
+
creator: {
|
169
|
+
hidden: {
|
170
|
+
type: Boolean,
|
171
|
+
required: true
|
172
|
+
},
|
173
|
+
type: {
|
174
|
+
type: String,
|
175
|
+
required: true
|
176
|
+
},
|
177
|
+
target: {
|
178
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
179
|
+
refPath: "creator.type",
|
180
|
+
required: true
|
181
|
+
}
|
182
|
+
}
|
183
|
+
});
|
184
|
+
schema.index({
|
185
|
+
"owner.target": 1,
|
186
|
+
"creator.target": 1
|
187
|
+
});
|
188
|
+
};
|
189
|
+
var metadata_schema = function applyMetadataSchema(schema, db) {
|
190
|
+
schema.add({
|
191
|
+
url: {
|
192
|
+
type: String,
|
193
|
+
required: true
|
194
|
+
},
|
195
|
+
tags: [{
|
196
|
+
type: String
|
197
|
+
}]
|
198
|
+
});
|
199
|
+
schema.index({
|
200
|
+
"url": 1,
|
201
|
+
"tags": 1
|
202
|
+
});
|
203
|
+
};
|
204
|
+
export {
|
205
|
+
common_schema as c,
|
206
|
+
engagement_schema as e,
|
207
|
+
metadata_schema as m,
|
208
|
+
ownership_schema as o,
|
209
|
+
queryProcessor as q
|
210
|
+
};
|