@ozdao/martyrs 0.2.601 → 0.2.603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abac-BPl9Bmf9.js → abac-Blt8bUTL.js} +3 -3
- package/dist/{addUserStatusFields-Cc-JpmPo.js → addUserStatusFields-CjV_sbh7.js} +2 -2
- package/dist/auth.server.js +57 -2
- package/dist/builder.js +148 -85
- package/dist/community.server.js +11 -11
- package/dist/core.server.js +2 -2
- package/dist/{core.verifier-gPPX_jhf.js → core.verifier-DVB2a21y.js} +6 -3
- package/dist/{crud-DpOXTZep.js → crud-BT5FIvQC.js} +2 -3
- package/dist/engagement.schema-B-Cc_NsG.js +6 -0
- package/dist/events.server.js +3 -3
- package/dist/gallery.server.js +1 -1
- package/dist/governance.server.js +1632 -0
- package/dist/icons.server.js +267 -0
- package/dist/inventory.server.js +6 -6
- package/dist/martyrs/dist/martyrs.es3.js +116 -0
- package/dist/martyrs/dist/martyrs.es3.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es39.js +124 -0
- package/dist/martyrs/dist/martyrs.es39.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es43.js +30 -0
- package/dist/martyrs/dist/martyrs.es43.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es44.js +28 -0
- package/dist/martyrs/dist/martyrs.es44.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es46.js +10 -0
- package/dist/martyrs/dist/martyrs.es46.js.map +1 -0
- package/dist/martyrs/src/components/Address/{Address.vue.js → Address.vue2.js} +2 -2
- package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
- package/dist/martyrs/src/components/Block/Block.vue.js.map +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +8 -5
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -0
- package/dist/martyrs/src/components/EditImages/{EditImages.vue2.js → EditImages.vue.js} +2 -2
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +4 -4
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue.js → LocationMarker.vue2.js} +2 -2
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
- package/dist/martyrs/src/components/Table/StatusBadge.vue.js +19 -10
- package/dist/martyrs/src/components/Table/StatusBadge.vue.js.map +1 -1
- package/dist/martyrs/src/components/Text/Text.vue.js +1 -1
- package/dist/martyrs/src/components/Text/Text.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +17 -21
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +13 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +42 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +34 -66
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.router.js +0 -53
- package/dist/martyrs/src/modules/auth/views/router/users.router.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +515 -103
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +1 -3
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +1 -32
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +49 -8
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +10 -4
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +28 -17
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +36 -28
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/router/community.backoffice.router.js +21 -0
- package/dist/martyrs/src/modules/community/router/community.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/community.organization.router.js +70 -0
- package/dist/martyrs/src/modules/community/router/community.organization.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/community.router.js +73 -0
- package/dist/martyrs/src/modules/community/router/community.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/community.user.router.js +20 -0
- package/dist/martyrs/src/modules/community/router/community.user.router.js.map +1 -0
- package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Constructor.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +5 -3
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js +7 -2
- package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/ws.manager.js +11 -5
- package/dist/martyrs/src/modules/core/views/classes/ws.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/Card.vue.js +53 -18
- package/dist/martyrs/src/modules/core/views/components/blocks/Card.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +44 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +5 -5
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +9 -6
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +15 -15
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +27 -28
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +6 -6
- package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js +5 -7
- package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue2.js → Filters.vue.js} +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +28 -18
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js +3 -3
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/router/addRoutes.js +2 -3
- package/dist/martyrs/src/modules/core/views/router/addRoutes.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +10 -0
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +4 -4
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +9 -9
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -0
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +23 -33
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +13 -13
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +37 -15
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.backoffice.router.js +95 -0
- package/dist/martyrs/src/modules/events/router/events.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/events/router/events.organization.router.js +95 -0
- package/dist/martyrs/src/modules/events/router/events.organization.router.js.map +1 -0
- package/dist/martyrs/src/modules/events/router/events.router.js +73 -364
- package/dist/martyrs/src/modules/events/router/events.router.js.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.user.router.js +65 -0
- package/dist/martyrs/src/modules/events/router/events.user.router.js.map +1 -0
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
- package/dist/martyrs/src/modules/governance/configs/navigation.initiative.config.js +33 -0
- package/dist/martyrs/src/modules/governance/configs/navigation.initiative.config.js.map +1 -0
- package/dist/martyrs/src/modules/governance/governance.client.js +31 -0
- package/dist/martyrs/src/modules/governance/governance.client.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +110 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +105 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +110 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +106 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Governance.vue.js +52 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Governance.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +684 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +78 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +328 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +145 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +258 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +72 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +769 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +88 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +291 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +267 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +90 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Votings.vue.js +68 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Votings.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/EmptyState.vue.js +47 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/EmptyState.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +164 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +39 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VoteForm.vue.js +112 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VoteForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +187 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormInitiativeDetails.vue.js +555 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormInitiativeDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +187 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +171 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormVotingDetails.vue.js +179 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormVotingDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js +502 -0
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/initiatives.js +119 -0
- package/dist/martyrs/src/modules/governance/views/store/initiatives.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/sprints.js +99 -0
- package/dist/martyrs/src/modules/governance/views/store/sprints.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/tasks.js +115 -0
- package/dist/martyrs/src/modules/governance/views/store/tasks.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/votings.js +155 -0
- package/dist/martyrs/src/modules/governance/views/store/votings.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +70 -0
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/icons.client.js +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
- package/dist/martyrs/src/modules/icons/{icons.router.js → router/icons.router.js} +1 -1
- package/dist/martyrs/src/modules/icons/router/icons.router.js.map +1 -0
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +4 -4
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +4 -4
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +6 -6
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +7 -7
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +13 -13
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +16 -16
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +10 -10
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +6 -6
- package/dist/martyrs/src/modules/music/components/sections/PopularTracks.vue.js +63 -0
- package/dist/martyrs/src/modules/music/components/sections/PopularTracks.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/music.client.js +29 -25
- package/dist/martyrs/src/modules/music/music.client.js.map +1 -1
- package/dist/martyrs/src/modules/music/{music.router.js → router/music.router.js} +16 -16
- package/dist/martyrs/src/modules/music/router/music.router.js.map +1 -0
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +26 -27
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +118 -59
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +74 -54
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/{notifications.router.js → router/notifications.router.js} +3 -3
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +34 -44
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +47 -57
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +6 -6
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +7 -7
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +61 -54
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +43 -31
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +14 -14
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +19 -19
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +7 -10
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +7 -10
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +16 -16
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +11 -4
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +22 -15
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +63 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +9 -3
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -8
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +24 -30
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/organizations.client.js +42 -6
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +20 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.router.js +102 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.router.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.user.router.js +20 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.user.router.js.map +1 -0
- package/dist/martyrs/src/modules/pages/pages.client.js +1 -1
- package/dist/martyrs/src/modules/pages/pages.client.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/martyrs/src/modules/pages/{pages.router.js → views/router/pages.router.js} +8 -8
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +7 -7
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +5 -5
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +21 -21
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +4 -4
- package/dist/martyrs/src/modules/rents/rents.client.js +1 -1
- package/dist/martyrs/src/modules/rents/rents.client.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +7 -7
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +4 -4
- package/dist/martyrs/src/modules/rents/{rents.router.js → views/router/rents.router.js} +4 -4
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -0
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/martyrs/src/modules/reports/reports.client.js +1 -1
- package/dist/martyrs/src/modules/reports/reports.client.js.map +1 -1
- package/dist/martyrs/src/modules/reports/{reports.router.js → router/reports.router.js} +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -0
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +13 -13
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +22 -22
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +68 -0
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -0
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +48 -0
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -0
- package/dist/martyrs/src/modules/wallet/views/store/payments.store.js +59 -0
- package/dist/martyrs/src/modules/wallet/views/store/payments.store.js.map +1 -0
- package/dist/martyrs/src/modules/wallet/wallet.client.js +20 -0
- package/dist/martyrs/src/modules/wallet/wallet.client.js.map +1 -0
- package/dist/martyrs.es.js +84 -41
- package/dist/martyrs.es10.js +126 -0
- package/dist/martyrs.es100.js +33 -0
- package/dist/martyrs.es102.js +39 -0
- package/dist/martyrs.es103.js +31 -0
- package/dist/martyrs.es105.js +27 -0
- package/dist/martyrs.es106.js +8 -0
- package/dist/martyrs.es107.js +9 -0
- package/dist/martyrs.es108.js +79 -0
- package/dist/martyrs.es109.js +7 -0
- package/dist/martyrs.es11.js +49 -0
- package/dist/{web-n_ivHO3v.js → martyrs.es110.js} +1 -1
- package/dist/martyrs.es111.js +327 -0
- package/dist/martyrs.es112.js +121 -0
- package/dist/martyrs.es115.js +4 -0
- package/dist/martyrs.es116.js +25 -0
- package/dist/martyrs.es117.js +7 -0
- package/dist/martyrs.es118.js +10 -0
- package/dist/martyrs.es119.js +169 -0
- package/dist/martyrs.es12.js +94 -0
- package/dist/martyrs.es120.js +460 -0
- package/dist/martyrs.es121.js +42 -0
- package/dist/martyrs.es122.js +12 -0
- package/dist/martyrs.es123.js +52 -0
- package/dist/martyrs.es124.js +14 -0
- package/dist/martyrs.es125.js +47 -0
- package/dist/martyrs.es126.js +7 -0
- package/dist/martyrs.es127.js +131 -0
- package/dist/martyrs.es128.js +103 -0
- package/dist/martyrs.es129.js +89 -0
- package/dist/martyrs.es13.js +48 -0
- package/dist/martyrs.es130.js +40 -0
- package/dist/martyrs.es131.js +14 -0
- package/dist/martyrs.es132.js +42 -0
- package/dist/martyrs.es133.js +11 -0
- package/dist/martyrs.es134.js +6 -0
- package/dist/martyrs.es135.js +119 -0
- package/dist/martyrs.es136.js +20 -0
- package/dist/martyrs.es137.js +18 -0
- package/dist/martyrs.es138.js +35 -0
- package/dist/martyrs.es139.js +12 -0
- package/dist/martyrs.es14.js +101 -0
- package/dist/martyrs.es140.js +23 -0
- package/dist/martyrs.es141.js +12 -0
- package/dist/martyrs.es142.js +11 -0
- package/dist/martyrs.es143.js +47 -0
- package/dist/martyrs.es144.js +483 -0
- package/dist/martyrs.es145.js +8 -0
- package/dist/martyrs.es146.js +4 -0
- package/dist/martyrs.es147.js +14 -0
- package/dist/martyrs.es148.js +33 -0
- package/dist/martyrs.es149.js +19 -0
- package/dist/martyrs.es15.js +408 -0
- package/dist/martyrs.es150.js +22 -0
- package/dist/martyrs.es151.js +31 -0
- package/dist/martyrs.es152.js +23 -0
- package/dist/martyrs.es16.js +58 -0
- package/dist/martyrs.es17.js +44 -0
- package/dist/martyrs.es18.js +42 -0
- package/dist/martyrs.es19.js +27 -0
- package/dist/martyrs.es2.js +88 -0
- package/dist/martyrs.es20.js +13 -0
- package/dist/martyrs.es21.js +57 -0
- package/dist/martyrs.es22.js +104 -0
- package/dist/martyrs.es23.js +178 -0
- package/dist/martyrs.es24.js +123 -0
- package/dist/martyrs.es25.js +139 -0
- package/dist/martyrs.es26.js +21 -0
- package/dist/martyrs.es27.js +60 -0
- package/dist/martyrs.es28.js +75 -0
- package/dist/martyrs.es29.js +36 -0
- package/dist/martyrs.es3.js +116 -0
- package/dist/martyrs.es30.js +348 -0
- package/dist/martyrs.es31.js +83 -0
- package/dist/martyrs.es32.js +148 -0
- package/dist/martyrs.es33.js +175 -0
- package/dist/martyrs.es34.js +66 -0
- package/dist/martyrs.es35.js +57 -0
- package/dist/martyrs.es36.js +76 -0
- package/dist/martyrs.es37.js +101 -0
- package/dist/martyrs.es38.js +39 -0
- package/dist/martyrs.es39.js +124 -0
- package/dist/martyrs.es4.js +85 -0
- package/dist/martyrs.es40.js +120 -0
- package/dist/martyrs.es41.js +229 -0
- package/dist/martyrs.es43.js +29 -0
- package/dist/martyrs.es44.js +27 -0
- package/dist/martyrs.es46.js +9 -0
- package/dist/martyrs.es48.js +18 -0
- package/dist/martyrs.es5.js +395 -0
- package/dist/martyrs.es50.js +42 -0
- package/dist/martyrs.es52.js +255 -0
- package/dist/martyrs.es54.js +8 -0
- package/dist/martyrs.es6.js +70 -0
- package/dist/martyrs.es61.js +139 -0
- package/dist/martyrs.es65.js +28 -0
- package/dist/martyrs.es68.js +33 -0
- package/dist/martyrs.es69.js +37 -0
- package/dist/martyrs.es7.js +17 -0
- package/dist/martyrs.es71.js +114 -0
- package/dist/martyrs.es73.js +83 -0
- package/dist/martyrs.es74.js +52 -0
- package/dist/martyrs.es75.js +75 -0
- package/dist/martyrs.es76.js +176 -0
- package/dist/martyrs.es77.js +31 -0
- package/dist/martyrs.es78.js +38 -0
- package/dist/martyrs.es8.js +127 -0
- package/dist/martyrs.es81.js +32 -0
- package/dist/martyrs.es86.js +37 -0
- package/dist/martyrs.es89.js +37 -0
- package/dist/martyrs.es9.js +396 -0
- package/dist/martyrs.es91.js +63 -0
- package/dist/martyrs.es92.js +7 -0
- package/dist/martyrs.es93.js +35 -0
- package/dist/martyrs.es95.js +41 -0
- package/dist/martyrs.es96.js +59 -0
- package/dist/martyrs.es97.js +123 -0
- package/dist/martyrs.es98.js +43 -0
- package/dist/martyrs.es99.js +86 -0
- package/dist/music.server.js +11 -11
- package/dist/notifications.server.js +16 -6
- package/dist/orders.server.js +264 -145
- package/dist/organizations.server.js +22 -6
- package/dist/products.server.js +7 -7
- package/dist/rents.server.js +4 -3
- package/dist/style.css +970 -986
- package/package.json +13 -6
- package/src/builder/modes/ssr.rspack.dev.js +32 -20
- package/src/builder/rspack/rspack.config.api.js +3 -0
- package/src/builder/rspack/rspack.config.base.js +9 -1
- package/src/builder/rspack/rspack.config.ssr.client.js +27 -10
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Button/Button.vue +4 -4
- package/src/components/Table/StatusBadge.vue +24 -18
- package/src/components/Text/Text.vue +1 -1
- package/src/jit/core.js +72 -35
- package/src/jit/plugin.js +4 -3
- package/src/jit/rules.js +15 -15
- package/src/modules/TASKS.MD +30 -0
- package/src/modules/TASK_ACTIVITY.md +60 -0
- package/src/modules/TASK_MODULE_ARCH.md +391 -0
- package/src/modules/auth/controllers/routes/users.routes.js +8 -0
- package/src/modules/auth/controllers/services/users.service.js +51 -1
- package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileBlogposts.vue +25 -24
- package/src/modules/auth/views/components/pages/SignIn.vue +10 -1
- package/src/modules/auth/views/components/pages/UserDashboard.vue +35 -62
- package/src/modules/auth/views/router/users.router.js +0 -44
- package/src/modules/backoffice/components/pages/Dashboard.vue +423 -120
- package/src/modules/backoffice/configs/navigation.backoffice.config.js +0 -2
- package/src/modules/backoffice/router/backoffice.router.js +0 -25
- package/src/modules/community/community.client.js +54 -9
- package/src/modules/community/components/blocks/CardBlogpost.vue +10 -3
- package/src/modules/community/components/layouts/Community.vue +3 -3
- package/src/modules/community/components/pages/BlogPost.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +19 -20
- package/src/modules/community/components/pages/Posts.vue +43 -28
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/community/controllers/blog.controller.js +4 -5
- package/src/modules/community/models/reaction.model.js +1 -0
- package/src/modules/community/router/community.backoffice.router.js +16 -0
- package/src/modules/community/router/community.organization.router.js +56 -0
- package/src/modules/community/router/community.router.js +58 -106
- package/src/modules/community/router/community.user.router.js +15 -0
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +1 -1
- package/src/modules/core/controllers/classes/core.validator.js +7 -1
- package/src/modules/core/controllers/classes/core.verifier.js +0 -2
- package/src/modules/core/controllers/classes/crud/crud.controller.js +0 -4
- package/src/modules/core/controllers/classes/crud/crud.service.js +1 -0
- package/src/modules/core/models/schemas/engagement.schema.js +19 -22
- package/src/modules/core/views/classes/core.app.js +6 -4
- package/src/modules/core/views/classes/i18n.manager.js +9 -2
- package/src/modules/core/views/classes/ws.manager.js +17 -7
- package/src/modules/core/views/components/blocks/Card.vue +47 -24
- package/src/modules/core/views/components/blocks/CardStat.vue +27 -0
- package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/core/views/components/layouts/Client.vue +5 -4
- package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
- package/src/modules/core/views/components/partials/Header.vue +2 -2
- package/src/modules/core/views/components/partials/Navigation.vue +13 -14
- package/src/modules/core/views/components/partials/Sidebar.vue +4 -6
- package/src/modules/core/views/components/sections/SectionPageTitle.vue +23 -15
- package/src/modules/core/views/mixins/mixins.js +4 -3
- package/src/modules/core/views/router/addRoutes.js +1 -2
- package/src/modules/core/views/utils/vue-app-renderer.js +12 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +1 -0
- package/src/modules/events/components/pages/EventsBackoffice.vue +23 -48
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/events.client.js +44 -17
- package/src/modules/events/router/events.backoffice.router.js +80 -0
- package/src/modules/events/router/events.organization.router.js +80 -0
- package/src/modules/events/router/events.router.js +55 -325
- package/src/modules/events/router/events.user.router.js +49 -0
- package/src/modules/governance/TASK-TRACKER.MD +534 -39
- package/src/modules/governance/configs/navigation.initiative.config.js +30 -0
- package/src/modules/governance/controllers/routes/initiatives.routes.js +55 -8
- package/src/modules/governance/controllers/routes/{milestones.routes.js → sprints.routes.js} +22 -22
- package/src/modules/governance/controllers/routes/tasks.routes.js +2 -2
- package/src/modules/governance/governance.client.js +1 -4
- package/src/modules/governance/governance.server.js +6 -6
- package/src/modules/governance/middlewares/initiatives.verifier.js +60 -0
- package/src/modules/governance/middlewares/{milestones.verifier.js → sprints.verifier.js} +10 -10
- package/src/modules/governance/middlewares/tasks.verifier.js +4 -4
- package/src/modules/governance/middlewares/votings.verifier.js +25 -7
- package/src/modules/governance/models/{milestone.model.js → sprint.model.js} +11 -11
- package/src/modules/governance/models/task.model.js +4 -4
- package/src/modules/governance/models/voting.model.js +10 -5
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +8 -13
- package/src/modules/governance/views/components/blocks/{CardMilestoneItem.vue → CardSprintItem.vue} +16 -17
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +7 -9
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +7 -9
- package/src/modules/governance/views/components/pages/Governance.vue +13 -34
- package/src/modules/governance/views/components/pages/Initiative.vue +73 -154
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +44 -7
- package/src/modules/governance/views/components/pages/{Roadmap.vue → InitiativeSprints.vue} +70 -69
- package/src/modules/governance/views/components/pages/Initiatives.vue +23 -108
- package/src/modules/governance/views/components/pages/{Milestone.vue → Sprint.vue} +43 -41
- package/src/modules/governance/views/components/pages/SprintCreate.vue +55 -0
- package/src/modules/governance/views/components/pages/Task.vue +95 -88
- package/src/modules/governance/views/components/pages/TaskCreate.vue +47 -9
- package/src/modules/governance/views/components/pages/Tasks.vue +25 -21
- package/src/modules/governance/views/components/pages/Voting.vue +84 -68
- package/src/modules/governance/views/components/pages/VotingCreate.vue +48 -8
- package/src/modules/governance/views/components/pages/Votings.vue +12 -57
- package/src/modules/governance/views/components/partials/EmptyState.vue +1 -1
- package/src/modules/governance/views/components/partials/LinkedEntityCard.vue +23 -11
- package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
- package/src/modules/governance/views/components/partials/VoteForm.vue +3 -3
- package/src/modules/governance/views/components/partials/VotingResults.vue +13 -19
- package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +413 -15
- package/src/modules/governance/views/components/sections/FormSprintDetails.vue +156 -0
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +125 -21
- package/src/modules/governance/views/components/sections/FormVotingDetails.vue +136 -17
- package/src/modules/governance/views/components/sections/VoteForm.vue +2 -2
- package/src/modules/governance/views/router/governance.router.js +255 -151
- package/src/modules/governance/views/store/initiatives.js +23 -2
- package/src/modules/governance/views/store/sprints.js +102 -0
- package/src/modules/governance/views/store/tasks.js +25 -9
- package/src/modules/governance/views/store/votings.js +106 -27
- package/src/modules/icons/icons.client.js +1 -1
- package/src/modules/inventory/components/pages/InventoryEdit.vue +1 -1
- package/src/modules/music/components/sections/PopularTracks.vue +52 -0
- package/src/modules/music/music.client.js +8 -1
- package/src/modules/music/router/music.router.js +13 -1
- package/src/modules/notifications/components/elements/NotificationBadge.vue +8 -33
- package/src/modules/notifications/components/sections/NotificationPreferences.vue +110 -48
- package/src/modules/notifications/notifications.client.js +78 -57
- package/src/modules/notifications/router/notifications.router.js +32 -15
- package/src/modules/notifications/services/notification.service.js +15 -6
- package/src/modules/notifications/services/web-push.service.js +2 -0
- package/src/modules/orders/components/blocks/CardApplication.vue +20 -40
- package/src/modules/orders/components/blocks/CardCustomer.vue +35 -55
- package/src/modules/orders/components/blocks/CardOrderItem.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderUser.vue +2 -2
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +2 -2
- package/src/modules/orders/components/pages/Applications.vue +59 -57
- package/src/modules/orders/components/pages/Customers.vue +40 -27
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/sections/ApplicationDetails.vue +1 -4
- package/src/modules/orders/components/sections/CustomerDetails.vue +1 -4
- package/src/modules/orders/controllers/orders.controller.js +113 -0
- package/src/modules/orders/middlewares/applications.verifier.js +13 -37
- package/src/modules/orders/middlewares/customers.verifier.js +44 -121
- package/src/modules/orders/models/customer.model.js +0 -1
- package/src/modules/orders/routes/applications.routes.js +108 -50
- package/src/modules/orders/routes/orders.routes.js +9 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +12 -4
- package/src/modules/organizations/components/forms/DepartmentForm.vue +9 -4
- package/src/modules/organizations/components/pages/Members.vue +62 -1
- package/src/modules/organizations/components/pages/Organization.new.vue +17 -17
- package/src/modules/organizations/components/pages/Organization.vue +8 -1
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +11 -4
- package/src/modules/organizations/components/pages/Organizations.vue +33 -46
- package/src/modules/organizations/controllers/invites.controller.js +19 -0
- package/src/modules/organizations/controllers/memberships.controller.js +1 -0
- package/src/modules/organizations/organizations.client.js +48 -7
- package/src/modules/organizations/router/organizations.backoffice.router.js +15 -0
- package/src/modules/organizations/router/organizations.router.js +72 -112
- package/src/modules/organizations/router/organizations.user.router.js +15 -0
- package/src/modules/pages/pages.client.js +1 -1
- package/src/modules/pages/views/router/pages.router.js +95 -15
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +3 -3
- package/src/modules/rents/controllers/services/rents.services.js +1 -0
- package/src/modules/rents/rents.client.js +1 -1
- package/src/modules/rents/views/router/rents.router.js +93 -33
- package/src/modules/reports/reports.client.js +1 -1
- package/src/modules/wallet/wallet.client.js +1 -1
- package/src/styles/theme.scss +5 -3
- package/dist/engagement.schema-fh6W1fb_.js +0 -24
- package/dist/main-DQm5pwFO.js +0 -8213
- package/dist/martyrs/dist/main-DQm5pwFO.js +0 -1080
- package/dist/martyrs/dist/main-DQm5pwFO.js.map +0 -1
- package/dist/martyrs/dist/web-n_ivHO3v.js +0 -55
- package/dist/martyrs/dist/web-n_ivHO3v.js.map +0 -1
- package/dist/martyrs/src/components/Address/Address.vue.js.map +0 -1
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/community/community.router.js +0 -124
- package/dist/martyrs/src/modules/community/community.router.js.map +0 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/icons/icons.router.js.map +0 -1
- package/dist/martyrs/src/modules/music/music.router.js.map +0 -1
- package/dist/martyrs/src/modules/notifications/notifications.router.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +0 -200
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/organizations.router.js +0 -145
- package/dist/martyrs/src/modules/organizations/organizations.router.js.map +0 -1
- package/dist/martyrs/src/modules/pages/pages.router.js.map +0 -1
- package/dist/martyrs/src/modules/rents/rents.router.js.map +0 -1
- package/dist/martyrs/src/modules/reports/reports.router.js.map +0 -1
- package/dist/martyrs.css +0 -1
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/index.js +0 -8
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/web.js +0 -146
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/web.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/definitions.js +0 -18
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/definitions.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/index.js +0 -9
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4/node_modules/@capacitor/push-notifications/dist/esm/index.js +0 -6
- package/dist/node_modules/.pnpm/@capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4/node_modules/@capacitor/push-notifications/dist/esm/index.js.map +0 -1
- package/src/jit/.claude/settings.local.json +0 -10
- package/src/modules/community/community.router.js +0 -107
- package/src/modules/governance/governance.router.js +0 -350
- package/src/modules/governance/seed-governance.js +0 -348
- package/src/modules/governance/views/components/pages/InitiativeMilestones.vue +0 -159
- package/src/modules/governance/views/router/goverance.router.js +0 -290
- package/src/modules/governance/views/store/votes.js +0 -113
- package/src/modules/icons/icons.router.js +0 -29
- package/src/modules/marketplace/marketplace.router.js +0 -66
- package/src/modules/music/.claude/settings.local.json +0 -8
- package/src/modules/music/music.router.js +0 -188
- package/src/modules/notifications/notifications.router.js +0 -47
- package/src/modules/orders/orders.router.js +0 -255
- package/src/modules/organizations/organizations.router.js +0 -123
- package/src/modules/organizations/router/backoffice.router.js +0 -27
- package/src/modules/organizations/router/departments.router.js +0 -15
- package/src/modules/organizations/router/members.router.js +0 -20
- package/src/modules/pages/pages.router.js +0 -107
- package/src/modules/rents/rents.router.js +0 -115
- package/src/modules/reports/reports.router.js +0 -33
- package/src/modules/wallet/wallet.router.js +0 -45
package/dist/orders.server.js
CHANGED
|
@@ -4,11 +4,10 @@ import { g as getVisitorsService } from "./visitors.service-B1dhhuSo.js";
|
|
|
4
4
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
5
5
|
import { a as applyCredentialsSchema } from "./credentials.schema--2vvcu8c.js";
|
|
6
6
|
import { a as applyProfileSchema } from "./profile.schema-C31Lynn3.js";
|
|
7
|
-
import { C as CRUD } from "./crud-
|
|
8
|
-
import {
|
|
9
|
-
import axios from "axios";
|
|
10
|
-
import { V as Verifier, a as Validator } from "./core.verifier-gPPX_jhf.js";
|
|
7
|
+
import { C as CRUD } from "./crud-BT5FIvQC.js";
|
|
8
|
+
import { A as ABAC } from "./abac-Blt8bUTL.js";
|
|
11
9
|
import { m as middlewareIndexFactory } from "./index-kvBwwb0w.js";
|
|
10
|
+
import { V as Verifier, a as Validator } from "./core.verifier-DVB2a21y.js";
|
|
12
11
|
const controllerFactory = (db) => {
|
|
13
12
|
const Order = db.order;
|
|
14
13
|
const Customer = db.customer;
|
|
@@ -213,6 +212,7 @@ const controllerFactory = (db) => {
|
|
|
213
212
|
console.log(req.query);
|
|
214
213
|
let stages = [
|
|
215
214
|
...queryProcessorCore.getBasicOptions(req.query),
|
|
215
|
+
...queryProcessorCore.getFilterDate(req.query.dateStart, req.query.dateEnd),
|
|
216
216
|
...queryProcessorCore.getSearchOptions(req.query.search, {
|
|
217
217
|
fields: ["positions.name"]
|
|
218
218
|
}),
|
|
@@ -474,12 +474,114 @@ const controllerFactory = (db) => {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
};
|
|
477
|
+
const getStats = async (req, res) => {
|
|
478
|
+
try {
|
|
479
|
+
const now = /* @__PURE__ */ new Date();
|
|
480
|
+
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
481
|
+
const thirtyDaysAgo = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1e3);
|
|
482
|
+
let matchStage = {};
|
|
483
|
+
if (req.query.organization) {
|
|
484
|
+
matchStage["owner.target"] = new db.mongoose.Types.ObjectId(req.query.organization);
|
|
485
|
+
}
|
|
486
|
+
const startDate = req.query.startDate ? new Date(req.query.startDate) : null;
|
|
487
|
+
const endDate = req.query.endDate ? new Date(req.query.endDate) : null;
|
|
488
|
+
if (startDate && endDate) {
|
|
489
|
+
matchStage.createdAt = { $gte: startDate, $lte: endDate };
|
|
490
|
+
}
|
|
491
|
+
const [totalStats, monthlyStats, dailyRevenue, statusBreakdown, popularProducts, recentOrders] = await Promise.all([
|
|
492
|
+
// Total orders & revenue (all time or filtered by date range)
|
|
493
|
+
Order.aggregate([
|
|
494
|
+
{ $match: matchStage },
|
|
495
|
+
{ $group: {
|
|
496
|
+
_id: null,
|
|
497
|
+
totalRevenue: { $sum: { $reduce: {
|
|
498
|
+
input: "$positions",
|
|
499
|
+
initialValue: 0,
|
|
500
|
+
in: { $add: ["$$value", { $multiply: [{ $ifNull: ["$$this.price", 0] }, { $ifNull: ["$$this.quantity", 1] }] }] }
|
|
501
|
+
} } },
|
|
502
|
+
orderCount: { $sum: 1 }
|
|
503
|
+
} }
|
|
504
|
+
]),
|
|
505
|
+
// Monthly revenue & order count
|
|
506
|
+
Order.aggregate([
|
|
507
|
+
{ $match: startDate && endDate ? matchStage : { ...matchStage, createdAt: { $gte: startOfMonth } } },
|
|
508
|
+
{ $group: {
|
|
509
|
+
_id: null,
|
|
510
|
+
totalRevenue: { $sum: { $reduce: {
|
|
511
|
+
input: "$positions",
|
|
512
|
+
initialValue: 0,
|
|
513
|
+
in: { $add: ["$$value", { $multiply: [{ $ifNull: ["$$this.price", 0] }, { $ifNull: ["$$this.quantity", 1] }] }] }
|
|
514
|
+
} } },
|
|
515
|
+
orderCount: { $sum: 1 }
|
|
516
|
+
} }
|
|
517
|
+
]),
|
|
518
|
+
// Revenue by day (all time, grouped)
|
|
519
|
+
Order.aggregate([
|
|
520
|
+
{ $match: matchStage },
|
|
521
|
+
{ $group: {
|
|
522
|
+
_id: { $dateToString: { format: "%Y-%m-%d", date: "$createdAt" } },
|
|
523
|
+
revenue: { $sum: { $reduce: {
|
|
524
|
+
input: "$positions",
|
|
525
|
+
initialValue: 0,
|
|
526
|
+
in: { $add: ["$$value", { $multiply: [{ $ifNull: ["$$this.price", 0] }, { $ifNull: ["$$this.quantity", 1] }] }] }
|
|
527
|
+
} } },
|
|
528
|
+
count: { $sum: 1 }
|
|
529
|
+
} },
|
|
530
|
+
{ $sort: { _id: 1 } }
|
|
531
|
+
]),
|
|
532
|
+
// By-status breakdown
|
|
533
|
+
Order.aggregate([
|
|
534
|
+
{ $match: matchStage },
|
|
535
|
+
{ $group: { _id: "$status", count: { $sum: 1 } } }
|
|
536
|
+
]),
|
|
537
|
+
// Popular products (top 10 by quantity sold)
|
|
538
|
+
Order.aggregate([
|
|
539
|
+
{ $match: matchStage },
|
|
540
|
+
{ $unwind: "$positions" },
|
|
541
|
+
{ $group: {
|
|
542
|
+
_id: "$positions._id",
|
|
543
|
+
name: { $first: "$positions.name" },
|
|
544
|
+
image: { $first: { $arrayElemAt: ["$positions.images", 0] } },
|
|
545
|
+
totalQuantity: { $sum: { $ifNull: ["$positions.quantity", 1] } },
|
|
546
|
+
totalRevenue: { $sum: { $multiply: [{ $ifNull: ["$positions.price", 0] }, { $ifNull: ["$positions.quantity", 1] }] } }
|
|
547
|
+
} },
|
|
548
|
+
{ $sort: { totalQuantity: -1 } },
|
|
549
|
+
{ $limit: 10 }
|
|
550
|
+
]),
|
|
551
|
+
// Recent orders (last 5)
|
|
552
|
+
Order.aggregate([
|
|
553
|
+
{ $match: matchStage },
|
|
554
|
+
{ $sort: { createdAt: -1 } },
|
|
555
|
+
{ $limit: 5 },
|
|
556
|
+
{ $lookup: { from: "customers", localField: "customer.target", foreignField: "_id", as: "customerData" } },
|
|
557
|
+
{ $addFields: { "customer.target": { $arrayElemAt: ["$customerData", 0] } } },
|
|
558
|
+
{ $project: { customerData: 0 } }
|
|
559
|
+
])
|
|
560
|
+
]);
|
|
561
|
+
res.status(200).send({
|
|
562
|
+
total: totalStats[0] || { totalRevenue: 0, orderCount: 0 },
|
|
563
|
+
monthly: monthlyStats[0] || { totalRevenue: 0, orderCount: 0 },
|
|
564
|
+
dailyRevenue,
|
|
565
|
+
statusBreakdown,
|
|
566
|
+
popularProducts,
|
|
567
|
+
recentOrders
|
|
568
|
+
});
|
|
569
|
+
} catch (err) {
|
|
570
|
+
console.error(err);
|
|
571
|
+
res.status(500).send({
|
|
572
|
+
errorCode: "GET_ORDER_STATS_FAILED",
|
|
573
|
+
message: "Error occurred while fetching order stats.",
|
|
574
|
+
error: err.message
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
};
|
|
477
578
|
return {
|
|
478
579
|
create,
|
|
479
580
|
read,
|
|
480
581
|
update,
|
|
481
582
|
changePaymentStatus,
|
|
482
|
-
deleteOrder
|
|
583
|
+
deleteOrder,
|
|
584
|
+
getStats
|
|
483
585
|
};
|
|
484
586
|
};
|
|
485
587
|
const ModelApplication = (db) => {
|
|
@@ -581,8 +683,7 @@ const ModelCustomer = (db) => {
|
|
|
581
683
|
type: String
|
|
582
684
|
},
|
|
583
685
|
addressLine1: {
|
|
584
|
-
type: String
|
|
585
|
-
required: true
|
|
686
|
+
type: String
|
|
586
687
|
},
|
|
587
688
|
addressLine2: {
|
|
588
689
|
type: String
|
|
@@ -760,17 +861,13 @@ const ModelTestimonial = (db) => {
|
|
|
760
861
|
};
|
|
761
862
|
const verifierFactory$1 = (function(db) {
|
|
762
863
|
const createVerifier = new Verifier({
|
|
763
|
-
|
|
764
|
-
rule: "optional",
|
|
765
|
-
validator: Validator.schema().string().min(1, "Name must be at least 1 character").max(255, "Name must not exceed 255 characters")
|
|
766
|
-
},
|
|
767
|
-
"contacts.email": {
|
|
864
|
+
contacts: {
|
|
768
865
|
rule: "optional",
|
|
769
|
-
validator: Validator.schema().
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
866
|
+
validator: Validator.schema().object({
|
|
867
|
+
name: Validator.schema().string().min(1).max(255),
|
|
868
|
+
email: Validator.schema().string().email("Invalid email format").max(255),
|
|
869
|
+
phone: Validator.schema().string().pattern(/^\+?[1-9]\d{1,14}$/, "Invalid phone format")
|
|
870
|
+
})
|
|
774
871
|
},
|
|
775
872
|
type: {
|
|
776
873
|
rule: "optional",
|
|
@@ -803,17 +900,13 @@ const verifierFactory$1 = (function(db) {
|
|
|
803
900
|
rule: "required",
|
|
804
901
|
validator: Validator.schema().string().required("Application ID is required").pattern(/^[0-9a-fA-F]{24}$/, "Invalid ID format")
|
|
805
902
|
},
|
|
806
|
-
|
|
807
|
-
rule: "optional",
|
|
808
|
-
validator: Validator.schema().string().min(1, "Name must be at least 1 character").max(255, "Name must not exceed 255 characters")
|
|
809
|
-
},
|
|
810
|
-
"contacts.email": {
|
|
903
|
+
contacts: {
|
|
811
904
|
rule: "optional",
|
|
812
|
-
validator: Validator.schema().
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
905
|
+
validator: Validator.schema().object({
|
|
906
|
+
name: Validator.schema().string().min(1).max(255),
|
|
907
|
+
email: Validator.schema().string().email("Invalid email format").max(255),
|
|
908
|
+
phone: Validator.schema().string().pattern(/^\+?[1-9]\d{1,14}$/, "Invalid phone format")
|
|
909
|
+
})
|
|
817
910
|
},
|
|
818
911
|
type: {
|
|
819
912
|
rule: "optional",
|
|
@@ -882,10 +975,61 @@ const verifierFactory$1 = (function(db) {
|
|
|
882
975
|
deleteVerifier
|
|
883
976
|
};
|
|
884
977
|
});
|
|
885
|
-
const { getInstance: getInstance$
|
|
978
|
+
const { getInstance: getInstance$2 } = ABAC;
|
|
886
979
|
function setupApplicationsRoutes(app, db) {
|
|
887
|
-
const abac = getInstance$
|
|
980
|
+
const abac = getInstance$2(db);
|
|
888
981
|
const verifier = verifierFactory$1();
|
|
982
|
+
const middleware = middlewareIndexFactory(db);
|
|
983
|
+
const getUsersWithOrdersAccess = async (organizationId) => {
|
|
984
|
+
const pipeline = [
|
|
985
|
+
{ $match: {
|
|
986
|
+
organization: new db.mongoose.Types.ObjectId(organizationId),
|
|
987
|
+
"accesses.orders.confirm": true
|
|
988
|
+
} },
|
|
989
|
+
{ $unwind: "$members" },
|
|
990
|
+
{ $group: { _id: "$members.user" } },
|
|
991
|
+
{ $project: { userId: "$_id" } }
|
|
992
|
+
];
|
|
993
|
+
const result = await db.department.aggregate(pipeline);
|
|
994
|
+
return result.map((item) => item.userId);
|
|
995
|
+
};
|
|
996
|
+
const sendApplicationNotifications = async (application, userIds) => {
|
|
997
|
+
if (!userIds || userIds.length === 0) return;
|
|
998
|
+
const notifications = userIds.map((userId) => ({
|
|
999
|
+
title: "New Application",
|
|
1000
|
+
body: `New application from ${application.contacts?.name || "Unknown"}`,
|
|
1001
|
+
type: "application_created",
|
|
1002
|
+
metadata: {
|
|
1003
|
+
type: "application_created",
|
|
1004
|
+
applicationId: application._id,
|
|
1005
|
+
context: "organization",
|
|
1006
|
+
organization: application.owner?.target
|
|
1007
|
+
},
|
|
1008
|
+
userId
|
|
1009
|
+
}));
|
|
1010
|
+
try {
|
|
1011
|
+
await fetch(`${process.env.API_URL || ""}/api/notifications/batch`, {
|
|
1012
|
+
method: "POST",
|
|
1013
|
+
headers: {
|
|
1014
|
+
"Content-Type": "application/json",
|
|
1015
|
+
"X-Service-Key": process.env.SERVICE_KEY
|
|
1016
|
+
},
|
|
1017
|
+
body: JSON.stringify({ notifications })
|
|
1018
|
+
});
|
|
1019
|
+
} catch (error) {
|
|
1020
|
+
console.error("Error sending application push notifications:", error);
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
const notifyApplicationCreated = async (application) => {
|
|
1024
|
+
try {
|
|
1025
|
+
if (application.owner?.target) {
|
|
1026
|
+
const userIds = await getUsersWithOrdersAccess(application.owner.target);
|
|
1027
|
+
await sendApplicationNotifications(application, userIds);
|
|
1028
|
+
}
|
|
1029
|
+
} catch (err) {
|
|
1030
|
+
console.error("Error in application created notification:", err);
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
889
1033
|
const applicationsCRUD = new CRUD({
|
|
890
1034
|
app,
|
|
891
1035
|
db,
|
|
@@ -910,47 +1054,46 @@ function setupApplicationsRoutes(app, db) {
|
|
|
910
1054
|
logReads: false
|
|
911
1055
|
}
|
|
912
1056
|
});
|
|
913
|
-
applicationsCRUD.
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
const
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
case "confirm":
|
|
928
|
-
updatedApplication = await db.application.findOneAndUpdate({ _id: applicationId }, { status: "confirmed" }, { new: true });
|
|
929
|
-
break;
|
|
930
|
-
case "lost":
|
|
931
|
-
updatedApplication = await db.application.findOneAndUpdate({ _id: applicationId }, { status: "lost" }, { new: true });
|
|
932
|
-
break;
|
|
933
|
-
case "delete":
|
|
934
|
-
updatedApplication = await db.application.findOneAndDelete({ _id: applicationId });
|
|
935
|
-
break;
|
|
936
|
-
}
|
|
937
|
-
if (!updatedApplication) {
|
|
938
|
-
console.log("Application not found or not updated.");
|
|
939
|
-
} else {
|
|
940
|
-
console.log("Application updated:", updatedApplication);
|
|
941
|
-
}
|
|
942
|
-
} catch (err) {
|
|
943
|
-
console.log("Error updating application:", err);
|
|
1057
|
+
applicationsCRUD.addHook("afterCreate", async (application, context) => {
|
|
1058
|
+
notifyApplicationCreated(application).catch(console.error);
|
|
1059
|
+
});
|
|
1060
|
+
app.get(
|
|
1061
|
+
"/api/applications/stats",
|
|
1062
|
+
middleware.authJwt.verifyToken(),
|
|
1063
|
+
abac.middleware("orders", "read"),
|
|
1064
|
+
async (req, res) => {
|
|
1065
|
+
try {
|
|
1066
|
+
const now = /* @__PURE__ */ new Date();
|
|
1067
|
+
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1068
|
+
let matchStage = {};
|
|
1069
|
+
if (req.query.organization) {
|
|
1070
|
+
matchStage["owner.target"] = new db.mongoose.Types.ObjectId(req.query.organization);
|
|
944
1071
|
}
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1072
|
+
const [totalStats, inProgressStats, monthlyStats, statusBreakdown] = await Promise.all([
|
|
1073
|
+
db.application.countDocuments(matchStage),
|
|
1074
|
+
db.application.countDocuments({ ...matchStage, status: "in_progress" }),
|
|
1075
|
+
db.application.countDocuments({ ...matchStage, createdAt: { $gte: startOfMonth } }),
|
|
1076
|
+
db.application.aggregate([
|
|
1077
|
+
{ $match: matchStage },
|
|
1078
|
+
{ $group: { _id: "$status", count: { $sum: 1 } } }
|
|
1079
|
+
])
|
|
1080
|
+
]);
|
|
1081
|
+
res.status(200).json({
|
|
1082
|
+
total: totalStats,
|
|
1083
|
+
inProgress: inProgressStats,
|
|
1084
|
+
newThisMonth: monthlyStats,
|
|
1085
|
+
statusBreakdown
|
|
1086
|
+
});
|
|
1087
|
+
} catch (err) {
|
|
1088
|
+
console.error(err);
|
|
1089
|
+
res.status(500).json({
|
|
1090
|
+
errorCode: "GET_APPLICATION_STATS_FAILED",
|
|
1091
|
+
message: "Error occurred while fetching application stats.",
|
|
1092
|
+
error: err.message
|
|
949
1093
|
});
|
|
950
1094
|
}
|
|
951
|
-
res.sendStatus(200);
|
|
952
1095
|
}
|
|
953
|
-
|
|
1096
|
+
);
|
|
954
1097
|
applicationsCRUD.addAction("public-create", {
|
|
955
1098
|
method: "post",
|
|
956
1099
|
path: "/public",
|
|
@@ -960,18 +1103,17 @@ function setupApplicationsRoutes(app, db) {
|
|
|
960
1103
|
try {
|
|
961
1104
|
const applicationData = {
|
|
962
1105
|
...req.body,
|
|
963
|
-
owner: {
|
|
1106
|
+
owner: req.body.owner || {
|
|
964
1107
|
type: "platform",
|
|
965
1108
|
target: "000000000000000000000000"
|
|
966
|
-
// заглушка для отдела платформы
|
|
967
1109
|
},
|
|
968
1110
|
creator: {
|
|
969
1111
|
type: "platform",
|
|
970
1112
|
target: "000000000000000000000000"
|
|
971
1113
|
}
|
|
972
1114
|
};
|
|
973
|
-
const
|
|
974
|
-
|
|
1115
|
+
const saved = await applicationsCRUD.service.create(applicationData);
|
|
1116
|
+
notifyApplicationCreated(saved).catch(console.error);
|
|
975
1117
|
res.status(201).json(saved);
|
|
976
1118
|
} catch (error) {
|
|
977
1119
|
console.error("Error creating public application:", error);
|
|
@@ -981,9 +1123,11 @@ function setupApplicationsRoutes(app, db) {
|
|
|
981
1123
|
});
|
|
982
1124
|
return applicationsCRUD;
|
|
983
1125
|
}
|
|
1126
|
+
const { getInstance: getInstance$1 } = ABAC;
|
|
984
1127
|
const RoutesOrder = (function(app, db, origins, publicPath) {
|
|
985
1128
|
const controller = controllerFactory(db);
|
|
986
1129
|
const middleware = middlewareIndexFactory(db);
|
|
1130
|
+
const abac = getInstance$1(db);
|
|
987
1131
|
app.post(
|
|
988
1132
|
"/api/orders/create",
|
|
989
1133
|
[
|
|
@@ -998,6 +1142,12 @@ const RoutesOrder = (function(app, db, origins, publicPath) {
|
|
|
998
1142
|
],
|
|
999
1143
|
controller.read
|
|
1000
1144
|
);
|
|
1145
|
+
app.get(
|
|
1146
|
+
"/api/orders/stats",
|
|
1147
|
+
middleware.authJwt.verifyToken(),
|
|
1148
|
+
abac.middleware("orders", "read"),
|
|
1149
|
+
controller.getStats
|
|
1150
|
+
);
|
|
1001
1151
|
app.post(
|
|
1002
1152
|
"/api/orders/update",
|
|
1003
1153
|
[
|
|
@@ -1023,30 +1173,25 @@ const verifierFactory = (function(db) {
|
|
|
1023
1173
|
rule: "optional",
|
|
1024
1174
|
validator: Validator.schema().string().pattern(/^\+?[1-9]\d{1,14}$/, "Invalid phone format")
|
|
1025
1175
|
},
|
|
1026
|
-
|
|
1027
|
-
rule: "optional",
|
|
1028
|
-
validator: Validator.schema().string().min(1, "Name must be at least 1 character").max(255, "Name must not exceed 255 characters")
|
|
1029
|
-
},
|
|
1030
|
-
"profile.description": {
|
|
1031
|
-
rule: "optional",
|
|
1032
|
-
validator: Validator.schema().string().max(1e3, "Description must not exceed 1000 characters")
|
|
1033
|
-
},
|
|
1034
|
-
"profile.photo": {
|
|
1176
|
+
profile: {
|
|
1035
1177
|
rule: "optional",
|
|
1036
|
-
validator: Validator.schema().
|
|
1178
|
+
validator: Validator.schema().object({
|
|
1179
|
+
name: Validator.schema().string().min(1).max(255),
|
|
1180
|
+
description: Validator.schema().string().max(1e3),
|
|
1181
|
+
photo: Validator.schema().string().max(500)
|
|
1182
|
+
})
|
|
1037
1183
|
},
|
|
1038
1184
|
source: {
|
|
1039
1185
|
rule: "optional",
|
|
1040
1186
|
default: "web",
|
|
1041
1187
|
validator: Validator.schema().string().oneOf(["web", "mobile", "api", "import", "manual", "referral", "social", "email"])
|
|
1042
1188
|
},
|
|
1043
|
-
|
|
1044
|
-
rule: "optional",
|
|
1045
|
-
validator: Validator.schema().string().max(50, "Referral code must not exceed 50 characters")
|
|
1046
|
-
},
|
|
1047
|
-
"referral.source": {
|
|
1189
|
+
referral: {
|
|
1048
1190
|
rule: "optional",
|
|
1049
|
-
validator: Validator.schema().
|
|
1191
|
+
validator: Validator.schema().object({
|
|
1192
|
+
code: Validator.schema().string().max(50),
|
|
1193
|
+
source: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/)
|
|
1194
|
+
})
|
|
1050
1195
|
},
|
|
1051
1196
|
tags: {
|
|
1052
1197
|
rule: "optional",
|
|
@@ -1061,13 +1206,12 @@ const verifierFactory = (function(db) {
|
|
|
1061
1206
|
default: "active",
|
|
1062
1207
|
validator: Validator.schema().string().oneOf(["active", "inactive", "blocked"])
|
|
1063
1208
|
},
|
|
1064
|
-
|
|
1209
|
+
identity: {
|
|
1065
1210
|
rule: "required",
|
|
1066
|
-
validator: Validator.schema().
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
validator: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/, "Invalid identity target ID format")
|
|
1211
|
+
validator: Validator.schema().object({
|
|
1212
|
+
type: Validator.schema().string().oneOf(["Visitor", "User", "Organization"]).required(),
|
|
1213
|
+
target: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/)
|
|
1214
|
+
})
|
|
1071
1215
|
},
|
|
1072
1216
|
owner: {
|
|
1073
1217
|
rule: "required",
|
|
@@ -1076,25 +1220,15 @@ const verifierFactory = (function(db) {
|
|
|
1076
1220
|
target: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/)
|
|
1077
1221
|
})
|
|
1078
1222
|
},
|
|
1079
|
-
|
|
1080
|
-
rule: "optional",
|
|
1081
|
-
validator: Validator.schema().string().max(100, "Country must not exceed 100 characters")
|
|
1082
|
-
},
|
|
1083
|
-
"address.addressLine1": {
|
|
1084
|
-
rule: "optional",
|
|
1085
|
-
validator: Validator.schema().string().max(255, "Address line 1 must not exceed 255 characters")
|
|
1086
|
-
},
|
|
1087
|
-
"address.addressLine2": {
|
|
1088
|
-
rule: "optional",
|
|
1089
|
-
validator: Validator.schema().string().max(255, "Address line 2 must not exceed 255 characters")
|
|
1090
|
-
},
|
|
1091
|
-
"address.city": {
|
|
1223
|
+
address: {
|
|
1092
1224
|
rule: "optional",
|
|
1093
|
-
validator: Validator.schema().
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1225
|
+
validator: Validator.schema().object({
|
|
1226
|
+
country: Validator.schema().string().max(100),
|
|
1227
|
+
addressLine1: Validator.schema().string().max(255),
|
|
1228
|
+
addressLine2: Validator.schema().string().max(255),
|
|
1229
|
+
city: Validator.schema().string().max(100),
|
|
1230
|
+
postalCode: Validator.schema().string().max(20)
|
|
1231
|
+
})
|
|
1098
1232
|
}
|
|
1099
1233
|
});
|
|
1100
1234
|
const updateVerifier = new Verifier({
|
|
@@ -1110,29 +1244,24 @@ const verifierFactory = (function(db) {
|
|
|
1110
1244
|
rule: "optional",
|
|
1111
1245
|
validator: Validator.schema().string().pattern(/^\+?[1-9]\d{1,14}$/, "Invalid phone format")
|
|
1112
1246
|
},
|
|
1113
|
-
|
|
1114
|
-
rule: "optional",
|
|
1115
|
-
validator: Validator.schema().string().min(1, "Name must be at least 1 character").max(255, "Name must not exceed 255 characters")
|
|
1116
|
-
},
|
|
1117
|
-
"profile.description": {
|
|
1118
|
-
rule: "optional",
|
|
1119
|
-
validator: Validator.schema().string().max(1e3, "Description must not exceed 1000 characters")
|
|
1120
|
-
},
|
|
1121
|
-
"profile.photo": {
|
|
1247
|
+
profile: {
|
|
1122
1248
|
rule: "optional",
|
|
1123
|
-
validator: Validator.schema().
|
|
1249
|
+
validator: Validator.schema().object({
|
|
1250
|
+
name: Validator.schema().string().min(1).max(255),
|
|
1251
|
+
description: Validator.schema().string().max(1e3),
|
|
1252
|
+
photo: Validator.schema().string().max(500)
|
|
1253
|
+
})
|
|
1124
1254
|
},
|
|
1125
1255
|
source: {
|
|
1126
1256
|
rule: "optional",
|
|
1127
1257
|
validator: Validator.schema().string().oneOf(["web", "mobile", "api", "import", "manual", "referral", "social", "email"])
|
|
1128
1258
|
},
|
|
1129
|
-
|
|
1130
|
-
rule: "optional",
|
|
1131
|
-
validator: Validator.schema().string().max(50, "Referral code must not exceed 50 characters")
|
|
1132
|
-
},
|
|
1133
|
-
"referral.source": {
|
|
1259
|
+
referral: {
|
|
1134
1260
|
rule: "optional",
|
|
1135
|
-
validator: Validator.schema().
|
|
1261
|
+
validator: Validator.schema().object({
|
|
1262
|
+
code: Validator.schema().string().max(50),
|
|
1263
|
+
source: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/)
|
|
1264
|
+
})
|
|
1136
1265
|
},
|
|
1137
1266
|
tags: {
|
|
1138
1267
|
rule: "optional",
|
|
@@ -1146,25 +1275,15 @@ const verifierFactory = (function(db) {
|
|
|
1146
1275
|
rule: "optional",
|
|
1147
1276
|
validator: Validator.schema().string().oneOf(["active", "inactive", "blocked"])
|
|
1148
1277
|
},
|
|
1149
|
-
|
|
1150
|
-
rule: "optional",
|
|
1151
|
-
validator: Validator.schema().string().max(100, "Country must not exceed 100 characters")
|
|
1152
|
-
},
|
|
1153
|
-
"address.addressLine1": {
|
|
1278
|
+
address: {
|
|
1154
1279
|
rule: "optional",
|
|
1155
|
-
validator: Validator.schema().
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
rule: "optional",
|
|
1163
|
-
validator: Validator.schema().string().max(100, "City must not exceed 100 characters")
|
|
1164
|
-
},
|
|
1165
|
-
"address.postalCode": {
|
|
1166
|
-
rule: "optional",
|
|
1167
|
-
validator: Validator.schema().string().max(20, "Postal code must not exceed 20 characters")
|
|
1280
|
+
validator: Validator.schema().object({
|
|
1281
|
+
country: Validator.schema().string().max(100),
|
|
1282
|
+
addressLine1: Validator.schema().string().max(255),
|
|
1283
|
+
addressLine2: Validator.schema().string().max(255),
|
|
1284
|
+
city: Validator.schema().string().max(100),
|
|
1285
|
+
postalCode: Validator.schema().string().max(20)
|
|
1286
|
+
})
|
|
1168
1287
|
}
|
|
1169
1288
|
});
|
|
1170
1289
|
const readVerifier = new Verifier({
|
|
@@ -1217,7 +1336,7 @@ const verifierFactory = (function(db) {
|
|
|
1217
1336
|
deleteVerifier
|
|
1218
1337
|
};
|
|
1219
1338
|
});
|
|
1220
|
-
const { getInstance } =
|
|
1339
|
+
const { getInstance } = ABAC;
|
|
1221
1340
|
function setupCustomersRoutes(app, db) {
|
|
1222
1341
|
const abac = getInstance(db);
|
|
1223
1342
|
const verifier = verifierFactory();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ABAC } from "./abac-Blt8bUTL.js";
|
|
2
2
|
import { a as applyCredentialsSchema } from "./credentials.schema--2vvcu8c.js";
|
|
3
3
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
4
|
-
import { a as applyEngagementSchema } from "./engagement.schema-
|
|
4
|
+
import { a as applyEngagementSchema } from "./engagement.schema-B-Cc_NsG.js";
|
|
5
5
|
import { m as middlewareIndexFactory } from "./index-kvBwwb0w.js";
|
|
6
6
|
import { m as mailing } from "./mailing-DT7nbNjZ.js";
|
|
7
7
|
import { uuid } from "uuidv4";
|
|
8
8
|
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
9
9
|
import { Types } from "mongoose";
|
|
10
10
|
import { C as CacheNamespaced } from "./core.cache-DALYFDdy.js";
|
|
11
|
-
import {
|
|
11
|
+
import { b as addUserStatusFields, a as addMembersQuantity } from "./addUserStatusFields-CjV_sbh7.js";
|
|
12
12
|
import jwt from "jsonwebtoken";
|
|
13
13
|
import { g as getRequestedLookups, a as getBasicMatchConditions, b as getLookupStages, c as getPostableConditions, d as getContainConditions, e as getPriceConditions, f as getLocationStages } from "./queryProcessorOrganizations-BB11WFpc.js";
|
|
14
|
-
import { V as Verifier, a as Validator } from "./core.verifier-
|
|
14
|
+
import { V as Verifier, a as Validator } from "./core.verifier-DVB2a21y.js";
|
|
15
15
|
const controllerFactory$2 = (db) => {
|
|
16
16
|
const Department = db.department;
|
|
17
17
|
const readOne = (req, res) => {
|
|
@@ -571,6 +571,15 @@ const сontrollerFactory = (db) => {
|
|
|
571
571
|
user = await User.findOne({ phone: invite.contact });
|
|
572
572
|
}
|
|
573
573
|
if (user) {
|
|
574
|
+
const existingMembership = await Membership.findOne({
|
|
575
|
+
user: user._id,
|
|
576
|
+
type: "organization",
|
|
577
|
+
target: req.body.owner.target,
|
|
578
|
+
role: { $in: ["member", "owner"] }
|
|
579
|
+
});
|
|
580
|
+
if (existingMembership) {
|
|
581
|
+
continue;
|
|
582
|
+
}
|
|
574
583
|
const membership = new Membership({
|
|
575
584
|
user: user._id,
|
|
576
585
|
type: "organization",
|
|
@@ -581,6 +590,12 @@ const сontrollerFactory = (db) => {
|
|
|
581
590
|
const savedMembership = await membership.save();
|
|
582
591
|
createdMemberships.push(savedMembership);
|
|
583
592
|
} else {
|
|
593
|
+
const contactQuery = invite.contact.includes("@") ? { email: invite.contact } : { phone: invite.contact };
|
|
594
|
+
await Invite.updateMany({
|
|
595
|
+
...contactQuery,
|
|
596
|
+
"owner.target": req.body.owner.target,
|
|
597
|
+
status: "active"
|
|
598
|
+
}, { status: "deactivated" });
|
|
584
599
|
const newInvite = new Invite({
|
|
585
600
|
code: uuid(),
|
|
586
601
|
creator,
|
|
@@ -750,7 +765,8 @@ const controllerFactory$1 = (db) => {
|
|
|
750
765
|
user: req.body.user,
|
|
751
766
|
type: req.body.type,
|
|
752
767
|
target: req.body.target,
|
|
753
|
-
role: req.body.role
|
|
768
|
+
role: req.body.role,
|
|
769
|
+
label: req.body.label || req.body.role
|
|
754
770
|
});
|
|
755
771
|
try {
|
|
756
772
|
const data = await newMembership.save();
|
|
@@ -1319,7 +1335,7 @@ const initOrganizationPolicies = (function initializeOrganizationPolicies(abacAc
|
|
|
1319
1335
|
abacAccessControl.organizationHelpers = organizationHelpers;
|
|
1320
1336
|
return abacAccessControl;
|
|
1321
1337
|
});
|
|
1322
|
-
const { getInstance } =
|
|
1338
|
+
const { getInstance } = ABAC;
|
|
1323
1339
|
function initializeOrganization({ app, db, origins, publicPath }) {
|
|
1324
1340
|
db.department = DepartmentModel(db);
|
|
1325
1341
|
db.organization = OrganizationModel(db);
|
package/dist/products.server.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { C as CacheNamespaced } from "./core.cache-DALYFDdy.js";
|
|
2
|
-
import { L as LoggerNamespaced,
|
|
2
|
+
import { L as LoggerNamespaced, A as ABAC } from "./abac-Blt8bUTL.js";
|
|
3
3
|
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
4
4
|
import { Types } from "mongoose";
|
|
5
5
|
import { a as applyCommonSchema } from "./common.schema-DswiUXKB.js";
|
|
6
|
-
import { a as applyEngagementSchema } from "./engagement.schema-
|
|
6
|
+
import { a as applyEngagementSchema } from "./engagement.schema-B-Cc_NsG.js";
|
|
7
7
|
import { a as applyMetadataSchema } from "./metadata.schema-CIRR_WQ-.js";
|
|
8
8
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
9
9
|
import { m as middlewareFactory } from "./authJwt-DKbMMjw0.js";
|
|
10
|
-
import { a as Validator, V as Verifier } from "./core.verifier-
|
|
11
|
-
import { C as CRUD } from "./crud-
|
|
10
|
+
import { a as Validator, V as Verifier } from "./core.verifier-DVB2a21y.js";
|
|
11
|
+
import { C as CRUD } from "./crud-BT5FIvQC.js";
|
|
12
12
|
const controllerFactory$1 = (db) => {
|
|
13
13
|
const Category = db.category;
|
|
14
14
|
const logger = new LoggerNamespaced(db);
|
|
15
15
|
const cache = new CacheNamespaced();
|
|
16
|
-
const abac =
|
|
16
|
+
const abac = ABAC.getInstance(db);
|
|
17
17
|
const generateSlug = async (name, parentId = null) => {
|
|
18
18
|
const baseSlug = name.toLowerCase().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").trim("-");
|
|
19
19
|
let slug = baseSlug;
|
|
@@ -1301,7 +1301,7 @@ const verifierFactory$1 = (function(db) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
};
|
|
1303
1303
|
});
|
|
1304
|
-
const { getInstance: getInstance$1 } =
|
|
1304
|
+
const { getInstance: getInstance$1 } = ABAC;
|
|
1305
1305
|
const categoriesRoutes = (function(app, db) {
|
|
1306
1306
|
const jwt = middlewareFactory(db);
|
|
1307
1307
|
const verifier = verifierFactory$1(db);
|
|
@@ -1483,7 +1483,7 @@ const verifierFactory = (function(db) {
|
|
|
1483
1483
|
deleteVerifier
|
|
1484
1484
|
};
|
|
1485
1485
|
});
|
|
1486
|
-
const { getInstance } =
|
|
1486
|
+
const { getInstance } = ABAC;
|
|
1487
1487
|
function setupVariantsRoutes(app, db) {
|
|
1488
1488
|
const abac = getInstance(db);
|
|
1489
1489
|
const verifier = verifierFactory();
|