@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,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cache Performance Metrics — pure localStorage implementation.
|
|
3
|
-
* No Firebase dependencies.
|
|
4
|
-
*/
|
|
5
|
-
interface CacheMetrics {
|
|
6
|
-
hits: number;
|
|
7
|
-
misses: number;
|
|
8
|
-
totalRequests: number;
|
|
9
|
-
hitRate: number;
|
|
10
|
-
lastReset: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function getCacheMetrics(): CacheMetrics;
|
|
13
|
-
export declare function recordCacheHit(): void;
|
|
14
|
-
export declare function recordCacheMiss(): void;
|
|
15
|
-
export declare function resetCacheMetrics(): void;
|
|
16
|
-
export declare function getCacheHitRate(): number;
|
|
17
|
-
export declare function isCacheHitRateLow(threshold?: number): boolean;
|
|
18
|
-
export declare function getCacheStatistics(): {
|
|
19
|
-
hitRate: string;
|
|
20
|
-
totalRequests: number;
|
|
21
|
-
hits: number;
|
|
22
|
-
misses: number;
|
|
23
|
-
};
|
|
24
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cache Performance Metrics — pure localStorage implementation.
|
|
3
|
-
* No Firebase dependencies.
|
|
4
|
-
*/
|
|
5
|
-
const STORAGE_KEY = "mohasinac:cache_metrics";
|
|
6
|
-
const RESET_INTERVAL_MS = 3600000; // 1 hour
|
|
7
|
-
function nowISO() {
|
|
8
|
-
return new Date().toISOString();
|
|
9
|
-
}
|
|
10
|
-
function initializeMetrics() {
|
|
11
|
-
const m = {
|
|
12
|
-
hits: 0,
|
|
13
|
-
misses: 0,
|
|
14
|
-
totalRequests: 0,
|
|
15
|
-
hitRate: 0,
|
|
16
|
-
lastReset: nowISO(),
|
|
17
|
-
};
|
|
18
|
-
if (typeof localStorage !== "undefined") {
|
|
19
|
-
localStorage.setItem(STORAGE_KEY, JSON.stringify(m));
|
|
20
|
-
}
|
|
21
|
-
return m;
|
|
22
|
-
}
|
|
23
|
-
export function getCacheMetrics() {
|
|
24
|
-
if (typeof localStorage === "undefined") {
|
|
25
|
-
return {
|
|
26
|
-
hits: 0,
|
|
27
|
-
misses: 0,
|
|
28
|
-
totalRequests: 0,
|
|
29
|
-
hitRate: 0,
|
|
30
|
-
lastReset: nowISO(),
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const stored = localStorage.getItem(STORAGE_KEY);
|
|
34
|
-
if (!stored)
|
|
35
|
-
return initializeMetrics();
|
|
36
|
-
try {
|
|
37
|
-
const m = JSON.parse(stored);
|
|
38
|
-
if (Date.now() - new Date(m.lastReset).getTime() > RESET_INTERVAL_MS) {
|
|
39
|
-
return initializeMetrics();
|
|
40
|
-
}
|
|
41
|
-
return m;
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
return initializeMetrics();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function saveMetrics(m) {
|
|
48
|
-
if (typeof localStorage !== "undefined") {
|
|
49
|
-
localStorage.setItem(STORAGE_KEY, JSON.stringify(m));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
export function recordCacheHit() {
|
|
53
|
-
const m = getCacheMetrics();
|
|
54
|
-
m.hits++;
|
|
55
|
-
m.totalRequests++;
|
|
56
|
-
m.hitRate = m.totalRequests > 0 ? m.hits / m.totalRequests : 0;
|
|
57
|
-
saveMetrics(m);
|
|
58
|
-
}
|
|
59
|
-
export function recordCacheMiss() {
|
|
60
|
-
const m = getCacheMetrics();
|
|
61
|
-
m.misses++;
|
|
62
|
-
m.totalRequests++;
|
|
63
|
-
m.hitRate = m.totalRequests > 0 ? m.hits / m.totalRequests : 0;
|
|
64
|
-
saveMetrics(m);
|
|
65
|
-
}
|
|
66
|
-
export function resetCacheMetrics() {
|
|
67
|
-
initializeMetrics();
|
|
68
|
-
}
|
|
69
|
-
export function getCacheHitRate() {
|
|
70
|
-
return getCacheMetrics().hitRate;
|
|
71
|
-
}
|
|
72
|
-
export function isCacheHitRateLow(threshold = 0.5) {
|
|
73
|
-
return getCacheHitRate() < threshold;
|
|
74
|
-
}
|
|
75
|
-
export function getCacheStatistics() {
|
|
76
|
-
const m = getCacheMetrics();
|
|
77
|
-
return {
|
|
78
|
-
hitRate: `${(m.hitRate * 100).toFixed(1)}%`,
|
|
79
|
-
totalRequests: m.totalRequests,
|
|
80
|
-
hits: m.hits,
|
|
81
|
-
misses: m.misses,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client-Side Error Logging Utilities
|
|
3
|
-
*
|
|
4
|
-
* Wraps the Logger singleton for use in React components, client hooks, and
|
|
5
|
-
* browser-only code. Automatically attaches timestamp, userAgent, and current URL.
|
|
6
|
-
*
|
|
7
|
-
* For server-side logging use `server-logger.ts`.
|
|
8
|
-
*/
|
|
9
|
-
export interface ClientErrorContext {
|
|
10
|
-
userId?: string;
|
|
11
|
-
component?: string;
|
|
12
|
-
action?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
method?: string;
|
|
15
|
-
statusCode?: number;
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
export declare const logClientError: (message: string, error: unknown, context?: ClientErrorContext) => void;
|
|
19
|
-
export declare const logClientWarning: (message: string, data?: ClientErrorContext) => void;
|
|
20
|
-
export declare const logClientInfo: (message: string, data?: ClientErrorContext) => void;
|
|
21
|
-
export declare const logClientDebug: (message: string, data?: ClientErrorContext) => void;
|
|
22
|
-
export declare const logApiError: (endpoint: string, response: Response, context?: ClientErrorContext) => Promise<void>;
|
|
23
|
-
export declare const logValidationError: (formName: string, errors: Record<string, unknown>, context?: ClientErrorContext) => void;
|
|
24
|
-
export declare const logNavigationError: (route: string, error: unknown, context?: ClientErrorContext) => void;
|
|
25
|
-
export declare const logAuthError: (operation: string, error: unknown, context?: ClientErrorContext) => void;
|
|
26
|
-
export declare const logUploadError: (fileName: string, error: unknown, context?: ClientErrorContext) => void;
|
|
27
|
-
export declare const logPaymentError: (transactionId: string, error: unknown, context?: ClientErrorContext) => void;
|
|
28
|
-
export declare const logApplicationError: (category: string, message: string, error: unknown, context?: ClientErrorContext) => void;
|
|
29
|
-
export declare const initializeClientLogger: () => void;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client-Side Error Logging Utilities
|
|
3
|
-
*
|
|
4
|
-
* Wraps the Logger singleton for use in React components, client hooks, and
|
|
5
|
-
* browser-only code. Automatically attaches timestamp, userAgent, and current URL.
|
|
6
|
-
*
|
|
7
|
-
* For server-side logging use `server-logger.ts`.
|
|
8
|
-
*/
|
|
9
|
-
import { logger } from "../core/Logger";
|
|
10
|
-
import { AppError } from "../errors";
|
|
11
|
-
function buildClientMeta(error, context) {
|
|
12
|
-
const base = {
|
|
13
|
-
...context,
|
|
14
|
-
timestamp: new Date().toISOString(),
|
|
15
|
-
userAgent: typeof navigator !== "undefined" ? navigator.userAgent : "unknown",
|
|
16
|
-
url: typeof window !== "undefined" ? window.location.href : "unknown",
|
|
17
|
-
};
|
|
18
|
-
if (error instanceof AppError) {
|
|
19
|
-
base.error = {
|
|
20
|
-
name: error.name,
|
|
21
|
-
message: error.message,
|
|
22
|
-
code: error.code,
|
|
23
|
-
statusCode: error.statusCode,
|
|
24
|
-
data: error.data,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
else if (error instanceof Error) {
|
|
28
|
-
base.error = {
|
|
29
|
-
name: error.name,
|
|
30
|
-
message: error.message,
|
|
31
|
-
stack: error.stack,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
base.error = error;
|
|
36
|
-
}
|
|
37
|
-
return base;
|
|
38
|
-
}
|
|
39
|
-
export const logClientError = (message, error, context) => {
|
|
40
|
-
logger.error(message, buildClientMeta(error, context));
|
|
41
|
-
};
|
|
42
|
-
export const logClientWarning = (message, data) => {
|
|
43
|
-
logger.warn(message, { ...data, timestamp: new Date().toISOString() });
|
|
44
|
-
};
|
|
45
|
-
export const logClientInfo = (message, data) => {
|
|
46
|
-
logger.info(message, { ...data, timestamp: new Date().toISOString() });
|
|
47
|
-
};
|
|
48
|
-
export const logClientDebug = (message, data) => {
|
|
49
|
-
logger.debug(message, { ...data, timestamp: new Date().toISOString() });
|
|
50
|
-
};
|
|
51
|
-
export const logApiError = async (endpoint, response, context) => {
|
|
52
|
-
let responseBody;
|
|
53
|
-
try {
|
|
54
|
-
responseBody = await response.clone().json();
|
|
55
|
-
}
|
|
56
|
-
catch {
|
|
57
|
-
responseBody = await response.clone().text();
|
|
58
|
-
}
|
|
59
|
-
logClientError(`API Error: ${endpoint}`, new Error(response.statusText), {
|
|
60
|
-
...context,
|
|
61
|
-
endpoint,
|
|
62
|
-
status: response.status,
|
|
63
|
-
statusText: response.statusText,
|
|
64
|
-
responseBody,
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
export const logValidationError = (formName, errors, context) => {
|
|
68
|
-
logClientWarning(`Form validation failed: ${formName}`, {
|
|
69
|
-
...context,
|
|
70
|
-
formName,
|
|
71
|
-
validationErrors: errors,
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
export const logNavigationError = (route, error, context) => {
|
|
75
|
-
logClientError(`Navigation error to ${route}`, error, {
|
|
76
|
-
...context,
|
|
77
|
-
route,
|
|
78
|
-
type: "navigation",
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
export const logAuthError = (operation, error, context) => {
|
|
82
|
-
logClientError(`Authentication error: ${operation}`, error, {
|
|
83
|
-
...context,
|
|
84
|
-
operation,
|
|
85
|
-
type: "authentication",
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
export const logUploadError = (fileName, error, context) => {
|
|
89
|
-
logClientError(`File upload failed: ${fileName}`, error, {
|
|
90
|
-
...context,
|
|
91
|
-
fileName,
|
|
92
|
-
type: "upload",
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
export const logPaymentError = (transactionId, error, context) => {
|
|
96
|
-
logClientError(`Payment error: ${transactionId}`, error, {
|
|
97
|
-
...context,
|
|
98
|
-
transactionId,
|
|
99
|
-
type: "payment",
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
export const logApplicationError = (category, message, error, context) => {
|
|
103
|
-
logClientError(`[${category}] ${message}`, error, {
|
|
104
|
-
...context,
|
|
105
|
-
category,
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
let clientLoggerInitialized = false;
|
|
109
|
-
export const initializeClientLogger = () => {
|
|
110
|
-
if (typeof window === "undefined" || clientLoggerInitialized) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
clientLoggerInitialized = true;
|
|
114
|
-
window.addEventListener("unhandledrejection", (event) => {
|
|
115
|
-
logClientError("Unhandled Promise Rejection", event.reason, {
|
|
116
|
-
type: "unhandled-rejection",
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
window.addEventListener("error", (event) => {
|
|
120
|
-
logClientError("Global Error", event.error ?? event.message, {
|
|
121
|
-
type: "global-error",
|
|
122
|
-
filename: event.filename,
|
|
123
|
-
lineno: event.lineno,
|
|
124
|
-
colno: event.colno,
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Tracking — Provider-agnostic types, enums, and utilities.
|
|
3
|
-
*
|
|
4
|
-
* Implementations that require Firebase Crashlytics or external SDKs should
|
|
5
|
-
* be wired in the app's monitoring setup by calling setErrorTracker().
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ErrorSeverity {
|
|
8
|
-
LOW = "low",
|
|
9
|
-
MEDIUM = "medium",
|
|
10
|
-
HIGH = "high",
|
|
11
|
-
CRITICAL = "critical"
|
|
12
|
-
}
|
|
13
|
-
export declare enum ErrorCategory {
|
|
14
|
-
AUTHENTICATION = "authentication",
|
|
15
|
-
API = "api",
|
|
16
|
-
DATABASE = "database",
|
|
17
|
-
VALIDATION = "validation",
|
|
18
|
-
NETWORK = "network",
|
|
19
|
-
PERMISSION = "permission",
|
|
20
|
-
UI = "ui",
|
|
21
|
-
UNKNOWN = "unknown"
|
|
22
|
-
}
|
|
23
|
-
export interface ErrorContext {
|
|
24
|
-
userId?: string;
|
|
25
|
-
userRole?: string;
|
|
26
|
-
page?: string;
|
|
27
|
-
component?: string;
|
|
28
|
-
action?: string;
|
|
29
|
-
metadata?: Record<string, unknown>;
|
|
30
|
-
}
|
|
31
|
-
export interface TrackedError {
|
|
32
|
-
message: string;
|
|
33
|
-
stack?: string;
|
|
34
|
-
category: ErrorCategory;
|
|
35
|
-
severity: ErrorSeverity;
|
|
36
|
-
context?: ErrorContext;
|
|
37
|
-
timestamp: string;
|
|
38
|
-
}
|
|
39
|
-
export type ErrorTrackerFn = (error: Error | string, category: ErrorCategory, severity: ErrorSeverity, context?: ErrorContext) => void;
|
|
40
|
-
declare global {
|
|
41
|
-
var __mohasinac_error_tracker__: ErrorTrackerFn | undefined;
|
|
42
|
-
}
|
|
43
|
-
/** Override the default console-based tracker with a custom implementation. */
|
|
44
|
-
export declare function setErrorTracker(fn: ErrorTrackerFn): void;
|
|
45
|
-
export declare function trackError(error: Error | string, category?: ErrorCategory, severity?: ErrorSeverity, context?: ErrorContext): void;
|
|
46
|
-
export declare function trackApiError(error: Error | string, context?: ErrorContext): void;
|
|
47
|
-
export declare function trackAuthError(error: Error | string, context?: ErrorContext): void;
|
|
48
|
-
export declare function trackValidationError(error: Error | string, context?: ErrorContext): void;
|
|
49
|
-
export declare function trackDatabaseError(error: Error | string, context?: ErrorContext): void;
|
|
50
|
-
export declare function trackPermissionError(error: Error | string, context?: ErrorContext): void;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Tracking — Provider-agnostic types, enums, and utilities.
|
|
3
|
-
*
|
|
4
|
-
* Implementations that require Firebase Crashlytics or external SDKs should
|
|
5
|
-
* be wired in the app's monitoring setup by calling setErrorTracker().
|
|
6
|
-
*/
|
|
7
|
-
export var ErrorSeverity;
|
|
8
|
-
(function (ErrorSeverity) {
|
|
9
|
-
ErrorSeverity["LOW"] = "low";
|
|
10
|
-
ErrorSeverity["MEDIUM"] = "medium";
|
|
11
|
-
ErrorSeverity["HIGH"] = "high";
|
|
12
|
-
ErrorSeverity["CRITICAL"] = "critical";
|
|
13
|
-
})(ErrorSeverity || (ErrorSeverity = {}));
|
|
14
|
-
export var ErrorCategory;
|
|
15
|
-
(function (ErrorCategory) {
|
|
16
|
-
ErrorCategory["AUTHENTICATION"] = "authentication";
|
|
17
|
-
ErrorCategory["API"] = "api";
|
|
18
|
-
ErrorCategory["DATABASE"] = "database";
|
|
19
|
-
ErrorCategory["VALIDATION"] = "validation";
|
|
20
|
-
ErrorCategory["NETWORK"] = "network";
|
|
21
|
-
ErrorCategory["PERMISSION"] = "permission";
|
|
22
|
-
ErrorCategory["UI"] = "ui";
|
|
23
|
-
ErrorCategory["UNKNOWN"] = "unknown";
|
|
24
|
-
})(ErrorCategory || (ErrorCategory = {}));
|
|
25
|
-
const TRACKER_KEY = "__mohasinac_error_tracker__";
|
|
26
|
-
function getTracker() {
|
|
27
|
-
return (globalThis.__mohasinac_error_tracker__ ??
|
|
28
|
-
((error, category, severity, context) => {
|
|
29
|
-
const msg = error instanceof Error ? error.message : error;
|
|
30
|
-
console.error(`[${severity.toUpperCase()}][${category}] ${msg}`, context);
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
/** Override the default console-based tracker with a custom implementation. */
|
|
34
|
-
export function setErrorTracker(fn) {
|
|
35
|
-
globalThis[TRACKER_KEY] = fn;
|
|
36
|
-
}
|
|
37
|
-
export function trackError(error, category = ErrorCategory.UNKNOWN, severity = ErrorSeverity.MEDIUM, context) {
|
|
38
|
-
getTracker()(error, category, severity, context);
|
|
39
|
-
}
|
|
40
|
-
export function trackApiError(error, context) {
|
|
41
|
-
trackError(error, ErrorCategory.API, ErrorSeverity.HIGH, context);
|
|
42
|
-
}
|
|
43
|
-
export function trackAuthError(error, context) {
|
|
44
|
-
trackError(error, ErrorCategory.AUTHENTICATION, ErrorSeverity.HIGH, context);
|
|
45
|
-
}
|
|
46
|
-
export function trackValidationError(error, context) {
|
|
47
|
-
trackError(error, ErrorCategory.VALIDATION, ErrorSeverity.LOW, context);
|
|
48
|
-
}
|
|
49
|
-
export function trackDatabaseError(error, context) {
|
|
50
|
-
trackError(error, ErrorCategory.DATABASE, ErrorSeverity.CRITICAL, context);
|
|
51
|
-
}
|
|
52
|
-
export function trackPermissionError(error, context) {
|
|
53
|
-
trackError(error, ErrorCategory.PERMISSION, ErrorSeverity.MEDIUM, context);
|
|
54
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { ErrorSeverity, ErrorCategory, setErrorTracker, trackError, trackApiError, trackAuthError, trackValidationError, trackDatabaseError, trackPermissionError, } from "./error-tracking";
|
|
2
|
-
export type { ErrorContext, TrackedError, ErrorTrackerFn, } from "./error-tracking";
|
|
3
|
-
export { getCacheMetrics, recordCacheHit, recordCacheMiss, resetCacheMetrics, getCacheHitRate, isCacheHitRateLow, getCacheStatistics, } from "./cache-metrics";
|
|
4
|
-
export { setupGlobalErrorHandler, setupCacheMonitoring } from "./runtime";
|
|
5
|
-
export { logClientError, logClientWarning, logClientInfo, logClientDebug, logApiError, logValidationError, logNavigationError, logAuthError, logUploadError, logPaymentError, logApplicationError, initializeClientLogger, } from "./client-logger";
|
|
6
|
-
export type { ClientErrorContext } from "./client-logger";
|
|
7
|
-
export { serverLogger, logServerError, logServerWarning, logServerInfo, logServerDebug, extractRequestMetadata, logApiRouteError, logDatabaseError, logServerAuthError, logAuthorizationError, logEmailError, logStorageError, logExternalApiError, logSlowOperation, logSecurityEvent, } from "./server-logger";
|
|
8
|
-
export type { ServerErrorContext } from "./server-logger";
|
|
9
|
-
export { setPerformanceProvider, startTrace, stopTrace, addTraceAttribute, addTraceMetric, } from "./performance";
|
|
10
|
-
export type { PerformanceTrace, PerformanceProvider } from "./performance";
|
|
11
|
-
export { ANALYTICS_EVENTS, initializeAnalytics, trackEvent, setAnalyticsUserId, setAnalyticsUserProperties, trackPageView, trackAuth, trackEcommerce, trackContent, trackForm, trackAdmin, } from "./analytics";
|
|
12
|
-
export type { AnalyticsEvent } from "./analytics";
|
package/dist/monitoring/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { ErrorSeverity, ErrorCategory, setErrorTracker, trackError, trackApiError, trackAuthError, trackValidationError, trackDatabaseError, trackPermissionError, } from "./error-tracking";
|
|
2
|
-
export { getCacheMetrics, recordCacheHit, recordCacheMiss, resetCacheMetrics, getCacheHitRate, isCacheHitRateLow, getCacheStatistics, } from "./cache-metrics";
|
|
3
|
-
export { setupGlobalErrorHandler, setupCacheMonitoring } from "./runtime";
|
|
4
|
-
export { logClientError, logClientWarning, logClientInfo, logClientDebug, logApiError, logValidationError, logNavigationError, logAuthError, logUploadError, logPaymentError, logApplicationError, initializeClientLogger, } from "./client-logger";
|
|
5
|
-
export { serverLogger, logServerError, logServerWarning, logServerInfo, logServerDebug, extractRequestMetadata, logApiRouteError, logDatabaseError, logServerAuthError, logAuthorizationError, logEmailError, logStorageError, logExternalApiError, logSlowOperation, logSecurityEvent, } from "./server-logger";
|
|
6
|
-
export { setPerformanceProvider, startTrace, stopTrace, addTraceAttribute, addTraceMetric, } from "./performance";
|
|
7
|
-
export { ANALYTICS_EVENTS, initializeAnalytics, trackEvent, setAnalyticsUserId, setAnalyticsUserProperties, trackPageView, trackAuth, trackEcommerce, trackContent, trackForm, trackAdmin, } from "./analytics";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider-Agnostic Performance Tracing
|
|
3
|
-
*
|
|
4
|
-
* Provides a thin abstraction over any performance tracing backend.
|
|
5
|
-
* Wire a concrete implementation via `setPerformanceProvider()` — e.g. a
|
|
6
|
-
* Firebase Performance, Datadog RUM, or web-vitals adapter.
|
|
7
|
-
*
|
|
8
|
-
* Without a provider the helpers are silent no-ops, so they are safe to call
|
|
9
|
-
* in any environment.
|
|
10
|
-
*/
|
|
11
|
-
export interface PerformanceTrace {
|
|
12
|
-
stop(): void;
|
|
13
|
-
putAttribute(key: string, value: string): void;
|
|
14
|
-
putMetric(key: string, value: number): void;
|
|
15
|
-
}
|
|
16
|
-
export interface PerformanceProvider {
|
|
17
|
-
startTrace(name: string): PerformanceTrace;
|
|
18
|
-
}
|
|
19
|
-
declare global {
|
|
20
|
-
var __mohasinac_perf_provider__: PerformanceProvider | undefined;
|
|
21
|
-
}
|
|
22
|
-
/** Register a concrete performance backend (call once in instrumentation). */
|
|
23
|
-
export declare function setPerformanceProvider(provider: PerformanceProvider): void;
|
|
24
|
-
/** Start a named trace. Returns `null` when no provider is registered. */
|
|
25
|
-
export declare function startTrace(name: string): PerformanceTrace | null;
|
|
26
|
-
/** Stop a trace returned by `startTrace`. Safe to call with `null`. */
|
|
27
|
-
export declare function stopTrace(t: PerformanceTrace | null): void;
|
|
28
|
-
/** Attach a string attribute to a trace. Safe to call with `null`. */
|
|
29
|
-
export declare function addTraceAttribute(t: PerformanceTrace | null, key: string, value: string): void;
|
|
30
|
-
/** Record a numeric metric on a trace. Safe to call with `null`. */
|
|
31
|
-
export declare function addTraceMetric(t: PerformanceTrace | null, key: string, value: number): void;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider-Agnostic Performance Tracing
|
|
3
|
-
*
|
|
4
|
-
* Provides a thin abstraction over any performance tracing backend.
|
|
5
|
-
* Wire a concrete implementation via `setPerformanceProvider()` — e.g. a
|
|
6
|
-
* Firebase Performance, Datadog RUM, or web-vitals adapter.
|
|
7
|
-
*
|
|
8
|
-
* Without a provider the helpers are silent no-ops, so they are safe to call
|
|
9
|
-
* in any environment.
|
|
10
|
-
*/
|
|
11
|
-
const PROVIDER_KEY = "__mohasinac_perf_provider__";
|
|
12
|
-
/** Register a concrete performance backend (call once in instrumentation). */
|
|
13
|
-
export function setPerformanceProvider(provider) {
|
|
14
|
-
globalThis[PROVIDER_KEY] = provider;
|
|
15
|
-
}
|
|
16
|
-
function getProvider() {
|
|
17
|
-
return globalThis.__mohasinac_perf_provider__;
|
|
18
|
-
}
|
|
19
|
-
/** Start a named trace. Returns `null` when no provider is registered. */
|
|
20
|
-
export function startTrace(name) {
|
|
21
|
-
return getProvider()?.startTrace(name) ?? null;
|
|
22
|
-
}
|
|
23
|
-
/** Stop a trace returned by `startTrace`. Safe to call with `null`. */
|
|
24
|
-
export function stopTrace(t) {
|
|
25
|
-
t?.stop();
|
|
26
|
-
}
|
|
27
|
-
/** Attach a string attribute to a trace. Safe to call with `null`. */
|
|
28
|
-
export function addTraceAttribute(t, key, value) {
|
|
29
|
-
t?.putAttribute(key, value);
|
|
30
|
-
}
|
|
31
|
-
/** Record a numeric metric on a trace. Safe to call with `null`. */
|
|
32
|
-
export function addTraceMetric(t, key, value) {
|
|
33
|
-
t?.putMetric(key, value);
|
|
34
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global Runtime Error Bootstrap
|
|
3
|
-
*
|
|
4
|
-
* Sets up window-level unhandled error/rejection forwarding to the
|
|
5
|
-
* configured error tracker. Import once in instrumentation.ts or layout.tsx.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Attach window-level listeners that forward uncaught errors and unhandled
|
|
9
|
-
* promise rejections to `trackError`. Safe to call multiple times — only
|
|
10
|
-
* registers once per window lifecycle.
|
|
11
|
-
*/
|
|
12
|
-
export declare function setupGlobalErrorHandler(): void;
|
|
13
|
-
/**
|
|
14
|
-
* Placeholder — wire up cache metric collection here once a backend flush
|
|
15
|
-
* target is configured (e.g. flush to Datadog / custom endpoint).
|
|
16
|
-
*/
|
|
17
|
-
export declare function setupCacheMonitoring(): void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global Runtime Error Bootstrap
|
|
3
|
-
*
|
|
4
|
-
* Sets up window-level unhandled error/rejection forwarding to the
|
|
5
|
-
* configured error tracker. Import once in instrumentation.ts or layout.tsx.
|
|
6
|
-
*/
|
|
7
|
-
import { trackError } from "./error-tracking";
|
|
8
|
-
/**
|
|
9
|
-
* Attach window-level listeners that forward uncaught errors and unhandled
|
|
10
|
-
* promise rejections to `trackError`. Safe to call multiple times — only
|
|
11
|
-
* registers once per window lifecycle.
|
|
12
|
-
*/
|
|
13
|
-
export function setupGlobalErrorHandler() {
|
|
14
|
-
if (typeof window === "undefined") {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
window.addEventListener("unhandledrejection", (event) => {
|
|
18
|
-
trackError(event.reason);
|
|
19
|
-
});
|
|
20
|
-
window.addEventListener("error", (event) => {
|
|
21
|
-
trackError(event.error ?? event.message);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Placeholder — wire up cache metric collection here once a backend flush
|
|
26
|
-
* target is configured (e.g. flush to Datadog / custom endpoint).
|
|
27
|
-
*/
|
|
28
|
-
export function setupCacheMonitoring() { }
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import "server-only";
|
|
2
|
-
import { type NextRequest } from "next/server";
|
|
3
|
-
export interface ServerErrorContext {
|
|
4
|
-
userId?: string;
|
|
5
|
-
endpoint?: string;
|
|
6
|
-
method?: string;
|
|
7
|
-
statusCode?: number;
|
|
8
|
-
requestId?: string;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
}
|
|
11
|
-
export declare const serverLogger: {
|
|
12
|
-
debug(message: string, data?: unknown): void;
|
|
13
|
-
info(message: string, data?: unknown): void;
|
|
14
|
-
warn(message: string, data?: unknown): void;
|
|
15
|
-
error(message: string, data?: unknown): void;
|
|
16
|
-
};
|
|
17
|
-
/** Pull the commonly needed headers from a NextRequest in one call. */
|
|
18
|
-
export declare const extractRequestMetadata: (request: NextRequest) => {
|
|
19
|
-
method: string;
|
|
20
|
-
url: string;
|
|
21
|
-
userAgent: string;
|
|
22
|
-
ip: string;
|
|
23
|
-
referer: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const logServerError: (message: string, error: unknown, context?: ServerErrorContext) => void;
|
|
26
|
-
export declare const logServerWarning: (message: string, data?: ServerErrorContext) => void;
|
|
27
|
-
export declare const logServerInfo: (message: string, data?: ServerErrorContext) => void;
|
|
28
|
-
export declare const logServerDebug: (message: string, data?: ServerErrorContext) => void;
|
|
29
|
-
export declare const logApiRouteError: (endpoint: string, error: unknown, request?: NextRequest, context?: ServerErrorContext) => void;
|
|
30
|
-
export declare const logDatabaseError: (operation: string, collection: string, error: unknown, context?: ServerErrorContext) => void;
|
|
31
|
-
export declare const logServerAuthError: (operation: string, error: unknown, context?: ServerErrorContext) => void;
|
|
32
|
-
export declare const logAuthorizationError: (userId: string, resource: string, action: string, context?: ServerErrorContext) => void;
|
|
33
|
-
export declare const logEmailError: (recipient: string, error: unknown, context?: ServerErrorContext) => void;
|
|
34
|
-
export declare const logStorageError: (operation: string, filePath: string, error: unknown, context?: ServerErrorContext) => void;
|
|
35
|
-
export declare const logExternalApiError: (serviceName: string, endpoint: string, error: unknown, context?: ServerErrorContext) => void;
|
|
36
|
-
export declare const logSlowOperation: (operation: string, duration: number, threshold?: number, context?: ServerErrorContext) => void;
|
|
37
|
-
export declare const logSecurityEvent: (event: string, severity: "info" | "warn" | "error", context?: ServerErrorContext) => void;
|