@ozdao/prometheus-framework 0.2.111 → 0.2.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common.schema-BFhpUXUt.js +12 -0
- package/dist/common.schema-ChBVARrs.mjs +13 -0
- package/dist/community.server.js +6 -4
- package/dist/community.server.mjs +4 -2
- package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
- package/dist/engagement.schema-fdLNO2_6.js +27 -0
- package/dist/events.server.js +6 -4
- package/dist/events.server.mjs +4 -2
- package/dist/files.server.js +81 -29
- package/dist/files.server.mjs +81 -29
- package/dist/gallery.server.js +66 -39
- package/dist/gallery.server.mjs +66 -39
- package/dist/main-8APITHuW.mjs +14201 -0
- package/dist/main-8N2Jmsuk.js +2 -2
- package/dist/main-BJvlNekm.mjs +5 -5
- package/dist/main-BQisDfLk.js +2 -2
- package/dist/main-BV1Yv9Hy.js +2 -2
- package/dist/main-Bw0PvTs-.mjs +5 -5
- package/dist/main-ByCtZbHD.mjs +5 -5
- package/dist/main-CX2ISR43.mjs +5 -5
- package/dist/main-CXObXjv-.js +2 -2
- package/dist/main-CkeuHuCY.mjs +5 -5
- package/dist/main-CnfcBov2.mjs +5 -5
- package/dist/main-D50VqYhy.js +2 -2
- package/dist/main-D8gNZLSa.js +2 -2
- package/dist/main-DPsHxX0l.mjs +5 -5
- package/dist/main-DTlUA63C.mjs +5 -5
- package/dist/main-DfD5hLQo.mjs +5 -5
- package/dist/main-Dh6Zfei9.js +2 -2
- package/dist/main-DmNP-t33.mjs +5 -5
- package/dist/main-DwyUYWFX.js +2 -2
- package/dist/main-VcxO-jAt.js +92 -0
- package/dist/main-cffh4bbv.js +2 -2
- package/dist/main-pGo7JpSP.js +2 -2
- package/dist/main.css +1 -1
- package/dist/metadata.schema-6slGhpQS.js +40 -0
- package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +45 -42
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +40 -37
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +56 -59
- package/dist/organizations.server.mjs +56 -59
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +5 -5
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +121 -0
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.js +1 -0
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +35 -35
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +102 -0
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/users.client.js +8 -6
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +14 -11
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJoJAetd.mjs +162 -0
- package/dist/queryProcessor-DWf9tsis.js +161 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-TGdVOTnw.js +1 -0
- package/dist/web-_W9a_nWD.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +40 -43
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/DatePicker/Calendar.vue +29 -31
- package/src/components/Dropdown/Dropdown.vue +5 -11
- package/src/components/Feed/Feed.vue +98 -15
- package/src/components/FieldTags/BlockTags.vue +3 -3
- package/src/components/FieldTags/FieldTags.vue +1 -1
- package/src/components/FieldTags/vue-tags-input.scss +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +5 -30
- package/src/components/Map/LoaderGMaps.js +66 -0
- package/src/components/Map/Map.vue +2 -1
- package/src/components/Marquee/Marquee.vue +1 -1
- package/src/components/Radio/Radio.vue +36 -13
- package/src/configurator/components/pages/Styles.vue +1 -1
- package/src/modules/auth/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
- package/src/modules/auth/components/pages/Invite.vue +2 -2
- package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
- package/src/modules/auth/components/pages/SignIn.vue +4 -4
- package/src/modules/auth/components/pages/SignUp.vue +3 -3
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
- package/src/modules/community/components/sections/Comments.vue +2 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/Video.vue +2 -2
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +32 -32
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +3 -3
- package/src/modules/events/components/pages/Events.vue +4 -3
- package/src/modules/events/components/sections/Feed.vue +3 -3
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +8 -6
- package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
- package/src/modules/files/routes/files.routes.js +11 -9
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
- package/src/modules/gallery/controllers/gallery.controller.js +57 -38
- package/src/modules/gallery/models/photo.model.js +20 -11
- package/src/modules/gallery/routes/gallery.routes.js +3 -3
- package/src/modules/gallery/store/gallery.js +3 -78
- package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
- package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
- package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
- package/src/modules/globals/components/layouts/Client.vue +273 -0
- package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
- package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
- package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
- package/src/modules/globals/models/common.schema.js +1 -1
- package/src/modules/globals/services/globals.store.js +11 -6
- package/src/modules/globals/store/globals.js +12 -10
- package/src/modules/icons/logos/Logotype.vue +23 -19
- package/src/modules/icons/navigation/IconCalendar.vue +18 -0
- package/src/modules/icons/navigation/IconFilter.vue +18 -0
- package/src/modules/icons/navigation/IconSearch.vue +1 -3
- package/src/modules/icons/navigation/IconSort.vue +21 -0
- package/src/modules/landing/components/pages/Home.vue +4 -4
- package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
- package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
- package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
- package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
- package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
- package/src/modules/marketplace/components/sections/Filters.vue +63 -115
- package/src/modules/marketplace/store/marketplace.js +22 -167
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
- package/src/modules/orders/components/pages/Order.vue +8 -8
- package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -5
- package/src/modules/orders/components/partials/ShopCart.vue +5 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/pages/Department.vue +3 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +4 -4
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
- package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +103 -93
- package/src/modules/organizations/models/organization.model.js +10 -7
- package/src/modules/organizations/store/organizations.js +3 -34
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/pages/Categories.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +4 -4
- package/src/modules/products/components/pages/Product.vue +1 -5
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/products.client.js +0 -2
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +0 -2
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +3 -3
- package/src/modules/users/components/pages/Profile.vue +5 -5
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/sections/FeaturedUsers.vue +76 -14
- package/src/modules/users/users.client.js +5 -0
- package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
- package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
- package/src/styles/base/borders.scss +4 -0
- package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
- package/src/styles/config.scss +15 -9
- package/src/styles/layout.scss +37 -8
- package/src/styles/typography.scss +24 -24
- package/src/modules/products/components/sections/SortProducts.vue +0 -74
- /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -54,25 +54,25 @@ const O = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"
|
|
54
54
|
};
|
55
55
|
for (const [r, s] of e.entries()) {
|
56
56
|
let i, o, m = [];
|
57
|
-
w(s) ? (i = s.type, o = s.name
|
58
|
-
const { baseType: c, isArray:
|
57
|
+
w(s) ? (i = s.type, o = s.name || `${t}/${r}`, m = s.components) : typeof s == "string" ? (i = s, o = `${t}/${r}`) : Array.isArray(s) && (s[0] && typeof s[0] == "string" && s[0].startsWith("tuple") && !Array.isArray(s[0]) && s[1] && Array.isArray(s[1]) ? (i = s[0], o = `${t}/${r}`, m = s[1]) : (i = "tuple", o = `${t}/${r}`, m = s));
|
58
|
+
const { baseType: c, isArray: l, arraySizes: u } = I(i);
|
59
59
|
let p, f = n;
|
60
|
-
for (let a =
|
60
|
+
for (let a = u.length - 1; a > 0; a -= 1)
|
61
61
|
p = {
|
62
62
|
type: "array",
|
63
63
|
$id: o,
|
64
64
|
items: [],
|
65
|
-
maxItems:
|
66
|
-
minItems:
|
67
|
-
},
|
68
|
-
if (c === "tuple" && !
|
65
|
+
maxItems: u[a],
|
66
|
+
minItems: u[a]
|
67
|
+
}, u[a] < 0 && (delete p.maxItems, delete p.minItems), Array.isArray(f.items) ? f.items.length === 0 ? f.items = [p] : f.items.push(p) : f.items = [f.items, p], f = p;
|
68
|
+
if (c === "tuple" && !l) {
|
69
69
|
const a = A(m, o);
|
70
70
|
a.$id = o, f.items.push(a);
|
71
|
-
} else if (c === "tuple" &&
|
72
|
-
const a =
|
71
|
+
} else if (c === "tuple" && l) {
|
72
|
+
const a = u[0], h = Object.assign({ type: "array", $id: o, items: A(m, o) }, a >= 0 && { minItems: a, maxItems: a });
|
73
73
|
f.items.push(h);
|
74
|
-
} else if (
|
75
|
-
const a =
|
74
|
+
} else if (l) {
|
75
|
+
const a = u[0], h = Object.assign({ type: "array", $id: o, items: g(i) }, a >= 0 && { minItems: a, maxItems: a });
|
76
76
|
f.items.push(h);
|
77
77
|
} else
|
78
78
|
Array.isArray(f.items) ? f.items.push(Object.assign({ $id: o }, g(i))) : f.items.push(Object.assign({ $id: o }, g(i)));
|
@@ -84,10 +84,10 @@ const O = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"
|
|
84
84
|
for (const [s, i] of e.entries()) {
|
85
85
|
let o, m, c = [];
|
86
86
|
w(i) ? (o = i.type, m = i.name, c = i.components) : typeof i == "string" ? o = i : Array.isArray(i) && (i[1] && Array.isArray(i[1]) ? (o = i[0], c = i[1]) : (o = "tuple", c = i));
|
87
|
-
const { baseType:
|
88
|
-
if (
|
87
|
+
const { baseType: l, isArray: u, arraySizes: p } = I(o), f = Array.isArray(t) ? t[s] : t[m];
|
88
|
+
if (l === "tuple" && !u)
|
89
89
|
r.push(d(c, f, n));
|
90
|
-
else if (
|
90
|
+
else if (l === "tuple" && u) {
|
91
91
|
const a = [];
|
92
92
|
for (const h of f)
|
93
93
|
if (p.length > 1) {
|
@@ -141,7 +141,7 @@ function M(e) {
|
|
141
141
|
}
|
142
142
|
return t;
|
143
143
|
}
|
144
|
-
const
|
144
|
+
const y = {
|
145
145
|
zero: 48,
|
146
146
|
nine: 57,
|
147
147
|
A: 65,
|
@@ -150,12 +150,12 @@ const u = {
|
|
150
150
|
f: 102
|
151
151
|
};
|
152
152
|
function x(e) {
|
153
|
-
if (e >=
|
154
|
-
return e -
|
155
|
-
if (e >=
|
156
|
-
return e - (
|
157
|
-
if (e >=
|
158
|
-
return e - (
|
153
|
+
if (e >= y.zero && e <= y.nine)
|
154
|
+
return e - y.zero;
|
155
|
+
if (e >= y.A && e <= y.F)
|
156
|
+
return e - (y.A - 10);
|
157
|
+
if (e >= y.a && e <= y.f)
|
158
|
+
return e - (y.a - 10);
|
159
159
|
}
|
160
160
|
function R(e) {
|
161
161
|
let t = 0;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../utils.cjs"),s=require("./string.cjs"),y=r=>{var e,i;return r instanceof Uint8Array||((e=r==null?void 0:r.constructor)===null||e===void 0?void 0:e.name)==="Uint8Array"||((i=r==null?void 0:r.constructor)===null||i===void 0?void 0:i.name)==="Buffer"},f=(r,e={abiType:"bytes"})=>{if(typeof r!="string"&&!Array.isArray(r)&&!y(r)||typeof r=="string"&&s.isHexStrict(r)&&r.startsWith("-")||typeof r=="string"&&!s.isHexStrict(r))return!1;let i;if(typeof r=="string"){if(r.length%2!==0)return!1;i=n.hexToUint8Array(r)}else if(Array.isArray(r)){if(r.some(t=>t<0||t>255||!Number.isInteger(t)))return!1;i=new Uint8Array(r)}else i=r;if(e!=null&&e.abiType){const{baseTypeSize:t}=n.parseBaseType(e.abiType);return t?i.length===t:!0}return e!=null&&e.size?i.length===(e==null?void 0:e.size):!0};exports.isBytes=f;exports.isUint8Array=y;
|
@@ -1,29 +1,29 @@
|
|
1
1
|
import { hexToUint8Array as s, parseBaseType as f } from "../utils.js";
|
2
2
|
import { isHexStrict as n } from "./string.js";
|
3
3
|
const y = (r) => {
|
4
|
-
var e;
|
5
|
-
return r instanceof Uint8Array || ((e = r == null ? void 0 : r.constructor) === null || e === void 0 ? void 0 : e.name) === "Uint8Array";
|
4
|
+
var e, i;
|
5
|
+
return r instanceof Uint8Array || ((e = r == null ? void 0 : r.constructor) === null || e === void 0 ? void 0 : e.name) === "Uint8Array" || ((i = r == null ? void 0 : r.constructor) === null || i === void 0 ? void 0 : i.name) === "Buffer";
|
6
6
|
}, c = (r, e = {
|
7
7
|
abiType: "bytes"
|
8
8
|
}) => {
|
9
9
|
if (typeof r != "string" && !Array.isArray(r) && !y(r) || typeof r == "string" && n(r) && r.startsWith("-") || typeof r == "string" && !n(r))
|
10
10
|
return !1;
|
11
|
-
let
|
11
|
+
let i;
|
12
12
|
if (typeof r == "string") {
|
13
13
|
if (r.length % 2 !== 0)
|
14
14
|
return !1;
|
15
|
-
|
15
|
+
i = s(r);
|
16
16
|
} else if (Array.isArray(r)) {
|
17
|
-
if (r.some((
|
17
|
+
if (r.some((t) => t < 0 || t > 255 || !Number.isInteger(t)))
|
18
18
|
return !1;
|
19
|
-
|
19
|
+
i = new Uint8Array(r);
|
20
20
|
} else
|
21
|
-
|
21
|
+
i = r;
|
22
22
|
if (e != null && e.abiType) {
|
23
|
-
const { baseTypeSize:
|
24
|
-
return
|
23
|
+
const { baseTypeSize: t } = f(e.abiType);
|
24
|
+
return t ? i.length === t : !0;
|
25
25
|
}
|
26
|
-
return e != null && e.size ?
|
26
|
+
return e != null && e.size ? i.length === (e == null ? void 0 : e.size) : !0;
|
27
27
|
};
|
28
28
|
export {
|
29
29
|
c as isBytes,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../utils.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../utils.cjs"),b=require("./string.cjs"),g=(e,i)=>{if(i===BigInt(0))return BigInt(1);let t=e;for(let n=1;n<i;n+=1)t*=e;return t},y=(e,i={abiType:"uint"})=>{if(!["number","string","bigint"].includes(typeof e)||typeof e=="string"&&e.length===0)return!1;let t;if(i!=null&&i.abiType){const{baseTypeSize:r}=f.parseBaseType(i.abiType);r&&(t=r)}else i.bitSize&&(t=i.bitSize);const n=g(BigInt(2),BigInt(t??256))-BigInt(1);try{const r=typeof e=="string"&&b.isHexStrict(e)?BigInt(f.hexToNumber(e)):BigInt(e);return r>=0&&r<=n}catch{return!1}},c=(e,i={abiType:"int"})=>{if(!["number","string","bigint"].includes(typeof e)||typeof e=="number"&&e>Number.MAX_SAFE_INTEGER)return!1;let t;if(i!=null&&i.abiType){const{baseTypeSize:s,baseType:u}=f.parseBaseType(i.abiType);if(u!=="int")return!1;s&&(t=s)}else i.bitSize&&(t=i.bitSize);const n=g(BigInt(2),BigInt((t??256)-1)),r=BigInt(-1)*g(BigInt(2),BigInt((t??256)-1));try{const s=typeof e=="string"&&b.isHexStrict(e)?BigInt(f.hexToNumber(e)):BigInt(e);return s>=r&&s<=n}catch{return!1}},o=e=>!!(c(e)||typeof e=="string"&&/[0-9.]/.test(e)&&e.indexOf(".")===e.lastIndexOf(".")||typeof e=="number");exports.bigintPower=g;exports.isInt=c;exports.isNumber=o;exports.isUInt=y;
|
@@ -1,52 +1,54 @@
|
|
1
|
-
import { parseBaseType as
|
1
|
+
import { parseBaseType as g, hexToNumber as b } from "../utils.js";
|
2
2
|
import { isHexStrict as c } from "./string.js";
|
3
|
-
const s = (
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
const s = (t, e) => {
|
4
|
+
if (e === BigInt(0))
|
5
|
+
return BigInt(1);
|
6
|
+
let i = t;
|
7
|
+
for (let n = 1; n < e; n += 1)
|
8
|
+
i *= t;
|
9
|
+
return i;
|
10
|
+
}, B = (t, e = {
|
9
11
|
abiType: "uint"
|
10
12
|
}) => {
|
11
|
-
if (!["number", "string", "bigint"].includes(typeof
|
13
|
+
if (!["number", "string", "bigint"].includes(typeof t) || typeof t == "string" && t.length === 0)
|
12
14
|
return !1;
|
13
|
-
let
|
14
|
-
if (
|
15
|
-
const { baseTypeSize: r } =
|
16
|
-
r && (
|
15
|
+
let i;
|
16
|
+
if (e != null && e.abiType) {
|
17
|
+
const { baseTypeSize: r } = g(e.abiType);
|
18
|
+
r && (i = r);
|
17
19
|
} else
|
18
|
-
|
19
|
-
const n = s(BigInt(2), BigInt(
|
20
|
+
e.bitSize && (i = e.bitSize);
|
21
|
+
const n = s(BigInt(2), BigInt(i ?? 256)) - BigInt(1);
|
20
22
|
try {
|
21
|
-
const r = typeof
|
23
|
+
const r = typeof t == "string" && c(t) ? BigInt(b(t)) : BigInt(t);
|
22
24
|
return r >= 0 && r <= n;
|
23
25
|
} catch {
|
24
26
|
return !1;
|
25
27
|
}
|
26
|
-
},
|
28
|
+
}, I = (t, e = {
|
27
29
|
abiType: "int"
|
28
30
|
}) => {
|
29
|
-
if (!["number", "string", "bigint"].includes(typeof
|
31
|
+
if (!["number", "string", "bigint"].includes(typeof t) || typeof t == "number" && t > Number.MAX_SAFE_INTEGER)
|
30
32
|
return !1;
|
31
|
-
let
|
32
|
-
if (
|
33
|
-
const { baseTypeSize: f, baseType: y } =
|
33
|
+
let i;
|
34
|
+
if (e != null && e.abiType) {
|
35
|
+
const { baseTypeSize: f, baseType: y } = g(e.abiType);
|
34
36
|
if (y !== "int")
|
35
37
|
return !1;
|
36
|
-
f && (
|
38
|
+
f && (i = f);
|
37
39
|
} else
|
38
|
-
|
39
|
-
const n = s(BigInt(2), BigInt((
|
40
|
+
e.bitSize && (i = e.bitSize);
|
41
|
+
const n = s(BigInt(2), BigInt((i ?? 256) - 1)), r = BigInt(-1) * s(BigInt(2), BigInt((i ?? 256) - 1));
|
40
42
|
try {
|
41
|
-
const f = typeof
|
43
|
+
const f = typeof t == "string" && c(t) ? BigInt(b(t)) : BigInt(t);
|
42
44
|
return f >= r && f <= n;
|
43
45
|
} catch {
|
44
46
|
return !1;
|
45
47
|
}
|
46
|
-
},
|
48
|
+
}, m = (t) => !!(I(t) || typeof t == "string" && /[0-9.]/.test(t) && t.indexOf(".") === t.lastIndexOf(".") || typeof t == "number");
|
47
49
|
export {
|
48
50
|
s as bigintPower,
|
49
|
-
|
50
|
-
|
51
|
-
|
51
|
+
I as isInt,
|
52
|
+
m as isNumber,
|
53
|
+
B as isUInt
|
52
54
|
};
|
package/dist/orders.server.js
CHANGED
@@ -3,7 +3,7 @@ const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
|
3
3
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
4
4
|
const profile_schema = require("./profile.schema-CkOhhf37.js");
|
5
5
|
const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
|
6
|
-
const queryProcessor = require("./queryProcessor-
|
6
|
+
const queryProcessor = require("./queryProcessor-DWf9tsis.js");
|
7
7
|
const mailing = require("./mailing-BX0q8DIs.js");
|
8
8
|
const index = require("./index-BCCiEK_u.js");
|
9
9
|
const require$$0 = require("node-cache");
|
package/dist/orders.server.mjs
CHANGED
@@ -2,7 +2,7 @@ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
|
2
2
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
3
3
|
import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
|
4
4
|
import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
|
5
|
-
import { q as queryProcessor } from "./queryProcessor-
|
5
|
+
import { q as queryProcessor } from "./queryProcessor-BJoJAetd.mjs";
|
6
6
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
7
7
|
import { s as server } from "./index-B6a1mPgp.mjs";
|
8
8
|
import require$$0 from "node-cache";
|
@@ -7,10 +7,10 @@ const require$$3 = require("uuidv4");
|
|
7
7
|
const require$$0 = require("mongoose");
|
8
8
|
const require$$5 = require("@googlemaps/google-maps-services-js");
|
9
9
|
const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
10
|
+
const queryProcessor = require("./queryProcessor-DWf9tsis.js");
|
11
11
|
const mailing = require("./mailing-BX0q8DIs.js");
|
12
12
|
const index = require("./index-BCCiEK_u.js");
|
13
|
-
const
|
13
|
+
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
14
14
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
15
15
|
const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
|
16
16
|
const controllerFactory$6 = (db) => {
|
@@ -85,7 +85,7 @@ const controllerFactory$6 = (db) => {
|
|
85
85
|
};
|
86
86
|
var departments_controller = controllerFactory$6;
|
87
87
|
const jwt = require$$0$1;
|
88
|
-
const ObjectId$
|
88
|
+
const ObjectId$1 = require$$0.Types.ObjectId;
|
89
89
|
const { Client } = require$$5;
|
90
90
|
const client = new Client({});
|
91
91
|
const addUserStatusFields = addMembersQuantity$1.addUserStatusFields_1;
|
@@ -96,23 +96,19 @@ const controllerFactory$5 = (db) => {
|
|
96
96
|
db.user;
|
97
97
|
db.role;
|
98
98
|
const read = async (req, res2) => {
|
99
|
-
const Organization2 = db.organization;
|
100
|
-
db.membership;
|
101
|
-
db.user;
|
102
|
-
db.role;
|
103
99
|
const sortParam = req.query.sortParam || "numberOfProducts";
|
104
100
|
const sortOrder = req.query.sortOrder || "desc";
|
105
101
|
const sort = {
|
102
|
+
...sortParam === "distance" ? { "distanceExist": -1 } : {},
|
106
103
|
"numberOfProducts": -1,
|
107
104
|
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
108
105
|
"_id": 1
|
109
106
|
};
|
110
|
-
|
107
|
+
console.log(sort);
|
108
|
+
const pagination = {
|
111
109
|
skip: parseInt(req.query.skip) || 0,
|
112
110
|
limit: parseInt(req.query.limit) || 20
|
113
111
|
};
|
114
|
-
const categories = req.query.categories?.split(",") || [];
|
115
|
-
const delivery = req.query.delivery?.split(",") || [];
|
116
112
|
const prices = req.query.prices?.split(",") || [];
|
117
113
|
let priceConditions = prices.map((priceRange) => {
|
118
114
|
if (priceRange.startsWith("<"))
|
@@ -129,20 +125,36 @@ const controllerFactory$5 = (db) => {
|
|
129
125
|
}));
|
130
126
|
}
|
131
127
|
const matchConditions = [
|
132
|
-
...req.query._id ? [{ _id: new ObjectId$
|
133
|
-
...req.query.owner ? [{ owner: new ObjectId$
|
134
|
-
...req.query.member ? [{ "memberships.user": new ObjectId$
|
135
|
-
...req.query.subscriber ? [{ "memberships.user": new ObjectId$
|
136
|
-
...req.query.postable ? [{ $or: [{ $and: [{ types: { $elemMatch: { $eq: "public" } } }, { "memberships.user": new ObjectId$
|
128
|
+
...req.query._id ? [{ _id: new ObjectId$1(req.query._id) }] : [],
|
129
|
+
...req.query.owner ? [{ owner: new ObjectId$1(req.query.owner) }] : [],
|
130
|
+
...req.query.member ? [{ "memberships.user": new ObjectId$1(req.query.member), "memberships.role": "member" }] : [],
|
131
|
+
...req.query.subscriber ? [{ "memberships.user": new ObjectId$1(req.query.subscriber), "memberships.role": "subscriber" }] : [],
|
132
|
+
...req.query.postable ? [{ $or: [{ $and: [{ types: { $elemMatch: { $eq: "public" } } }, { "memberships.user": new ObjectId$1(req.query.postable) }] }, { $and: [{ types: { $elemMatch: { $in: ["exclusive", "hidden"] } } }, { "memberships.user": new ObjectId$1(req.query.postable) }, { "memberships.role": { $ne: "subscriber" } }] }] }] : [],
|
137
133
|
...req.query.types ? [{ types: { $in: req.query.types } }] : [],
|
138
134
|
// Если req.query.types - строка
|
139
135
|
// to remove
|
140
|
-
...req.query.onlyuser ? [{ "memberships.user": new ObjectId$
|
141
|
-
...categories.length > 0 ? [{ "products.category": { $in: categories } }] : [],
|
142
|
-
...delivery.length > 0 ? [{ "spots.delivery": { $all: delivery } }] : [],
|
136
|
+
...req.query.onlyuser ? [{ "memberships.user": new ObjectId$1(req.query.onlyuser) }] : [],
|
137
|
+
...req.query.categories?.split(",").length > 0 ? [{ "products.category": { $in: req.query.categories?.split(",") } }] : [],
|
138
|
+
...req.query.delivery?.split(",").length > 0 ? [{ "spots.delivery": { $all: req.query.delivery?.split(",") } }] : [],
|
143
139
|
...priceConditions.length > 0 ? [{ $or: priceConditions }] : [],
|
144
140
|
...req.query.contain ? containConditions : []
|
145
141
|
];
|
142
|
+
const search = req.query.search;
|
143
|
+
if (search) {
|
144
|
+
const parts = search.split(".");
|
145
|
+
let regexPattern = "";
|
146
|
+
if (parts.length === 2) {
|
147
|
+
regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
|
148
|
+
} else {
|
149
|
+
regexPattern = search.substr(0, search.length - 1) + ".{1}";
|
150
|
+
}
|
151
|
+
matchConditions.push({
|
152
|
+
$or: [
|
153
|
+
{ "profile.name": { $regex: regexPattern, $options: "i" } },
|
154
|
+
{ "products.name": { $regex: regexPattern, $options: "i" } }
|
155
|
+
]
|
156
|
+
});
|
157
|
+
}
|
146
158
|
let { location, address, locationRadius, city, state, country } = req.query;
|
147
159
|
let userLocation = { coordinates: [0, 0] };
|
148
160
|
if (!location && (address || city || state || country)) {
|
@@ -181,22 +193,6 @@ const controllerFactory$5 = (db) => {
|
|
181
193
|
}
|
182
194
|
});
|
183
195
|
}
|
184
|
-
const search = req.query.search;
|
185
|
-
if (search) {
|
186
|
-
const parts = search.split(".");
|
187
|
-
let regexPattern = "";
|
188
|
-
if (parts.length === 2) {
|
189
|
-
regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
|
190
|
-
} else {
|
191
|
-
regexPattern = search.substr(0, search.length - 1) + ".{1}";
|
192
|
-
}
|
193
|
-
matchConditions.push({
|
194
|
-
$or: [
|
195
|
-
{ "profile.name": { $regex: regexPattern, $options: "i" } },
|
196
|
-
{ "products.name": { $regex: regexPattern, $options: "i" } }
|
197
|
-
]
|
198
|
-
});
|
199
|
-
}
|
200
196
|
if (location) {
|
201
197
|
console.log(location);
|
202
198
|
if (typeof location === "string") {
|
@@ -248,6 +244,11 @@ const controllerFactory$5 = (db) => {
|
|
248
244
|
as: "products"
|
249
245
|
}
|
250
246
|
},
|
247
|
+
{
|
248
|
+
$addFields: {
|
249
|
+
numberOfProducts: { $size: "$products" }
|
250
|
+
}
|
251
|
+
},
|
251
252
|
{
|
252
253
|
$lookup: {
|
253
254
|
from: "blogposts",
|
@@ -256,11 +257,6 @@ const controllerFactory$5 = (db) => {
|
|
256
257
|
as: "blogposts"
|
257
258
|
}
|
258
259
|
},
|
259
|
-
{
|
260
|
-
$addFields: {
|
261
|
-
numberOfProducts: { $size: "$products" }
|
262
|
-
}
|
263
|
-
},
|
264
260
|
{
|
265
261
|
$lookup: {
|
266
262
|
from: "departments",
|
@@ -326,7 +322,13 @@ const controllerFactory$5 = (db) => {
|
|
326
322
|
{
|
327
323
|
$addFields: {
|
328
324
|
distance: { $min: "$spots.distance" }
|
329
|
-
|
325
|
+
}
|
326
|
+
},
|
327
|
+
{
|
328
|
+
$addFields: {
|
329
|
+
distanceExist: {
|
330
|
+
$cond: { if: { $eq: [{ $type: "$distance" }, "double"] }, then: true, else: false }
|
331
|
+
}
|
330
332
|
}
|
331
333
|
},
|
332
334
|
{
|
@@ -339,20 +341,14 @@ const controllerFactory$5 = (db) => {
|
|
339
341
|
},
|
340
342
|
addMembersQuantity(),
|
341
343
|
addUserStatusFields(req.query.user),
|
342
|
-
{
|
343
|
-
$addFields: {
|
344
|
-
numberOfProducts: { $size: "$products" }
|
345
|
-
}
|
346
|
-
},
|
347
344
|
...matchStage != null ? [matchStage] : [],
|
348
345
|
{ $sort: sort },
|
349
|
-
{ $skip:
|
350
|
-
{ $limit:
|
346
|
+
{ $skip: pagination.skip },
|
347
|
+
{ $limit: pagination.limit }
|
351
348
|
];
|
352
349
|
try {
|
353
350
|
console.log(stages);
|
354
|
-
const organizations = await
|
355
|
-
console.log(organizations);
|
351
|
+
const organizations = await Organization.aggregate(stages);
|
356
352
|
res2.status(200).send(organizations);
|
357
353
|
} catch (err) {
|
358
354
|
console.log(err);
|
@@ -427,7 +423,7 @@ const controllerFactory$5 = (db) => {
|
|
427
423
|
if (!organization) {
|
428
424
|
return res2.status(404).send({ message: "Organization not found" });
|
429
425
|
}
|
430
|
-
Membership.deleteMany({
|
426
|
+
Membership.deleteMany({ target: req.params._id }).then(() => {
|
431
427
|
const newToken = jwt.sign({
|
432
428
|
_id: user._id,
|
433
429
|
organization: null
|
@@ -453,7 +449,7 @@ const controllerFactory$5 = (db) => {
|
|
453
449
|
};
|
454
450
|
};
|
455
451
|
var organizations_controller = controllerFactory$5;
|
456
|
-
const ObjectId
|
452
|
+
const ObjectId = require$$0.Types.ObjectId;
|
457
453
|
const queryProcessorGlobals = queryProcessor.queryProcessor;
|
458
454
|
const controllerFactory$4 = (db) => {
|
459
455
|
const Membership = db.membership;
|
@@ -481,9 +477,9 @@ const controllerFactory$4 = (db) => {
|
|
481
477
|
},
|
482
478
|
{
|
483
479
|
$match: {
|
484
|
-
...req.query.user && { user: new ObjectId
|
480
|
+
...req.query.user && { user: new ObjectId(req.query.user) },
|
485
481
|
...req.query.type && { type: req.query.type },
|
486
|
-
...req.query.target && { target: new ObjectId
|
482
|
+
...req.query.target && { target: new ObjectId(req.query.target) },
|
487
483
|
...req.query.role && { role: { $in: req.query.role } },
|
488
484
|
...req.query.search && {
|
489
485
|
$or: [
|
@@ -545,7 +541,7 @@ const controllerFactory$4 = (db) => {
|
|
545
541
|
const deleteMembership = async (req, res2) => {
|
546
542
|
console.log(req.body);
|
547
543
|
try {
|
548
|
-
const membership = await Membership.findOneAndDelete({ _id: new ObjectId
|
544
|
+
const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
|
549
545
|
if (!membership) {
|
550
546
|
return res2.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
|
551
547
|
} else {
|
@@ -953,12 +949,12 @@ var department_model = (mongoose) => {
|
|
953
949
|
const Department = mongoose.model("Department", departmentSchema);
|
954
950
|
return Department;
|
955
951
|
};
|
956
|
-
const
|
957
|
-
var organization_model = (
|
958
|
-
const OrganizationSchema = new mongoose.Schema({
|
952
|
+
const applyEngagementSchema = engagement_schema.engagement_schema;
|
953
|
+
var organization_model = (db) => {
|
954
|
+
const OrganizationSchema = new db.mongoose.Schema({
|
959
955
|
// Creator and owner of organizations
|
960
956
|
owner: {
|
961
|
-
type: ObjectId,
|
957
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
962
958
|
ref: "User",
|
963
959
|
required: true
|
964
960
|
},
|
@@ -1019,7 +1015,8 @@ var organization_model = (mongoose) => {
|
|
1019
1015
|
}, {
|
1020
1016
|
timestamps: true
|
1021
1017
|
});
|
1022
|
-
|
1018
|
+
applyEngagementSchema(OrganizationSchema);
|
1019
|
+
const Organization = db.mongoose.model("Organization", OrganizationSchema);
|
1023
1020
|
return Organization;
|
1024
1021
|
};
|
1025
1022
|
var membership_model = (mongoose) => {
|