@mohasinac/appkit 2.2.0 → 2.3.0
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/README.md +79 -31
- package/dist/index.d.ts +3124 -1
- package/dist/index.js +5836 -1
- package/package.json +67 -87
- package/dist/cli/index.d.ts +0 -38
- package/dist/cli/index.js +0 -177
- package/dist/client.d.ts +0 -15
- package/dist/client.js +0 -15
- package/dist/constants/api-endpoint-resolver.d.ts +0 -34
- package/dist/constants/api-endpoint-resolver.js +0 -38
- package/dist/constants/api-endpoints.d.ts +0 -388
- package/dist/constants/api-endpoints.js +0 -342
- package/dist/constants/cache-invalidation.d.ts +0 -18
- package/dist/constants/cache-invalidation.js +0 -33
- package/dist/constants/index.d.ts +0 -14
- package/dist/constants/index.js +0 -14
- package/dist/contracts/auth.d.ts +0 -58
- package/dist/contracts/auth.js +0 -2
- package/dist/contracts/client-auth.d.ts +0 -22
- package/dist/contracts/client-auth.js +0 -17
- package/dist/contracts/client-payment-gateway.d.ts +0 -65
- package/dist/contracts/client-payment-gateway.js +0 -25
- package/dist/contracts/client-realtime.d.ts +0 -24
- package/dist/contracts/client-realtime.js +0 -18
- package/dist/contracts/client-session.d.ts +0 -37
- package/dist/contracts/client-session.js +0 -22
- package/dist/contracts/config.d.ts +0 -53
- package/dist/contracts/config.js +0 -2
- package/dist/contracts/email.d.ts +0 -30
- package/dist/contracts/email.js +0 -2
- package/dist/contracts/extend.d.ts +0 -270
- package/dist/contracts/extend.js +0 -75
- package/dist/contracts/feature.d.ts +0 -53
- package/dist/contracts/feature.js +0 -2
- package/dist/contracts/field-ops.d.ts +0 -31
- package/dist/contracts/field-ops.js +0 -35
- package/dist/contracts/form.d.ts +0 -89
- package/dist/contracts/form.js +0 -80
- package/dist/contracts/index.d.ts +0 -32
- package/dist/contracts/index.js +0 -13
- package/dist/contracts/infra.d.ts +0 -43
- package/dist/contracts/infra.js +0 -2
- package/dist/contracts/payment.d.ts +0 -39
- package/dist/contracts/payment.js +0 -2
- package/dist/contracts/registry.d.ts +0 -26
- package/dist/contracts/registry.js +0 -14
- package/dist/contracts/repository.d.ts +0 -127
- package/dist/contracts/repository.js +0 -28
- package/dist/contracts/search.d.ts +0 -44
- package/dist/contracts/search.js +0 -2
- package/dist/contracts/shipping.d.ts +0 -64
- package/dist/contracts/shipping.js +0 -2
- package/dist/contracts/storage.d.ts +0 -27
- package/dist/contracts/storage.js +0 -2
- package/dist/contracts/style.d.ts +0 -23
- package/dist/contracts/style.js +0 -2
- package/dist/contracts/table.d.ts +0 -104
- package/dist/contracts/table.js +0 -68
- package/dist/core/CacheManager.d.ts +0 -31
- package/dist/core/CacheManager.js +0 -63
- package/dist/core/EventBus.d.ts +0 -27
- package/dist/core/EventBus.js +0 -75
- package/dist/core/Logger.d.ts +0 -60
- package/dist/core/Logger.js +0 -153
- package/dist/core/Queue.d.ts +0 -43
- package/dist/core/Queue.js +0 -92
- package/dist/core/StorageManager.d.ts +0 -36
- package/dist/core/StorageManager.js +0 -159
- package/dist/core/baseline-resolver.d.ts +0 -52
- package/dist/core/baseline-resolver.js +0 -74
- package/dist/core/browser.d.ts +0 -18
- package/dist/core/browser.js +0 -9
- package/dist/core/copilot-log.repository.d.ts +0 -44
- package/dist/core/copilot-log.repository.js +0 -61
- package/dist/core/hooks/useSiteSettings.d.ts +0 -1
- package/dist/core/hooks/useSiteSettings.js +0 -11
- package/dist/core/index.d.ts +0 -34
- package/dist/core/index.js +0 -21
- package/dist/core/integration-keys.d.ts +0 -30
- package/dist/core/integration-keys.js +0 -55
- package/dist/core/mutation-events.d.ts +0 -147
- package/dist/core/mutation-events.js +0 -193
- package/dist/core/newsletter-actions.d.ts +0 -20
- package/dist/core/newsletter-actions.js +0 -28
- package/dist/core/newsletter.repository.d.ts +0 -55
- package/dist/core/newsletter.repository.js +0 -109
- package/dist/core/server-action.d.ts +0 -114
- package/dist/core/server-action.js +0 -119
- package/dist/core/site-config.d.ts +0 -33
- package/dist/core/site-config.js +0 -74
- package/dist/core/unit-of-work.d.ts +0 -32
- package/dist/core/unit-of-work.js +0 -114
- package/dist/errors/api-error.d.ts +0 -4
- package/dist/errors/api-error.js +0 -6
- package/dist/errors/authentication-error.d.ts +0 -4
- package/dist/errors/authentication-error.js +0 -6
- package/dist/errors/authorization-error.d.ts +0 -4
- package/dist/errors/authorization-error.js +0 -6
- package/dist/errors/base-error.d.ts +0 -14
- package/dist/errors/base-error.js +0 -22
- package/dist/errors/database-error.d.ts +0 -4
- package/dist/errors/database-error.js +0 -6
- package/dist/errors/error-codes.d.ts +0 -43
- package/dist/errors/error-codes.js +0 -93
- package/dist/errors/error-handler.d.ts +0 -16
- package/dist/errors/error-handler.js +0 -57
- package/dist/errors/index.d.ts +0 -11
- package/dist/errors/index.js +0 -15
- package/dist/errors/messages.d.ts +0 -469
- package/dist/errors/messages.js +0 -503
- package/dist/errors/not-found-error.d.ts +0 -4
- package/dist/errors/not-found-error.js +0 -6
- package/dist/errors/validation-error.d.ts +0 -4
- package/dist/errors/validation-error.js +0 -6
- package/dist/features/about/components/AboutView.d.ts +0 -38
- package/dist/features/about/components/AboutView.js +0 -5
- package/dist/features/about/index.d.ts +0 -2
- package/dist/features/about/index.js +0 -1
- package/dist/features/account/actions/address-actions.d.ts +0 -7
- package/dist/features/account/actions/address-actions.js +0 -24
- package/dist/features/account/actions/index.d.ts +0 -1
- package/dist/features/account/actions/index.js +0 -1
- package/dist/features/account/address-validation.d.ts +0 -20
- package/dist/features/account/address-validation.js +0 -35
- package/dist/features/account/api/[userId]/addresses/route.d.ts +0 -21
- package/dist/features/account/api/[userId]/addresses/route.js +0 -91
- package/dist/features/account/api/[userId]/route.d.ts +0 -23
- package/dist/features/account/api/[userId]/route.js +0 -67
- package/dist/features/account/columns/index.d.ts +0 -17
- package/dist/features/account/columns/index.js +0 -39
- package/dist/features/account/components/AddressBook.d.ts +0 -39
- package/dist/features/account/components/AddressBook.js +0 -14
- package/dist/features/account/components/AddressForm.d.ts +0 -39
- package/dist/features/account/components/AddressForm.js +0 -55
- package/dist/features/account/components/AddressSelectorCreate.d.ts +0 -16
- package/dist/features/account/components/AddressSelectorCreate.js +0 -40
- package/dist/features/account/components/BecomeSellerView.d.ts +0 -17
- package/dist/features/account/components/BecomeSellerView.js +0 -5
- package/dist/features/account/components/ChatList.d.ts +0 -14
- package/dist/features/account/components/ChatList.js +0 -10
- package/dist/features/account/components/ChatWindow.d.ts +0 -17
- package/dist/features/account/components/ChatWindow.js +0 -6
- package/dist/features/account/components/MessagesView.d.ts +0 -16
- package/dist/features/account/components/MessagesView.js +0 -5
- package/dist/features/account/components/NotificationBell.d.ts +0 -32
- package/dist/features/account/components/NotificationBell.js +0 -80
- package/dist/features/account/components/OrderDetailView.d.ts +0 -18
- package/dist/features/account/components/OrderDetailView.js +0 -12
- package/dist/features/account/components/ProfileView.d.ts +0 -12
- package/dist/features/account/components/ProfileView.js +0 -5
- package/dist/features/account/components/UserAccountHubView.d.ts +0 -13
- package/dist/features/account/components/UserAccountHubView.js +0 -5
- package/dist/features/account/components/UserAddressesView.d.ts +0 -13
- package/dist/features/account/components/UserAddressesView.js +0 -5
- package/dist/features/account/components/UserNotificationsView.d.ts +0 -15
- package/dist/features/account/components/UserNotificationsView.js +0 -12
- package/dist/features/account/components/UserOffersView.d.ts +0 -10
- package/dist/features/account/components/UserOffersView.js +0 -5
- package/dist/features/account/components/UserOrderTrackView.d.ts +0 -16
- package/dist/features/account/components/UserOrderTrackView.js +0 -8
- package/dist/features/account/components/UserOrdersView.d.ts +0 -12
- package/dist/features/account/components/UserOrdersView.js +0 -5
- package/dist/features/account/components/UserSettingsView.d.ts +0 -15
- package/dist/features/account/components/UserSettingsView.js +0 -12
- package/dist/features/account/components/index.d.ts +0 -34
- package/dist/features/account/components/index.js +0 -17
- package/dist/features/account/constants/addresses.d.ts +0 -13
- package/dist/features/account/constants/addresses.js +0 -43
- package/dist/features/account/hooks/useAccount.d.ts +0 -13
- package/dist/features/account/hooks/useAccount.js +0 -19
- package/dist/features/account/hooks/useAddressForm.d.ts +0 -24
- package/dist/features/account/hooks/useAddressForm.js +0 -58
- package/dist/features/account/hooks/useAddressSelector.d.ts +0 -25
- package/dist/features/account/hooks/useAddressSelector.js +0 -30
- package/dist/features/account/hooks/useAddresses.d.ts +0 -59
- package/dist/features/account/hooks/useAddresses.js +0 -73
- package/dist/features/account/hooks/useNotifications.d.ts +0 -23
- package/dist/features/account/hooks/useNotifications.js +0 -31
- package/dist/features/account/hooks/useProfile.d.ts +0 -25
- package/dist/features/account/hooks/useProfile.js +0 -24
- package/dist/features/account/hooks/useProfileStats.d.ts +0 -6
- package/dist/features/account/hooks/useProfileStats.js +0 -21
- package/dist/features/account/hooks/usePublicProfile.d.ts +0 -78
- package/dist/features/account/hooks/usePublicProfile.js +0 -51
- package/dist/features/account/index.d.ts +0 -15
- package/dist/features/account/index.js +0 -15
- package/dist/features/account/manifest.d.ts +0 -2
- package/dist/features/account/manifest.js +0 -27
- package/dist/features/account/messages/en.json +0 -12
- package/dist/features/account/repository/account.repository.d.ts +0 -11
- package/dist/features/account/repository/account.repository.js +0 -20
- package/dist/features/account/repository/address.repository.d.ts +0 -17
- package/dist/features/account/repository/address.repository.js +0 -185
- package/dist/features/account/schemas/firestore.d.ts +0 -48
- package/dist/features/account/schemas/firestore.js +0 -59
- package/dist/features/account/schemas/index.d.ts +0 -198
- package/dist/features/account/schemas/index.js +0 -51
- package/dist/features/account/server.d.ts +0 -9
- package/dist/features/account/server.js +0 -9
- package/dist/features/account/types/index.d.ts +0 -83
- package/dist/features/account/types/index.js +0 -2
- package/dist/features/admin/actions/admin-actions.d.ts +0 -35
- package/dist/features/admin/actions/admin-actions.js +0 -174
- package/dist/features/admin/actions/admin-coupon-actions.d.ts +0 -17
- package/dist/features/admin/actions/admin-coupon-actions.js +0 -87
- package/dist/features/admin/actions/admin-read-actions.d.ts +0 -105
- package/dist/features/admin/actions/admin-read-actions.js +0 -172
- package/dist/features/admin/actions/chat-actions.d.ts +0 -29
- package/dist/features/admin/actions/chat-actions.js +0 -97
- package/dist/features/admin/actions/index.d.ts +0 -6
- package/dist/features/admin/actions/index.js +0 -6
- package/dist/features/admin/actions/notification-actions.d.ts +0 -31
- package/dist/features/admin/actions/notification-actions.js +0 -42
- package/dist/features/admin/actions/site-settings-actions.d.ts +0 -8
- package/dist/features/admin/actions/site-settings-actions.js +0 -16
- package/dist/features/admin/api/bids/route.d.ts +0 -14
- package/dist/features/admin/api/bids/route.js +0 -53
- package/dist/features/admin/api/coupons/route.d.ts +0 -14
- package/dist/features/admin/api/coupons/route.js +0 -53
- package/dist/features/admin/api/products/route.d.ts +0 -14
- package/dist/features/admin/api/products/route.js +0 -54
- package/dist/features/admin/api/reviews/route.d.ts +0 -14
- package/dist/features/admin/api/reviews/route.js +0 -53
- package/dist/features/admin/components/AdminAnalyticsView.d.ts +0 -29
- package/dist/features/admin/components/AdminAnalyticsView.js +0 -15
- package/dist/features/admin/components/AdminBidsView.d.ts +0 -4
- package/dist/features/admin/components/AdminBidsView.js +0 -5
- package/dist/features/admin/components/AdminBlogView.d.ts +0 -4
- package/dist/features/admin/components/AdminBlogView.js +0 -5
- package/dist/features/admin/components/AdminCarouselView.d.ts +0 -9
- package/dist/features/admin/components/AdminCarouselView.js +0 -5
- package/dist/features/admin/components/AdminCategoriesView.d.ts +0 -9
- package/dist/features/admin/components/AdminCategoriesView.js +0 -5
- package/dist/features/admin/components/AdminCouponsView.d.ts +0 -4
- package/dist/features/admin/components/AdminCouponsView.js +0 -5
- package/dist/features/admin/components/AdminDashboardView.d.ts +0 -16
- package/dist/features/admin/components/AdminDashboardView.js +0 -11
- package/dist/features/admin/components/AdminFaqsView.d.ts +0 -4
- package/dist/features/admin/components/AdminFaqsView.js +0 -5
- package/dist/features/admin/components/AdminFeatureFlagsView.d.ts +0 -9
- package/dist/features/admin/components/AdminFeatureFlagsView.js +0 -5
- package/dist/features/admin/components/AdminFilterBar.d.ts +0 -65
- package/dist/features/admin/components/AdminFilterBar.js +0 -22
- package/dist/features/admin/components/AdminMediaView.d.ts +0 -9
- package/dist/features/admin/components/AdminMediaView.js +0 -5
- package/dist/features/admin/components/AdminNavigationView.d.ts +0 -9
- package/dist/features/admin/components/AdminNavigationView.js +0 -5
- package/dist/features/admin/components/AdminOrdersView.d.ts +0 -4
- package/dist/features/admin/components/AdminOrdersView.js +0 -5
- package/dist/features/admin/components/AdminPageHeader.d.ts +0 -53
- package/dist/features/admin/components/AdminPageHeader.js +0 -12
- package/dist/features/admin/components/AdminPayoutsView.d.ts +0 -4
- package/dist/features/admin/components/AdminPayoutsView.js +0 -5
- package/dist/features/admin/components/AdminProductsView.d.ts +0 -4
- package/dist/features/admin/components/AdminProductsView.js +0 -5
- package/dist/features/admin/components/AdminReviewsView.d.ts +0 -7
- package/dist/features/admin/components/AdminReviewsView.js +0 -5
- package/dist/features/admin/components/AdminSectionsView.d.ts +0 -9
- package/dist/features/admin/components/AdminSectionsView.js +0 -5
- package/dist/features/admin/components/AdminSessionsManager.d.ts +0 -9
- package/dist/features/admin/components/AdminSessionsManager.js +0 -5
- package/dist/features/admin/components/AdminSidebar.d.ts +0 -9
- package/dist/features/admin/components/AdminSidebar.js +0 -6
- package/dist/features/admin/components/AdminSiteView.d.ts +0 -10
- package/dist/features/admin/components/AdminSiteView.js +0 -5
- package/dist/features/admin/components/AdminStoresView.d.ts +0 -4
- package/dist/features/admin/components/AdminStoresView.js +0 -5
- package/dist/features/admin/components/AdminTopBar.d.ts +0 -8
- package/dist/features/admin/components/AdminTopBar.js +0 -8
- package/dist/features/admin/components/AdminUsersView.d.ts +0 -4
- package/dist/features/admin/components/AdminUsersView.js +0 -5
- package/dist/features/admin/components/DashboardStats.d.ts +0 -8
- package/dist/features/admin/components/DashboardStats.js +0 -21
- package/dist/features/admin/components/DataTable.d.ts +0 -19
- package/dist/features/admin/components/DataTable.js +0 -7
- package/dist/features/admin/components/DemoSeedView.d.ts +0 -11
- package/dist/features/admin/components/DemoSeedView.js +0 -5
- package/dist/features/admin/components/DrawerFormFooter.d.ts +0 -54
- package/dist/features/admin/components/DrawerFormFooter.js +0 -6
- package/dist/features/admin/components/QuickActionsPanel.d.ts +0 -15
- package/dist/features/admin/components/QuickActionsPanel.js +0 -6
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.d.ts +0 -17
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +0 -33
- package/dist/features/admin/components/analytics/AdminStatCard.d.ts +0 -8
- package/dist/features/admin/components/analytics/AdminStatCard.js +0 -6
- package/dist/features/admin/components/analytics/AdminTopProductsTable.d.ts +0 -16
- package/dist/features/admin/components/analytics/AdminTopProductsTable.js +0 -6
- package/dist/features/admin/components/analytics/index.d.ts +0 -3
- package/dist/features/admin/components/analytics/index.js +0 -3
- package/dist/features/admin/components/index.d.ts +0 -62
- package/dist/features/admin/components/index.js +0 -32
- package/dist/features/admin/hooks/useAdmin.d.ts +0 -9
- package/dist/features/admin/hooks/useAdmin.js +0 -14
- package/dist/features/admin/hooks/useChat.d.ts +0 -24
- package/dist/features/admin/hooks/useChat.js +0 -97
- package/dist/features/admin/index.d.ts +0 -8
- package/dist/features/admin/index.js +0 -7
- package/dist/features/admin/manifest.d.ts +0 -2
- package/dist/features/admin/manifest.js +0 -13
- package/dist/features/admin/messages/en.json +0 -13
- package/dist/features/admin/permission-map.d.ts +0 -3
- package/dist/features/admin/permission-map.js +0 -24
- package/dist/features/admin/repository/chat.repository.d.ts +0 -70
- package/dist/features/admin/repository/chat.repository.js +0 -216
- package/dist/features/admin/repository/notification.repository.d.ts +0 -64
- package/dist/features/admin/repository/notification.repository.js +0 -225
- package/dist/features/admin/repository/site-settings.repository.d.ts +0 -118
- package/dist/features/admin/repository/site-settings.repository.js +0 -214
- package/dist/features/admin/schemas/firestore.d.ts +0 -311
- package/dist/features/admin/schemas/firestore.js +0 -246
- package/dist/features/admin/schemas/index.d.ts +0 -1
- package/dist/features/admin/schemas/index.js +0 -1
- package/dist/features/admin/server.d.ts +0 -15
- package/dist/features/admin/server.js +0 -14
- package/dist/features/admin/types/index.d.ts +0 -61
- package/dist/features/admin/types/index.js +0 -1
- package/dist/features/admin/types/product.types.d.ts +0 -78
- package/dist/features/admin/types/product.types.js +0 -13
- package/dist/features/auctions/actions/bid-actions.d.ts +0 -22
- package/dist/features/auctions/actions/bid-actions.js +0 -106
- package/dist/features/auctions/actions/index.d.ts +0 -1
- package/dist/features/auctions/actions/index.js +0 -1
- package/dist/features/auctions/api/route.d.ts +0 -14
- package/dist/features/auctions/api/route.js +0 -67
- package/dist/features/auctions/columns/index.d.ts +0 -14
- package/dist/features/auctions/columns/index.js +0 -63
- package/dist/features/auctions/components/AuctionCard.d.ts +0 -26
- package/dist/features/auctions/components/AuctionCard.js +0 -35
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +0 -56
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +0 -112
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +0 -22
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +0 -37
- package/dist/features/auctions/components/index.d.ts +0 -3
- package/dist/features/auctions/components/index.js +0 -3
- package/dist/features/auctions/hooks/useAuctions.d.ts +0 -50
- package/dist/features/auctions/hooks/useAuctions.js +0 -93
- package/dist/features/auctions/hooks/usePlaceBid.d.ts +0 -24
- package/dist/features/auctions/hooks/usePlaceBid.js +0 -29
- package/dist/features/auctions/hooks/useRealtimeBids.d.ts +0 -38
- package/dist/features/auctions/hooks/useRealtimeBids.js +0 -66
- package/dist/features/auctions/index.d.ts +0 -8
- package/dist/features/auctions/index.js +0 -8
- package/dist/features/auctions/manifest.d.ts +0 -2
- package/dist/features/auctions/manifest.js +0 -17
- package/dist/features/auctions/messages/en.json +0 -18
- package/dist/features/auctions/repository/auctions.repository.d.ts +0 -12
- package/dist/features/auctions/repository/auctions.repository.js +0 -42
- package/dist/features/auctions/repository/bid.repository.d.ts +0 -145
- package/dist/features/auctions/repository/bid.repository.js +0 -370
- package/dist/features/auctions/schemas/firestore.d.ts +0 -48
- package/dist/features/auctions/schemas/firestore.js +0 -50
- package/dist/features/auctions/schemas/index.d.ts +0 -155
- package/dist/features/auctions/schemas/index.js +0 -64
- package/dist/features/auctions/server.d.ts +0 -10
- package/dist/features/auctions/server.js +0 -10
- package/dist/features/auctions/types/index.d.ts +0 -73
- package/dist/features/auctions/types/index.js +0 -1
- package/dist/features/auth/actions/index.d.ts +0 -2
- package/dist/features/auth/actions/index.js +0 -2
- package/dist/features/auth/actions/profile-actions.d.ts +0 -27
- package/dist/features/auth/actions/profile-actions.js +0 -50
- package/dist/features/auth/actions/realtime-token-actions.d.ts +0 -11
- package/dist/features/auth/actions/realtime-token-actions.js +0 -31
- package/dist/features/auth/api/route.d.ts +0 -22
- package/dist/features/auth/api/route.js +0 -48
- package/dist/features/auth/auth-helpers.d.ts +0 -14
- package/dist/features/auth/auth-helpers.js +0 -68
- package/dist/features/auth/components/AuthStatusPanel.d.ts +0 -10
- package/dist/features/auth/components/AuthStatusPanel.js +0 -22
- package/dist/features/auth/components/ForgotPasswordView.d.ts +0 -18
- package/dist/features/auth/components/ForgotPasswordView.js +0 -15
- package/dist/features/auth/components/Guards.d.ts +0 -86
- package/dist/features/auth/components/Guards.js +0 -91
- package/dist/features/auth/components/LoginForm.d.ts +0 -36
- package/dist/features/auth/components/LoginForm.js +0 -18
- package/dist/features/auth/components/RegisterForm.d.ts +0 -36
- package/dist/features/auth/components/RegisterForm.js +0 -27
- package/dist/features/auth/components/ResetPasswordView.d.ts +0 -23
- package/dist/features/auth/components/ResetPasswordView.js +0 -22
- package/dist/features/auth/components/SocialAuthButtons.d.ts +0 -8
- package/dist/features/auth/components/SocialAuthButtons.js +0 -6
- package/dist/features/auth/components/VerifyEmailView.d.ts +0 -20
- package/dist/features/auth/components/VerifyEmailView.js +0 -8
- package/dist/features/auth/components/index.d.ts +0 -14
- package/dist/features/auth/components/index.js +0 -8
- package/dist/features/auth/consent-otp.d.ts +0 -52
- package/dist/features/auth/consent-otp.js +0 -120
- package/dist/features/auth/hooks/useAuth.d.ts +0 -81
- package/dist/features/auth/hooks/useAuth.js +0 -164
- package/dist/features/auth/hooks/useAuthEvent.d.ts +0 -22
- package/dist/features/auth/hooks/useAuthEvent.js +0 -31
- package/dist/features/auth/hooks/useLogout.d.ts +0 -16
- package/dist/features/auth/hooks/useLogout.js +0 -22
- package/dist/features/auth/hooks/useRBAC.d.ts +0 -38
- package/dist/features/auth/hooks/useRBAC.js +0 -80
- package/dist/features/auth/index.d.ts +0 -10
- package/dist/features/auth/index.js +0 -10
- package/dist/features/auth/manifest.d.ts +0 -2
- package/dist/features/auth/manifest.js +0 -21
- package/dist/features/auth/messages/en.json +0 -13
- package/dist/features/auth/repository/index.d.ts +0 -4
- package/dist/features/auth/repository/index.js +0 -4
- package/dist/features/auth/repository/session.repository.d.ts +0 -44
- package/dist/features/auth/repository/session.repository.js +0 -246
- package/dist/features/auth/repository/sms-counter.repository.d.ts +0 -15
- package/dist/features/auth/repository/sms-counter.repository.js +0 -54
- package/dist/features/auth/repository/token.repository.d.ts +0 -38
- package/dist/features/auth/repository/token.repository.js +0 -186
- package/dist/features/auth/repository/user.repository.d.ts +0 -46
- package/dist/features/auth/repository/user.repository.js +0 -233
- package/dist/features/auth/schemas/firestore.d.ts +0 -351
- package/dist/features/auth/schemas/firestore.js +0 -272
- package/dist/features/auth/schemas/index.d.ts +0 -72
- package/dist/features/auth/schemas/index.js +0 -41
- package/dist/features/auth/server.d.ts +0 -21
- package/dist/features/auth/server.js +0 -21
- package/dist/features/auth/token-helpers.d.ts +0 -7
- package/dist/features/auth/token-helpers.js +0 -37
- package/dist/features/auth/token-store.d.ts +0 -39
- package/dist/features/auth/token-store.js +0 -120
- package/dist/features/auth/types/index.d.ts +0 -30
- package/dist/features/auth/types/index.js +0 -1
- package/dist/features/before-after/api/[id]/route.d.ts +0 -26
- package/dist/features/before-after/api/[id]/route.js +0 -88
- package/dist/features/before-after/api/route.d.ts +0 -13
- package/dist/features/before-after/api/route.js +0 -79
- package/dist/features/before-after/columns/index.d.ts +0 -17
- package/dist/features/before-after/columns/index.js +0 -50
- package/dist/features/before-after/components/BeforeAfterGallery.d.ts +0 -7
- package/dist/features/before-after/components/BeforeAfterGallery.js +0 -8
- package/dist/features/before-after/components/BeforeAfterSlider.d.ts +0 -7
- package/dist/features/before-after/components/BeforeAfterSlider.js +0 -27
- package/dist/features/before-after/components/index.d.ts +0 -2
- package/dist/features/before-after/components/index.js +0 -2
- package/dist/features/before-after/hooks/useBeforeAfter.d.ts +0 -15
- package/dist/features/before-after/hooks/useBeforeAfter.js +0 -25
- package/dist/features/before-after/index.d.ts +0 -6
- package/dist/features/before-after/index.js +0 -6
- package/dist/features/before-after/manifest.d.ts +0 -2
- package/dist/features/before-after/manifest.js +0 -10
- package/dist/features/before-after/messages/en.json +0 -8
- package/dist/features/before-after/repository/before-after.repository.d.ts +0 -13
- package/dist/features/before-after/repository/before-after.repository.js +0 -36
- package/dist/features/before-after/schemas/index.d.ts +0 -48
- package/dist/features/before-after/schemas/index.js +0 -24
- package/dist/features/before-after/server.d.ts +0 -7
- package/dist/features/before-after/server.js +0 -7
- package/dist/features/before-after/types/index.d.ts +0 -18
- package/dist/features/before-after/types/index.js +0 -1
- package/dist/features/blog/actions/blog-actions.d.ts +0 -302
- package/dist/features/blog/actions/blog-actions.js +0 -119
- package/dist/features/blog/actions/index.d.ts +0 -1
- package/dist/features/blog/actions/index.js +0 -1
- package/dist/features/blog/api/[slug]/route.d.ts +0 -23
- package/dist/features/blog/api/[slug]/route.js +0 -40
- package/dist/features/blog/api/route.d.ts +0 -12
- package/dist/features/blog/api/route.js +0 -64
- package/dist/features/blog/columns/index.d.ts +0 -27
- package/dist/features/blog/columns/index.js +0 -54
- package/dist/features/blog/components/BlogFeaturedCard.d.ts +0 -17
- package/dist/features/blog/components/BlogFeaturedCard.js +0 -24
- package/dist/features/blog/components/BlogFilters.d.ts +0 -106
- package/dist/features/blog/components/BlogFilters.js +0 -67
- package/dist/features/blog/components/BlogListView.d.ts +0 -29
- package/dist/features/blog/components/BlogListView.js +0 -38
- package/dist/features/blog/components/BlogPostForm.d.ts +0 -56
- package/dist/features/blog/components/BlogPostForm.js +0 -24
- package/dist/features/blog/components/BlogPostView.d.ts +0 -32
- package/dist/features/blog/components/BlogPostView.js +0 -39
- package/dist/features/blog/components/index.d.ts +0 -9
- package/dist/features/blog/components/index.js +0 -5
- package/dist/features/blog/hooks/useBlog.d.ts +0 -27
- package/dist/features/blog/hooks/useBlog.js +0 -51
- package/dist/features/blog/index.d.ts +0 -6
- package/dist/features/blog/index.js +0 -6
- package/dist/features/blog/manifest.d.ts +0 -2
- package/dist/features/blog/manifest.js +0 -14
- package/dist/features/blog/messages/en.json +0 -14
- package/dist/features/blog/repository/blog.repository.d.ts +0 -79
- package/dist/features/blog/repository/blog.repository.js +0 -130
- package/dist/features/blog/schemas/firestore.d.ts +0 -87
- package/dist/features/blog/schemas/firestore.js +0 -99
- package/dist/features/blog/schemas/index.d.ts +0 -207
- package/dist/features/blog/schemas/index.js +0 -71
- package/dist/features/blog/server.d.ts +0 -11
- package/dist/features/blog/server.js +0 -10
- package/dist/features/blog/types/index.d.ts +0 -47
- package/dist/features/blog/types/index.js +0 -1
- package/dist/features/cart/actions/cart-actions.d.ts +0 -16
- package/dist/features/cart/actions/cart-actions.js +0 -52
- package/dist/features/cart/actions/index.d.ts +0 -1
- package/dist/features/cart/actions/index.js +0 -1
- package/dist/features/cart/api/[id]/route.d.ts +0 -21
- package/dist/features/cart/api/[id]/route.js +0 -62
- package/dist/features/cart/api/route.d.ts +0 -13
- package/dist/features/cart/api/route.js +0 -79
- package/dist/features/cart/columns/index.d.ts +0 -17
- package/dist/features/cart/columns/index.js +0 -53
- package/dist/features/cart/components/CartDrawer.d.ts +0 -27
- package/dist/features/cart/components/CartDrawer.js +0 -14
- package/dist/features/cart/components/CartSummary.d.ts +0 -19
- package/dist/features/cart/components/CartSummary.js +0 -5
- package/dist/features/cart/components/CartView.d.ts +0 -17
- package/dist/features/cart/components/CartView.js +0 -7
- package/dist/features/cart/components/CheckoutAddressStep.d.ts +0 -20
- package/dist/features/cart/components/CheckoutAddressStep.js +0 -12
- package/dist/features/cart/components/CheckoutOtpModal.d.ts +0 -15
- package/dist/features/cart/components/CheckoutOtpModal.js +0 -12
- package/dist/features/cart/components/CheckoutSuccessView.d.ts +0 -12
- package/dist/features/cart/components/CheckoutSuccessView.js +0 -9
- package/dist/features/cart/components/CheckoutView.d.ts +0 -15
- package/dist/features/cart/components/CheckoutView.js +0 -18
- package/dist/features/cart/components/index.d.ts +0 -13
- package/dist/features/cart/components/index.js +0 -7
- package/dist/features/cart/hooks/useAddToCart.d.ts +0 -27
- package/dist/features/cart/hooks/useAddToCart.js +0 -52
- package/dist/features/cart/hooks/useCart.d.ts +0 -17
- package/dist/features/cart/hooks/useCart.js +0 -24
- package/dist/features/cart/hooks/useCartCount.d.ts +0 -7
- package/dist/features/cart/hooks/useCartCount.js +0 -19
- package/dist/features/cart/hooks/useCartQuery.d.ts +0 -8
- package/dist/features/cart/hooks/useCartQuery.js +0 -11
- package/dist/features/cart/hooks/useCheckoutReadQueries.d.ts +0 -14
- package/dist/features/cart/hooks/useCheckoutReadQueries.js +0 -18
- package/dist/features/cart/hooks/useGuestCart.d.ts +0 -18
- package/dist/features/cart/hooks/useGuestCart.js +0 -32
- package/dist/features/cart/hooks/useGuestCartMerge.d.ts +0 -15
- package/dist/features/cart/hooks/useGuestCartMerge.js +0 -50
- package/dist/features/cart/hooks/useOrder.d.ts +0 -13
- package/dist/features/cart/hooks/useOrder.js +0 -24
- package/dist/features/cart/index.d.ts +0 -14
- package/dist/features/cart/index.js +0 -14
- package/dist/features/cart/manifest.d.ts +0 -2
- package/dist/features/cart/manifest.js +0 -10
- package/dist/features/cart/messages/en.json +0 -10
- package/dist/features/cart/repository/cart.repository.d.ts +0 -23
- package/dist/features/cart/repository/cart.repository.js +0 -210
- package/dist/features/cart/schemas/firestore.d.ts +0 -83
- package/dist/features/cart/schemas/firestore.js +0 -36
- package/dist/features/cart/schemas/index.d.ts +0 -184
- package/dist/features/cart/schemas/index.js +0 -35
- package/dist/features/cart/server.d.ts +0 -8
- package/dist/features/cart/server.js +0 -8
- package/dist/features/cart/types/index.d.ts +0 -27
- package/dist/features/cart/types/index.js +0 -1
- package/dist/features/cart/utils/guest-cart.d.ts +0 -26
- package/dist/features/cart/utils/guest-cart.js +0 -83
- package/dist/features/categories/actions/category-actions.d.ts +0 -17
- package/dist/features/categories/actions/category-actions.js +0 -63
- package/dist/features/categories/actions/index.d.ts +0 -1
- package/dist/features/categories/actions/index.js +0 -1
- package/dist/features/categories/api/[id]/route.d.ts +0 -23
- package/dist/features/categories/api/[id]/route.js +0 -98
- package/dist/features/categories/api/route.d.ts +0 -19
- package/dist/features/categories/api/route.js +0 -200
- package/dist/features/categories/columns/index.d.ts +0 -15
- package/dist/features/categories/columns/index.js +0 -38
- package/dist/features/categories/components/BreadcrumbTrail.d.ts +0 -47
- package/dist/features/categories/components/BreadcrumbTrail.js +0 -36
- package/dist/features/categories/components/CategoriesListView.d.ts +0 -31
- package/dist/features/categories/components/CategoriesListView.js +0 -27
- package/dist/features/categories/components/CategoryFilters.d.ts +0 -68
- package/dist/features/categories/components/CategoryFilters.js +0 -75
- package/dist/features/categories/components/CategoryForm.d.ts +0 -24
- package/dist/features/categories/components/CategoryForm.js +0 -42
- package/dist/features/categories/components/CategoryGrid.d.ts +0 -14
- package/dist/features/categories/components/CategoryGrid.js +0 -14
- package/dist/features/categories/components/CategoryProductsView.d.ts +0 -49
- package/dist/features/categories/components/CategoryProductsView.js +0 -21
- package/dist/features/categories/components/CategorySelectorCreate.d.ts +0 -17
- package/dist/features/categories/components/CategorySelectorCreate.js +0 -57
- package/dist/features/categories/components/CategorySortSelect.d.ts +0 -9
- package/dist/features/categories/components/CategorySortSelect.js +0 -8
- package/dist/features/categories/components/CategoryTableColumns.d.ts +0 -30
- package/dist/features/categories/components/CategoryTableColumns.js +0 -54
- package/dist/features/categories/components/CategoryTree.d.ts +0 -15
- package/dist/features/categories/components/CategoryTree.js +0 -49
- package/dist/features/categories/components/ConcernCard.d.ts +0 -8
- package/dist/features/categories/components/ConcernCard.js +0 -5
- package/dist/features/categories/components/ConcernGrid.d.ts +0 -8
- package/dist/features/categories/components/ConcernGrid.js +0 -8
- package/dist/features/categories/components/index.d.ts +0 -22
- package/dist/features/categories/components/index.js +0 -12
- package/dist/features/categories/hooks/useCategories.d.ts +0 -26
- package/dist/features/categories/hooks/useCategories.js +0 -50
- package/dist/features/categories/hooks/useCategorySelector.d.ts +0 -26
- package/dist/features/categories/hooks/useCategorySelector.js +0 -42
- package/dist/features/categories/index.d.ts +0 -7
- package/dist/features/categories/index.js +0 -7
- package/dist/features/categories/manifest.d.ts +0 -2
- package/dist/features/categories/manifest.js +0 -20
- package/dist/features/categories/messages/en.json +0 -14
- package/dist/features/categories/repository/categories.repository.d.ts +0 -31
- package/dist/features/categories/repository/categories.repository.js +0 -399
- package/dist/features/categories/schemas/firestore.d.ts +0 -140
- package/dist/features/categories/schemas/firestore.js +0 -189
- package/dist/features/categories/schemas/index.d.ts +0 -207
- package/dist/features/categories/schemas/index.js +0 -67
- package/dist/features/categories/server.d.ts +0 -10
- package/dist/features/categories/server.js +0 -10
- package/dist/features/categories/types/index.d.ts +0 -80
- package/dist/features/categories/types/index.js +0 -13
- package/dist/features/checkout/actions/checkout-actions.d.ts +0 -14
- package/dist/features/checkout/actions/checkout-actions.js +0 -91
- package/dist/features/checkout/actions/index.d.ts +0 -1
- package/dist/features/checkout/actions/index.js +0 -1
- package/dist/features/checkout/components/CheckoutStepper.d.ts +0 -10
- package/dist/features/checkout/components/CheckoutStepper.js +0 -15
- package/dist/features/checkout/components/index.d.ts +0 -1
- package/dist/features/checkout/components/index.js +0 -1
- package/dist/features/checkout/hooks/useCheckout.d.ts +0 -9
- package/dist/features/checkout/hooks/useCheckout.js +0 -24
- package/dist/features/checkout/hooks/useCheckoutApi.d.ts +0 -74
- package/dist/features/checkout/hooks/useCheckoutApi.js +0 -48
- package/dist/features/checkout/hooks/usePaymentCheckout.d.ts +0 -78
- package/dist/features/checkout/hooks/usePaymentCheckout.js +0 -178
- package/dist/features/checkout/index.d.ts +0 -8
- package/dist/features/checkout/index.js +0 -7
- package/dist/features/checkout/manifest.d.ts +0 -2
- package/dist/features/checkout/manifest.js +0 -17
- package/dist/features/checkout/messages/en.json +0 -10
- package/dist/features/checkout/repository/failed-checkout.repository.d.ts +0 -18
- package/dist/features/checkout/repository/failed-checkout.repository.js +0 -29
- package/dist/features/checkout/schemas/firestore.d.ts +0 -33
- package/dist/features/checkout/schemas/firestore.js +0 -6
- package/dist/features/checkout/schemas/index.d.ts +0 -1
- package/dist/features/checkout/schemas/index.js +0 -1
- package/dist/features/checkout/server.d.ts +0 -8
- package/dist/features/checkout/server.js +0 -8
- package/dist/features/checkout/types/index.d.ts +0 -46
- package/dist/features/checkout/types/index.js +0 -2
- package/dist/features/cms/index.d.ts +0 -1
- package/dist/features/cms/index.js +0 -5
- package/dist/features/collections/api/[slug]/route.d.ts +0 -26
- package/dist/features/collections/api/[slug]/route.js +0 -102
- package/dist/features/collections/api/route.d.ts +0 -13
- package/dist/features/collections/api/route.js +0 -79
- package/dist/features/collections/columns/index.d.ts +0 -17
- package/dist/features/collections/columns/index.js +0 -55
- package/dist/features/collections/components/CollectionCard.d.ts +0 -12
- package/dist/features/collections/components/CollectionCard.js +0 -9
- package/dist/features/collections/components/index.d.ts +0 -1
- package/dist/features/collections/components/index.js +0 -1
- package/dist/features/collections/hooks/useCollections.d.ts +0 -7
- package/dist/features/collections/hooks/useCollections.js +0 -34
- package/dist/features/collections/index.d.ts +0 -6
- package/dist/features/collections/index.js +0 -6
- package/dist/features/collections/manifest.d.ts +0 -2
- package/dist/features/collections/manifest.js +0 -16
- package/dist/features/collections/messages/en.json +0 -10
- package/dist/features/collections/repository/collections.repository.d.ts +0 -8
- package/dist/features/collections/repository/collections.repository.js +0 -16
- package/dist/features/collections/schemas/index.d.ts +0 -76
- package/dist/features/collections/schemas/index.js +0 -34
- package/dist/features/collections/server.d.ts +0 -7
- package/dist/features/collections/server.js +0 -7
- package/dist/features/collections/types/index.d.ts +0 -25
- package/dist/features/collections/types/index.js +0 -1
- package/dist/features/consultation/api/[id]/route.d.ts +0 -26
- package/dist/features/consultation/api/[id]/route.js +0 -88
- package/dist/features/consultation/api/route.d.ts +0 -13
- package/dist/features/consultation/api/route.js +0 -79
- package/dist/features/consultation/columns/index.d.ts +0 -17
- package/dist/features/consultation/columns/index.js +0 -54
- package/dist/features/consultation/components/ConsultationForm.d.ts +0 -8
- package/dist/features/consultation/components/ConsultationForm.js +0 -51
- package/dist/features/consultation/components/index.d.ts +0 -1
- package/dist/features/consultation/components/index.js +0 -1
- package/dist/features/consultation/hooks/useBookConsultation.d.ts +0 -8
- package/dist/features/consultation/hooks/useBookConsultation.js +0 -16
- package/dist/features/consultation/index.d.ts +0 -6
- package/dist/features/consultation/index.js +0 -6
- package/dist/features/consultation/manifest.d.ts +0 -2
- package/dist/features/consultation/manifest.js +0 -12
- package/dist/features/consultation/messages/en.json +0 -25
- package/dist/features/consultation/repository/consultations.repository.d.ts +0 -12
- package/dist/features/consultation/repository/consultations.repository.js +0 -28
- package/dist/features/consultation/schemas/index.d.ts +0 -87
- package/dist/features/consultation/schemas/index.js +0 -47
- package/dist/features/consultation/server.d.ts +0 -7
- package/dist/features/consultation/server.js +0 -7
- package/dist/features/consultation/types/index.d.ts +0 -33
- package/dist/features/consultation/types/index.js +0 -1
- package/dist/features/contact/components/ContactForm.d.ts +0 -32
- package/dist/features/contact/components/ContactForm.js +0 -58
- package/dist/features/contact/components/ContactInfoSidebar.d.ts +0 -20
- package/dist/features/contact/components/ContactInfoSidebar.js +0 -6
- package/dist/features/contact/components/index.d.ts +0 -4
- package/dist/features/contact/components/index.js +0 -2
- package/dist/features/contact/email.d.ts +0 -61
- package/dist/features/contact/email.js +0 -345
- package/dist/features/contact/hooks/useContactSubmit.d.ts +0 -4
- package/dist/features/contact/hooks/useContactSubmit.js +0 -7
- package/dist/features/contact/index.d.ts +0 -2
- package/dist/features/contact/index.js +0 -2
- package/dist/features/contact/server.d.ts +0 -7
- package/dist/features/contact/server.js +0 -7
- package/dist/features/copilot/components/AdminCopilotView.d.ts +0 -21
- package/dist/features/copilot/components/AdminCopilotView.js +0 -29
- package/dist/features/copilot/components/index.d.ts +0 -2
- package/dist/features/copilot/components/index.js +0 -1
- package/dist/features/copilot/hooks/useCopilotChat.d.ts +0 -22
- package/dist/features/copilot/hooks/useCopilotChat.js +0 -57
- package/dist/features/copilot/hooks/useCopilotFeedback.d.ts +0 -15
- package/dist/features/copilot/hooks/useCopilotFeedback.js +0 -16
- package/dist/features/copilot/index.d.ts +0 -3
- package/dist/features/copilot/index.js +0 -3
- package/dist/features/corporate/api/[id]/route.d.ts +0 -26
- package/dist/features/corporate/api/[id]/route.js +0 -88
- package/dist/features/corporate/api/route.d.ts +0 -13
- package/dist/features/corporate/api/route.js +0 -79
- package/dist/features/corporate/columns/index.d.ts +0 -17
- package/dist/features/corporate/columns/index.js +0 -54
- package/dist/features/corporate/components/CorporateInquiryForm.d.ts +0 -7
- package/dist/features/corporate/components/CorporateInquiryForm.js +0 -36
- package/dist/features/corporate/components/index.d.ts +0 -1
- package/dist/features/corporate/components/index.js +0 -1
- package/dist/features/corporate/hooks/useSubmitCorporateInquiry.d.ts +0 -8
- package/dist/features/corporate/hooks/useSubmitCorporateInquiry.js +0 -16
- package/dist/features/corporate/index.d.ts +0 -6
- package/dist/features/corporate/index.js +0 -6
- package/dist/features/corporate/manifest.d.ts +0 -2
- package/dist/features/corporate/manifest.js +0 -12
- package/dist/features/corporate/messages/en.json +0 -26
- package/dist/features/corporate/repository/corporate.repository.d.ts +0 -12
- package/dist/features/corporate/repository/corporate.repository.js +0 -28
- package/dist/features/corporate/schemas/index.d.ts +0 -95
- package/dist/features/corporate/schemas/index.js +0 -50
- package/dist/features/corporate/server.d.ts +0 -7
- package/dist/features/corporate/server.js +0 -7
- package/dist/features/corporate/types/index.d.ts +0 -37
- package/dist/features/corporate/types/index.js +0 -1
- package/dist/features/cron/firebase-adapters.d.ts +0 -70
- package/dist/features/cron/firebase-adapters.js +0 -68
- package/dist/features/cron/index.d.ts +0 -5
- package/dist/features/cron/index.js +0 -7
- package/dist/features/cron/jobs/auction-expiry.job.d.ts +0 -27
- package/dist/features/cron/jobs/auction-expiry.job.js +0 -38
- package/dist/features/cron/jobs/preorder-reminder.job.d.ts +0 -14
- package/dist/features/cron/jobs/preorder-reminder.job.js +0 -40
- package/dist/features/cron/registry.d.ts +0 -45
- package/dist/features/cron/registry.js +0 -86
- package/dist/features/cron/types.d.ts +0 -66
- package/dist/features/cron/types.js +0 -9
- package/dist/features/events/actions/event-actions.d.ts +0 -92
- package/dist/features/events/actions/event-actions.js +0 -253
- package/dist/features/events/actions/index.d.ts +0 -1
- package/dist/features/events/actions/index.js +0 -1
- package/dist/features/events/api/[id]/route.d.ts +0 -24
- package/dist/features/events/api/[id]/route.js +0 -83
- package/dist/features/events/api/route.d.ts +0 -12
- package/dist/features/events/api/route.js +0 -88
- package/dist/features/events/columns/index.d.ts +0 -22
- package/dist/features/events/columns/index.js +0 -41
- package/dist/features/events/components/AdminEventEntriesView.d.ts +0 -17
- package/dist/features/events/components/AdminEventEntriesView.js +0 -10
- package/dist/features/events/components/AdminEventsView.d.ts +0 -11
- package/dist/features/events/components/AdminEventsView.js +0 -5
- package/dist/features/events/components/EventBanner.d.ts +0 -13
- package/dist/features/events/components/EventBanner.js +0 -48
- package/dist/features/events/components/EventCard.d.ts +0 -13
- package/dist/features/events/components/EventCard.js +0 -21
- package/dist/features/events/components/EventDetailView.d.ts +0 -15
- package/dist/features/events/components/EventDetailView.js +0 -11
- package/dist/features/events/components/EventFilters.d.ts +0 -105
- package/dist/features/events/components/EventFilters.js +0 -73
- package/dist/features/events/components/EventFormDrawer.d.ts +0 -22
- package/dist/features/events/components/EventFormDrawer.js +0 -6
- package/dist/features/events/components/EventLeaderboard.d.ts +0 -23
- package/dist/features/events/components/EventLeaderboard.js +0 -18
- package/dist/features/events/components/EventParticipateView.d.ts +0 -19
- package/dist/features/events/components/EventParticipateView.js +0 -13
- package/dist/features/events/components/EventStatusBadge.d.ts +0 -7
- package/dist/features/events/components/EventStatusBadge.js +0 -12
- package/dist/features/events/components/EventsListView.d.ts +0 -16
- package/dist/features/events/components/EventsListView.js +0 -21
- package/dist/features/events/components/index.d.ts +0 -19
- package/dist/features/events/components/index.js +0 -11
- package/dist/features/events/hooks/useBulkEvent.d.ts +0 -19
- package/dist/features/events/hooks/useBulkEvent.js +0 -36
- package/dist/features/events/hooks/useEvent.d.ts +0 -43
- package/dist/features/events/hooks/useEvent.js +0 -55
- package/dist/features/events/hooks/useEvents.d.ts +0 -27
- package/dist/features/events/hooks/useEvents.js +0 -38
- package/dist/features/events/index.d.ts +0 -8
- package/dist/features/events/index.js +0 -8
- package/dist/features/events/manifest.d.ts +0 -2
- package/dist/features/events/manifest.js +0 -24
- package/dist/features/events/messages/en.json +0 -28
- package/dist/features/events/repository/event-entry.repository.d.ts +0 -17
- package/dist/features/events/repository/event-entry.repository.js +0 -115
- package/dist/features/events/repository/events.repository.d.ts +0 -18
- package/dist/features/events/repository/events.repository.js +0 -128
- package/dist/features/events/schemas/firestore.d.ts +0 -115
- package/dist/features/events/schemas/firestore.js +0 -77
- package/dist/features/events/schemas/index.d.ts +0 -383
- package/dist/features/events/schemas/index.js +0 -87
- package/dist/features/events/server.d.ts +0 -11
- package/dist/features/events/server.js +0 -11
- package/dist/features/events/types/index.d.ts +0 -133
- package/dist/features/events/types/index.js +0 -1
- package/dist/features/faq/actions/faq-actions.d.ts +0 -191
- package/dist/features/faq/actions/faq-actions.js +0 -103
- package/dist/features/faq/actions/index.d.ts +0 -1
- package/dist/features/faq/actions/index.js +0 -1
- package/dist/features/faq/api/route.d.ts +0 -11
- package/dist/features/faq/api/route.js +0 -50
- package/dist/features/faq/columns/index.d.ts +0 -15
- package/dist/features/faq/columns/index.js +0 -47
- package/dist/features/faq/components/ContactCTA.d.ts +0 -16
- package/dist/features/faq/components/ContactCTA.js +0 -6
- package/dist/features/faq/components/FAQAccordion.d.ts +0 -20
- package/dist/features/faq/components/FAQAccordion.js +0 -17
- package/dist/features/faq/components/FAQCategorySidebar.d.ts +0 -24
- package/dist/features/faq/components/FAQCategorySidebar.js +0 -15
- package/dist/features/faq/components/FAQHelpfulButtons.d.ts +0 -19
- package/dist/features/faq/components/FAQHelpfulButtons.js +0 -46
- package/dist/features/faq/components/FAQPageContent.d.ts +0 -54
- package/dist/features/faq/components/FAQPageContent.js +0 -67
- package/dist/features/faq/components/FAQSortDropdown.d.ts +0 -13
- package/dist/features/faq/components/FAQSortDropdown.js +0 -11
- package/dist/features/faq/components/RelatedFAQs.d.ts +0 -10
- package/dist/features/faq/components/RelatedFAQs.js +0 -9
- package/dist/features/faq/components/index.d.ts +0 -9
- package/dist/features/faq/components/index.js +0 -7
- package/dist/features/faq/hooks/useFAQs.d.ts +0 -22
- package/dist/features/faq/hooks/useFAQs.js +0 -42
- package/dist/features/faq/hooks/useFaqList.d.ts +0 -194
- package/dist/features/faq/hooks/useFaqList.js +0 -35
- package/dist/features/faq/hooks/useFaqVote.d.ts +0 -14
- package/dist/features/faq/hooks/useFaqVote.js +0 -10
- package/dist/features/faq/index.d.ts +0 -8
- package/dist/features/faq/index.js +0 -8
- package/dist/features/faq/manifest.d.ts +0 -2
- package/dist/features/faq/manifest.js +0 -10
- package/dist/features/faq/messages/en.json +0 -14
- package/dist/features/faq/repository/faqs.repository.d.ts +0 -43
- package/dist/features/faq/repository/faqs.repository.js +0 -300
- package/dist/features/faq/schemas/firestore.d.ts +0 -63
- package/dist/features/faq/schemas/firestore.js +0 -115
- package/dist/features/faq/schemas/index.d.ts +0 -157
- package/dist/features/faq/schemas/index.js +0 -62
- package/dist/features/faq/server.d.ts +0 -9
- package/dist/features/faq/server.js +0 -9
- package/dist/features/faq/types/index.d.ts +0 -52
- package/dist/features/faq/types/index.js +0 -1
- package/dist/features/filters/FilterFacetSection.d.ts +0 -23
- package/dist/features/filters/FilterFacetSection.js +0 -39
- package/dist/features/filters/FilterPanel.d.ts +0 -61
- package/dist/features/filters/FilterPanel.js +0 -40
- package/dist/features/filters/RangeFilter.d.ts +0 -23
- package/dist/features/filters/RangeFilter.js +0 -28
- package/dist/features/filters/SwitchFilter.d.ts +0 -12
- package/dist/features/filters/SwitchFilter.js +0 -19
- package/dist/features/filters/filterUtils.d.ts +0 -11
- package/dist/features/filters/filterUtils.js +0 -13
- package/dist/features/filters/index.d.ts +0 -10
- package/dist/features/filters/index.js +0 -6
- package/dist/features/forms/Checkbox.d.ts +0 -8
- package/dist/features/forms/Checkbox.js +0 -15
- package/dist/features/forms/Form.d.ts +0 -25
- package/dist/features/forms/Form.js +0 -38
- package/dist/features/forms/Input.d.ts +0 -10
- package/dist/features/forms/Input.js +0 -23
- package/dist/features/forms/Radio.d.ts +0 -17
- package/dist/features/forms/Radio.js +0 -19
- package/dist/features/forms/Select.d.ts +0 -13
- package/dist/features/forms/Select.js +0 -8
- package/dist/features/forms/Slider.d.ts +0 -20
- package/dist/features/forms/Slider.js +0 -22
- package/dist/features/forms/Textarea.d.ts +0 -8
- package/dist/features/forms/Textarea.js +0 -15
- package/dist/features/forms/Toggle.d.ts +0 -15
- package/dist/features/forms/Toggle.js +0 -48
- package/dist/features/forms/index.d.ts +0 -17
- package/dist/features/forms/index.js +0 -11
- package/dist/features/forms/utils.d.ts +0 -10
- package/dist/features/forms/utils.js +0 -13
- package/dist/features/homepage/actions/carousel-actions.d.ts +0 -37
- package/dist/features/homepage/actions/carousel-actions.js +0 -54
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +0 -46
- package/dist/features/homepage/actions/homepage-section-actions.js +0 -55
- package/dist/features/homepage/actions/index.d.ts +0 -2
- package/dist/features/homepage/actions/index.js +0 -2
- package/dist/features/homepage/api/[id]/route.d.ts +0 -23
- package/dist/features/homepage/api/[id]/route.js +0 -100
- package/dist/features/homepage/api/carousel/[id]/route.d.ts +0 -23
- package/dist/features/homepage/api/carousel/[id]/route.js +0 -122
- package/dist/features/homepage/api/carousel/route.d.ts +0 -15
- package/dist/features/homepage/api/carousel/route.js +0 -154
- package/dist/features/homepage/api/route.d.ts +0 -14
- package/dist/features/homepage/api/route.js +0 -136
- package/dist/features/homepage/api/sections/[id]/route.d.ts +0 -26
- package/dist/features/homepage/api/sections/[id]/route.js +0 -88
- package/dist/features/homepage/api/sections/route.d.ts +0 -13
- package/dist/features/homepage/api/sections/route.js +0 -79
- package/dist/features/homepage/components/AdvertisementBanner.d.ts +0 -13
- package/dist/features/homepage/components/AdvertisementBanner.js +0 -23
- package/dist/features/homepage/components/BeforeAfterCard.d.ts +0 -10
- package/dist/features/homepage/components/BeforeAfterCard.js +0 -54
- package/dist/features/homepage/components/CharacterHotspot.d.ts +0 -24
- package/dist/features/homepage/components/CharacterHotspot.js +0 -373
- package/dist/features/homepage/components/CharacterHotspotForm.d.ts +0 -26
- package/dist/features/homepage/components/CharacterHotspotForm.js +0 -309
- package/dist/features/homepage/components/CustomerReviewsSection.d.ts +0 -13
- package/dist/features/homepage/components/CustomerReviewsSection.js +0 -14
- package/dist/features/homepage/components/FAQSection.d.ts +0 -26
- package/dist/features/homepage/components/FAQSection.js +0 -20
- package/dist/features/homepage/components/FeaturedResultsSection.d.ts +0 -17
- package/dist/features/homepage/components/FeaturedResultsSection.js +0 -18
- package/dist/features/homepage/components/HeroBanner.d.ts +0 -7
- package/dist/features/homepage/components/HeroBanner.js +0 -93
- package/dist/features/homepage/components/HeroCarousel.d.ts +0 -12
- package/dist/features/homepage/components/HeroCarousel.js +0 -157
- package/dist/features/homepage/components/HeroSection.d.ts +0 -7
- package/dist/features/homepage/components/HeroSection.js +0 -12
- package/dist/features/homepage/components/HomepageSkeleton.d.ts +0 -2
- package/dist/features/homepage/components/HomepageSkeleton.js +0 -14
- package/dist/features/homepage/components/HomepageView.d.ts +0 -25
- package/dist/features/homepage/components/HomepageView.js +0 -5
- package/dist/features/homepage/components/HowItWorksInfoView.d.ts +0 -36
- package/dist/features/homepage/components/HowItWorksInfoView.js +0 -8
- package/dist/features/homepage/components/HowItWorksSection.d.ts +0 -23
- package/dist/features/homepage/components/HowItWorksSection.js +0 -36
- package/dist/features/homepage/components/NewsletterBanner.d.ts +0 -22
- package/dist/features/homepage/components/NewsletterBanner.js +0 -34
- package/dist/features/homepage/components/NewsletterSection.d.ts +0 -10
- package/dist/features/homepage/components/NewsletterSection.js +0 -8
- package/dist/features/homepage/components/PromoGrid.d.ts +0 -9
- package/dist/features/homepage/components/PromoGrid.js +0 -35
- package/dist/features/homepage/components/SectionCarousel.d.ts +0 -75
- package/dist/features/homepage/components/SectionCarousel.js +0 -39
- package/dist/features/homepage/components/SecurityHighlightsSection.d.ts +0 -21
- package/dist/features/homepage/components/SecurityHighlightsSection.js +0 -36
- package/dist/features/homepage/components/SiteFeaturesSection.d.ts +0 -13
- package/dist/features/homepage/components/SiteFeaturesSection.js +0 -9
- package/dist/features/homepage/components/StatsCounterSection.d.ts +0 -14
- package/dist/features/homepage/components/StatsCounterSection.js +0 -32
- package/dist/features/homepage/components/TestimonialsCarousel.d.ts +0 -9
- package/dist/features/homepage/components/TestimonialsCarousel.js +0 -30
- package/dist/features/homepage/components/TrustBadges.d.ts +0 -5
- package/dist/features/homepage/components/TrustBadges.js +0 -54
- package/dist/features/homepage/components/TrustFeaturesSection.d.ts +0 -16
- package/dist/features/homepage/components/TrustFeaturesSection.js +0 -41
- package/dist/features/homepage/components/TrustIndicatorsSection.d.ts +0 -11
- package/dist/features/homepage/components/TrustIndicatorsSection.js +0 -9
- package/dist/features/homepage/components/WelcomeSection.d.ts +0 -20
- package/dist/features/homepage/components/WelcomeSection.js +0 -12
- package/dist/features/homepage/components/WhatsAppCommunitySection.d.ts +0 -15
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +0 -21
- package/dist/features/homepage/components/index.d.ts +0 -52
- package/dist/features/homepage/components/index.js +0 -27
- package/dist/features/homepage/hooks/useBlogArticles.d.ts +0 -12
- package/dist/features/homepage/hooks/useBlogArticles.js +0 -31
- package/dist/features/homepage/hooks/useFeaturedAuctions.d.ts +0 -2
- package/dist/features/homepage/hooks/useFeaturedAuctions.js +0 -26
- package/dist/features/homepage/hooks/useFeaturedPreOrders.d.ts +0 -2
- package/dist/features/homepage/hooks/useFeaturedPreOrders.js +0 -26
- package/dist/features/homepage/hooks/useFeaturedProducts.d.ts +0 -4
- package/dist/features/homepage/hooks/useFeaturedProducts.js +0 -32
- package/dist/features/homepage/hooks/useHeroCarousel.d.ts +0 -9
- package/dist/features/homepage/hooks/useHeroCarousel.js +0 -17
- package/dist/features/homepage/hooks/useHomepage.d.ts +0 -11
- package/dist/features/homepage/hooks/useHomepage.js +0 -18
- package/dist/features/homepage/hooks/useHomepageReviews.d.ts +0 -7
- package/dist/features/homepage/hooks/useHomepageReviews.js +0 -16
- package/dist/features/homepage/hooks/useHomepageSections.d.ts +0 -2
- package/dist/features/homepage/hooks/useHomepageSections.js +0 -11
- package/dist/features/homepage/hooks/useNewsletter.d.ts +0 -14
- package/dist/features/homepage/hooks/useNewsletter.js +0 -10
- package/dist/features/homepage/hooks/useTopBrands.d.ts +0 -2
- package/dist/features/homepage/hooks/useTopBrands.js +0 -12
- package/dist/features/homepage/hooks/useTopCategories.d.ts +0 -4
- package/dist/features/homepage/hooks/useTopCategories.js +0 -13
- package/dist/features/homepage/index.d.ts +0 -13
- package/dist/features/homepage/index.js +0 -13
- package/dist/features/homepage/manifest.d.ts +0 -2
- package/dist/features/homepage/manifest.js +0 -14
- package/dist/features/homepage/messages/en.json +0 -6
- package/dist/features/homepage/repository/carousel.repository.d.ts +0 -101
- package/dist/features/homepage/repository/carousel.repository.js +0 -252
- package/dist/features/homepage/repository/homepage-sections.repository.d.ts +0 -27
- package/dist/features/homepage/repository/homepage-sections.repository.js +0 -174
- package/dist/features/homepage/repository/homepage.repository.d.ts +0 -11
- package/dist/features/homepage/repository/homepage.repository.js +0 -25
- package/dist/features/homepage/schemas/firestore.d.ts +0 -251
- package/dist/features/homepage/schemas/firestore.js +0 -83
- package/dist/features/homepage/schemas/index.d.ts +0 -1
- package/dist/features/homepage/schemas/index.js +0 -1
- package/dist/features/homepage/server.d.ts +0 -10
- package/dist/features/homepage/server.js +0 -10
- package/dist/features/homepage/types/index.d.ts +0 -163
- package/dist/features/homepage/types/index.js +0 -1
- package/dist/features/layout/AutoBreadcrumbs.d.ts +0 -15
- package/dist/features/layout/AutoBreadcrumbs.js +0 -84
- package/dist/features/layout/BackToTop.d.ts +0 -16
- package/dist/features/layout/BackToTop.js +0 -26
- package/dist/features/layout/BottomActions.d.ts +0 -1
- package/dist/features/layout/BottomActions.js +0 -153
- package/dist/features/layout/BottomActionsContext.d.ts +0 -107
- package/dist/features/layout/BottomActionsContext.js +0 -114
- package/dist/features/layout/BottomNavItem.d.ts +0 -28
- package/dist/features/layout/BottomNavItem.js +0 -28
- package/dist/features/layout/BottomNavLayout.d.ts +0 -14
- package/dist/features/layout/BottomNavLayout.js +0 -12
- package/dist/features/layout/BottomNavbar.d.ts +0 -46
- package/dist/features/layout/BottomNavbar.js +0 -19
- package/dist/features/layout/BottomSheet.d.ts +0 -29
- package/dist/features/layout/BottomSheet.js +0 -40
- package/dist/features/layout/Breadcrumbs.d.ts +0 -26
- package/dist/features/layout/Breadcrumbs.js +0 -25
- package/dist/features/layout/DashboardNavContext.d.ts +0 -19
- package/dist/features/layout/DashboardNavContext.js +0 -36
- package/dist/features/layout/FooterLayout.d.ts +0 -39
- package/dist/features/layout/FooterLayout.js +0 -12
- package/dist/features/layout/LayoutClient.d.ts +0 -11
- package/dist/features/layout/LayoutClient.js +0 -7
- package/dist/features/layout/ListingLayout.d.ts +0 -35
- package/dist/features/layout/ListingLayout.js +0 -104
- package/dist/features/layout/LocaleSwitcher.d.ts +0 -22
- package/dist/features/layout/LocaleSwitcher.js +0 -12
- package/dist/features/layout/MainNavbar.d.ts +0 -32
- package/dist/features/layout/MainNavbar.js +0 -29
- package/dist/features/layout/NavItem.d.ts +0 -19
- package/dist/features/layout/NavItem.js +0 -35
- package/dist/features/layout/NavbarLayout.d.ts +0 -27
- package/dist/features/layout/NavbarLayout.js +0 -23
- package/dist/features/layout/SidebarLayout.d.ts +0 -24
- package/dist/features/layout/SidebarLayout.js +0 -29
- package/dist/features/layout/TitleBar.d.ts +0 -18
- package/dist/features/layout/TitleBar.js +0 -19
- package/dist/features/layout/TitleBarLayout.d.ts +0 -48
- package/dist/features/layout/TitleBarLayout.js +0 -17
- package/dist/features/layout/hooks/useBottomActions.d.ts +0 -7
- package/dist/features/layout/hooks/useBottomActions.js +0 -28
- package/dist/features/layout/index.d.ts +0 -41
- package/dist/features/layout/index.js +0 -23
- package/dist/features/loyalty/api/admin/loyalty/grant/route.d.ts +0 -12
- package/dist/features/loyalty/api/admin/loyalty/grant/route.js +0 -36
- package/dist/features/loyalty/api/balance/route.d.ts +0 -12
- package/dist/features/loyalty/api/balance/route.js +0 -39
- package/dist/features/loyalty/api/earn/route.d.ts +0 -12
- package/dist/features/loyalty/api/earn/route.js +0 -36
- package/dist/features/loyalty/api/history/route.d.ts +0 -12
- package/dist/features/loyalty/api/history/route.js +0 -56
- package/dist/features/loyalty/api/redeem/route.d.ts +0 -12
- package/dist/features/loyalty/api/redeem/route.js +0 -36
- package/dist/features/loyalty/columns/index.d.ts +0 -17
- package/dist/features/loyalty/columns/index.js +0 -40
- package/dist/features/loyalty/components/CoinsDisplay.d.ts +0 -11
- package/dist/features/loyalty/components/CoinsDisplay.js +0 -9
- package/dist/features/loyalty/components/index.d.ts +0 -1
- package/dist/features/loyalty/components/index.js +0 -1
- package/dist/features/loyalty/hooks/useLoyaltyBalance.d.ts +0 -4
- package/dist/features/loyalty/hooks/useLoyaltyBalance.js +0 -18
- package/dist/features/loyalty/index.d.ts +0 -6
- package/dist/features/loyalty/index.js +0 -6
- package/dist/features/loyalty/manifest.d.ts +0 -2
- package/dist/features/loyalty/manifest.js +0 -16
- package/dist/features/loyalty/messages/en.json +0 -19
- package/dist/features/loyalty/repository/loyalty.repository.d.ts +0 -8
- package/dist/features/loyalty/repository/loyalty.repository.js +0 -22
- package/dist/features/loyalty/schemas/index.d.ts +0 -85
- package/dist/features/loyalty/schemas/index.js +0 -40
- package/dist/features/loyalty/server.d.ts +0 -7
- package/dist/features/loyalty/server.js +0 -7
- package/dist/features/loyalty/types/index.d.ts +0 -31
- package/dist/features/loyalty/types/index.js +0 -1
- package/dist/features/loyalty/types/loyalty-config.d.ts +0 -7
- package/dist/features/loyalty/types/loyalty-config.js +0 -1
- package/dist/features/loyalty/types/loyalty-math.d.ts +0 -9
- package/dist/features/loyalty/types/loyalty-math.js +0 -27
- package/dist/features/media/AvatarUpload.d.ts +0 -22
- package/dist/features/media/AvatarUpload.js +0 -133
- package/dist/features/media/MediaAvatar.d.ts +0 -12
- package/dist/features/media/MediaAvatar.js +0 -13
- package/dist/features/media/MediaImage.d.ts +0 -28
- package/dist/features/media/MediaImage.js +0 -35
- package/dist/features/media/MediaLightbox.d.ts +0 -32
- package/dist/features/media/MediaLightbox.js +0 -245
- package/dist/features/media/MediaVideo.d.ts +0 -22
- package/dist/features/media/MediaVideo.js +0 -38
- package/dist/features/media/components/MediaSlider.d.ts +0 -10
- package/dist/features/media/components/MediaSlider.js +0 -12
- package/dist/features/media/finalize.d.ts +0 -11
- package/dist/features/media/finalize.js +0 -70
- package/dist/features/media/hooks/useMedia.d.ts +0 -198
- package/dist/features/media/hooks/useMedia.js +0 -78
- package/dist/features/media/index.d.ts +0 -30
- package/dist/features/media/index.js +0 -21
- package/dist/features/media/messages/en.json +0 -63
- package/dist/features/media/modals/ImageCropModal.d.ts +0 -16
- package/dist/features/media/modals/ImageCropModal.js +0 -99
- package/dist/features/media/modals/VideoThumbnailSelector.d.ts +0 -10
- package/dist/features/media/modals/VideoThumbnailSelector.js +0 -51
- package/dist/features/media/modals/VideoTrimModal.d.ts +0 -11
- package/dist/features/media/modals/VideoTrimModal.js +0 -73
- package/dist/features/media/server.d.ts +0 -2
- package/dist/features/media/server.js +0 -2
- package/dist/features/media/types/index.d.ts +0 -29
- package/dist/features/media/types/index.js +0 -43
- package/dist/features/media/upload/CameraCapture.d.ts +0 -8
- package/dist/features/media/upload/CameraCapture.js +0 -59
- package/dist/features/media/upload/ImageUpload.d.ts +0 -14
- package/dist/features/media/upload/ImageUpload.js +0 -132
- package/dist/features/media/upload/MediaUploadField.d.ts +0 -31
- package/dist/features/media/upload/MediaUploadField.js +0 -204
- package/dist/features/media/upload/MediaUploadList.d.ts +0 -26
- package/dist/features/media/upload/MediaUploadList.js +0 -104
- package/dist/features/orders/actions/index.d.ts +0 -2
- package/dist/features/orders/actions/index.js +0 -2
- package/dist/features/orders/actions/order-actions.d.ts +0 -16
- package/dist/features/orders/actions/order-actions.js +0 -46
- package/dist/features/orders/actions/refund-actions.d.ts +0 -16
- package/dist/features/orders/actions/refund-actions.js +0 -88
- package/dist/features/orders/api/track/[trackingId]/route.d.ts +0 -17
- package/dist/features/orders/api/track/[trackingId]/route.js +0 -30
- package/dist/features/orders/columns/index.d.ts +0 -15
- package/dist/features/orders/columns/index.js +0 -34
- package/dist/features/orders/components/MarketplaceOrderCard.d.ts +0 -37
- package/dist/features/orders/components/MarketplaceOrderCard.js +0 -52
- package/dist/features/orders/components/OrderFilters.d.ts +0 -82
- package/dist/features/orders/components/OrderFilters.js +0 -106
- package/dist/features/orders/components/OrdersList.d.ts +0 -18
- package/dist/features/orders/components/OrdersList.js +0 -37
- package/dist/features/orders/components/index.d.ts +0 -4
- package/dist/features/orders/components/index.js +0 -3
- package/dist/features/orders/hooks/useOrders.d.ts +0 -32
- package/dist/features/orders/hooks/useOrders.js +0 -57
- package/dist/features/orders/index.d.ts +0 -7
- package/dist/features/orders/index.js +0 -7
- package/dist/features/orders/manifest.d.ts +0 -2
- package/dist/features/orders/manifest.js +0 -18
- package/dist/features/orders/messages/en.json +0 -15
- package/dist/features/orders/repository/orders.repository.d.ts +0 -188
- package/dist/features/orders/repository/orders.repository.js +0 -300
- package/dist/features/orders/schemas/firestore.d.ts +0 -129
- package/dist/features/orders/schemas/firestore.js +0 -96
- package/dist/features/orders/schemas/index.d.ts +0 -217
- package/dist/features/orders/schemas/index.js +0 -76
- package/dist/features/orders/server.d.ts +0 -9
- package/dist/features/orders/server.js +0 -10
- package/dist/features/orders/types/index.d.ts +0 -69
- package/dist/features/orders/types/index.js +0 -2
- package/dist/features/orders/utils/order-splitter.d.ts +0 -14
- package/dist/features/orders/utils/order-splitter.js +0 -29
- package/dist/features/payments/columns/index.d.ts +0 -17
- package/dist/features/payments/columns/index.js +0 -45
- package/dist/features/payments/hooks/usePaymentEvent.d.ts +0 -17
- package/dist/features/payments/hooks/usePaymentEvent.js +0 -26
- package/dist/features/payments/hooks/usePayments.d.ts +0 -10
- package/dist/features/payments/hooks/usePayments.js +0 -19
- package/dist/features/payments/index.d.ts +0 -6
- package/dist/features/payments/index.js +0 -6
- package/dist/features/payments/manifest.d.ts +0 -2
- package/dist/features/payments/manifest.js +0 -12
- package/dist/features/payments/messages/en.json +0 -11
- package/dist/features/payments/repository/payments.repository.d.ts +0 -15
- package/dist/features/payments/repository/payments.repository.js +0 -36
- package/dist/features/payments/repository/payout.repository.d.ts +0 -111
- package/dist/features/payments/repository/payout.repository.js +0 -202
- package/dist/features/payments/schemas/firestore.d.ts +0 -74
- package/dist/features/payments/schemas/firestore.js +0 -65
- package/dist/features/payments/schemas/index.d.ts +0 -77
- package/dist/features/payments/schemas/index.js +0 -67
- package/dist/features/payments/server.d.ts +0 -8
- package/dist/features/payments/server.js +0 -8
- package/dist/features/payments/types/index.d.ts +0 -36
- package/dist/features/payments/types/index.js +0 -2
- package/dist/features/pre-orders/api/[id]/route.d.ts +0 -26
- package/dist/features/pre-orders/api/[id]/route.js +0 -88
- package/dist/features/pre-orders/api/[slug]/route.d.ts +0 -16
- package/dist/features/pre-orders/api/[slug]/route.js +0 -41
- package/dist/features/pre-orders/api/admin/[id]/route.d.ts +0 -21
- package/dist/features/pre-orders/api/admin/[id]/route.js +0 -65
- package/dist/features/pre-orders/api/admin/route.d.ts +0 -12
- package/dist/features/pre-orders/api/admin/route.js +0 -56
- package/dist/features/pre-orders/api/route.d.ts +0 -13
- package/dist/features/pre-orders/api/route.js +0 -77
- package/dist/features/pre-orders/columns/index.d.ts +0 -17
- package/dist/features/pre-orders/columns/index.js +0 -68
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +0 -24
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +0 -53
- package/dist/features/pre-orders/components/PreOrderBadge.d.ts +0 -14
- package/dist/features/pre-orders/components/PreOrderBadge.js +0 -17
- package/dist/features/pre-orders/components/PreorderCard.d.ts +0 -12
- package/dist/features/pre-orders/components/PreorderCard.js +0 -27
- package/dist/features/pre-orders/components/index.d.ts +0 -2
- package/dist/features/pre-orders/components/index.js +0 -2
- package/dist/features/pre-orders/hooks/usePreOrders.d.ts +0 -7
- package/dist/features/pre-orders/hooks/usePreOrders.js +0 -34
- package/dist/features/pre-orders/index.d.ts +0 -6
- package/dist/features/pre-orders/index.js +0 -6
- package/dist/features/pre-orders/manifest.d.ts +0 -2
- package/dist/features/pre-orders/manifest.js +0 -17
- package/dist/features/pre-orders/messages/en.json +0 -13
- package/dist/features/pre-orders/repository/pre-orders.repository.d.ts +0 -14
- package/dist/features/pre-orders/repository/pre-orders.repository.js +0 -44
- package/dist/features/pre-orders/repository/preorders.repository.d.ts +0 -8
- package/dist/features/pre-orders/repository/preorders.repository.js +0 -21
- package/dist/features/pre-orders/schemas/index.d.ts +0 -79
- package/dist/features/pre-orders/schemas/index.js +0 -27
- package/dist/features/pre-orders/server.d.ts +0 -8
- package/dist/features/pre-orders/server.js +0 -8
- package/dist/features/pre-orders/types/index.d.ts +0 -29
- package/dist/features/pre-orders/types/index.js +0 -12
- package/dist/features/products/actions/index.d.ts +0 -1
- package/dist/features/products/actions/index.js +0 -1
- package/dist/features/products/actions/product-actions.d.ts +0 -26
- package/dist/features/products/actions/product-actions.js +0 -111
- package/dist/features/products/api/[id]/route.d.ts +0 -29
- package/dist/features/products/api/[id]/route.js +0 -137
- package/dist/features/products/api/route.d.ts +0 -19
- package/dist/features/products/api/route.js +0 -214
- package/dist/features/products/columns/index.d.ts +0 -64
- package/dist/features/products/columns/index.js +0 -85
- package/dist/features/products/columns/productTableColumns.d.ts +0 -27
- package/dist/features/products/columns/productTableColumns.js +0 -88
- package/dist/features/products/components/AuctionDetailView.d.ts +0 -13
- package/dist/features/products/components/AuctionDetailView.js +0 -9
- package/dist/features/products/components/AuctionsView.d.ts +0 -6
- package/dist/features/products/components/AuctionsView.js +0 -5
- package/dist/features/products/components/BidHistory.d.ts +0 -28
- package/dist/features/products/components/BidHistory.js +0 -18
- package/dist/features/products/components/BuyBar.d.ts +0 -21
- package/dist/features/products/components/BuyBar.js +0 -20
- package/dist/features/products/components/InteractiveProductCard.d.ts +0 -19
- package/dist/features/products/components/InteractiveProductCard.js +0 -18
- package/dist/features/products/components/MakeOfferForm.d.ts +0 -20
- package/dist/features/products/components/MakeOfferForm.js +0 -8
- package/dist/features/products/components/PlaceBidForm.d.ts +0 -20
- package/dist/features/products/components/PlaceBidForm.js +0 -6
- package/dist/features/products/components/PreOrderDetailView.d.ts +0 -14
- package/dist/features/products/components/PreOrderDetailView.js +0 -9
- package/dist/features/products/components/PreOrdersView.d.ts +0 -6
- package/dist/features/products/components/PreOrdersView.js +0 -5
- package/dist/features/products/components/ProductDetailView.d.ts +0 -11
- package/dist/features/products/components/ProductDetailView.js +0 -9
- package/dist/features/products/components/ProductFeatureBadges.d.ts +0 -32
- package/dist/features/products/components/ProductFeatureBadges.js +0 -103
- package/dist/features/products/components/ProductFilters.d.ts +0 -90
- package/dist/features/products/components/ProductFilters.js +0 -105
- package/dist/features/products/components/ProductForm.d.ts +0 -47
- package/dist/features/products/components/ProductForm.js +0 -120
- package/dist/features/products/components/ProductGrid.d.ts +0 -69
- package/dist/features/products/components/ProductGrid.js +0 -92
- package/dist/features/products/components/ProductInfo.d.ts +0 -20
- package/dist/features/products/components/ProductInfo.js +0 -4
- package/dist/features/products/components/ProductTabs.d.ts +0 -21
- package/dist/features/products/components/ProductTabs.js +0 -22
- package/dist/features/products/components/ProductsView.d.ts +0 -6
- package/dist/features/products/components/ProductsView.js +0 -5
- package/dist/features/products/components/RelatedProducts.d.ts +0 -16
- package/dist/features/products/components/RelatedProducts.js +0 -12
- package/dist/features/products/components/index.d.ts +0 -34
- package/dist/features/products/components/index.js +0 -18
- package/dist/features/products/hooks/useBrands.d.ts +0 -9
- package/dist/features/products/hooks/useBrands.js +0 -15
- package/dist/features/products/hooks/useProductDetail.d.ts +0 -15
- package/dist/features/products/hooks/useProductDetail.js +0 -29
- package/dist/features/products/hooks/useProducts.d.ts +0 -43
- package/dist/features/products/hooks/useProducts.js +0 -67
- package/dist/features/products/hooks/useRelatedProducts.d.ts +0 -2
- package/dist/features/products/hooks/useRelatedProducts.js +0 -17
- package/dist/features/products/index.d.ts +0 -10
- package/dist/features/products/index.js +0 -10
- package/dist/features/products/manifest.d.ts +0 -2
- package/dist/features/products/manifest.js +0 -16
- package/dist/features/products/messages/en.json +0 -11
- package/dist/features/products/repository/products.repository.d.ts +0 -213
- package/dist/features/products/repository/products.repository.js +0 -300
- package/dist/features/products/schemas/firestore.d.ts +0 -125
- package/dist/features/products/schemas/firestore.js +0 -149
- package/dist/features/products/schemas/index.d.ts +0 -400
- package/dist/features/products/schemas/index.js +0 -173
- package/dist/features/products/server.d.ts +0 -10
- package/dist/features/products/server.js +0 -10
- package/dist/features/products/types/index.d.ts +0 -122
- package/dist/features/products/types/index.js +0 -1
- package/dist/features/products/utils/listing-type.d.ts +0 -2
- package/dist/features/products/utils/listing-type.js +0 -9
- package/dist/features/promotions/actions/coupon-actions.d.ts +0 -28
- package/dist/features/promotions/actions/coupon-actions.js +0 -23
- package/dist/features/promotions/actions/index.d.ts +0 -3
- package/dist/features/promotions/actions/index.js +0 -3
- package/dist/features/promotions/actions/promotions-actions.d.ts +0 -18
- package/dist/features/promotions/actions/promotions-actions.js +0 -37
- package/dist/features/promotions/actions/seller-coupon-actions.d.ts +0 -41
- package/dist/features/promotions/actions/seller-coupon-actions.js +0 -92
- package/dist/features/promotions/api/route.d.ts +0 -21
- package/dist/features/promotions/api/route.js +0 -85
- package/dist/features/promotions/columns/index.d.ts +0 -12
- package/dist/features/promotions/columns/index.js +0 -45
- package/dist/features/promotions/components/CouponCard.d.ts +0 -16
- package/dist/features/promotions/components/CouponCard.js +0 -20
- package/dist/features/promotions/components/PromotionsView.d.ts +0 -43
- package/dist/features/promotions/components/PromotionsView.js +0 -10
- package/dist/features/promotions/components/index.d.ts +0 -3
- package/dist/features/promotions/components/index.js +0 -2
- package/dist/features/promotions/hooks/useCouponValidate.d.ts +0 -22
- package/dist/features/promotions/hooks/useCouponValidate.js +0 -10
- package/dist/features/promotions/hooks/usePromotions.d.ts +0 -21
- package/dist/features/promotions/hooks/usePromotions.js +0 -49
- package/dist/features/promotions/index.d.ts +0 -7
- package/dist/features/promotions/index.js +0 -7
- package/dist/features/promotions/manifest.d.ts +0 -2
- package/dist/features/promotions/manifest.js +0 -14
- package/dist/features/promotions/messages/en.json +0 -20
- package/dist/features/promotions/repository/coupons.repository.d.ts +0 -224
- package/dist/features/promotions/repository/coupons.repository.js +0 -539
- package/dist/features/promotions/repository/promotions.repository.d.ts +0 -14
- package/dist/features/promotions/repository/promotions.repository.js +0 -43
- package/dist/features/promotions/schemas/firestore.d.ts +0 -105
- package/dist/features/promotions/schemas/firestore.js +0 -124
- package/dist/features/promotions/schemas/index.d.ts +0 -117
- package/dist/features/promotions/schemas/index.js +0 -58
- package/dist/features/promotions/server.d.ts +0 -10
- package/dist/features/promotions/server.js +0 -10
- package/dist/features/promotions/types/index.d.ts +0 -51
- package/dist/features/promotions/types/index.js +0 -2
- package/dist/features/reviews/actions/index.d.ts +0 -1
- package/dist/features/reviews/actions/index.js +0 -1
- package/dist/features/reviews/actions/review-actions.d.ts +0 -40
- package/dist/features/reviews/actions/review-actions.js +0 -182
- package/dist/features/reviews/api/[id]/route.d.ts +0 -23
- package/dist/features/reviews/api/[id]/route.js +0 -109
- package/dist/features/reviews/api/route.d.ts +0 -21
- package/dist/features/reviews/api/route.js +0 -171
- package/dist/features/reviews/columns/index.d.ts +0 -15
- package/dist/features/reviews/columns/index.js +0 -44
- package/dist/features/reviews/components/ReviewFilters.d.ts +0 -74
- package/dist/features/reviews/components/ReviewFilters.js +0 -60
- package/dist/features/reviews/components/ReviewModal.d.ts +0 -11
- package/dist/features/reviews/components/ReviewModal.js +0 -25
- package/dist/features/reviews/components/ReviewSummary.d.ts +0 -16
- package/dist/features/reviews/components/ReviewSummary.js +0 -20
- package/dist/features/reviews/components/ReviewsList.d.ts +0 -15
- package/dist/features/reviews/components/ReviewsList.js +0 -25
- package/dist/features/reviews/components/ReviewsListView.d.ts +0 -31
- package/dist/features/reviews/components/ReviewsListView.js +0 -16
- package/dist/features/reviews/components/index.d.ts +0 -10
- package/dist/features/reviews/components/index.js +0 -5
- package/dist/features/reviews/hooks/useCreateReview.d.ts +0 -12
- package/dist/features/reviews/hooks/useCreateReview.js +0 -20
- package/dist/features/reviews/hooks/useReviews.d.ts +0 -34
- package/dist/features/reviews/hooks/useReviews.js +0 -49
- package/dist/features/reviews/index.d.ts +0 -7
- package/dist/features/reviews/index.js +0 -7
- package/dist/features/reviews/manifest.d.ts +0 -2
- package/dist/features/reviews/manifest.js +0 -10
- package/dist/features/reviews/messages/en.json +0 -10
- package/dist/features/reviews/repository/reviews.repository.d.ts +0 -103
- package/dist/features/reviews/repository/reviews.repository.js +0 -214
- package/dist/features/reviews/schemas/firestore.d.ts +0 -67
- package/dist/features/reviews/schemas/firestore.js +0 -59
- package/dist/features/reviews/schemas/index.d.ts +0 -183
- package/dist/features/reviews/schemas/index.js +0 -68
- package/dist/features/reviews/server.d.ts +0 -10
- package/dist/features/reviews/server.js +0 -10
- package/dist/features/reviews/types/index.d.ts +0 -62
- package/dist/features/reviews/types/index.js +0 -1
- package/dist/features/search/actions/index.d.ts +0 -1
- package/dist/features/search/actions/index.js +0 -1
- package/dist/features/search/actions/search-actions.d.ts +0 -18
- package/dist/features/search/actions/search-actions.js +0 -43
- package/dist/features/search/api/route.d.ts +0 -22
- package/dist/features/search/api/route.js +0 -79
- package/dist/features/search/columns/index.d.ts +0 -17
- package/dist/features/search/columns/index.js +0 -49
- package/dist/features/search/components/Search.d.ts +0 -41
- package/dist/features/search/components/Search.js +0 -263
- package/dist/features/search/components/SearchFiltersRow.d.ts +0 -22
- package/dist/features/search/components/SearchFiltersRow.js +0 -21
- package/dist/features/search/components/SearchResultsSection.d.ts +0 -53
- package/dist/features/search/components/SearchResultsSection.js +0 -36
- package/dist/features/search/components/SearchView.d.ts +0 -29
- package/dist/features/search/components/SearchView.js +0 -8
- package/dist/features/search/components/index.d.ts +0 -8
- package/dist/features/search/components/index.js +0 -4
- package/dist/features/search/hooks/useNavSuggestions.d.ts +0 -11
- package/dist/features/search/hooks/useNavSuggestions.js +0 -32
- package/dist/features/search/hooks/useSearch.d.ts +0 -21
- package/dist/features/search/hooks/useSearch.js +0 -34
- package/dist/features/search/index.d.ts +0 -7
- package/dist/features/search/index.js +0 -7
- package/dist/features/search/manifest.d.ts +0 -2
- package/dist/features/search/manifest.js +0 -10
- package/dist/features/search/messages/en.json +0 -15
- package/dist/features/search/repository/search.repository.d.ts +0 -14
- package/dist/features/search/repository/search.repository.js +0 -59
- package/dist/features/search/schemas/index.d.ts +0 -70
- package/dist/features/search/schemas/index.js +0 -34
- package/dist/features/search/server.d.ts +0 -5
- package/dist/features/search/server.js +0 -5
- package/dist/features/search/types/index.d.ts +0 -46
- package/dist/features/search/types/index.js +0 -2
- package/dist/features/seller/actions/index.d.ts +0 -2
- package/dist/features/seller/actions/index.js +0 -2
- package/dist/features/seller/actions/offer-actions.d.ts +0 -32
- package/dist/features/seller/actions/offer-actions.js +0 -266
- package/dist/features/seller/actions/seller-actions.d.ts +0 -172
- package/dist/features/seller/actions/seller-actions.js +0 -480
- package/dist/features/seller/api/coupons/route.d.ts +0 -17
- package/dist/features/seller/api/coupons/route.js +0 -47
- package/dist/features/seller/api/offers/route.d.ts +0 -17
- package/dist/features/seller/api/offers/route.js +0 -63
- package/dist/features/seller/api/products/route.d.ts +0 -17
- package/dist/features/seller/api/products/route.js +0 -64
- package/dist/features/seller/api/store/route.d.ts +0 -17
- package/dist/features/seller/api/store/route.js +0 -34
- package/dist/features/seller/columns/index.d.ts +0 -22
- package/dist/features/seller/columns/index.js +0 -73
- package/dist/features/seller/components/SellerAddressesView.d.ts +0 -13
- package/dist/features/seller/components/SellerAddressesView.js +0 -5
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +0 -13
- package/dist/features/seller/components/SellerAnalyticsView.js +0 -17
- package/dist/features/seller/components/SellerAuctionsView.d.ts +0 -6
- package/dist/features/seller/components/SellerAuctionsView.js +0 -5
- package/dist/features/seller/components/SellerCouponsView.d.ts +0 -6
- package/dist/features/seller/components/SellerCouponsView.js +0 -5
- package/dist/features/seller/components/SellerCreateProductView.d.ts +0 -11
- package/dist/features/seller/components/SellerCreateProductView.js +0 -5
- package/dist/features/seller/components/SellerDashboardView.d.ts +0 -14
- package/dist/features/seller/components/SellerDashboardView.js +0 -11
- package/dist/features/seller/components/SellerEditProductView.d.ts +0 -11
- package/dist/features/seller/components/SellerEditProductView.js +0 -5
- package/dist/features/seller/components/SellerGuideView.d.ts +0 -12
- package/dist/features/seller/components/SellerGuideView.js +0 -5
- package/dist/features/seller/components/SellerOffersView.d.ts +0 -4
- package/dist/features/seller/components/SellerOffersView.js +0 -5
- package/dist/features/seller/components/SellerOrdersView.d.ts +0 -4
- package/dist/features/seller/components/SellerOrdersView.js +0 -5
- package/dist/features/seller/components/SellerPayoutHistoryTable.d.ts +0 -14
- package/dist/features/seller/components/SellerPayoutHistoryTable.js +0 -10
- package/dist/features/seller/components/SellerPayoutSettingsView.d.ts +0 -11
- package/dist/features/seller/components/SellerPayoutSettingsView.js +0 -5
- package/dist/features/seller/components/SellerPayoutStats.d.ts +0 -8
- package/dist/features/seller/components/SellerPayoutStats.js +0 -9
- package/dist/features/seller/components/SellerPayoutsView.d.ts +0 -18
- package/dist/features/seller/components/SellerPayoutsView.js +0 -11
- package/dist/features/seller/components/SellerProductsView.d.ts +0 -6
- package/dist/features/seller/components/SellerProductsView.js +0 -5
- package/dist/features/seller/components/SellerShippingView.d.ts +0 -12
- package/dist/features/seller/components/SellerShippingView.js +0 -5
- package/dist/features/seller/components/SellerSidebar.d.ts +0 -16
- package/dist/features/seller/components/SellerSidebar.js +0 -11
- package/dist/features/seller/components/SellerStatCard.d.ts +0 -14
- package/dist/features/seller/components/SellerStatCard.js +0 -5
- package/dist/features/seller/components/SellerStoreSetupView.d.ts +0 -12
- package/dist/features/seller/components/SellerStoreSetupView.js +0 -8
- package/dist/features/seller/components/SellerStoreView.d.ts +0 -8
- package/dist/features/seller/components/SellerStoreView.js +0 -8
- package/dist/features/seller/components/SellerStorefrontView.d.ts +0 -13
- package/dist/features/seller/components/SellerStorefrontView.js +0 -10
- package/dist/features/seller/components/SellersListView.d.ts +0 -4
- package/dist/features/seller/components/SellersListView.js +0 -5
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.d.ts +0 -14
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +0 -9
- package/dist/features/seller/components/analytics/SellerRevenueChart.d.ts +0 -13
- package/dist/features/seller/components/analytics/SellerRevenueChart.js +0 -28
- package/dist/features/seller/components/analytics/SellerTopProducts.d.ts +0 -17
- package/dist/features/seller/components/analytics/SellerTopProducts.js +0 -6
- package/dist/features/seller/components/analytics/index.d.ts +0 -3
- package/dist/features/seller/components/analytics/index.js +0 -3
- package/dist/features/seller/components/index.d.ts +0 -44
- package/dist/features/seller/components/index.js +0 -23
- package/dist/features/seller/hooks/useBecomeSeller.d.ts +0 -12
- package/dist/features/seller/hooks/useBecomeSeller.js +0 -26
- package/dist/features/seller/hooks/useSellerPayouts.d.ts +0 -25
- package/dist/features/seller/hooks/useSellerPayouts.js +0 -42
- package/dist/features/seller/hooks/useSellerStore.d.ts +0 -28
- package/dist/features/seller/hooks/useSellerStore.js +0 -48
- package/dist/features/seller/hooks/useSellerStorefront.d.ts +0 -16
- package/dist/features/seller/hooks/useSellerStorefront.js +0 -57
- package/dist/features/seller/index.d.ts +0 -10
- package/dist/features/seller/index.js +0 -10
- package/dist/features/seller/manifest.d.ts +0 -2
- package/dist/features/seller/manifest.js +0 -74
- package/dist/features/seller/messages/en.json +0 -32
- package/dist/features/seller/permission-map.d.ts +0 -3
- package/dist/features/seller/permission-map.js +0 -15
- package/dist/features/seller/repository/offer.repository.d.ts +0 -66
- package/dist/features/seller/repository/offer.repository.js +0 -210
- package/dist/features/seller/repository/seller.repository.d.ts +0 -22
- package/dist/features/seller/repository/seller.repository.js +0 -72
- package/dist/features/seller/schemas/firestore.d.ts +0 -76
- package/dist/features/seller/schemas/firestore.js +0 -57
- package/dist/features/seller/schemas/index.d.ts +0 -244
- package/dist/features/seller/schemas/index.js +0 -100
- package/dist/features/seller/server.d.ts +0 -13
- package/dist/features/seller/server.js +0 -13
- package/dist/features/seller/types/index.d.ts +0 -147
- package/dist/features/seller/types/index.js +0 -2
- package/dist/features/stores/actions/index.d.ts +0 -2
- package/dist/features/stores/actions/index.js +0 -2
- package/dist/features/stores/actions/store-address-actions.d.ts +0 -11
- package/dist/features/stores/actions/store-address-actions.js +0 -54
- package/dist/features/stores/actions/store-query-actions.d.ts +0 -34
- package/dist/features/stores/actions/store-query-actions.js +0 -113
- package/dist/features/stores/api/[storeSlug]/auctions/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/auctions/route.js +0 -92
- package/dist/features/stores/api/[storeSlug]/products/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/products/route.js +0 -97
- package/dist/features/stores/api/[storeSlug]/reviews/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/reviews/route.js +0 -101
- package/dist/features/stores/api/[storeSlug]/route.d.ts +0 -21
- package/dist/features/stores/api/[storeSlug]/route.js +0 -66
- package/dist/features/stores/api/route.d.ts +0 -12
- package/dist/features/stores/api/route.js +0 -101
- package/dist/features/stores/columns/index.d.ts +0 -16
- package/dist/features/stores/columns/index.js +0 -45
- package/dist/features/stores/components/InteractiveStoreCard.d.ts +0 -20
- package/dist/features/stores/components/InteractiveStoreCard.js +0 -16
- package/dist/features/stores/components/StoreAboutView.d.ts +0 -21
- package/dist/features/stores/components/StoreAboutView.js +0 -12
- package/dist/features/stores/components/StoreAddressSelectorCreate.d.ts +0 -16
- package/dist/features/stores/components/StoreAddressSelectorCreate.js +0 -40
- package/dist/features/stores/components/StoreAuctionsView.d.ts +0 -17
- package/dist/features/stores/components/StoreAuctionsView.js +0 -5
- package/dist/features/stores/components/StoreHeader.d.ts +0 -15
- package/dist/features/stores/components/StoreHeader.js +0 -8
- package/dist/features/stores/components/StoreNavTabs.d.ts +0 -15
- package/dist/features/stores/components/StoreNavTabs.js +0 -14
- package/dist/features/stores/components/StoreProductsView.d.ts +0 -30
- package/dist/features/stores/components/StoreProductsView.js +0 -11
- package/dist/features/stores/components/StoreReviewsView.d.ts +0 -17
- package/dist/features/stores/components/StoreReviewsView.js +0 -9
- package/dist/features/stores/components/StoresListView.d.ts +0 -19
- package/dist/features/stores/components/StoresListView.js +0 -24
- package/dist/features/stores/components/index.d.ts +0 -16
- package/dist/features/stores/components/index.js +0 -9
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +0 -23
- package/dist/features/stores/hooks/useStoreAddressSelector.js +0 -30
- package/dist/features/stores/hooks/useStores.d.ts +0 -58
- package/dist/features/stores/hooks/useStores.js +0 -96
- package/dist/features/stores/index.d.ts +0 -7
- package/dist/features/stores/index.js +0 -7
- package/dist/features/stores/manifest.d.ts +0 -2
- package/dist/features/stores/manifest.js +0 -35
- package/dist/features/stores/messages/en.json +0 -21
- package/dist/features/stores/repository/store-address.repository.d.ts +0 -55
- package/dist/features/stores/repository/store-address.repository.js +0 -188
- package/dist/features/stores/repository/store.repository.d.ts +0 -67
- package/dist/features/stores/repository/store.repository.js +0 -181
- package/dist/features/stores/repository/stores.repository.d.ts +0 -11
- package/dist/features/stores/repository/stores.repository.js +0 -34
- package/dist/features/stores/schemas/firestore.d.ts +0 -117
- package/dist/features/stores/schemas/firestore.js +0 -109
- package/dist/features/stores/schemas/index.d.ts +0 -85
- package/dist/features/stores/schemas/index.js +0 -48
- package/dist/features/stores/server.d.ts +0 -15
- package/dist/features/stores/server.js +0 -15
- package/dist/features/stores/types/index.d.ts +0 -102
- package/dist/features/stores/types/index.js +0 -2
- package/dist/features/whatsapp-bot/api/send-status/route.d.ts +0 -12
- package/dist/features/whatsapp-bot/api/send-status/route.js +0 -36
- package/dist/features/whatsapp-bot/api/webhook/route.d.ts +0 -12
- package/dist/features/whatsapp-bot/api/webhook/route.js +0 -41
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.d.ts +0 -8
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +0 -7
- package/dist/features/whatsapp-bot/components/index.d.ts +0 -1
- package/dist/features/whatsapp-bot/components/index.js +0 -1
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +0 -21
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +0 -125
- package/dist/features/whatsapp-bot/index.d.ts +0 -3
- package/dist/features/whatsapp-bot/index.js +0 -3
- package/dist/features/whatsapp-bot/manifest.d.ts +0 -2
- package/dist/features/whatsapp-bot/manifest.js +0 -13
- package/dist/features/whatsapp-bot/messages/en.json +0 -7
- package/dist/features/whatsapp-bot/server.d.ts +0 -7
- package/dist/features/whatsapp-bot/server.js +0 -7
- package/dist/features/whatsapp-bot/types/index.d.ts +0 -50
- package/dist/features/whatsapp-bot/types/index.js +0 -1
- package/dist/features/wishlist/actions/index.d.ts +0 -1
- package/dist/features/wishlist/actions/index.js +0 -1
- package/dist/features/wishlist/actions/wishlist-actions.d.ts +0 -20
- package/dist/features/wishlist/actions/wishlist-actions.js +0 -29
- package/dist/features/wishlist/columns/index.d.ts +0 -17
- package/dist/features/wishlist/columns/index.js +0 -42
- package/dist/features/wishlist/components/WishlistPage.d.ts +0 -16
- package/dist/features/wishlist/components/WishlistPage.js +0 -17
- package/dist/features/wishlist/components/WishlistToggleButton.d.ts +0 -12
- package/dist/features/wishlist/components/WishlistToggleButton.js +0 -21
- package/dist/features/wishlist/components/WishlistView.d.ts +0 -33
- package/dist/features/wishlist/components/WishlistView.js +0 -41
- package/dist/features/wishlist/components/index.d.ts +0 -4
- package/dist/features/wishlist/components/index.js +0 -3
- package/dist/features/wishlist/hooks/useUserWishlist.d.ts +0 -187
- package/dist/features/wishlist/hooks/useUserWishlist.js +0 -17
- package/dist/features/wishlist/hooks/useWishlist.d.ts +0 -16
- package/dist/features/wishlist/hooks/useWishlist.js +0 -23
- package/dist/features/wishlist/hooks/useWishlistToggle.d.ts +0 -10
- package/dist/features/wishlist/hooks/useWishlistToggle.js +0 -32
- package/dist/features/wishlist/index.d.ts +0 -9
- package/dist/features/wishlist/index.js +0 -8
- package/dist/features/wishlist/manifest.d.ts +0 -2
- package/dist/features/wishlist/manifest.js +0 -12
- package/dist/features/wishlist/messages/en.json +0 -7
- package/dist/features/wishlist/repository/user-wishlist.repository.d.ts +0 -14
- package/dist/features/wishlist/repository/user-wishlist.repository.js +0 -91
- package/dist/features/wishlist/repository/wishlist.repository.d.ts +0 -13
- package/dist/features/wishlist/repository/wishlist.repository.js +0 -31
- package/dist/features/wishlist/schemas/index.d.ts +0 -46
- package/dist/features/wishlist/schemas/index.js +0 -24
- package/dist/features/wishlist/server.d.ts +0 -9
- package/dist/features/wishlist/server.js +0 -9
- package/dist/features/wishlist/types/index.d.ts +0 -16
- package/dist/features/wishlist/types/index.js +0 -1
- package/dist/http/ApiClient.d.ts +0 -59
- package/dist/http/ApiClient.js +0 -149
- package/dist/http/api-handler.d.ts +0 -33
- package/dist/http/api-handler.js +0 -89
- package/dist/http/index.d.ts +0 -9
- package/dist/http/index.js +0 -8
- package/dist/instrumentation/index.d.ts +0 -64
- package/dist/instrumentation/index.js +0 -55
- package/dist/monitoring/analytics.d.ts +0 -79
- package/dist/monitoring/analytics.js +0 -171
- package/dist/monitoring/browser.d.ts +0 -10
- package/dist/monitoring/browser.js +0 -6
- package/dist/monitoring/cache-metrics.d.ts +0 -24
- package/dist/monitoring/cache-metrics.js +0 -83
- package/dist/monitoring/client-logger.d.ts +0 -29
- package/dist/monitoring/client-logger.js +0 -127
- package/dist/monitoring/error-tracking.d.ts +0 -50
- package/dist/monitoring/error-tracking.js +0 -54
- package/dist/monitoring/index.d.ts +0 -12
- package/dist/monitoring/index.js +0 -7
- package/dist/monitoring/performance.d.ts +0 -31
- package/dist/monitoring/performance.js +0 -34
- package/dist/monitoring/runtime.d.ts +0 -17
- package/dist/monitoring/runtime.js +0 -28
- package/dist/monitoring/server-logger.d.ts +0 -37
- package/dist/monitoring/server-logger.js +0 -289
- package/dist/next/ErrorBoundary.d.ts +0 -19
- package/dist/next/ErrorBoundary.js +0 -35
- package/dist/next/IAuthVerifier.d.ts +0 -54
- package/dist/next/IAuthVerifier.js +0 -23
- package/dist/next/api/api-response.d.ts +0 -29
- package/dist/next/api/api-response.js +0 -31
- package/dist/next/api/apiHandler.d.ts +0 -48
- package/dist/next/api/apiHandler.js +0 -87
- package/dist/next/api/errorHandler.d.ts +0 -57
- package/dist/next/api/errorHandler.js +0 -72
- package/dist/next/api/routeHandler.d.ts +0 -60
- package/dist/next/api/routeHandler.js +0 -113
- package/dist/next/cache-middleware.d.ts +0 -35
- package/dist/next/cache-middleware.js +0 -77
- package/dist/next/components/ErrorView.d.ts +0 -13
- package/dist/next/components/ErrorView.js +0 -32
- package/dist/next/components/GlobalError.d.ts +0 -7
- package/dist/next/components/GlobalError.js +0 -43
- package/dist/next/components/NotFoundView.d.ts +0 -28
- package/dist/next/components/NotFoundView.js +0 -25
- package/dist/next/components/UnauthorizedView.d.ts +0 -28
- package/dist/next/components/UnauthorizedView.js +0 -22
- package/dist/next/index.d.ts +0 -35
- package/dist/next/index.js +0 -30
- package/dist/next/middleware/chain.d.ts +0 -47
- package/dist/next/middleware/chain.js +0 -80
- package/dist/next/middleware/index.d.ts +0 -6
- package/dist/next/middleware/index.js +0 -3
- package/dist/next/middleware/pii-redactor.d.ts +0 -32
- package/dist/next/middleware/pii-redactor.js +0 -82
- package/dist/next/middleware/pii-scrubber.d.ts +0 -11
- package/dist/next/middleware/pii-scrubber.js +0 -43
- package/dist/next/middleware/types.d.ts +0 -18
- package/dist/next/middleware/types.js +0 -1
- package/dist/next/request-helpers.d.ts +0 -25
- package/dist/next/request-helpers.js +0 -52
- package/dist/next/routing/route-map.d.ts +0 -272
- package/dist/next/routing/route-map.js +0 -202
- package/dist/providers/auth-firebase/browser-stub.d.ts +0 -24
- package/dist/providers/auth-firebase/browser-stub.js +0 -28
- package/dist/providers/auth-firebase/helpers.d.ts +0 -83
- package/dist/providers/auth-firebase/helpers.js +0 -205
- package/dist/providers/auth-firebase/index.d.ts +0 -11
- package/dist/providers/auth-firebase/index.js +0 -16
- package/dist/providers/auth-firebase/provider.d.ts +0 -8
- package/dist/providers/auth-firebase/provider.js +0 -118
- package/dist/providers/auth-firebase/session.d.ts +0 -19
- package/dist/providers/auth-firebase/session.js +0 -86
- package/dist/providers/db-firebase/admin-app-lite.d.ts +0 -6
- package/dist/providers/db-firebase/admin-app-lite.js +0 -50
- package/dist/providers/db-firebase/admin-auth-lite.d.ts +0 -5
- package/dist/providers/db-firebase/admin-auth-lite.js +0 -10
- package/dist/providers/db-firebase/admin-storage-lite.d.ts +0 -6
- package/dist/providers/db-firebase/admin-storage-lite.js +0 -11
- package/dist/providers/db-firebase/admin.d.ts +0 -29
- package/dist/providers/db-firebase/admin.js +0 -163
- package/dist/providers/db-firebase/base.d.ts +0 -44
- package/dist/providers/db-firebase/base.js +0 -180
- package/dist/providers/db-firebase/base.repository.d.ts +0 -34
- package/dist/providers/db-firebase/base.repository.js +0 -235
- package/dist/providers/db-firebase/browser-stub.d.ts +0 -37
- package/dist/providers/db-firebase/browser-stub.js +0 -56
- package/dist/providers/db-firebase/client-config.d.ts +0 -22
- package/dist/providers/db-firebase/client-config.js +0 -30
- package/dist/providers/db-firebase/field-ops.d.ts +0 -7
- package/dist/providers/db-firebase/field-ops.js +0 -13
- package/dist/providers/db-firebase/helpers.d.ts +0 -23
- package/dist/providers/db-firebase/helpers.js +0 -67
- package/dist/providers/db-firebase/index.d.ts +0 -31
- package/dist/providers/db-firebase/index.js +0 -42
- package/dist/providers/db-firebase/realtime.d.ts +0 -43
- package/dist/providers/db-firebase/realtime.js +0 -122
- package/dist/providers/db-firebase/rtdb-paths.d.ts +0 -12
- package/dist/providers/db-firebase/rtdb-paths.js +0 -12
- package/dist/providers/db-firebase/sieve.d.ts +0 -76
- package/dist/providers/db-firebase/sieve.js +0 -83
- package/dist/providers/email-resend/index.d.ts +0 -15
- package/dist/providers/email-resend/index.js +0 -14
- package/dist/providers/email-resend/provider.d.ts +0 -43
- package/dist/providers/email-resend/provider.js +0 -75
- package/dist/providers/firebase-client/auth.d.ts +0 -12
- package/dist/providers/firebase-client/auth.js +0 -30
- package/dist/providers/firebase-client/index.d.ts +0 -9
- package/dist/providers/firebase-client/index.js +0 -9
- package/dist/providers/firebase-client/realtime.d.ts +0 -18
- package/dist/providers/firebase-client/realtime.js +0 -39
- package/dist/providers/payment-razorpay/index.d.ts +0 -93
- package/dist/providers/payment-razorpay/index.js +0 -206
- package/dist/providers/shipping-shiprocket/index.d.ts +0 -272
- package/dist/providers/shipping-shiprocket/index.js +0 -148
- package/dist/providers/shipping-shiprocket/shiprocket-provider.d.ts +0 -46
- package/dist/providers/shipping-shiprocket/shiprocket-provider.js +0 -152
- package/dist/providers/storage-firebase/client.d.ts +0 -56
- package/dist/providers/storage-firebase/client.js +0 -141
- package/dist/providers/storage-firebase/index.d.ts +0 -16
- package/dist/providers/storage-firebase/index.js +0 -16
- package/dist/providers/storage-firebase/provider.d.ts +0 -23
- package/dist/providers/storage-firebase/provider.js +0 -103
- package/dist/react/ErrorBoundary.d.ts +0 -31
- package/dist/react/ErrorBoundary.js +0 -68
- package/dist/react/contexts/SessionContext.d.ts +0 -80
- package/dist/react/contexts/SessionContext.js +0 -350
- package/dist/react/contexts/ThemeContext.d.ts +0 -14
- package/dist/react/contexts/ThemeContext.js +0 -65
- package/dist/react/contexts/index.d.ts +0 -4
- package/dist/react/contexts/index.js +0 -2
- package/dist/react/hooks/useBreakpoint.d.ts +0 -29
- package/dist/react/hooks/useBreakpoint.js +0 -37
- package/dist/react/hooks/useBulkAction.d.ts +0 -65
- package/dist/react/hooks/useBulkAction.js +0 -69
- package/dist/react/hooks/useBulkSelection.d.ts +0 -40
- package/dist/react/hooks/useBulkSelection.js +0 -58
- package/dist/react/hooks/useCamera.d.ts +0 -34
- package/dist/react/hooks/useCamera.js +0 -147
- package/dist/react/hooks/useClickOutside.d.ts +0 -37
- package/dist/react/hooks/useClickOutside.js +0 -57
- package/dist/react/hooks/useContainerGrid.d.ts +0 -39
- package/dist/react/hooks/useContainerGrid.js +0 -47
- package/dist/react/hooks/useCountdown.d.ts +0 -26
- package/dist/react/hooks/useCountdown.js +0 -49
- package/dist/react/hooks/useGesture.d.ts +0 -51
- package/dist/react/hooks/useGesture.js +0 -181
- package/dist/react/hooks/useKeyPress.d.ts +0 -48
- package/dist/react/hooks/useKeyPress.js +0 -62
- package/dist/react/hooks/useLongPress.d.ts +0 -26
- package/dist/react/hooks/useLongPress.js +0 -55
- package/dist/react/hooks/useMediaQuery.d.ts +0 -17
- package/dist/react/hooks/useMediaQuery.js +0 -34
- package/dist/react/hooks/useMessage.d.ts +0 -11
- package/dist/react/hooks/useMessage.js +0 -45
- package/dist/react/hooks/usePendingFilters.d.ts +0 -58
- package/dist/react/hooks/usePendingFilters.js +0 -79
- package/dist/react/hooks/usePendingTable.d.ts +0 -49
- package/dist/react/hooks/usePendingTable.js +0 -45
- package/dist/react/hooks/usePullToRefresh.d.ts +0 -38
- package/dist/react/hooks/usePullToRefresh.js +0 -82
- package/dist/react/hooks/useRealtimeEvent.d.ts +0 -53
- package/dist/react/hooks/useRealtimeEvent.js +0 -124
- package/dist/react/hooks/useSwipe.d.ts +0 -55
- package/dist/react/hooks/useSwipe.js +0 -165
- package/dist/react/hooks/useUnsavedChanges.d.ts +0 -44
- package/dist/react/hooks/useUnsavedChanges.js +0 -55
- package/dist/react/hooks/useUrlTable.d.ts +0 -31
- package/dist/react/hooks/useUrlTable.js +0 -137
- package/dist/react/hooks/useVisibleItems.d.ts +0 -37
- package/dist/react/hooks/useVisibleItems.js +0 -59
- package/dist/react/index.d.ts +0 -50
- package/dist/react/index.js +0 -47
- package/dist/react/useModalStack.d.ts +0 -33
- package/dist/react/useModalStack.js +0 -61
- package/dist/repositories/index.d.ts +0 -38
- package/dist/repositories/index.js +0 -40
- package/dist/security/authorization.d.ts +0 -24
- package/dist/security/authorization.js +0 -73
- package/dist/security/browser.d.ts +0 -7
- package/dist/security/browser.js +0 -5
- package/dist/security/csp.d.ts +0 -16
- package/dist/security/csp.js +0 -44
- package/dist/security/index.d.ts +0 -11
- package/dist/security/index.js +0 -8
- package/dist/security/pii-encrypt.d.ts +0 -121
- package/dist/security/pii-encrypt.js +0 -351
- package/dist/security/pii-redact.d.ts +0 -20
- package/dist/security/pii-redact.js +0 -129
- package/dist/security/pii-schemas.d.ts +0 -38
- package/dist/security/pii-schemas.js +0 -62
- package/dist/security/rate-limit.d.ts +0 -70
- package/dist/security/rate-limit.js +0 -107
- package/dist/security/rbac/Can.d.ts +0 -31
- package/dist/security/rbac/Can.js +0 -24
- package/dist/security/rbac/default-roles.d.ts +0 -2
- package/dist/security/rbac/default-roles.js +0 -83
- package/dist/security/rbac/hook.d.ts +0 -20
- package/dist/security/rbac/hook.js +0 -30
- package/dist/security/rbac/index.d.ts +0 -8
- package/dist/security/rbac/index.js +0 -6
- package/dist/security/rbac/middleware.d.ts +0 -51
- package/dist/security/rbac/middleware.js +0 -51
- package/dist/security/rbac/resolver.d.ts +0 -5
- package/dist/security/rbac/resolver.js +0 -38
- package/dist/security/rbac/server.d.ts +0 -24
- package/dist/security/rbac/server.js +0 -42
- package/dist/security/rbac/types.d.ts +0 -22
- package/dist/security/rbac/types.js +0 -2
- package/dist/security/settings-encryption.d.ts +0 -5
- package/dist/security/settings-encryption.js +0 -48
- package/dist/seed/actions/demo-seed-actions.d.ts +0 -31
- package/dist/seed/actions/demo-seed-actions.js +0 -36
- package/dist/seed/actions/index.d.ts +0 -1
- package/dist/seed/actions/index.js +0 -1
- package/dist/seed/addresses-seed-data.d.ts +0 -19
- package/dist/seed/addresses-seed-data.js +0 -418
- package/dist/seed/bids-seed-data.d.ts +0 -7
- package/dist/seed/bids-seed-data.js +0 -1168
- package/dist/seed/blog-posts-seed-data.d.ts +0 -7
- package/dist/seed/blog-posts-seed-data.js +0 -215
- package/dist/seed/carousel-slides-seed-data.d.ts +0 -7
- package/dist/seed/carousel-slides-seed-data.js +0 -283
- package/dist/seed/cart-seed-data.d.ts +0 -20
- package/dist/seed/cart-seed-data.js +0 -179
- package/dist/seed/categories-seed-data.d.ts +0 -7
- package/dist/seed/categories-seed-data.js +0 -1220
- package/dist/seed/coupons-seed-data.d.ts +0 -7
- package/dist/seed/coupons-seed-data.js +0 -508
- package/dist/seed/defaults/categories.d.ts +0 -2
- package/dist/seed/defaults/categories.js +0 -12
- package/dist/seed/defaults/faqs.d.ts +0 -2
- package/dist/seed/defaults/faqs.js +0 -40
- package/dist/seed/defaults/homepage-sections.d.ts +0 -2
- package/dist/seed/defaults/homepage-sections.js +0 -59
- package/dist/seed/events-seed-data.d.ts +0 -8
- package/dist/seed/events-seed-data.js +0 -662
- package/dist/seed/factories/address.factory.d.ts +0 -21
- package/dist/seed/factories/address.factory.js +0 -44
- package/dist/seed/factories/bid.factory.d.ts +0 -15
- package/dist/seed/factories/bid.factory.js +0 -33
- package/dist/seed/factories/blog-post.factory.d.ts +0 -15
- package/dist/seed/factories/blog-post.factory.js +0 -22
- package/dist/seed/factories/carousel.factory.d.ts +0 -11
- package/dist/seed/factories/carousel.factory.js +0 -16
- package/dist/seed/factories/cart.factory.d.ts +0 -26
- package/dist/seed/factories/cart.factory.js +0 -35
- package/dist/seed/factories/category.factory.d.ts +0 -11
- package/dist/seed/factories/category.factory.js +0 -16
- package/dist/seed/factories/coupon.factory.d.ts +0 -21
- package/dist/seed/factories/coupon.factory.js +0 -43
- package/dist/seed/factories/faq.factory.d.ts +0 -10
- package/dist/seed/factories/faq.factory.js +0 -15
- package/dist/seed/factories/homepage-section.factory.d.ts +0 -9
- package/dist/seed/factories/homepage-section.factory.js +0 -13
- package/dist/seed/factories/notification.factory.d.ts +0 -17
- package/dist/seed/factories/notification.factory.js +0 -39
- package/dist/seed/factories/order.factory.d.ts +0 -20
- package/dist/seed/factories/order.factory.js +0 -20
- package/dist/seed/factories/payout.factory.d.ts +0 -21
- package/dist/seed/factories/payout.factory.js +0 -38
- package/dist/seed/factories/product.factory.d.ts +0 -27
- package/dist/seed/factories/product.factory.js +0 -111
- package/dist/seed/factories/review.factory.d.ts +0 -14
- package/dist/seed/factories/review.factory.js +0 -52
- package/dist/seed/factories/session.factory.d.ts +0 -15
- package/dist/seed/factories/session.factory.js +0 -31
- package/dist/seed/factories/store.factory.d.ts +0 -23
- package/dist/seed/factories/store.factory.js +0 -46
- package/dist/seed/factories/user.factory.d.ts +0 -19
- package/dist/seed/factories/user.factory.js +0 -55
- package/dist/seed/faq-seed-data.d.ts +0 -47
- package/dist/seed/faq-seed-data.js +0 -2320
- package/dist/seed/firestore-indexes.d.ts +0 -13
- package/dist/seed/firestore-indexes.js +0 -32
- package/dist/seed/homepage-sections-seed-data.d.ts +0 -18
- package/dist/seed/homepage-sections-seed-data.js +0 -339
- package/dist/seed/index.d.ts +0 -68
- package/dist/seed/index.js +0 -49
- package/dist/seed/notifications-seed-data.d.ts +0 -7
- package/dist/seed/notifications-seed-data.js +0 -494
- package/dist/seed/orders-seed-data.d.ts +0 -7
- package/dist/seed/orders-seed-data.js +0 -578
- package/dist/seed/payouts-seed-data.d.ts +0 -7
- package/dist/seed/payouts-seed-data.js +0 -202
- package/dist/seed/products-seed-data.d.ts +0 -7
- package/dist/seed/products-seed-data.js +0 -2477
- package/dist/seed/reviews-seed-data.d.ts +0 -7
- package/dist/seed/reviews-seed-data.js +0 -618
- package/dist/seed/runner.d.ts +0 -3
- package/dist/seed/runner.js +0 -38
- package/dist/seed/seed-market-config.d.ts +0 -49
- package/dist/seed/seed-market-config.js +0 -198
- package/dist/seed/sessions-seed-data.d.ts +0 -17
- package/dist/seed/sessions-seed-data.js +0 -355
- package/dist/seed/site-settings-seed-data.d.ts +0 -7
- package/dist/seed/site-settings-seed-data.js +0 -236
- package/dist/seed/store-addresses-seed-data.d.ts +0 -19
- package/dist/seed/store-addresses-seed-data.js +0 -106
- package/dist/seed/stores-seed-data.d.ts +0 -14
- package/dist/seed/stores-seed-data.js +0 -127
- package/dist/seed/test-utils.d.ts +0 -49
- package/dist/seed/test-utils.js +0 -107
- package/dist/seed/types.d.ts +0 -33
- package/dist/seed/types.js +0 -1
- package/dist/seed/users-seed-data.d.ts +0 -7
- package/dist/seed/users-seed-data.js +0 -727
- package/dist/seo/index.d.ts +0 -2
- package/dist/seo/index.js +0 -2
- package/dist/seo/json-ld.d.ts +0 -69
- package/dist/seo/json-ld.js +0 -166
- package/dist/seo/metadata.d.ts +0 -77
- package/dist/seo/metadata.js +0 -157
- package/dist/server.d.ts +0 -109
- package/dist/server.js +0 -110
- package/dist/style/tailwind/index.d.ts +0 -32
- package/dist/style/tailwind/index.js +0 -57
- package/dist/style/vanilla/index.d.ts +0 -24
- package/dist/style/vanilla/index.js +0 -48
- package/dist/tokens/index.d.ts +0 -733
- package/dist/tokens/index.js +0 -786
- package/dist/tokens/tokens.css +0 -221
- package/dist/ui/DataTable.d.ts +0 -78
- package/dist/ui/DataTable.js +0 -157
- package/dist/ui/DataTable.style.css +0 -190
- package/dist/ui/animation.helper.d.ts +0 -17
- package/dist/ui/animation.helper.js +0 -17
- package/dist/ui/color.helper.d.ts +0 -12
- package/dist/ui/color.helper.js +0 -31
- package/dist/ui/columns/build-columns.d.ts +0 -21
- package/dist/ui/columns/build-columns.js +0 -33
- package/dist/ui/columns/column-renderers.d.ts +0 -33
- package/dist/ui/columns/column-renderers.js +0 -64
- package/dist/ui/columns/index.d.ts +0 -6
- package/dist/ui/columns/index.js +0 -5
- package/dist/ui/components/Accordion.d.ts +0 -27
- package/dist/ui/components/Accordion.js +0 -57
- package/dist/ui/components/Accordion.style.css +0 -82
- package/dist/ui/components/ActiveFilterChips.d.ts +0 -13
- package/dist/ui/components/ActiveFilterChips.js +0 -9
- package/dist/ui/components/ActiveFilterChips.style.css +0 -66
- package/dist/ui/components/Alert.d.ts +0 -43
- package/dist/ui/components/Alert.js +0 -47
- package/dist/ui/components/Alert.style.css +0 -187
- package/dist/ui/components/Avatar.d.ts +0 -18
- package/dist/ui/components/Avatar.js +0 -42
- package/dist/ui/components/Avatar.style.css +0 -73
- package/dist/ui/components/AvatarDisplay.d.ts +0 -10
- package/dist/ui/components/AvatarDisplay.js +0 -56
- package/dist/ui/components/AvatarDisplay.style.css +0 -46
- package/dist/ui/components/BackgroundRenderer.d.ts +0 -15
- package/dist/ui/components/BackgroundRenderer.js +0 -42
- package/dist/ui/components/BackgroundRenderer.style.css +0 -31
- package/dist/ui/components/Badge.d.ts +0 -33
- package/dist/ui/components/Badge.js +0 -34
- package/dist/ui/components/Badge.style.css +0 -114
- package/dist/ui/components/BaseListingCard.d.ts +0 -39
- package/dist/ui/components/BaseListingCard.js +0 -56
- package/dist/ui/components/BaseListingCard.style.css +0 -84
- package/dist/ui/components/Breadcrumb.d.ts +0 -15
- package/dist/ui/components/Breadcrumb.js +0 -12
- package/dist/ui/components/Breadcrumb.style.css +0 -60
- package/dist/ui/components/BulkActionBar.d.ts +0 -34
- package/dist/ui/components/BulkActionBar.js +0 -86
- package/dist/ui/components/BulkActionBar.style.css +0 -196
- package/dist/ui/components/Button.d.ts +0 -31
- package/dist/ui/components/Button.js +0 -29
- package/dist/ui/components/Button.style.css +0 -160
- package/dist/ui/components/Card.d.ts +0 -21
- package/dist/ui/components/Card.js +0 -51
- package/dist/ui/components/Card.style.css +0 -192
- package/dist/ui/components/Checkbox.d.ts +0 -8
- package/dist/ui/components/Checkbox.js +0 -38
- package/dist/ui/components/Checkbox.style.css +0 -113
- package/dist/ui/components/ConfirmDeleteModal.d.ts +0 -33
- package/dist/ui/components/ConfirmDeleteModal.js +0 -74
- package/dist/ui/components/ConfirmDeleteModal.style.css +0 -89
- package/dist/ui/components/CountdownDisplay.d.ts +0 -14
- package/dist/ui/components/CountdownDisplay.js +0 -50
- package/dist/ui/components/CountdownDisplay.style.css +0 -4
- package/dist/ui/components/DashboardStatsCard.d.ts +0 -15
- package/dist/ui/components/DashboardStatsCard.js +0 -28
- package/dist/ui/components/DashboardStatsCard.style.css +0 -70
- package/dist/ui/components/DescriptionField.d.ts +0 -23
- package/dist/ui/components/DescriptionField.js +0 -28
- package/dist/ui/components/DescriptionField.style.css +0 -36
- package/dist/ui/components/DetailViewShell.d.ts +0 -51
- package/dist/ui/components/DetailViewShell.js +0 -50
- package/dist/ui/components/Div.d.ts +0 -20
- package/dist/ui/components/Div.js +0 -19
- package/dist/ui/components/Div.style.css +0 -6
- package/dist/ui/components/Divider.d.ts +0 -12
- package/dist/ui/components/Divider.js +0 -11
- package/dist/ui/components/Divider.style.css +0 -39
- package/dist/ui/components/Drawer.d.ts +0 -21
- package/dist/ui/components/Drawer.js +0 -72
- package/dist/ui/components/Drawer.style.css +0 -146
- package/dist/ui/components/Dropdown.d.ts +0 -36
- package/dist/ui/components/Dropdown.js +0 -142
- package/dist/ui/components/Dropdown.style.css +0 -112
- package/dist/ui/components/DynamicSelect.d.ts +0 -24
- package/dist/ui/components/DynamicSelect.js +0 -78
- package/dist/ui/components/DynamicSelect.style.css +0 -101
- package/dist/ui/components/EmptyState.d.ts +0 -12
- package/dist/ui/components/EmptyState.js +0 -17
- package/dist/ui/components/EmptyState.style.css +0 -30
- package/dist/ui/components/FilterDrawer.d.ts +0 -16
- package/dist/ui/components/FilterDrawer.js +0 -39
- package/dist/ui/components/FilterDrawer.style.css +0 -61
- package/dist/ui/components/FlowDiagram.d.ts +0 -33
- package/dist/ui/components/FlowDiagram.js +0 -15
- package/dist/ui/components/FlowDiagram.style.css +0 -77
- package/dist/ui/components/Form.d.ts +0 -27
- package/dist/ui/components/Form.js +0 -48
- package/dist/ui/components/Form.style.css +0 -27
- package/dist/ui/components/FormField.d.ts +0 -26
- package/dist/ui/components/FormField.js +0 -25
- package/dist/ui/components/FormField.style.css +0 -30
- package/dist/ui/components/FormGrid.d.ts +0 -46
- package/dist/ui/components/FormGrid.js +0 -42
- package/dist/ui/components/FormGrid.style.css +0 -32
- package/dist/ui/components/HorizontalScroller.d.ts +0 -33
- package/dist/ui/components/HorizontalScroller.js +0 -47
- package/dist/ui/components/HorizontalScroller.style.css +0 -109
- package/dist/ui/components/IconButton.d.ts +0 -32
- package/dist/ui/components/IconButton.js +0 -31
- package/dist/ui/components/IconButton.style.css +0 -103
- package/dist/ui/components/ImageGallery.d.ts +0 -17
- package/dist/ui/components/ImageGallery.js +0 -108
- package/dist/ui/components/ImageGallery.style.css +0 -163
- package/dist/ui/components/ImageLightbox.d.ts +0 -24
- package/dist/ui/components/ImageLightbox.js +0 -61
- package/dist/ui/components/ImageLightbox.style.css +0 -58
- package/dist/ui/components/Input.d.ts +0 -12
- package/dist/ui/components/Input.js +0 -29
- package/dist/ui/components/Input.style.css +0 -28
- package/dist/ui/components/ItemRow.d.ts +0 -10
- package/dist/ui/components/ItemRow.js +0 -7
- package/dist/ui/components/ItemRow.style.css +0 -33
- package/dist/ui/components/Layout.d.ts +0 -282
- package/dist/ui/components/Layout.js +0 -184
- package/dist/ui/components/Layout.style.css +0 -212
- package/dist/ui/components/ListingLayout.d.ts +0 -60
- package/dist/ui/components/ListingLayout.js +0 -121
- package/dist/ui/components/ListingLayout.style.css +0 -527
- package/dist/ui/components/ListingViewShell.d.ts +0 -38
- package/dist/ui/components/ListingViewShell.js +0 -11
- package/dist/ui/components/Menu.d.ts +0 -29
- package/dist/ui/components/Menu.js +0 -19
- package/dist/ui/components/Menu.style.css +0 -6
- package/dist/ui/components/Modal.d.ts +0 -18
- package/dist/ui/components/Modal.js +0 -79
- package/dist/ui/components/Modal.style.css +0 -102
- package/dist/ui/components/Pagination.d.ts +0 -25
- package/dist/ui/components/Pagination.js +0 -56
- package/dist/ui/components/Pagination.style.css +0 -76
- package/dist/ui/components/PasswordStrengthIndicator.d.ts +0 -12
- package/dist/ui/components/PasswordStrengthIndicator.js +0 -35
- package/dist/ui/components/PasswordStrengthIndicator.style.css +0 -56
- package/dist/ui/components/PriceDisplay.d.ts +0 -8
- package/dist/ui/components/PriceDisplay.js +0 -28
- package/dist/ui/components/PriceDisplay.style.css +0 -47
- package/dist/ui/components/Progress.d.ts +0 -23
- package/dist/ui/components/Progress.js +0 -32
- package/dist/ui/components/Progress.style.css +0 -81
- package/dist/ui/components/Radio.d.ts +0 -18
- package/dist/ui/components/Radio.js +0 -64
- package/dist/ui/components/Radio.style.css +0 -155
- package/dist/ui/components/RatingDisplay.d.ts +0 -8
- package/dist/ui/components/RatingDisplay.js +0 -15
- package/dist/ui/components/RatingDisplay.style.css +0 -50
- package/dist/ui/components/ResponsiveView.d.ts +0 -12
- package/dist/ui/components/ResponsiveView.js +0 -9
- package/dist/ui/components/ResponsiveView.style.css +0 -69
- package/dist/ui/components/RoleBadge.d.ts +0 -7
- package/dist/ui/components/RoleBadge.js +0 -21
- package/dist/ui/components/RoleBadge.style.css +0 -7
- package/dist/ui/components/RowActionMenu.d.ts +0 -13
- package/dist/ui/components/RowActionMenu.js +0 -17
- package/dist/ui/components/RowActionMenu.style.css +0 -91
- package/dist/ui/components/SectionTabs.d.ts +0 -19
- package/dist/ui/components/SectionTabs.js +0 -66
- package/dist/ui/components/SectionTabs.style.css +0 -163
- package/dist/ui/components/Select.d.ts +0 -19
- package/dist/ui/components/Select.js +0 -27
- package/dist/ui/components/Select.style.css +0 -177
- package/dist/ui/components/Semantic.d.ts +0 -154
- package/dist/ui/components/Semantic.js +0 -32
- package/dist/ui/components/Semantic.style.css +0 -14
- package/dist/ui/components/SideDrawer.d.ts +0 -28
- package/dist/ui/components/SideDrawer.js +0 -151
- package/dist/ui/components/SideDrawer.style.css +0 -214
- package/dist/ui/components/SideModal.d.ts +0 -25
- package/dist/ui/components/SideModal.js +0 -61
- package/dist/ui/components/SideModal.style.css +0 -77
- package/dist/ui/components/Skeleton.d.ts +0 -14
- package/dist/ui/components/Skeleton.js +0 -22
- package/dist/ui/components/Skeleton.style.css +0 -55
- package/dist/ui/components/SkipToMain.d.ts +0 -6
- package/dist/ui/components/SkipToMain.js +0 -6
- package/dist/ui/components/SkipToMain.style.css +0 -34
- package/dist/ui/components/Slider.d.ts +0 -17
- package/dist/ui/components/Slider.js +0 -38
- package/dist/ui/components/Slider.style.css +0 -17
- package/dist/ui/components/SlottedListingView.d.ts +0 -62
- package/dist/ui/components/SlottedListingView.js +0 -41
- package/dist/ui/components/SortDropdown.d.ts +0 -15
- package/dist/ui/components/SortDropdown.js +0 -8
- package/dist/ui/components/SortDropdown.style.css +0 -12
- package/dist/ui/components/Spinner.d.ts +0 -13
- package/dist/ui/components/Spinner.js +0 -15
- package/dist/ui/components/Spinner.style.css +0 -76
- package/dist/ui/components/StackedViewShell.d.ts +0 -50
- package/dist/ui/components/StackedViewShell.js +0 -39
- package/dist/ui/components/StarRating.d.ts +0 -17
- package/dist/ui/components/StarRating.js +0 -29
- package/dist/ui/components/StarRating.style.css +0 -44
- package/dist/ui/components/StatsGrid.d.ts +0 -18
- package/dist/ui/components/StatsGrid.js +0 -17
- package/dist/ui/components/StatsGrid.style.css +0 -96
- package/dist/ui/components/StatusBadge.d.ts +0 -18
- package/dist/ui/components/StatusBadge.js +0 -60
- package/dist/ui/components/StatusBadge.style.css +0 -5
- package/dist/ui/components/StepperNav.d.ts +0 -10
- package/dist/ui/components/StepperNav.js +0 -23
- package/dist/ui/components/StepperNav.style.css +0 -110
- package/dist/ui/components/SummaryCard.d.ts +0 -21
- package/dist/ui/components/SummaryCard.js +0 -15
- package/dist/ui/components/SummaryCard.style.css +0 -82
- package/dist/ui/components/TabStrip.d.ts +0 -34
- package/dist/ui/components/TabStrip.js +0 -57
- package/dist/ui/components/TabStrip.style.css +0 -97
- package/dist/ui/components/TablePagination.d.ts +0 -21
- package/dist/ui/components/TablePagination.js +0 -32
- package/dist/ui/components/TablePagination.style.css +0 -89
- package/dist/ui/components/Tabs.d.ts +0 -28
- package/dist/ui/components/Tabs.js +0 -41
- package/dist/ui/components/Tabs.style.css +0 -46
- package/dist/ui/components/TagInput.d.ts +0 -10
- package/dist/ui/components/TagInput.js +0 -60
- package/dist/ui/components/TagInput.style.css +0 -121
- package/dist/ui/components/TextLink.d.ts +0 -42
- package/dist/ui/components/TextLink.js +0 -48
- package/dist/ui/components/TextLink.style.css +0 -94
- package/dist/ui/components/Textarea.d.ts +0 -9
- package/dist/ui/components/Textarea.js +0 -21
- package/dist/ui/components/Textarea.style.css +0 -30
- package/dist/ui/components/Toast.d.ts +0 -15
- package/dist/ui/components/Toast.js +0 -61
- package/dist/ui/components/Toast.style.css +0 -114
- package/dist/ui/components/Toggle.d.ts +0 -12
- package/dist/ui/components/Toggle.js +0 -47
- package/dist/ui/components/Toggle.style.css +0 -107
- package/dist/ui/components/Tooltip.d.ts +0 -34
- package/dist/ui/components/Tooltip.js +0 -110
- package/dist/ui/components/Tooltip.style.css +0 -114
- package/dist/ui/components/Typography.d.ts +0 -50
- package/dist/ui/components/Typography.js +0 -103
- package/dist/ui/components/Typography.style.css +0 -178
- package/dist/ui/components/UnsavedChangesModal.d.ts +0 -17
- package/dist/ui/components/UnsavedChangesModal.js +0 -52
- package/dist/ui/components/UnsavedChangesModal.style.css +0 -33
- package/dist/ui/components/ViewToggle.d.ts +0 -15
- package/dist/ui/components/ViewToggle.js +0 -29
- package/dist/ui/components/ViewToggle.style.css +0 -50
- package/dist/ui/components/index.style.css +0 -76
- package/dist/ui/index.d.ts +0 -165
- package/dist/ui/index.js +0 -87
- package/dist/ui/rich-text/RichText.d.ts +0 -46
- package/dist/ui/rich-text/RichText.js +0 -172
- package/dist/ui/rich-text/RichText.style.css +0 -5
- package/dist/ui/rich-text/index.d.ts +0 -2
- package/dist/ui/rich-text/index.js +0 -1
- package/dist/ui/style.helper.d.ts +0 -7
- package/dist/ui/style.helper.js +0 -12
- package/dist/utils/animation.helper.d.ts +0 -19
- package/dist/utils/animation.helper.js +0 -19
- package/dist/utils/array.helper.d.ts +0 -17
- package/dist/utils/array.helper.js +0 -53
- package/dist/utils/business-day.d.ts +0 -47
- package/dist/utils/business-day.js +0 -68
- package/dist/utils/client.d.ts +0 -1
- package/dist/utils/client.js +0 -1
- package/dist/utils/color.helper.d.ts +0 -32
- package/dist/utils/color.helper.js +0 -51
- package/dist/utils/cookie.converter.d.ts +0 -7
- package/dist/utils/cookie.converter.js +0 -32
- package/dist/utils/date.formatter.d.ts +0 -22
- package/dist/utils/date.formatter.js +0 -194
- package/dist/utils/event-manager.d.ts +0 -45
- package/dist/utils/event-manager.js +0 -185
- package/dist/utils/filter.helper.d.ts +0 -18
- package/dist/utils/filter.helper.js +0 -21
- package/dist/utils/id-generators.d.ts +0 -243
- package/dist/utils/id-generators.js +0 -360
- package/dist/utils/index.d.ts +0 -17
- package/dist/utils/index.js +0 -18
- package/dist/utils/media-field.d.ts +0 -2
- package/dist/utils/media-field.js +0 -1
- package/dist/utils/number.formatter.d.ts +0 -13
- package/dist/utils/number.formatter.js +0 -100
- package/dist/utils/object.helper.d.ts +0 -16
- package/dist/utils/object.helper.js +0 -82
- package/dist/utils/pagination.helper.d.ts +0 -23
- package/dist/utils/pagination.helper.js +0 -24
- package/dist/utils/schema-ui.d.ts +0 -83
- package/dist/utils/schema-ui.js +0 -185
- package/dist/utils/sorting.helper.d.ts +0 -7
- package/dist/utils/sorting.helper.js +0 -16
- package/dist/utils/string.formatter.d.ts +0 -19
- package/dist/utils/string.formatter.js +0 -140
- package/dist/utils/type.converter.d.ts +0 -14
- package/dist/utils/type.converter.js +0 -61
- package/dist/validation/ZodSetup.d.ts +0 -5
- package/dist/validation/ZodSetup.js +0 -11
- package/dist/validation/email.validator.d.ts +0 -7
- package/dist/validation/email.validator.js +0 -33
- package/dist/validation/index.d.ts +0 -9
- package/dist/validation/index.js +0 -8
- package/dist/validation/input.validator.d.ts +0 -11
- package/dist/validation/input.validator.js +0 -33
- package/dist/validation/password.validator.d.ts +0 -21
- package/dist/validation/password.validator.js +0 -77
- package/dist/validation/phone.validator.d.ts +0 -9
- package/dist/validation/phone.validator.js +0 -41
- package/dist/validation/schemas.d.ts +0 -267
- package/dist/validation/schemas.js +0 -176
- package/dist/validation/url.validator.d.ts +0 -7
- package/dist/validation/url.validator.js +0 -44
- package/dist/validation/zod-error-map.d.ts +0 -17
- package/dist/validation/zod-error-map.js +0 -85
- package/dist/values/index.d.ts +0 -6
- package/dist/values/index.js +0 -6
- package/dist/values/success-messages.d.ts +0 -242
- package/dist/values/success-messages.js +0 -272
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { RealtimeEventType, useRealtimeEvent, } from "../../../react";
|
|
3
|
-
const BULK_EVENT_TIMEOUT_MS = 10 * 60 * 1000;
|
|
4
|
-
function extractBulkResult(raw) {
|
|
5
|
-
if (typeof raw.action !== "string" || !raw.summary)
|
|
6
|
-
return null;
|
|
7
|
-
const result = {
|
|
8
|
-
action: raw.action,
|
|
9
|
-
summary: raw.summary,
|
|
10
|
-
succeeded: raw.succeeded ?? [],
|
|
11
|
-
skipped: raw.skipped ?? [],
|
|
12
|
-
failed: raw.failed ?? [],
|
|
13
|
-
};
|
|
14
|
-
if (raw.data !== undefined) {
|
|
15
|
-
result.data = raw.data;
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
export function useBulkEvent(options) {
|
|
20
|
-
const { status, error, data: result, subscribe, reset, } = useRealtimeEvent({
|
|
21
|
-
type: RealtimeEventType.BULK,
|
|
22
|
-
rtdbPath: options.rtdbPath,
|
|
23
|
-
realtimeProvider: options.realtimeProvider,
|
|
24
|
-
timeoutMs: options.timeoutMs ?? BULK_EVENT_TIMEOUT_MS,
|
|
25
|
-
onLogError: options.onLogError,
|
|
26
|
-
extractData: (options.extractData ?? extractBulkResult),
|
|
27
|
-
messages: {
|
|
28
|
-
tokenFailure: "Failed to initialise bulk operation tracking. Please try again.",
|
|
29
|
-
connectionLost: "Bulk operation tracking connection lost. Please check if the changes were applied.",
|
|
30
|
-
timedOut: "Bulk operation timed out. Please check if the changes were applied.",
|
|
31
|
-
failure: "The bulk operation did not complete. Please try again.",
|
|
32
|
-
...(options.messages ?? {}),
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
return { status, error, result, subscribe, reset };
|
|
36
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { EventItem, EventEntryListResponse, LeaderboardEntry } from "../types";
|
|
2
|
-
interface UseEventOptions<T extends EventItem = EventItem> {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
initialData?: EventItem;
|
|
5
|
-
endpoint?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Map the API item to a richer app-level type without forking the package.
|
|
8
|
-
* @example
|
|
9
|
-
* const { event } = useEvent<EventDocument>(id, {
|
|
10
|
-
* transform: (raw) => ({ ...raw, registrationCount: 0 }),
|
|
11
|
-
* });
|
|
12
|
-
*/
|
|
13
|
-
transform?: (item: EventItem) => T;
|
|
14
|
-
}
|
|
15
|
-
export declare function useEvent<T extends EventItem = EventItem>(id: string, opts?: UseEventOptions<T>): {
|
|
16
|
-
event: T | null;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
error: string | null;
|
|
19
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<EventItem | null, Error>>;
|
|
20
|
-
};
|
|
21
|
-
export declare function useEventEntries(eventId: string, params?: {
|
|
22
|
-
page?: number;
|
|
23
|
-
pageSize?: number;
|
|
24
|
-
reviewStatus?: string;
|
|
25
|
-
}, opts?: {
|
|
26
|
-
enabled?: boolean;
|
|
27
|
-
endpoint?: string;
|
|
28
|
-
}): {
|
|
29
|
-
entries: import("..").EventEntryItem[];
|
|
30
|
-
total: number;
|
|
31
|
-
isLoading: boolean;
|
|
32
|
-
error: string | null;
|
|
33
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<EventEntryListResponse, Error>>;
|
|
34
|
-
};
|
|
35
|
-
export declare function useEventLeaderboard(eventId: string, limit?: number, opts?: {
|
|
36
|
-
enabled?: boolean;
|
|
37
|
-
endpoint?: string;
|
|
38
|
-
}): {
|
|
39
|
-
leaderboard: LeaderboardEntry[];
|
|
40
|
-
isLoading: boolean;
|
|
41
|
-
error: string | null;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { apiClient } from "../../../http";
|
|
4
|
-
import { EVENT_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
5
|
-
export function useEvent(id, opts) {
|
|
6
|
-
const endpoint = opts?.endpoint ?? EVENT_ENDPOINTS.BY_ID(id);
|
|
7
|
-
const { data, isLoading, error, refetch } = useQuery({
|
|
8
|
-
queryKey: ["event", id],
|
|
9
|
-
queryFn: () => apiClient.get(endpoint),
|
|
10
|
-
enabled: (opts?.enabled ?? true) && !!id,
|
|
11
|
-
initialData: opts?.initialData,
|
|
12
|
-
});
|
|
13
|
-
const event = data && opts?.transform ? opts.transform(data) : data;
|
|
14
|
-
return {
|
|
15
|
-
event: event ?? null,
|
|
16
|
-
isLoading,
|
|
17
|
-
error: error instanceof Error ? error.message : null,
|
|
18
|
-
refetch,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function useEventEntries(eventId, params = {}, opts) {
|
|
22
|
-
const sp = new URLSearchParams();
|
|
23
|
-
if (params.page)
|
|
24
|
-
sp.set("page", String(params.page));
|
|
25
|
-
if (params.pageSize)
|
|
26
|
-
sp.set("pageSize", String(params.pageSize));
|
|
27
|
-
if (params.reviewStatus)
|
|
28
|
-
sp.set("reviewStatus", params.reviewStatus);
|
|
29
|
-
const qs = sp.toString();
|
|
30
|
-
const endpoint = opts?.endpoint ?? `${EVENT_ENDPOINTS.ENTRIES(eventId)}${qs ? `?${qs}` : ""}`;
|
|
31
|
-
const { data, isLoading, error, refetch } = useQuery({
|
|
32
|
-
queryKey: ["event-entries", eventId, qs],
|
|
33
|
-
queryFn: () => apiClient.get(endpoint),
|
|
34
|
-
enabled: (opts?.enabled ?? true) && !!eventId,
|
|
35
|
-
});
|
|
36
|
-
return {
|
|
37
|
-
entries: data?.items ?? [],
|
|
38
|
-
total: data?.total ?? 0,
|
|
39
|
-
isLoading,
|
|
40
|
-
error: error instanceof Error ? error.message : null,
|
|
41
|
-
refetch,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export function useEventLeaderboard(eventId, limit = 10, opts) {
|
|
45
|
-
const { data, isLoading, error } = useQuery({
|
|
46
|
-
queryKey: ["event-leaderboard", eventId, limit],
|
|
47
|
-
queryFn: () => apiClient.get(EVENT_ENDPOINTS.LEADERBOARD(eventId, limit)),
|
|
48
|
-
enabled: (opts?.enabled ?? true) && !!eventId,
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
leaderboard: data ?? [],
|
|
52
|
-
isLoading,
|
|
53
|
-
error: error instanceof Error ? error.message : null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { EventItem, EventListResponse, EventListParams } from "../types";
|
|
2
|
-
interface UseEventsOptions<T extends EventItem = EventItem> {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
initialData?: EventListResponse;
|
|
5
|
-
endpoint?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Map each API item to a richer app-level type.
|
|
8
|
-
* The API always returns `EventItem`; use this to project it to your own
|
|
9
|
-
* extended type without forking the package.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* const { events } = useEvents<EventDocument>(params, {
|
|
13
|
-
* transform: (raw) => ({ ...raw, localizedTitle: t(raw.title) }),
|
|
14
|
-
* });
|
|
15
|
-
*/
|
|
16
|
-
transform?: (item: EventItem) => T;
|
|
17
|
-
}
|
|
18
|
-
export declare function useEvents<T extends EventItem = EventItem>(params?: EventListParams, opts?: UseEventsOptions<T>): {
|
|
19
|
-
events: T[];
|
|
20
|
-
total: number;
|
|
21
|
-
totalPages: number;
|
|
22
|
-
hasMore: boolean;
|
|
23
|
-
isLoading: boolean;
|
|
24
|
-
error: string | null;
|
|
25
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<EventListResponse, Error>>;
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { apiClient } from "../../../http";
|
|
4
|
-
import { EVENT_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
5
|
-
export function useEvents(params = {}, opts) {
|
|
6
|
-
const sp = new URLSearchParams();
|
|
7
|
-
if (params.status)
|
|
8
|
-
sp.set("status", params.status);
|
|
9
|
-
if (params.type)
|
|
10
|
-
sp.set("type", params.type);
|
|
11
|
-
if (params.page)
|
|
12
|
-
sp.set("page", String(params.page));
|
|
13
|
-
if (params.pageSize)
|
|
14
|
-
sp.set("pageSize", String(params.pageSize));
|
|
15
|
-
if (params.sort)
|
|
16
|
-
sp.set("sorts", params.sort);
|
|
17
|
-
if (params.filters)
|
|
18
|
-
sp.set("filters", params.filters);
|
|
19
|
-
const qs = sp.toString();
|
|
20
|
-
const endpoint = opts?.endpoint ?? `${EVENT_ENDPOINTS.LIST}${qs ? `?${qs}` : ""}`;
|
|
21
|
-
const { data, isLoading, error, refetch } = useQuery({
|
|
22
|
-
queryKey: ["events", qs],
|
|
23
|
-
queryFn: () => apiClient.get(endpoint),
|
|
24
|
-
enabled: opts?.enabled ?? true,
|
|
25
|
-
initialData: opts?.initialData,
|
|
26
|
-
});
|
|
27
|
-
const rawItems = data?.items ?? [];
|
|
28
|
-
const events = (opts?.transform ? rawItems.map(opts.transform) : rawItems);
|
|
29
|
-
return {
|
|
30
|
-
events,
|
|
31
|
-
total: data?.total ?? 0,
|
|
32
|
-
totalPages: data?.totalPages ?? 0,
|
|
33
|
-
hasMore: data?.hasMore ?? false,
|
|
34
|
-
isLoading,
|
|
35
|
-
error: error instanceof Error ? error.message : null,
|
|
36
|
-
refetch,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./hooks/useEvents";
|
|
2
|
-
export * from "./hooks/useEvent";
|
|
3
|
-
export * from "./hooks/useBulkEvent";
|
|
4
|
-
export * from "./components";
|
|
5
|
-
export * from "./schemas";
|
|
6
|
-
export * from "./columns";
|
|
7
|
-
export * from "./types";
|
|
8
|
-
export { manifest } from "./manifest";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./hooks/useEvents";
|
|
2
|
-
export * from "./hooks/useEvent";
|
|
3
|
-
export * from "./hooks/useBulkEvent";
|
|
4
|
-
export * from "./components";
|
|
5
|
-
export * from "./schemas";
|
|
6
|
-
export * from "./columns";
|
|
7
|
-
export * from "./types";
|
|
8
|
-
export { manifest } from "./manifest";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const manifest = {
|
|
2
|
-
name: "events",
|
|
3
|
-
i18nNamespace: "events",
|
|
4
|
-
envKeys: [],
|
|
5
|
-
routes: [
|
|
6
|
-
{ segment: "[locale]/events", exports: { default: "EventsListView" } },
|
|
7
|
-
{
|
|
8
|
-
segment: "[locale]/events/[id]",
|
|
9
|
-
exports: { default: "EventDetailView" },
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
segment: "[locale]/events/[id]/participate",
|
|
13
|
-
exports: { default: "EventParticipateView" },
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
apiRoutes: [
|
|
17
|
-
{ segment: "api/events", methods: ["GET"] },
|
|
18
|
-
{ segment: "api/events/[id]", methods: ["GET"] },
|
|
19
|
-
{ segment: "api/events/[id]/entries", methods: ["GET", "POST"] },
|
|
20
|
-
{ segment: "api/admin/events", methods: ["GET", "POST"] },
|
|
21
|
-
{ segment: "api/admin/events/[id]", methods: ["GET", "PATCH", "DELETE"] },
|
|
22
|
-
{ segment: "api/admin/events/[id]/entries", methods: ["GET", "PATCH"] },
|
|
23
|
-
],
|
|
24
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"eventStatus": {
|
|
3
|
-
"draft": "Draft",
|
|
4
|
-
"active": "Active",
|
|
5
|
-
"paused": "Paused",
|
|
6
|
-
"ended": "Ended"
|
|
7
|
-
},
|
|
8
|
-
"eventType": {
|
|
9
|
-
"sale": "Sale",
|
|
10
|
-
"offer": "Offer",
|
|
11
|
-
"poll": "Poll",
|
|
12
|
-
"survey": "Survey",
|
|
13
|
-
"feedback": "Feedback"
|
|
14
|
-
},
|
|
15
|
-
"card": {
|
|
16
|
-
"participate": "Participate",
|
|
17
|
-
"viewResults": "View Results",
|
|
18
|
-
"entries": "entries",
|
|
19
|
-
"daysRemaining": "{count}d remaining"
|
|
20
|
-
},
|
|
21
|
-
"leaderboard": {
|
|
22
|
-
"title": "Leaderboard",
|
|
23
|
-
"rank": "Rank",
|
|
24
|
-
"participant": "Participant",
|
|
25
|
-
"points": "Points"
|
|
26
|
-
},
|
|
27
|
-
"empty": "No events available right now."
|
|
28
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FirebaseSieveFields, FirebaseSieveResult, SieveModel } from "../../../providers/db-firebase";
|
|
2
|
-
import { BaseRepository } from "../../../providers/db-firebase";
|
|
3
|
-
import { type EventEntryCreateInput, type EventEntryDocument } from "../schemas";
|
|
4
|
-
declare class EventEntryRepository extends BaseRepository<EventEntryDocument> {
|
|
5
|
-
static readonly SIEVE_FIELDS: FirebaseSieveFields;
|
|
6
|
-
constructor();
|
|
7
|
-
protected mapDoc<D = EventEntryDocument>(snap: import("../../../providers/db-firebase").DocumentSnapshot): D;
|
|
8
|
-
listForEvent(eventId: string, model: SieveModel): Promise<FirebaseSieveResult<EventEntryDocument>>;
|
|
9
|
-
hasUserEntered(eventId: string, userId: string): Promise<boolean>;
|
|
10
|
-
countUserEntries(eventId: string, userId: string): Promise<number>;
|
|
11
|
-
getLeaderboard(eventId: string, limit?: number): Promise<EventEntryDocument[]>;
|
|
12
|
-
createEntry(input: EventEntryCreateInput): Promise<EventEntryDocument>;
|
|
13
|
-
reviewEntry(id: string, reviewStatus: EventEntryDocument["reviewStatus"], reviewedBy: string, reviewNote?: string): Promise<EventEntryDocument>;
|
|
14
|
-
}
|
|
15
|
-
declare const eventEntryRepository: EventEntryRepository;
|
|
16
|
-
export { EventEntryRepository, eventEntryRepository };
|
|
17
|
-
export { EventEntryRepository as EventEntriesRepository };
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { DatabaseError } from "../../../errors";
|
|
2
|
-
import { serverLogger } from "../../../monitoring";
|
|
3
|
-
import { BaseRepository, prepareForFirestore, } from "../../../providers/db-firebase";
|
|
4
|
-
import { decryptPiiFields, encryptPiiFields, EVENT_ENTRY_PII_FIELDS, } from "../../../security";
|
|
5
|
-
import { EVENT_ENTRIES_COLLECTION, EVENT_ENTRY_FIELDS, } from "../schemas";
|
|
6
|
-
class EventEntryRepository extends BaseRepository {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(EVENT_ENTRIES_COLLECTION);
|
|
9
|
-
}
|
|
10
|
-
mapDoc(snap) {
|
|
11
|
-
const raw = super.mapDoc(snap);
|
|
12
|
-
return decryptPiiFields(raw, [
|
|
13
|
-
...EVENT_ENTRY_PII_FIELDS,
|
|
14
|
-
]);
|
|
15
|
-
}
|
|
16
|
-
async listForEvent(eventId, model) {
|
|
17
|
-
return this.sieveQuery(model, EventEntryRepository.SIEVE_FIELDS, {
|
|
18
|
-
baseQuery: this.getCollection().where(EVENT_ENTRY_FIELDS.EVENT_ID, "==", eventId),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
async hasUserEntered(eventId, userId) {
|
|
22
|
-
try {
|
|
23
|
-
const snapshot = await this.getCollection()
|
|
24
|
-
.where(EVENT_ENTRY_FIELDS.EVENT_ID, "==", eventId)
|
|
25
|
-
.where(EVENT_ENTRY_FIELDS.USER_ID, "==", userId)
|
|
26
|
-
.limit(1)
|
|
27
|
-
.get();
|
|
28
|
-
return !snapshot.empty;
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
throw new DatabaseError(`Failed to check user entry for event ${eventId}`, error);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
async countUserEntries(eventId, userId) {
|
|
35
|
-
try {
|
|
36
|
-
const snapshot = await this.getCollection()
|
|
37
|
-
.where(EVENT_ENTRY_FIELDS.EVENT_ID, "==", eventId)
|
|
38
|
-
.where(EVENT_ENTRY_FIELDS.USER_ID, "==", userId)
|
|
39
|
-
.get();
|
|
40
|
-
return snapshot.size;
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
throw new DatabaseError(`Failed to count user entries for event ${eventId}`, error);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
async getLeaderboard(eventId, limit = 50) {
|
|
47
|
-
try {
|
|
48
|
-
const snapshot = await this.getCollection()
|
|
49
|
-
.where(EVENT_ENTRY_FIELDS.EVENT_ID, "==", eventId)
|
|
50
|
-
.where(EVENT_ENTRY_FIELDS.REVIEW_STATUS, "==", EVENT_ENTRY_FIELDS.REVIEW_STATUS_VALUES.APPROVED)
|
|
51
|
-
.orderBy(EVENT_ENTRY_FIELDS.POINTS, "desc")
|
|
52
|
-
.limit(limit)
|
|
53
|
-
.get();
|
|
54
|
-
return snapshot.docs.map((doc) => decryptPiiFields({
|
|
55
|
-
id: doc.id,
|
|
56
|
-
...doc.data(),
|
|
57
|
-
}, [...EVENT_ENTRY_PII_FIELDS]));
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
throw new DatabaseError(`Failed to get leaderboard for event ${eventId}`, error);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
async createEntry(input) {
|
|
64
|
-
try {
|
|
65
|
-
const now = new Date();
|
|
66
|
-
const encrypted = encryptPiiFields(input, [
|
|
67
|
-
...EVENT_ENTRY_PII_FIELDS,
|
|
68
|
-
]);
|
|
69
|
-
const data = prepareForFirestore({
|
|
70
|
-
...encrypted,
|
|
71
|
-
submittedAt: now,
|
|
72
|
-
});
|
|
73
|
-
const ref = await this.getCollection().add(data);
|
|
74
|
-
const created = await ref.get();
|
|
75
|
-
serverLogger.info("Event entry created", {
|
|
76
|
-
entryId: ref.id,
|
|
77
|
-
eventId: input.eventId,
|
|
78
|
-
userId: input.userId,
|
|
79
|
-
});
|
|
80
|
-
return { id: ref.id, ...created.data() };
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
throw new DatabaseError("Failed to create event entry", error);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async reviewEntry(id, reviewStatus, reviewedBy, reviewNote) {
|
|
87
|
-
try {
|
|
88
|
-
const now = new Date();
|
|
89
|
-
await this.getCollection()
|
|
90
|
-
.doc(id)
|
|
91
|
-
.update(prepareForFirestore({
|
|
92
|
-
[EVENT_ENTRY_FIELDS.REVIEW_STATUS]: reviewStatus,
|
|
93
|
-
[EVENT_ENTRY_FIELDS.REVIEWED_BY]: reviewedBy,
|
|
94
|
-
[EVENT_ENTRY_FIELDS.REVIEWED_AT]: now,
|
|
95
|
-
...(reviewNote !== undefined ? { reviewNote } : {}),
|
|
96
|
-
}));
|
|
97
|
-
serverLogger.info("Event entry reviewed", { entryId: id, reviewStatus });
|
|
98
|
-
return this.findByIdOrFail(id);
|
|
99
|
-
}
|
|
100
|
-
catch (error) {
|
|
101
|
-
throw new DatabaseError(`Failed to review event entry ${id}`, error);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
EventEntryRepository.SIEVE_FIELDS = {
|
|
106
|
-
eventId: { canFilter: true, canSort: false },
|
|
107
|
-
userId: { canFilter: true, canSort: false },
|
|
108
|
-
userDisplayName: { canFilter: false, canSort: false },
|
|
109
|
-
reviewStatus: { canFilter: true, canSort: false },
|
|
110
|
-
submittedAt: { canFilter: true, canSort: true },
|
|
111
|
-
points: { canFilter: true, canSort: true },
|
|
112
|
-
};
|
|
113
|
-
const eventEntryRepository = new EventEntryRepository();
|
|
114
|
-
export { EventEntryRepository, eventEntryRepository };
|
|
115
|
-
export { EventEntryRepository as EventEntriesRepository };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { FirebaseSieveFields, FirebaseSieveResult, SieveModel } from "../../../providers/db-firebase";
|
|
2
|
-
import { BaseRepository } from "../../../providers/db-firebase";
|
|
3
|
-
import { type EventCreateInput, type EventDocument, type EventUpdateInput } from "../schemas";
|
|
4
|
-
declare class EventRepository extends BaseRepository<EventDocument> {
|
|
5
|
-
static readonly SIEVE_FIELDS: FirebaseSieveFields;
|
|
6
|
-
constructor();
|
|
7
|
-
list(model: SieveModel): Promise<FirebaseSieveResult<EventDocument>>;
|
|
8
|
-
listActive(): Promise<EventDocument[]>;
|
|
9
|
-
createEvent(input: EventCreateInput): Promise<EventDocument>;
|
|
10
|
-
updateEvent(id: string, input: EventUpdateInput): Promise<EventDocument>;
|
|
11
|
-
changeStatus(id: string, status: EventDocument["status"]): Promise<EventDocument>;
|
|
12
|
-
incrementTotalEntries(id: string): Promise<void>;
|
|
13
|
-
incrementApprovedEntries(id: string): Promise<void>;
|
|
14
|
-
incrementFlaggedEntries(id: string): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
declare const eventRepository: EventRepository;
|
|
17
|
-
export { EventRepository, eventRepository };
|
|
18
|
-
export { EventRepository as EventsRepository };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { DatabaseError } from "../../../errors";
|
|
2
|
-
import { serverLogger } from "../../../monitoring";
|
|
3
|
-
import { BaseRepository, prepareForFirestore, } from "../../../providers/db-firebase";
|
|
4
|
-
import { EVENT_FIELDS, EVENTS_COLLECTION, } from "../schemas";
|
|
5
|
-
import { increment } from "../../../contracts/field-ops";
|
|
6
|
-
class EventRepository extends BaseRepository {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(EVENTS_COLLECTION);
|
|
9
|
-
}
|
|
10
|
-
async list(model) {
|
|
11
|
-
return this.sieveQuery(model, EventRepository.SIEVE_FIELDS);
|
|
12
|
-
}
|
|
13
|
-
async listActive() {
|
|
14
|
-
try {
|
|
15
|
-
const now = new Date();
|
|
16
|
-
const snapshot = await this.getCollection()
|
|
17
|
-
.where(EVENT_FIELDS.STATUS, "==", EVENT_FIELDS.STATUS_VALUES.ACTIVE)
|
|
18
|
-
.where(EVENT_FIELDS.ENDS_AT, ">=", now)
|
|
19
|
-
.orderBy(EVENT_FIELDS.ENDS_AT, "asc")
|
|
20
|
-
.get();
|
|
21
|
-
return snapshot.docs.map((doc) => this.mapDoc(doc));
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
throw new DatabaseError("Failed to list active events", error);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
async createEvent(input) {
|
|
28
|
-
try {
|
|
29
|
-
const now = new Date();
|
|
30
|
-
const data = prepareForFirestore({
|
|
31
|
-
...input,
|
|
32
|
-
stats: { totalEntries: 0, approvedEntries: 0, flaggedEntries: 0 },
|
|
33
|
-
createdAt: now,
|
|
34
|
-
updatedAt: now,
|
|
35
|
-
});
|
|
36
|
-
const ref = await this.getCollection().add(data);
|
|
37
|
-
const created = await ref.get();
|
|
38
|
-
serverLogger.info("Event created", { eventId: ref.id, type: input.type });
|
|
39
|
-
return this.mapDoc(created);
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
throw new DatabaseError("Failed to create event", error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
async updateEvent(id, input) {
|
|
46
|
-
try {
|
|
47
|
-
const now = new Date();
|
|
48
|
-
const data = prepareForFirestore({
|
|
49
|
-
...input,
|
|
50
|
-
[EVENT_FIELDS.UPDATED_AT]: now,
|
|
51
|
-
});
|
|
52
|
-
await this.getCollection().doc(id).update(data);
|
|
53
|
-
const updated = await this.findByIdOrFail(id);
|
|
54
|
-
serverLogger.info("Event updated", { eventId: id });
|
|
55
|
-
return updated;
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
throw new DatabaseError(`Failed to update event ${id}`, error);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async changeStatus(id, status) {
|
|
62
|
-
return this.updateEvent(id, { status });
|
|
63
|
-
}
|
|
64
|
-
async incrementTotalEntries(id) {
|
|
65
|
-
try {
|
|
66
|
-
await this.getCollection()
|
|
67
|
-
.doc(id)
|
|
68
|
-
.update({
|
|
69
|
-
[EVENT_FIELDS.STATS.TOTAL_ENTRIES]: increment(1),
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
catch (error) {
|
|
73
|
-
throw new DatabaseError(`Failed to increment totalEntries for event ${id}`, error);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
async incrementApprovedEntries(id) {
|
|
77
|
-
try {
|
|
78
|
-
await this.getCollection()
|
|
79
|
-
.doc(id)
|
|
80
|
-
.update({
|
|
81
|
-
[EVENT_FIELDS.STATS.APPROVED_ENTRIES]: increment(1),
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
catch (error) {
|
|
85
|
-
throw new DatabaseError(`Failed to increment approvedEntries for event ${id}`, error);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
async incrementFlaggedEntries(id) {
|
|
89
|
-
try {
|
|
90
|
-
await this.getCollection()
|
|
91
|
-
.doc(id)
|
|
92
|
-
.update({
|
|
93
|
-
[EVENT_FIELDS.STATS.FLAGGED_ENTRIES]: increment(1),
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
catch (error) {
|
|
97
|
-
throw new DatabaseError(`Failed to increment flaggedEntries for event ${id}`, error);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
EventRepository.SIEVE_FIELDS = {
|
|
102
|
-
type: { canFilter: true, canSort: false },
|
|
103
|
-
status: { canFilter: true, canSort: true },
|
|
104
|
-
title: { canFilter: true, canSort: true },
|
|
105
|
-
createdBy: { canFilter: true, canSort: false },
|
|
106
|
-
startsAt: { canFilter: true, canSort: true },
|
|
107
|
-
endsAt: { canFilter: true, canSort: true },
|
|
108
|
-
"stats.totalEntries": {
|
|
109
|
-
path: "stats.totalEntries",
|
|
110
|
-
canFilter: true,
|
|
111
|
-
canSort: true,
|
|
112
|
-
},
|
|
113
|
-
"stats.approvedEntries": {
|
|
114
|
-
path: "stats.approvedEntries",
|
|
115
|
-
canFilter: true,
|
|
116
|
-
canSort: true,
|
|
117
|
-
},
|
|
118
|
-
"stats.flaggedEntries": {
|
|
119
|
-
path: "stats.flaggedEntries",
|
|
120
|
-
canFilter: true,
|
|
121
|
-
canSort: true,
|
|
122
|
-
},
|
|
123
|
-
id: { canFilter: true, canSort: false },
|
|
124
|
-
createdAt: { canFilter: true, canSort: true },
|
|
125
|
-
};
|
|
126
|
-
const eventRepository = new EventRepository();
|
|
127
|
-
export { EventRepository, eventRepository };
|
|
128
|
-
export { EventRepository as EventsRepository };
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Events Firestore Document Types & Constants
|
|
3
|
-
*/
|
|
4
|
-
import type { MediaField } from "../../media/types";
|
|
5
|
-
import type { EventType, EventStatus, EntryReviewStatus, SaleConfig, OfferConfig, PollConfig, SurveyConfig, FeedbackConfig } from "../types";
|
|
6
|
-
export declare const EVENTS_COLLECTION: "events";
|
|
7
|
-
export declare const EVENT_ENTRIES_COLLECTION: "eventEntries";
|
|
8
|
-
export interface EventDocument {
|
|
9
|
-
id: string;
|
|
10
|
-
type: EventType;
|
|
11
|
-
title: string;
|
|
12
|
-
description: string;
|
|
13
|
-
status: EventStatus;
|
|
14
|
-
startsAt: Date;
|
|
15
|
-
endsAt: Date;
|
|
16
|
-
coverImage?: MediaField | null;
|
|
17
|
-
coverImageUrl?: string;
|
|
18
|
-
eventImages?: MediaField[];
|
|
19
|
-
winnerImages?: MediaField[];
|
|
20
|
-
additionalImages?: MediaField[];
|
|
21
|
-
tags?: string[];
|
|
22
|
-
saleConfig?: SaleConfig;
|
|
23
|
-
offerConfig?: OfferConfig;
|
|
24
|
-
pollConfig?: PollConfig;
|
|
25
|
-
surveyConfig?: SurveyConfig;
|
|
26
|
-
feedbackConfig?: FeedbackConfig;
|
|
27
|
-
stats: {
|
|
28
|
-
totalEntries: number;
|
|
29
|
-
approvedEntries: number;
|
|
30
|
-
flaggedEntries: number;
|
|
31
|
-
};
|
|
32
|
-
createdBy: string;
|
|
33
|
-
createdAt: Date;
|
|
34
|
-
updatedAt: Date;
|
|
35
|
-
}
|
|
36
|
-
export interface EventEntryDocument {
|
|
37
|
-
id: string;
|
|
38
|
-
eventId: string;
|
|
39
|
-
userId?: string;
|
|
40
|
-
userDisplayName?: string;
|
|
41
|
-
userEmail?: string;
|
|
42
|
-
pollVotes?: string[];
|
|
43
|
-
pollComment?: string;
|
|
44
|
-
formResponses?: Record<string, unknown>;
|
|
45
|
-
reviewStatus: EntryReviewStatus;
|
|
46
|
-
reviewedBy?: string;
|
|
47
|
-
reviewedAt?: Date;
|
|
48
|
-
reviewNote?: string;
|
|
49
|
-
points?: number;
|
|
50
|
-
ipAddress?: string;
|
|
51
|
-
submittedAt: Date;
|
|
52
|
-
}
|
|
53
|
-
export declare const EVENT_INDEXED_FIELDS: readonly ["type", "status", "startsAt", "endsAt", "createdAt"];
|
|
54
|
-
export declare const EVENT_ENTRY_INDEXED_FIELDS: readonly ["eventId", "userId", "reviewStatus", "submittedAt", "points"];
|
|
55
|
-
export declare const EVENT_FIELDS: {
|
|
56
|
-
readonly ID: "id";
|
|
57
|
-
readonly TYPE: "type";
|
|
58
|
-
readonly TITLE: "title";
|
|
59
|
-
readonly DESCRIPTION: "description";
|
|
60
|
-
readonly STATUS: "status";
|
|
61
|
-
readonly STARTS_AT: "startsAt";
|
|
62
|
-
readonly ENDS_AT: "endsAt";
|
|
63
|
-
readonly COVER_IMAGE_URL: "coverImageUrl";
|
|
64
|
-
readonly COVER_IMAGE: "coverImage";
|
|
65
|
-
readonly EVENT_IMAGES: "eventImages";
|
|
66
|
-
readonly WINNER_IMAGES: "winnerImages";
|
|
67
|
-
readonly ADDITIONAL_IMAGES: "additionalImages";
|
|
68
|
-
readonly TAGS: "tags";
|
|
69
|
-
readonly CREATED_BY: "createdBy";
|
|
70
|
-
readonly CREATED_AT: "createdAt";
|
|
71
|
-
readonly UPDATED_AT: "updatedAt";
|
|
72
|
-
readonly STATUS_VALUES: {
|
|
73
|
-
readonly DRAFT: EventStatus;
|
|
74
|
-
readonly ACTIVE: EventStatus;
|
|
75
|
-
readonly PAUSED: EventStatus;
|
|
76
|
-
readonly ENDED: EventStatus;
|
|
77
|
-
};
|
|
78
|
-
readonly TYPE_VALUES: {
|
|
79
|
-
readonly SALE: EventType;
|
|
80
|
-
readonly OFFER: EventType;
|
|
81
|
-
readonly POLL: EventType;
|
|
82
|
-
readonly SURVEY: EventType;
|
|
83
|
-
readonly FEEDBACK: EventType;
|
|
84
|
-
};
|
|
85
|
-
readonly STATS: {
|
|
86
|
-
readonly TOTAL_ENTRIES: "stats.totalEntries";
|
|
87
|
-
readonly APPROVED_ENTRIES: "stats.approvedEntries";
|
|
88
|
-
readonly FLAGGED_ENTRIES: "stats.flaggedEntries";
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
export declare const EVENT_ENTRY_FIELDS: {
|
|
92
|
-
readonly ID: "id";
|
|
93
|
-
readonly EVENT_ID: "eventId";
|
|
94
|
-
readonly USER_ID: "userId";
|
|
95
|
-
readonly REVIEW_STATUS: "reviewStatus";
|
|
96
|
-
readonly REVIEWED_BY: "reviewedBy";
|
|
97
|
-
readonly REVIEWED_AT: "reviewedAt";
|
|
98
|
-
readonly SUBMITTED_AT: "submittedAt";
|
|
99
|
-
readonly POINTS: "points";
|
|
100
|
-
readonly REVIEW_STATUS_VALUES: {
|
|
101
|
-
readonly PENDING: EntryReviewStatus;
|
|
102
|
-
readonly APPROVED: EntryReviewStatus;
|
|
103
|
-
readonly FLAGGED: EntryReviewStatus;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
export type EventCreateInput = Omit<EventDocument, "id" | "createdAt" | "updatedAt" | "stats">;
|
|
107
|
-
export type EventUpdateInput = Partial<Omit<EventDocument, "id" | "createdAt" | "createdBy">>;
|
|
108
|
-
export type EventEntryCreateInput = Omit<EventEntryDocument, "id" | "submittedAt">;
|
|
109
|
-
export declare const eventQueryHelpers: {
|
|
110
|
-
readonly active: () => readonly ["status", "==", EventStatus];
|
|
111
|
-
readonly byType: (type: EventType) => readonly ["type", "==", EventType];
|
|
112
|
-
readonly byStatus: (status: EventStatus) => readonly ["status", "==", EventStatus];
|
|
113
|
-
readonly upcoming: (date: Date) => readonly ["startsAt", ">", Date];
|
|
114
|
-
readonly past: (date: Date) => readonly ["endsAt", "<", Date];
|
|
115
|
-
};
|