@mohasinac/appkit 4.71.0 → 4.72.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/dist/.build-stamp.json +4 -4
- package/dist/_internal/client/edit-mode/EditModeProvider.d.ts +32 -0
- package/dist/_internal/client/edit-mode/EditModeProvider.js +33 -0
- package/dist/_internal/client/edit-mode/index.d.ts +2 -0
- package/dist/_internal/client/edit-mode/index.js +1 -0
- package/dist/_internal/client/features/giveaway/ClearanceGiveawayDetailView.d.ts +32 -0
- package/dist/_internal/client/features/giveaway/ClearanceGiveawayDetailView.js +29 -0
- package/dist/_internal/client/features/giveaway/GiveawayAdminEditView.d.ts +66 -0
- package/dist/_internal/client/features/giveaway/GiveawayAdminEditView.js +187 -0
- package/dist/_internal/client/features/giveaway/GiveawayAdminSlotView.d.ts +18 -0
- package/dist/_internal/client/features/giveaway/GiveawayAdminSlotView.js +52 -0
- package/dist/_internal/client/features/giveaway/GiveawayDetailView.d.ts +40 -0
- package/dist/_internal/client/features/giveaway/GiveawayDetailView.js +49 -0
- package/dist/_internal/client/features/giveaway/GiveawayEntriesView.d.ts +34 -0
- package/dist/_internal/client/features/giveaway/GiveawayEntriesView.js +64 -0
- package/dist/_internal/client/features/giveaway/GiveawayListView.d.ts +39 -0
- package/dist/_internal/client/features/giveaway/GiveawayListView.js +45 -0
- package/dist/_internal/client/features/giveaway/GiveawayPullForm.d.ts +31 -0
- package/dist/_internal/client/features/giveaway/GiveawayPullForm.js +94 -0
- package/dist/_internal/client/features/giveaway/GiveawaySlotGrid.d.ts +14 -0
- package/dist/_internal/client/features/giveaway/GiveawaySlotGrid.js +23 -0
- package/dist/_internal/client/features/giveaway/slot-collage-items.d.ts +15 -0
- package/dist/_internal/client/features/giveaway/slot-collage-items.js +13 -0
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +34 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +79 -9
- package/dist/_internal/client/features/layout/PortalBackLink.d.ts +15 -0
- package/dist/_internal/client/features/layout/PortalBackLink.js +58 -0
- package/dist/_internal/client/features/layout/SidebarCollapseToggle.js +37 -1
- package/dist/_internal/client/features/layout/filterNavItems.d.ts +11 -6
- package/dist/_internal/client/features/layout/filterNavItems.js +36 -4
- package/dist/_internal/client/features/layout/sidebarPositionClasses.js +10 -2
- package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.d.ts +6 -1
- package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.js +4 -3
- package/dist/_internal/client/features/maintenance/views/CacheInvalidationPanel.js +1 -1
- package/dist/_internal/client/features/maintenance/views/CloudLogsListView.d.ts +4 -1
- package/dist/_internal/client/features/maintenance/views/CloudLogsListView.js +4 -3
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.d.ts +4 -1
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +4 -2
- package/dist/_internal/client/features/maintenance/views/RepositoryCacheStatusPanel.d.ts +15 -0
- package/dist/_internal/client/features/maintenance/views/RepositoryCacheStatusPanel.js +161 -0
- package/dist/_internal/client/features/maintenance/views/ServerErrorDetailView.d.ts +4 -1
- package/dist/_internal/client/features/maintenance/views/ServerErrorDetailView.js +3 -2
- package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.d.ts +11 -1
- package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +3 -2
- package/dist/_internal/server/features/ads/booking.d.ts +1 -1
- package/dist/_internal/server/features/ads/booking.js +1 -1
- package/dist/_internal/server/features/assistant/actions.d.ts +29 -0
- package/dist/_internal/server/features/assistant/actions.js +170 -0
- package/dist/_internal/server/features/assistant/budget.d.ts +28 -0
- package/dist/_internal/server/features/assistant/budget.js +132 -0
- package/dist/_internal/server/features/assistant/escalate.d.ts +25 -0
- package/dist/_internal/server/features/assistant/escalate.js +108 -0
- package/dist/_internal/server/features/assistant/guard.d.ts +10 -0
- package/dist/_internal/server/features/assistant/guard.js +110 -0
- package/dist/_internal/server/features/assistant/handles.d.ts +42 -0
- package/dist/_internal/server/features/assistant/handles.js +172 -0
- package/dist/_internal/server/features/assistant/history-store.d.ts +16 -0
- package/dist/_internal/server/features/assistant/history-store.js +63 -0
- package/dist/_internal/server/features/assistant/model-routing.d.ts +70 -0
- package/dist/_internal/server/features/assistant/model-routing.js +80 -0
- package/dist/_internal/server/features/assistant/quorum.d.ts +32 -0
- package/dist/_internal/server/features/assistant/quorum.js +128 -0
- package/dist/_internal/server/features/assistant/redaction.d.ts +68 -0
- package/dist/_internal/server/features/assistant/redaction.js +69 -0
- package/dist/_internal/server/features/assistant/severity.d.ts +41 -0
- package/dist/_internal/server/features/assistant/severity.js +93 -0
- package/dist/_internal/server/features/assistant/tools/admin/search-nav.d.ts +39 -0
- package/dist/_internal/server/features/assistant/tools/admin/search-nav.js +27 -0
- package/dist/_internal/server/features/assistant/tools/builtin/get-my-orders.d.ts +15 -0
- package/dist/_internal/server/features/assistant/tools/builtin/get-my-orders.js +116 -0
- package/dist/_internal/server/features/assistant/tools/builtin/get-toggle-state.d.ts +8 -0
- package/dist/_internal/server/features/assistant/tools/builtin/get-toggle-state.js +64 -0
- package/dist/_internal/server/features/assistant/tools/builtin/index.d.ts +38 -0
- package/dist/_internal/server/features/assistant/tools/builtin/index.js +29 -0
- package/dist/_internal/server/features/assistant/tools/builtin/search-faqs.d.ts +8 -0
- package/dist/_internal/server/features/assistant/tools/builtin/search-faqs.js +62 -0
- package/dist/_internal/server/features/assistant/tools/builtin/search-products.d.ts +16 -0
- package/dist/_internal/server/features/assistant/tools/builtin/search-products.js +79 -0
- package/dist/_internal/server/features/assistant/tools/define.d.ts +85 -0
- package/dist/_internal/server/features/assistant/tools/define.js +8 -0
- package/dist/_internal/server/features/assistant/tools/json-schema.d.ts +34 -0
- package/dist/_internal/server/features/assistant/tools/json-schema.js +79 -0
- package/dist/_internal/server/features/assistant/tools/manifest.d.ts +22 -0
- package/dist/_internal/server/features/assistant/tools/manifest.js +27 -0
- package/dist/_internal/server/features/assistant/tools/registry.d.ts +22 -0
- package/dist/_internal/server/features/assistant/tools/registry.js +43 -0
- package/dist/_internal/server/features/assistant/turn.d.ts +43 -0
- package/dist/_internal/server/features/assistant/turn.js +281 -0
- package/dist/_internal/server/features/auth/permissions.d.ts +65 -10
- package/dist/_internal/server/features/auth/permissions.js +74 -15
- package/dist/_internal/server/features/brands/actions.js +3 -3
- package/dist/_internal/server/features/bundles/actions.js +3 -3
- package/dist/_internal/server/features/categories/adapters.d.ts +2 -2
- package/dist/_internal/server/features/categories/adapters.js +17 -8
- package/dist/_internal/server/features/checkout/actions.d.ts +142 -15
- package/dist/_internal/server/features/checkout/actions.js +988 -142
- package/dist/_internal/server/features/checkout/gateway-selection.d.ts +68 -0
- package/dist/_internal/server/features/checkout/gateway-selection.js +124 -0
- package/dist/_internal/server/features/checkout/index.d.ts +5 -0
- package/dist/_internal/server/features/checkout/index.js +18 -0
- package/dist/_internal/server/features/checkout/locked-lines.d.ts +10 -10
- package/dist/_internal/server/features/checkout/locked-lines.js +37 -37
- package/dist/_internal/server/features/checkout/prize-bundle-gates.d.ts +1 -1
- package/dist/_internal/server/features/checkout/prize-bundle-gates.js +1 -1
- package/dist/_internal/server/features/checkout/source-context.js +17 -17
- package/dist/_internal/server/features/checkout/split-settlement.d.ts +100 -0
- package/dist/_internal/server/features/checkout/split-settlement.js +205 -0
- package/dist/_internal/server/features/checkout/upi-resolution.js +8 -1
- package/dist/_internal/server/features/clearance/actions.d.ts +2 -0
- package/dist/_internal/server/features/clearance/actions.js +33 -0
- package/dist/_internal/server/features/clearance/data.d.ts +1 -0
- package/dist/_internal/server/features/clearance/data.js +2 -0
- package/dist/_internal/server/features/clearance/index.d.ts +4 -0
- package/dist/_internal/server/features/clearance/index.js +4 -0
- package/dist/_internal/server/features/clearance/og.d.ts +32 -0
- package/dist/_internal/server/features/clearance/og.js +47 -0
- package/dist/_internal/server/features/clearance/service.d.ts +3 -0
- package/dist/_internal/server/features/clearance/service.js +19 -0
- package/dist/_internal/server/features/collector-drops/actions.js +76 -0
- package/dist/_internal/server/features/collector-drops/data.d.ts +2 -0
- package/dist/_internal/server/features/collector-drops/data.js +3 -0
- package/dist/_internal/server/features/collector-drops/index.d.ts +5 -0
- package/dist/_internal/server/features/collector-drops/index.js +5 -0
- package/dist/_internal/server/features/collector-drops/og.d.ts +22 -0
- package/dist/_internal/server/features/collector-drops/og.js +30 -0
- package/dist/_internal/server/features/collector-drops/service.d.ts +20 -0
- package/dist/_internal/server/features/collector-drops/service.js +65 -0
- package/dist/_internal/server/features/dashboard/page-regions.d.ts +33 -0
- package/dist/_internal/server/features/dashboard/page-regions.js +53 -0
- package/dist/_internal/server/features/digital-code/pool.d.ts +14 -1
- package/dist/_internal/server/features/digital-code/pool.js +21 -2
- package/dist/_internal/server/features/digital-code/release.d.ts +79 -0
- package/dist/_internal/server/features/digital-code/release.js +176 -0
- package/dist/_internal/server/features/events/adapters.d.ts +7 -7
- package/dist/_internal/server/features/events/adapters.js +6 -6
- package/dist/_internal/server/features/events/data.d.ts +17 -1
- package/dist/_internal/server/features/events/data.js +51 -0
- package/dist/_internal/server/features/events/service.d.ts +2 -2
- package/dist/_internal/server/features/forms/field-visibility.d.ts +35 -0
- package/dist/_internal/server/features/forms/field-visibility.js +89 -0
- package/dist/_internal/server/features/giveaway/actions.d.ts +43 -0
- package/dist/_internal/server/features/giveaway/actions.js +369 -0
- package/dist/_internal/server/features/giveaway/adapters.d.ts +15 -0
- package/dist/_internal/server/features/giveaway/adapters.js +31 -0
- package/dist/_internal/server/features/giveaway/data.d.ts +19 -0
- package/dist/_internal/server/features/giveaway/data.js +56 -0
- package/dist/_internal/server/features/giveaway/metadata.d.ts +6 -0
- package/dist/_internal/server/features/giveaway/metadata.js +31 -0
- package/dist/_internal/server/features/giveaway/og.d.ts +40 -0
- package/dist/_internal/server/features/giveaway/og.js +79 -0
- package/dist/_internal/server/features/homepage/index.js +1 -1
- package/dist/_internal/server/features/inventory/reservations.d.ts +1 -1
- package/dist/_internal/server/features/inventory/reservations.js +1 -1
- package/dist/_internal/server/features/maintenance/cache-admin.d.ts +44 -0
- package/dist/_internal/server/features/maintenance/cache-admin.js +85 -0
- package/dist/_internal/server/features/media/contextGuards.d.ts +2 -2
- package/dist/_internal/server/features/media/contextGuards.js +4 -4
- package/dist/_internal/server/features/messages/actions.js +11 -0
- package/dist/_internal/server/features/order-completion/actions.js +1 -1
- package/dist/_internal/server/features/orders/actions.d.ts +3 -2
- package/dist/_internal/server/features/orders/actions.js +67 -16
- package/dist/_internal/server/features/orders/adapters.js +20 -3
- package/dist/_internal/server/features/orders/balance.d.ts +5 -2
- package/dist/_internal/server/features/orders/balance.js +12 -2
- package/dist/_internal/server/features/products/actions.d.ts +1 -1
- package/dist/_internal/server/features/products/actions.js +8 -8
- package/dist/_internal/server/features/products/data.js +5 -4
- package/dist/_internal/server/features/products/index.d.ts +1 -1
- package/dist/_internal/server/features/products/index.js +1 -1
- package/dist/_internal/server/features/products/list-public.js +18 -12
- package/dist/_internal/server/features/products/listing-tab-counts.d.ts +1 -1
- package/dist/_internal/server/features/products/listing-tab-counts.js +8 -8
- package/dist/_internal/server/features/products/og.js +1 -1
- package/dist/_internal/server/features/products/service.d.ts +51 -14
- package/dist/_internal/server/features/products/service.js +95 -29
- package/dist/_internal/server/features/scams/og.d.ts +1 -1
- package/dist/_internal/server/features/search/entity-index.d.ts +14 -0
- package/dist/_internal/server/features/search/entity-index.js +87 -0
- package/dist/_internal/server/features/search/index-build/build.js +13 -4
- package/dist/_internal/server/features/search/index-build/sources.d.ts +2 -0
- package/dist/_internal/server/features/search/index-build/sources.js +4 -2
- package/dist/_internal/server/features/search/search-everything.d.ts +2 -0
- package/dist/_internal/server/features/search/search-sources.js +5 -3
- package/dist/_internal/server/features/seo/index.d.ts +1 -1
- package/dist/_internal/server/features/seo/index.js +1 -1
- package/dist/_internal/server/features/seo/manifest.js +3 -3
- package/dist/_internal/server/features/seo/product-detail-types.js +2 -1
- package/dist/_internal/server/features/seo/robots.js +19 -4
- package/dist/_internal/server/features/seo/sitemap.js +62 -94
- package/dist/_internal/server/features/seo/static-params.d.ts +0 -18
- package/dist/_internal/server/features/seo/static-params.js +0 -55
- package/dist/_internal/server/features/shared/listing-data-factory.js +3 -3
- package/dist/_internal/server/features/site-settings/actions.d.ts +36 -0
- package/dist/_internal/server/features/site-settings/actions.js +57 -1
- package/dist/_internal/server/features/site-settings/adapters.d.ts +3 -3
- package/dist/_internal/server/features/site-settings/adapters.js +39 -4
- package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +2 -2
- package/dist/_internal/server/features/sticker-trace/sweep.d.ts +13 -0
- package/dist/_internal/server/features/sticker-trace/sweep.js +49 -0
- package/dist/_internal/server/features/stores/activation.d.ts +22 -0
- package/dist/_internal/server/features/stores/activation.js +73 -0
- package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
- package/dist/_internal/server/features/stores/adapters.js +22 -0
- package/dist/_internal/server/features/stores/data.d.ts +1 -1
- package/dist/_internal/server/features/stores/data.js +1 -1
- package/dist/_internal/server/features/stores/index.d.ts +2 -1
- package/dist/_internal/server/features/stores/index.js +7 -1
- package/dist/_internal/server/features/stores/tabs.js +6 -11
- package/dist/_internal/server/features/widgets/widget-instances.d.ts +34 -0
- package/dist/_internal/server/features/widgets/widget-instances.js +169 -0
- package/dist/_internal/server/functions/define.d.ts +4 -4
- package/dist/_internal/server/functions/define.js +4 -4
- package/dist/_internal/server/functions/firestore.d.ts +3 -3
- package/dist/_internal/server/functions/firestore.js +18 -9
- package/dist/_internal/server/functions/https.js +1 -1
- package/dist/_internal/server/functions/scheduled.d.ts +26 -3
- package/dist/_internal/server/functions/scheduled.js +49 -12
- package/dist/_internal/server/jobs/core/assignSpinPrize.js +5 -1
- package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +13 -11
- package/dist/_internal/server/jobs/core/bundleStockSync.js +1 -1
- package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +2 -2
- package/dist/_internal/server/jobs/core/clearanceAssignWinner.d.ts +60 -0
- package/dist/_internal/server/jobs/core/clearanceAssignWinner.js +227 -0
- package/dist/_internal/server/jobs/core/clearanceExpiryReveal.d.ts +14 -0
- package/dist/_internal/server/jobs/core/clearanceExpiryReveal.js +71 -0
- package/dist/_internal/server/jobs/core/clearanceSoldOutReveal.d.ts +22 -0
- package/dist/_internal/server/jobs/core/clearanceSoldOutReveal.js +67 -0
- package/dist/_internal/server/jobs/core/collectorDropSettlement.d.ts +2 -0
- package/dist/_internal/server/jobs/core/collectorDropSettlement.js +240 -0
- package/dist/_internal/server/jobs/core/countersReconcile.js +21 -21
- package/dist/_internal/server/jobs/core/event-draw-reasons.d.ts +4 -2
- package/dist/_internal/server/jobs/core/event-draw-reasons.js +6 -4
- package/dist/_internal/server/jobs/core/index.d.ts +5 -5
- package/dist/_internal/server/jobs/core/index.js +5 -5
- package/dist/_internal/server/jobs/core/jobRunners.d.ts +1 -1
- package/dist/_internal/server/jobs/core/jobRunners.js +25 -0
- package/dist/_internal/server/jobs/core/offerExpiry.js +23 -23
- package/dist/_internal/server/jobs/core/onCategoryWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/core/onClearancePaymentConfirmed.d.ts +19 -0
- package/dist/_internal/server/jobs/core/onClearancePaymentConfirmed.js +32 -0
- package/dist/_internal/server/jobs/core/onProductWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/core/onProductWrite.js +23 -23
- package/dist/_internal/server/jobs/core/onReviewWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/core/onStoreWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/core/paymentReviewAutoApprove.js +1 -1
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.d.ts +1 -1
- package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +1 -1
- package/dist/_internal/server/jobs/core/priceIndexRollup.d.ts +1 -1
- package/dist/_internal/server/jobs/core/priceIndexRollup.js +5 -5
- package/dist/_internal/server/jobs/core/promotions.js +1 -1
- package/dist/_internal/server/jobs/core/revalidateNotify.d.ts +1 -1
- package/dist/_internal/server/jobs/core/revalidateNotify.js +2 -2
- package/dist/_internal/server/jobs/core/settlementVendorRegister.d.ts +47 -0
- package/dist/_internal/server/jobs/core/settlementVendorRegister.js +414 -0
- package/dist/_internal/server/jobs/core/stickerTraceSweep.d.ts +9 -0
- package/dist/_internal/server/jobs/core/stickerTraceSweep.js +25 -0
- package/dist/_internal/server/jobs/core/surfaceCountsRollup.js +47 -7
- package/dist/_internal/server/jobs/core/testDataCleanup.js +1 -1
- package/dist/_internal/server/jobs/core/triggerEventRaffle.d.ts +2 -2
- package/dist/_internal/server/jobs/core/triggerEventRaffle.js +17 -12
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +10 -8
- package/dist/_internal/server/jobs/handlers/clearanceExpiryReveal.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/clearanceExpiryReveal.js +2 -0
- package/dist/_internal/server/jobs/handlers/clearanceSoldOutReveal.d.ts +3 -0
- package/dist/_internal/server/jobs/handlers/clearanceSoldOutReveal.js +4 -0
- package/dist/_internal/server/jobs/handlers/collectorDropSettlement.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/collectorDropSettlement.js +2 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +6 -5
- package/dist/_internal/server/jobs/handlers/index.js +11 -9
- package/dist/_internal/server/jobs/handlers/messages.d.ts +4 -4
- package/dist/_internal/server/jobs/handlers/messages.js +13 -13
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onClearancePaymentConfirmed.d.ts +3 -0
- package/dist/_internal/server/jobs/handlers/onClearancePaymentConfirmed.js +11 -0
- package/dist/_internal/server/jobs/handlers/onProductStockChange.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onReviewWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onScamReportCreate.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onScamReportUpdate.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onShipmentDeleted.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onSiteSettingsWrite.d.ts +2 -2
- package/dist/_internal/server/jobs/handlers/onSiteSettingsWrite.js +1 -1
- package/dist/_internal/server/jobs/handlers/onSupportTicketCreate.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onSupportTicketUpdate.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/onUserBanChange.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/stickerTraceSweep.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/stickerTraceSweep.js +2 -0
- package/dist/_internal/server/jobs/handlers/triggerEventRaffle.d.ts +1 -1
- package/dist/_internal/server/jobs/handlers/triggerEventRaffle.js +1 -1
- package/dist/_internal/server/jobs/runtime/adapters/firebase.d.ts +1 -1
- package/dist/_internal/server/jobs/runtime/adapters/firebase.js +1 -1
- package/dist/_internal/server/jobs/runtime/types.d.ts +1 -1
- package/dist/_internal/server/payments/policy-consent.d.ts +170 -0
- package/dist/_internal/server/payments/policy-consent.js +287 -0
- package/dist/_internal/server/payments/webhook-registry.d.ts +162 -0
- package/dist/_internal/server/payments/webhook-registry.js +228 -0
- package/dist/_internal/shared/actions/action-registry.d.ts +40 -6
- package/dist/_internal/shared/actions/action-registry.js +318 -312
- package/dist/_internal/shared/cache/revalidate-targets.d.ts +2 -2
- package/dist/_internal/shared/cache/revalidate-targets.js +8 -8
- package/dist/_internal/shared/checkout/lanes.d.ts +25 -25
- package/dist/_internal/shared/checkout/lanes.js +35 -35
- package/dist/_internal/shared/checkout/order-math.d.ts +50 -50
- package/dist/_internal/shared/checkout/order-math.js +108 -50
- package/dist/_internal/shared/checkout/payout-base.d.ts +51 -0
- package/dist/_internal/shared/checkout/payout-base.js +84 -0
- package/dist/_internal/shared/checkout/policy-consent.d.ts +182 -0
- package/dist/_internal/shared/checkout/policy-consent.js +214 -0
- package/dist/_internal/shared/checkout/rules/_limits.d.ts +35 -4
- package/dist/_internal/shared/checkout/rules/_limits.js +35 -4
- package/dist/_internal/shared/checkout/rules/_registry.js +6 -8
- package/dist/_internal/shared/checkout/rules/art-and-stickers.rule.d.ts +13 -0
- package/dist/_internal/shared/checkout/rules/art-and-stickers.rule.js +5 -0
- package/dist/_internal/shared/checkout/rules/bundle.rule.d.ts +24 -6
- package/dist/_internal/shared/checkout/rules/bundle.rule.js +4 -1
- package/dist/_internal/shared/checkout/rules/clearance.rule.d.ts +2 -0
- package/dist/_internal/shared/checkout/rules/clearance.rule.js +148 -0
- package/dist/_internal/shared/checkout/rules/collector-drop.rule.d.ts +2 -0
- package/dist/_internal/shared/checkout/rules/collector-drop.rule.js +50 -0
- package/dist/_internal/shared/checkout/rules/index.d.ts +4 -5
- package/dist/_internal/shared/checkout/rules/index.js +4 -5
- package/dist/_internal/shared/checkout/rules/payment-gate.d.ts +24 -3
- package/dist/_internal/shared/checkout/rules/payment-gate.js +24 -6
- package/dist/_internal/shared/checkout/rules/preorder.rule.js +39 -0
- package/dist/_internal/shared/checkout/rules/types.d.ts +26 -5
- package/dist/_internal/shared/checkout/settlement-split.d.ts +136 -0
- package/dist/_internal/shared/checkout/settlement-split.js +198 -0
- package/dist/_internal/shared/checkout/settlement.d.ts +186 -0
- package/dist/_internal/shared/checkout/settlement.js +0 -0
- package/dist/_internal/shared/config/index.d.ts +1 -1
- package/dist/_internal/shared/config/schema.d.ts +35 -1
- package/dist/_internal/shared/content/composite-sentences/en.d.ts +31 -0
- package/dist/_internal/shared/content/composite-sentences/en.js +173 -0
- package/dist/_internal/shared/content/composite-sentences/index.d.ts +21 -0
- package/dist/_internal/shared/content/composite-sentences/index.js +26 -0
- package/dist/_internal/shared/content/composite-sentences/registry.d.ts +41 -0
- package/dist/_internal/shared/content/composite-sentences/registry.js +50 -0
- package/dist/_internal/shared/content/disclaimers.d.ts +4 -4
- package/dist/_internal/shared/content/disclaimers.js +32 -10
- package/dist/_internal/shared/content/fragmented-paragraphs/en.d.ts +20 -0
- package/dist/_internal/shared/content/fragmented-paragraphs/en.js +16 -0
- package/dist/_internal/shared/content/fragmented-paragraphs/index.d.ts +16 -0
- package/dist/_internal/shared/content/fragmented-paragraphs/index.js +22 -0
- package/dist/_internal/shared/content/fragments.d.ts +114 -0
- package/dist/_internal/shared/content/fragments.js +88 -0
- package/dist/_internal/shared/content/published-values.d.ts +1 -1
- package/dist/_internal/shared/content/published-values.js +2 -0
- package/dist/_internal/shared/features/admin/integrations.d.ts +2 -1
- package/dist/_internal/shared/features/admin/integrations.js +34 -16
- package/dist/_internal/shared/features/admin/row-widget-resources.d.ts +4 -0
- package/dist/_internal/shared/features/admin/row-widget-resources.js +29 -0
- package/dist/_internal/shared/features/blog/schema.d.ts +7 -7
- package/dist/_internal/shared/features/cart/schema.d.ts +8 -8
- package/dist/_internal/shared/features/cart/schema.js +3 -4
- package/dist/_internal/shared/features/categories/bundle-config.d.ts +3 -3
- package/dist/_internal/shared/features/categories/bundle-config.js +3 -3
- package/dist/_internal/shared/features/categories/bundle-copy.d.ts +1 -1
- package/dist/_internal/shared/features/categories/bundle-copy.js +1 -1
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +49 -49
- package/dist/_internal/shared/features/categories/bundle-schemas.js +1 -1
- package/dist/_internal/shared/features/checkout/config.d.ts +2 -0
- package/dist/_internal/shared/features/checkout/config.js +23 -0
- package/dist/_internal/shared/features/collector-drops/config.d.ts +100 -0
- package/dist/_internal/shared/features/collector-drops/config.js +136 -0
- package/dist/_internal/shared/features/collector-drops/errors.d.ts +16 -0
- package/dist/_internal/shared/features/collector-drops/errors.js +32 -0
- package/dist/_internal/shared/features/collector-drops/schema.d.ts +42 -0
- package/dist/_internal/shared/features/collector-drops/schema.js +24 -0
- package/dist/_internal/shared/features/content-tags/registry.d.ts +55 -0
- package/dist/_internal/shared/features/content-tags/registry.js +54 -0
- package/dist/_internal/shared/features/dashboard/recent-entry.d.ts +466 -0
- package/dist/_internal/shared/features/dashboard/recent-entry.js +132 -0
- package/dist/_internal/shared/features/events/config.d.ts +1 -1
- package/dist/_internal/shared/features/events/config.js +1 -1
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/_internal/shared/features/layout/config.d.ts +9 -1
- package/dist/_internal/shared/features/layout/config.js +23 -3
- package/dist/_internal/shared/features/notifications/action-url.js +1 -1
- package/dist/_internal/shared/features/notifications/email-eligibility.d.ts +4 -4
- package/dist/_internal/shared/features/notifications/email-eligibility.js +9 -9
- package/dist/_internal/shared/features/offers/config.js +1 -1
- package/dist/_internal/shared/features/orders/schema.d.ts +2 -2
- package/dist/_internal/shared/features/orders/workflow-registry.d.ts +145 -0
- package/dist/_internal/shared/features/orders/workflow-registry.js +197 -0
- package/dist/_internal/shared/features/payouts/destination.d.ts +101 -0
- package/dist/_internal/shared/features/payouts/destination.js +221 -0
- package/dist/_internal/shared/features/print/label-profiles.d.ts +1 -1
- package/dist/_internal/shared/features/print/label-profiles.js +1 -1
- package/dist/_internal/shared/features/products/composite.d.ts +104 -0
- package/dist/_internal/shared/features/products/composite.js +188 -0
- package/dist/_internal/shared/features/products/group-rules.d.ts +28 -2
- package/dist/_internal/shared/features/products/group-rules.js +29 -0
- package/dist/_internal/shared/features/products/pdp-section-ids.d.ts +13 -0
- package/dist/_internal/shared/features/products/pdp-section-ids.js +14 -0
- package/dist/_internal/shared/features/products/schema.d.ts +31 -13
- package/dist/_internal/shared/features/products/schema.js +75 -10
- package/dist/_internal/shared/features/products/to-product-item.js +1 -1
- package/dist/_internal/shared/features/products/types.d.ts +1 -1
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/shipping/offer.d.ts +408 -0
- package/dist/_internal/shared/features/shipping/offer.js +440 -0
- package/dist/_internal/shared/features/site-settings/fees.d.ts +32 -3
- package/dist/_internal/shared/features/site-settings/fees.js +1 -1
- package/dist/_internal/shared/features/site-settings/settings-preview-registry.d.ts +17 -0
- package/dist/_internal/shared/features/site-settings/settings-preview-registry.js +56 -0
- package/dist/_internal/shared/features/site-settings/toggle-catalog.d.ts +68 -0
- package/dist/_internal/shared/features/site-settings/toggle-catalog.js +204 -0
- package/dist/_internal/shared/features/site-settings/types.d.ts +27 -1
- package/dist/_internal/shared/fees/calculator.d.ts +256 -21
- package/dist/_internal/shared/fees/calculator.js +269 -26
- package/dist/_internal/shared/fees/explain.d.ts +20 -5
- package/dist/_internal/shared/fees/explain.js +38 -18
- package/dist/_internal/shared/listing-types/_registry.d.ts +30 -15
- package/dist/_internal/shared/listing-types/_registry.js +39 -16
- package/dist/_internal/shared/listing-types/action-tracker.d.ts +1 -1
- package/dist/_internal/shared/listing-types/art-and-stickers/config.d.ts +94 -0
- package/dist/_internal/shared/listing-types/art-and-stickers/config.js +57 -0
- package/dist/_internal/shared/listing-types/art-and-stickers/ctas.js +3 -0
- package/dist/_internal/shared/listing-types/art-and-stickers/schema.d.ts +2 -0
- package/dist/_internal/shared/listing-types/art-and-stickers/schema.js +3 -0
- package/dist/_internal/shared/listing-types/availability.js +2 -2
- package/dist/_internal/shared/listing-types/capabilities.d.ts +77 -1
- package/dist/_internal/shared/listing-types/capabilities.js +72 -13
- package/dist/_internal/shared/listing-types/classified/config.d.ts +1 -0
- package/dist/_internal/shared/listing-types/classified/config.js +1 -0
- package/dist/_internal/shared/listing-types/clearance/config.d.ts +74 -0
- package/dist/_internal/shared/listing-types/clearance/config.js +46 -0
- package/dist/_internal/shared/listing-types/clearance/schema.d.ts +3 -0
- package/dist/_internal/shared/listing-types/clearance/schema.js +13 -0
- package/dist/_internal/shared/listing-types/collector-drop/config.d.ts +85 -0
- package/dist/_internal/shared/listing-types/collector-drop/config.js +59 -0
- package/dist/_internal/shared/listing-types/collector-drop/schema.d.ts +3 -0
- package/dist/_internal/shared/listing-types/collector-drop/schema.js +11 -0
- package/dist/_internal/shared/listing-types/digital-code/config.d.ts +1 -0
- package/dist/_internal/shared/listing-types/digital-code/config.js +1 -0
- package/dist/_internal/shared/listing-types/feature-flags.d.ts +125 -8
- package/dist/_internal/shared/listing-types/feature-flags.js +149 -12
- package/dist/_internal/shared/listing-types/hidden-surfaces.d.ts +19 -10
- package/dist/_internal/shared/listing-types/hidden-surfaces.js +6 -5
- package/dist/_internal/shared/listing-types/live/config.d.ts +1 -0
- package/dist/_internal/shared/listing-types/live/config.js +1 -0
- package/dist/_internal/shared/listing-types/pre-order/config.d.ts +1 -0
- package/dist/_internal/shared/listing-types/pre-order/config.js +20 -5
- package/dist/_internal/shared/listing-types/pre-order/schema.d.ts +45 -0
- package/dist/_internal/shared/listing-types/pre-order/schema.js +60 -2
- package/dist/_internal/shared/listing-types/route-gating.d.ts +11 -11
- package/dist/_internal/shared/listing-types/route-gating.js +15 -14
- package/dist/_internal/shared/listing-types/spares/config.d.ts +1 -0
- package/dist/_internal/shared/listing-types/spares/config.js +1 -0
- package/dist/_internal/shared/listing-types/standard/config.d.ts +1 -0
- package/dist/_internal/shared/listing-types/standard/config.js +1 -0
- package/dist/_internal/shared/listing-types/tiers.d.ts +2 -2
- package/dist/_internal/shared/listing-types/tiers.js +6 -7
- package/dist/_internal/shared/search/index-record.d.ts +10 -4
- package/dist/_internal/shared/search/index-record.js +18 -1
- package/dist/_internal/shared/search/match.d.ts +3 -1
- package/dist/_internal/shared/search/match.js +2 -1
- package/dist/_internal/shared/search/to-groups.js +1 -0
- package/dist/_internal/shared/templating/placeholders.d.ts +18 -0
- package/dist/_internal/shared/templating/placeholders.js +24 -0
- package/dist/_internal/shared/tester/window.d.ts +1 -1
- package/dist/_internal/shared/tester/window.js +5 -5
- package/dist/_internal/shared/tokens/index.d.ts +1 -1
- package/dist/_internal/shared/tokens/index.js +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/client-entry.d.ts +1 -1
- package/dist/client.d.ts +49 -40
- package/dist/client.js +97 -32
- package/dist/configs/next.d.ts +1 -1
- package/dist/configs/tailwind.d.ts +12 -0
- package/dist/configs/tailwind.js +14 -0
- package/dist/constants/api-endpoints.d.ts +96 -51
- package/dist/constants/api-endpoints.js +59 -28
- package/dist/constants/field-names.d.ts +40 -20
- package/dist/constants/field-names.js +41 -21
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/constants/notification-types.d.ts +1 -1
- package/dist/constants/pagination-presets.d.ts +2 -2
- package/dist/constants/pagination-presets.js +2 -2
- package/dist/constants/seed-meta.d.ts +1 -1
- package/dist/constants/storage-keys.d.ts +6 -0
- package/dist/constants/storage-keys.js +12 -0
- package/dist/constants/table-keys.d.ts +3 -2
- package/dist/constants/table-keys.js +3 -2
- package/dist/contracts/ai.d.ts +183 -0
- package/dist/contracts/ai.js +2 -0
- package/dist/contracts/auth.d.ts +16 -1
- package/dist/contracts/client-live-edit.d.ts +29 -0
- package/dist/contracts/client-live-edit.js +23 -0
- package/dist/contracts/feature.d.ts +1 -1
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/payment.d.ts +238 -0
- package/dist/contracts/payment.js +125 -0
- package/dist/contracts/registry.d.ts +29 -1
- package/dist/core/CacheManager.d.ts +21 -0
- package/dist/core/CacheManager.js +38 -0
- package/dist/core/integration-keys.d.ts +6 -0
- package/dist/core/integration-keys.js +14 -0
- package/dist/core/mutation-events.d.ts +3 -3
- package/dist/core/mutation-events.js +7 -5
- package/dist/core/site-config.js +1 -1
- package/dist/core/unit-of-work.d.ts +1 -2
- package/dist/core/unit-of-work.js +1 -5
- package/dist/edit-mode/index.d.ts +11 -0
- package/dist/edit-mode/index.js +10 -0
- package/dist/errors/error-codes.d.ts +7 -7
- package/dist/errors/error-codes.js +7 -7
- package/dist/errors/error-display-map.js +8 -8
- package/dist/errors/messages.d.ts +8 -8
- package/dist/errors/messages.js +8 -8
- package/dist/features/_guide-cls.d.ts +1 -0
- package/dist/features/_guide-cls.js +10 -1
- package/dist/features/about/components/DeveloperView.d.ts +4 -1
- package/dist/features/about/components/DeveloperView.js +3 -2
- package/dist/features/about/components/FeesView.d.ts +4 -1
- package/dist/features/about/components/FeesView.js +3 -2
- package/dist/features/about/components/GstExplainerView.d.ts +4 -1
- package/dist/features/about/components/GstExplainerView.js +3 -2
- package/dist/features/about/components/GuidesHubView.d.ts +5 -2
- package/dist/features/about/components/GuidesHubView.js +7 -6
- package/dist/features/about/components/HelpPageView.d.ts +10 -1
- package/dist/features/about/components/HelpPageView.js +6 -5
- package/dist/features/about/components/HowCheckoutWorksView.d.ts +4 -1
- package/dist/features/about/components/HowCheckoutWorksView.js +4 -14
- package/dist/features/about/components/HowCollectorDropsWorkView.d.ts +6 -0
- package/dist/features/about/components/HowCollectorDropsWorkView.js +105 -0
- package/dist/features/about/components/HowEmiWorksView.d.ts +4 -1
- package/dist/features/about/components/HowEmiWorksView.js +4 -14
- package/dist/features/about/components/HowOffersWorkView.d.ts +4 -1
- package/dist/features/about/components/HowOffersWorkView.js +3 -16
- package/dist/features/about/components/HowOrdersWorkView.d.ts +4 -1
- package/dist/features/about/components/HowOrdersWorkView.js +3 -10
- package/dist/features/about/components/HowPayoutsWorkView.d.ts +4 -1
- package/dist/features/about/components/HowPayoutsWorkView.js +5 -15
- package/dist/features/about/components/HowPreOrdersWorkView.d.ts +4 -1
- package/dist/features/about/components/HowPreOrdersWorkView.js +5 -15
- package/dist/features/about/components/HowReviewsWorkView.d.ts +4 -1
- package/dist/features/about/components/HowReviewsWorkView.js +5 -15
- package/dist/features/about/components/PolicyPageView.d.ts +79 -3
- package/dist/features/about/components/PolicyPageView.js +63 -4
- package/dist/features/about/components/PublicProfileView.d.ts +11 -1
- package/dist/features/about/components/PublicProfileView.js +9 -8
- package/dist/features/about/components/SecurityPrivacyView.d.ts +4 -1
- package/dist/features/about/components/SecurityPrivacyView.js +3 -2
- package/dist/features/about/components/ShippingPolicyView.d.ts +4 -1
- package/dist/features/about/components/ShippingPolicyView.js +4 -3
- package/dist/features/about/components/SpotAFakeView.d.ts +4 -1
- package/dist/features/about/components/SpotAFakeView.js +3 -2
- package/dist/features/about/components/TrackOrderView.d.ts +4 -1
- package/dist/features/about/components/TrackOrderView.js +3 -2
- package/dist/features/about/index.d.ts +2 -2
- package/dist/features/about/index.js +1 -1
- package/dist/features/about/schemas/index.d.ts +18 -18
- package/dist/features/account/components/AddressBook.d.ts +1 -1
- package/dist/features/account/components/AddressForm.js +25 -1
- package/dist/features/account/components/BecomeSellerView.d.ts +4 -1
- package/dist/features/account/components/BecomeSellerView.js +3 -2
- package/dist/features/account/components/BuyerAccountGuideView.d.ts +6 -1
- package/dist/features/account/components/BuyerAccountGuideView.js +4 -4
- package/dist/features/account/components/BuyerCollectorDropsGuideView.d.ts +7 -0
- package/dist/features/account/components/BuyerCollectorDropsGuideView.js +46 -0
- package/dist/features/account/components/BuyerOrdersGuideView.d.ts +6 -1
- package/dist/features/account/components/BuyerOrdersGuideView.js +3 -3
- package/dist/features/account/components/BuyerShoppingGuideView.d.ts +6 -1
- package/dist/features/account/components/BuyerShoppingGuideView.js +5 -5
- package/dist/features/account/components/NotificationBell.js +1 -1
- package/dist/features/account/components/NotificationPreferencesPanel.js +1 -1
- package/dist/features/account/components/OrderDetailView.d.ts +4 -1
- package/dist/features/account/components/OrderDetailView.js +3 -1
- package/dist/features/account/components/UserAccountHubView.d.ts +4 -1
- package/dist/features/account/components/UserAccountHubView.js +8 -2
- package/dist/features/account/components/UserBidsView.d.ts +6 -1
- package/dist/features/account/components/UserBidsView.js +17 -8
- package/dist/features/account/components/UserOrderTrackView.d.ts +4 -1
- package/dist/features/account/components/UserOrderTrackView.js +3 -1
- package/dist/features/account/components/UserOrdersView.d.ts +4 -1
- package/dist/features/account/components/UserOrdersView.js +6 -5
- package/dist/features/account/components/UserReturnsView.d.ts +4 -1
- package/dist/features/account/components/UserReturnsView.js +4 -3
- package/dist/features/account/components/UserSidebar.js +14 -4
- package/dist/features/account/hooks/useNotifications.d.ts +1 -1
- package/dist/features/account/hooks/useProfile.d.ts +13 -0
- package/dist/features/account/hooks/usePublicProfile.d.ts +11 -1
- package/dist/features/account/hooks/usePublicProfile.js +6 -1
- package/dist/features/account/schemas/index.d.ts +4 -4
- package/dist/features/addresses/schemas/address-form.d.ts +12 -12
- package/dist/features/addresses/schemas/index.d.ts +2 -2
- package/dist/features/admin/actions/admin-actions.js +4 -4
- package/dist/features/admin/actions/admin-read-actions.d.ts +1 -1
- package/dist/features/admin/actions/admin-read-actions.js +1 -1
- package/dist/features/admin/actions/notification-actions.js +4 -4
- package/dist/features/admin/actions/site-settings-actions.d.ts +1 -1
- package/dist/features/admin/api/bids/route.js +7 -1
- package/dist/features/admin/api/coupons/route.js +7 -1
- package/dist/features/admin/api/products/route.js +7 -1
- package/dist/features/admin/api/reviews/route.js +7 -1
- package/dist/features/admin/components/AdminActionIndexView.d.ts +4 -1
- package/dist/features/admin/components/AdminActionIndexView.js +3 -2
- package/dist/features/admin/components/AdminAdEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminAdEditorView.js +3 -1
- package/dist/features/admin/components/AdminAddressBookView.d.ts +4 -1
- package/dist/features/admin/components/AdminAddressBookView.js +3 -2
- package/dist/features/admin/components/AdminAddressClustersView.d.ts +4 -1
- package/dist/features/admin/components/AdminAddressClustersView.js +3 -2
- package/dist/features/admin/components/AdminAddressEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminAddressEditorView.js +13 -2
- package/dist/features/admin/components/AdminAddressesView.d.ts +4 -1
- package/dist/features/admin/components/AdminAddressesView.js +3 -2
- package/dist/features/admin/components/AdminAdsView.d.ts +4 -1
- package/dist/features/admin/components/AdminAdsView.js +3 -2
- package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +6 -2
- package/dist/features/admin/components/AdminAllEventEntriesView.js +3 -2
- package/dist/features/admin/components/AdminAnalyticsGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminAnalyticsGuideView.js +3 -2
- package/dist/features/admin/components/AdminArtAndStickersView.d.ts +20 -0
- package/dist/features/admin/components/AdminArtAndStickersView.js +39 -0
- package/dist/features/admin/components/AdminAuditLogView.d.ts +6 -2
- package/dist/features/admin/components/AdminAuditLogView.js +5 -1
- package/dist/features/admin/components/AdminBidsView.d.ts +6 -2
- package/dist/features/admin/components/AdminBidsView.js +5 -3
- package/dist/features/admin/components/AdminBlogEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminBlogEditorView.js +5 -2
- package/dist/features/admin/components/AdminBlogView.d.ts +6 -2
- package/dist/features/admin/components/AdminBlogView.js +4 -2
- package/dist/features/admin/components/AdminBrandEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminBrandEditorView.js +6 -2
- package/dist/features/admin/components/AdminBrandsView.d.ts +6 -2
- package/dist/features/admin/components/AdminBrandsView.js +7 -3
- package/dist/features/admin/components/AdminBundleEditorView.d.ts +10 -1
- package/dist/features/admin/components/AdminBundleEditorView.js +6 -2
- package/dist/features/admin/components/AdminBundlesView.d.ts +4 -1
- package/dist/features/admin/components/AdminBundlesView.js +10 -3
- package/dist/features/admin/components/AdminCartsView.d.ts +6 -2
- package/dist/features/admin/components/AdminCartsView.js +7 -2
- package/dist/features/admin/components/AdminCatalogGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminCatalogGuideView.js +4 -3
- package/dist/features/admin/components/AdminCategoriesView.d.ts +6 -2
- package/dist/features/admin/components/AdminCategoriesView.js +7 -3
- package/dist/features/admin/components/AdminCategoryEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminCategoryEditorView.js +13 -9
- package/dist/features/admin/components/AdminClassifiedView.d.ts +6 -2
- package/dist/features/admin/components/AdminClassifiedView.js +8 -3
- package/dist/features/admin/components/AdminClearanceView.d.ts +8 -0
- package/dist/features/admin/components/AdminClearanceView.js +156 -0
- package/dist/features/admin/components/AdminContactView.d.ts +4 -1
- package/dist/features/admin/components/AdminContactView.js +3 -1
- package/dist/features/admin/components/AdminContentGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminContentGuideView.js +4 -3
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +9 -5
- package/dist/features/admin/components/AdminCouponsView.d.ts +4 -1
- package/dist/features/admin/components/AdminCouponsView.js +4 -2
- package/dist/features/admin/components/AdminDashboardView.d.ts +4 -1
- package/dist/features/admin/components/AdminDashboardView.js +3 -1
- package/dist/features/admin/components/AdminDigitalCodesView.d.ts +6 -2
- package/dist/features/admin/components/AdminDigitalCodesView.js +4 -3
- package/dist/features/admin/components/AdminEmployeeEditorView.d.ts +36 -1
- package/dist/features/admin/components/AdminEmployeeEditorView.js +15 -7
- package/dist/features/admin/components/AdminFaqEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminFaqEditorView.js +82 -4
- package/dist/features/admin/components/AdminFaqsView.d.ts +4 -1
- package/dist/features/admin/components/AdminFaqsView.js +5 -4
- package/dist/features/admin/components/AdminFeatureEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminFeatureEditorView.js +6 -2
- package/dist/features/admin/components/AdminFeaturesView.d.ts +6 -2
- package/dist/features/admin/components/AdminFeaturesView.js +10 -4
- package/dist/features/admin/components/AdminFulfillmentView.d.ts +4 -1
- package/dist/features/admin/components/AdminFulfillmentView.js +3 -2
- package/dist/features/admin/components/AdminGatewayEventsView.d.ts +6 -2
- package/dist/features/admin/components/AdminGatewayEventsView.js +3 -2
- package/dist/features/admin/components/AdminGroupedListingsView.d.ts +6 -2
- package/dist/features/admin/components/AdminGroupedListingsView.js +3 -2
- package/dist/features/admin/components/AdminGuideHubView.d.ts +7 -1
- package/dist/features/admin/components/AdminGuideHubView.js +5 -3
- package/dist/features/admin/components/AdminHistoryView.d.ts +6 -2
- package/dist/features/admin/components/AdminHistoryView.js +7 -6
- package/dist/features/admin/components/AdminInvoicingView.d.ts +6 -1
- package/dist/features/admin/components/AdminInvoicingView.js +3 -2
- package/dist/features/admin/components/AdminLiveView.d.ts +6 -2
- package/dist/features/admin/components/AdminLiveView.js +4 -3
- package/dist/features/admin/components/AdminMediaView.d.ts +4 -1
- package/dist/features/admin/components/AdminMediaView.js +15 -3
- package/dist/features/admin/components/AdminMoneyCasesView.d.ts +6 -2
- package/dist/features/admin/components/AdminMoneyCasesView.js +3 -2
- package/dist/features/admin/components/AdminNavEditorView.d.ts +12 -1
- package/dist/features/admin/components/AdminNavEditorView.js +4 -3
- package/dist/features/admin/components/AdminNavigationView.d.ts +4 -1
- package/dist/features/admin/components/AdminNavigationView.js +3 -1
- package/dist/features/admin/components/AdminNewsletterView.d.ts +4 -1
- package/dist/features/admin/components/AdminNewsletterView.js +3 -2
- package/dist/features/admin/components/AdminNotificationsView.d.ts +6 -2
- package/dist/features/admin/components/AdminNotificationsView.js +19 -7
- package/dist/features/admin/components/AdminOffersView.d.ts +6 -2
- package/dist/features/admin/components/AdminOffersView.js +4 -3
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +1 -1
- package/dist/features/admin/components/AdminOrdersGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminOrdersGuideView.js +5 -4
- package/dist/features/admin/components/AdminOrdersView.d.ts +6 -2
- package/dist/features/admin/components/AdminOrdersView.js +46 -5
- package/dist/features/admin/components/AdminPaymentClustersView.d.ts +4 -1
- package/dist/features/admin/components/AdminPaymentClustersView.js +3 -2
- package/dist/features/admin/components/AdminPaymentMethodsView.d.ts +4 -1
- package/dist/features/admin/components/AdminPaymentMethodsView.js +3 -2
- package/dist/features/admin/components/AdminPaymentsGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminPaymentsGuideView.js +3 -2
- package/dist/features/admin/components/AdminPayoutsView.d.ts +6 -2
- package/dist/features/admin/components/AdminPayoutsView.js +3 -2
- package/dist/features/admin/components/AdminProductEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminProductEditorView.js +7 -3
- package/dist/features/admin/components/AdminProductsView.d.ts +4 -1
- package/dist/features/admin/components/AdminProductsView.js +78 -47
- package/dist/features/admin/components/AdminReturnRequestsView.d.ts +4 -1
- package/dist/features/admin/components/AdminReturnRequestsView.js +3 -2
- package/dist/features/admin/components/AdminReviewsView.d.ts +6 -2
- package/dist/features/admin/components/AdminReviewsView.js +3 -2
- package/dist/features/admin/components/AdminScammersView.d.ts +6 -2
- package/dist/features/admin/components/AdminScammersView.js +3 -2
- package/dist/features/admin/components/AdminSectionsView.d.ts +4 -1
- package/dist/features/admin/components/AdminSectionsView.js +39 -38
- package/dist/features/admin/components/AdminSessionsView.d.ts +6 -2
- package/dist/features/admin/components/AdminSessionsView.js +3 -2
- package/dist/features/admin/components/AdminSidebar.js +19 -5
- package/dist/features/admin/components/AdminSiteConfigGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +4 -3
- package/dist/features/admin/components/AdminSiteSettingsView.d.ts +4 -1
- package/dist/features/admin/components/AdminSiteSettingsView.js +1161 -647
- package/dist/features/admin/components/AdminSparesView.d.ts +7 -3
- package/dist/features/admin/components/AdminSparesView.js +5 -4
- package/dist/features/admin/components/AdminStoreAddressesView.d.ts +4 -1
- package/dist/features/admin/components/AdminStoreAddressesView.js +3 -2
- package/dist/features/admin/components/AdminStoreEditorView.js +4 -3
- package/dist/features/admin/components/AdminStoresGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminStoresGuideView.js +3 -2
- package/dist/features/admin/components/AdminStoresView.d.ts +6 -2
- package/dist/features/admin/components/AdminStoresView.js +3 -2
- package/dist/features/admin/components/AdminSublistingCategoriesView.d.ts +4 -1
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +4 -3
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +3 -1
- package/dist/features/admin/components/AdminSupportTicketsView.d.ts +6 -2
- package/dist/features/admin/components/AdminSupportTicketsView.js +3 -2
- package/dist/features/admin/components/AdminTaxCodesView.d.ts +6 -2
- package/dist/features/admin/components/AdminTaxCodesView.js +4 -3
- package/dist/features/admin/components/AdminTeamGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminTeamGuideView.js +4 -2
- package/dist/features/admin/components/AdminTeamView.d.ts +4 -1
- package/dist/features/admin/components/AdminTeamView.js +22 -28
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.d.ts +6 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +6 -2
- package/dist/features/admin/components/AdminTesterChecklistView.d.ts +4 -1
- package/dist/features/admin/components/AdminTesterChecklistView.js +5 -4
- package/dist/features/admin/components/AdminTrustGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminTrustGuideView.js +3 -2
- package/dist/features/admin/components/AdminUserEditorView.js +2 -1
- package/dist/features/admin/components/AdminUsersGuideView.d.ts +6 -1
- package/dist/features/admin/components/AdminUsersGuideView.js +3 -2
- package/dist/features/admin/components/AdminUsersView.d.ts +6 -2
- package/dist/features/admin/components/AdminUsersView.js +38 -6
- package/dist/features/admin/components/AdminViewCards.js +1 -1
- package/dist/features/admin/components/AdminWishlistsView.d.ts +6 -2
- package/dist/features/admin/components/AdminWishlistsView.js +7 -6
- package/dist/features/admin/components/DashboardStats.js +20 -23
- package/dist/features/admin/components/DataListingView.js +16 -2
- package/dist/features/admin/components/OwnerQuickActions.d.ts +1 -1
- package/dist/features/admin/components/OwnerQuickActions.js +18 -2
- package/dist/features/admin/components/QuickEditMenu.js +1 -1
- package/dist/features/admin/components/ViewNotificationModal.js +1 -1
- package/dist/features/admin/components/analytics/AdminStatCard.d.ts +1 -5
- package/dist/features/admin/components/analytics/AdminStatCard.js +2 -14
- package/dist/features/admin/components/index.d.ts +4 -12
- package/dist/features/admin/components/index.js +4 -8
- package/dist/features/admin/components/sections/adminSectionsBuildParse.d.ts +5 -5
- package/dist/features/admin/components/sections/adminSectionsBuildParse.js +22 -22
- package/dist/features/admin/components/sections/adminSectionsTypes.d.ts +8 -7
- package/dist/features/admin/components/sections/adminSectionsTypes.js +13 -13
- package/dist/features/admin/constants/filter-tabs.d.ts +27 -17
- package/dist/features/admin/constants/filter-tabs.js +40 -12
- package/dist/features/admin/constants/site-settings-tabs.d.ts +4 -4
- package/dist/features/admin/constants/site-settings-tabs.js +3 -3
- package/dist/features/admin/hooks/build-filter-panel.d.ts +50 -0
- package/dist/features/admin/hooks/build-filter-panel.js +55 -0
- package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminListingData.js +14 -1
- package/dist/features/admin/hooks/useAdminSiteSettingsPreview.d.ts +6 -0
- package/dist/features/admin/hooks/useAdminSiteSettingsPreview.js +46 -0
- package/dist/features/admin/repository/site-settings.repository.d.ts +26 -25
- package/dist/features/admin/repository/site-settings.repository.js +73 -21
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +2 -2
- package/dist/features/admin/schemas/admin-user-form.d.ts +7 -7
- package/dist/features/admin/schemas/admin-user-form.js +6 -6
- package/dist/features/admin/schemas/firestore.d.ts +265 -41
- package/dist/features/admin/schemas/firestore.js +10 -10
- package/dist/features/admin/schemas/nav-item-form.d.ts +2 -2
- package/dist/features/admin/schemas/site-settings-about-form.d.ts +162 -0
- package/dist/features/admin/schemas/site-settings-about-form.js +142 -0
- package/dist/features/admin/schemas/site-settings-announcement-form.d.ts +18 -0
- package/dist/features/admin/schemas/site-settings-announcement-form.js +53 -0
- package/dist/features/admin/schemas/site-settings-appearance-form.d.ts +93 -0
- package/dist/features/admin/schemas/site-settings-appearance-form.js +75 -0
- package/dist/features/admin/schemas/site-settings-branding-form.d.ts +30 -0
- package/dist/features/admin/schemas/site-settings-branding-form.js +77 -0
- package/dist/features/admin/schemas/site-settings-collector-drop-form.d.ts +30 -0
- package/dist/features/admin/schemas/site-settings-collector-drop-form.js +63 -0
- package/dist/features/admin/schemas/site-settings-contact-form.d.ts +42 -0
- package/dist/features/admin/schemas/site-settings-contact-form.js +85 -0
- package/dist/features/admin/schemas/site-settings-emi-form.d.ts +27 -0
- package/dist/features/admin/schemas/site-settings-emi-form.js +68 -0
- package/dist/features/admin/schemas/site-settings-fees-form.d.ts +78 -0
- package/dist/features/admin/schemas/site-settings-fees-form.js +161 -0
- package/dist/features/admin/schemas/site-settings-form.d.ts +3 -3
- package/dist/features/admin/schemas/site-settings-form.js +1 -1
- package/dist/features/admin/schemas/site-settings-gst-form.d.ts +18 -0
- package/dist/features/admin/schemas/site-settings-gst-form.js +57 -0
- package/dist/features/admin/schemas/site-settings-integrations-form.d.ts +99 -0
- package/dist/features/admin/schemas/site-settings-integrations-form.js +172 -0
- package/dist/features/admin/schemas/site-settings-legal-form.d.ts +38 -0
- package/dist/features/admin/schemas/site-settings-legal-form.js +76 -0
- package/dist/features/admin/schemas/site-settings-limits-form.d.ts +15 -0
- package/dist/features/admin/schemas/site-settings-limits-form.js +48 -0
- package/dist/features/admin/schemas/site-settings-listings-form.d.ts +15 -0
- package/dist/features/admin/schemas/site-settings-listings-form.js +78 -0
- package/dist/features/admin/schemas/site-settings-notifications-form.d.ts +60 -0
- package/dist/features/admin/schemas/site-settings-notifications-form.js +160 -0
- package/dist/features/admin/schemas/site-settings-procurement-form.d.ts +12 -0
- package/dist/features/admin/schemas/site-settings-procurement-form.js +48 -0
- package/dist/features/admin/schemas/site-settings-seo-form.d.ts +21 -0
- package/dist/features/admin/schemas/site-settings-seo-form.js +42 -0
- package/dist/features/admin/schemas/site-settings-shipping-form.d.ts +48 -0
- package/dist/features/admin/schemas/site-settings-shipping-form.js +132 -0
- package/dist/features/admin/schemas/site-settings-watermark-form.d.ts +34 -0
- package/dist/features/admin/schemas/site-settings-watermark-form.js +68 -0
- package/dist/features/admin/schemas/site-settings-whatsapp-form.d.ts +36 -0
- package/dist/features/admin/schemas/site-settings-whatsapp-form.js +62 -0
- package/dist/features/admin/types/product.types.d.ts +6 -6
- package/dist/features/admin/types/product.types.js +1 -1
- package/dist/features/analytics/types.d.ts +1 -1
- package/dist/features/analytics/types.js +3 -3
- package/dist/features/assistant/components/AdminAssistantWidget.d.ts +1 -0
- package/dist/features/assistant/components/AdminAssistantWidget.js +84 -0
- package/dist/features/assistant/components/AssistantPageView.d.ts +6 -0
- package/dist/features/assistant/components/AssistantPageView.js +54 -0
- package/dist/features/assistant/components/AssistantWidget.d.ts +5 -0
- package/dist/features/assistant/components/AssistantWidget.js +127 -0
- package/dist/features/assistant/schemas/ask.d.ts +15 -0
- package/dist/features/assistant/schemas/ask.js +10 -0
- package/dist/features/audit-log/schemas/firestore.d.ts +94 -0
- package/dist/features/audit-log/schemas/firestore.js +51 -0
- package/dist/features/auth/actions/profile-actions.d.ts +8 -6
- package/dist/features/auth/actions/profile-actions.js +17 -8
- package/dist/features/auth/auth-helpers.d.ts +186 -2
- package/dist/features/auth/auth-helpers.js +320 -4
- package/dist/features/auth/components/Guards.d.ts +10 -0
- package/dist/features/auth/components/Guards.js +30 -6
- package/dist/features/auth/components/OAuthLoadingView.d.ts +6 -1
- package/dist/features/auth/components/OAuthLoadingView.js +3 -2
- package/dist/features/auth/hooks/useRBAC.d.ts +29 -1
- package/dist/features/auth/hooks/useRBAC.js +46 -12
- package/dist/features/auth/permissions/constants.d.ts +130 -5
- package/dist/features/auth/permissions/constants.js +176 -2
- package/dist/features/auth/repository/user.repository.d.ts +89 -29
- package/dist/features/auth/repository/user.repository.js +218 -79
- package/dist/features/auth/role-predicates.d.ts +64 -8
- package/dist/features/auth/role-predicates.js +104 -12
- package/dist/features/auth/schemas/firestore.d.ts +107 -8
- package/dist/features/auth/schemas/firestore.js +19 -2
- package/dist/features/auth/schemas/index.d.ts +26 -6
- package/dist/features/auth/schemas/index.js +17 -0
- package/dist/features/auth/types/index.d.ts +23 -1
- package/dist/features/before-after/schemas/index.d.ts +2 -2
- package/dist/features/blog/actions/blog-actions.d.ts +31 -31
- package/dist/features/blog/actions/blog-actions.js +1 -1
- package/dist/features/blog/components/BlogFeaturedCard.js +1 -1
- package/dist/features/blog/components/BlogIndexListing.js +2 -1
- package/dist/features/blog/components/BlogIndexPageView.d.ts +4 -1
- package/dist/features/blog/components/BlogIndexPageView.js +3 -2
- package/dist/features/blog/components/BlogListView.js +1 -1
- package/dist/features/blog/components/BlogPostView.js +33 -2
- package/dist/features/blog/schemas/blog-category.schema.d.ts +2 -0
- package/dist/features/blog/schemas/blog-category.schema.js +8 -0
- package/dist/features/blog/schemas/blog-form.d.ts +4 -4
- package/dist/features/blog/schemas/blog-form.js +1 -1
- package/dist/features/blog/schemas/index.d.ts +67 -67
- package/dist/features/blog/schemas/index.js +3 -7
- package/dist/features/cart/actions/cart-actions.d.ts +5 -5
- package/dist/features/cart/actions/cart-actions.js +7 -7
- package/dist/features/cart/components/CartDrawer.js +1 -1
- package/dist/features/cart/components/CartGroupLineRow.js +1 -1
- package/dist/features/cart/components/CartView.d.ts +1 -1
- package/dist/features/cart/hooks/useCartQuery.d.ts +1 -1
- package/dist/features/cart/hooks/useCheckoutReadQueries.d.ts +1 -1
- package/dist/features/cart/repository/cart.repository.d.ts +3 -3
- package/dist/features/cart/repository/cart.repository.js +6 -6
- package/dist/features/cart/schemas/firestore.d.ts +21 -21
- package/dist/features/cart/schemas/firestore.js +2 -2
- package/dist/features/cart/schemas/index.d.ts +15 -15
- package/dist/features/cart/utils/pending-ops.d.ts +1 -1
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.d.ts +6 -1
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +3 -1
- package/dist/features/catalogue/components/CatalogueItemEditorView.d.ts +6 -1
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +3 -2
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.d.ts +4 -1
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +4 -3
- package/dist/features/catalogue/components/PublicCatalogueView.js +1 -1
- package/dist/features/catalogue/components/UserCatalogueView.d.ts +4 -1
- package/dist/features/catalogue/components/UserCatalogueView.js +4 -3
- package/dist/features/categories/api/[id]/description-template/route.js +1 -24
- package/dist/features/categories/api/[id]/price-guidance/route.js +6 -1
- package/dist/features/categories/api/[id]/route.js +20 -3
- package/dist/features/categories/api/route.js +1 -1
- package/dist/features/categories/components/BrandDetailPageView.d.ts +4 -1
- package/dist/features/categories/components/BrandDetailPageView.js +50 -10
- package/dist/features/categories/components/BrandDetailTabs.d.ts +12 -3
- package/dist/features/categories/components/BrandDetailTabs.js +10 -9
- package/dist/features/categories/components/BundleCollage.d.ts +1 -1
- package/dist/features/categories/components/BundleCollage.js +2 -2
- package/dist/features/categories/components/BundleDetailView.d.ts +4 -1
- package/dist/features/categories/components/BundleDetailView.js +4 -3
- package/dist/features/categories/components/BundleDynamicRuleEditor.d.ts +1 -1
- package/dist/features/categories/components/BundleDynamicRuleEditor.js +1 -1
- package/dist/features/categories/components/BundlesListView.d.ts +4 -1
- package/dist/features/categories/components/BundlesListView.js +3 -2
- package/dist/features/categories/components/CategoriesIndexListing.js +10 -3
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +4 -1
- package/dist/features/categories/components/CategoriesIndexPageView.js +3 -2
- package/dist/features/categories/components/CategoryBundlesListing.js +7 -3
- package/dist/features/categories/components/CategoryDetailPageView.d.ts +4 -1
- package/dist/features/categories/components/CategoryDetailPageView.js +134 -101
- package/dist/features/categories/components/CategoryDetailTabs.d.ts +12 -3
- package/dist/features/categories/components/CategoryDetailTabs.js +10 -10
- package/dist/features/categories/components/CategoryForm.js +2 -1
- package/dist/features/categories/components/CategoryGrid.js +1 -1
- package/dist/features/categories/components/CategoryProductsListing.d.ts +1 -1
- package/dist/features/categories/components/CategoryProductsListing.js +6 -5
- package/dist/features/categories/components/CategoryTableColumns.js +1 -1
- package/dist/features/categories/components/ConcernCard.js +1 -1
- package/dist/features/categories/components/FranchiseDetailPageView.d.ts +4 -1
- package/dist/features/categories/components/FranchiseDetailPageView.js +24 -5
- package/dist/features/categories/components/FranchisesIndexView.d.ts +6 -1
- package/dist/features/categories/components/FranchisesIndexView.js +4 -3
- package/dist/features/categories/components/SubcategoryCardRow.js +1 -1
- package/dist/features/categories/hooks/useCategorySelector.d.ts +1 -1
- package/dist/features/categories/hooks/useCategoryTree.js +1 -1
- package/dist/features/categories/repository/categories.repository.d.ts +43 -6
- package/dist/features/categories/repository/categories.repository.js +75 -22
- package/dist/features/categories/repository/price-index.repository.d.ts +2 -2
- package/dist/features/categories/schemas/bundle-form.d.ts +21 -21
- package/dist/features/categories/schemas/bundle-form.js +1 -1
- package/dist/features/categories/schemas/category-content.d.ts +3 -3
- package/dist/features/categories/schemas/category-counts.d.ts +5 -5
- package/dist/features/categories/schemas/category-counts.js +4 -4
- package/dist/features/categories/schemas/firestore.d.ts +36 -18
- package/dist/features/categories/schemas/firestore.js +9 -9
- package/dist/features/categories/schemas/index.d.ts +122 -116
- package/dist/features/categories/schemas/index.js +10 -6
- package/dist/features/categories/types/index.d.ts +13 -10
- package/dist/features/checkout/manifest.js +15 -6
- package/dist/features/checkout/repository/buyer-policy-consent.repository.d.ts +44 -0
- package/dist/features/checkout/repository/buyer-policy-consent.repository.js +66 -0
- package/dist/features/checkout/schemas/firestore.d.ts +37 -0
- package/dist/features/checkout/schemas/firestore.js +1 -0
- package/dist/features/classified/components/ClassifiedDetailPageView.d.ts +4 -1
- package/dist/features/classified/components/ClassifiedDetailPageView.js +36 -22
- package/dist/features/collections/components/CollectionCard.js +1 -1
- package/dist/features/collections/schemas/index.d.ts +4 -4
- package/dist/features/collector-drops/actions/bid-actions.d.ts +50 -0
- package/dist/features/collector-drops/actions/bid-actions.js +454 -0
- package/dist/features/collector-drops/api/route.d.ts +14 -0
- package/dist/features/collector-drops/api/route.js +62 -0
- package/dist/features/collector-drops/columns/index.d.ts +14 -0
- package/dist/features/collector-drops/columns/index.js +63 -0
- package/dist/features/collector-drops/components/CollapsibleBidHistory.js +41 -0
- package/dist/features/collector-drops/components/CollectorDropBidsTable.d.ts +27 -0
- package/dist/features/collector-drops/components/CollectorDropBidsTable.js +96 -0
- package/dist/features/collector-drops/components/CollectorDropBottomActions.d.ts +23 -0
- package/dist/features/collector-drops/components/CollectorDropBottomActions.js +89 -0
- package/dist/features/collector-drops/components/CollectorDropDetailPageView.d.ts +25 -0
- package/dist/features/collector-drops/components/CollectorDropDetailPageView.js +314 -0
- package/dist/features/collector-drops/components/CollectorDropFilters.d.ts +16 -0
- package/dist/features/collector-drops/components/CollectorDropFilters.js +18 -0
- package/dist/features/collector-drops/components/CollectorDropLiveStatusBadge.d.ts +20 -0
- package/dist/features/collector-drops/components/CollectorDropLiveStatusBadge.js +21 -0
- package/dist/features/collector-drops/components/CollectorDropsListView.d.ts +9 -0
- package/dist/features/collector-drops/components/CollectorDropsListView.js +23 -0
- package/dist/features/collector-drops/components/LiveBidPrice.d.ts +19 -0
- package/dist/features/collector-drops/components/LiveBidPrice.js +19 -0
- package/dist/features/collector-drops/components/LiveMinIncrement.d.ts +18 -0
- package/dist/features/collector-drops/components/LiveMinIncrement.js +25 -0
- package/dist/features/collector-drops/components/MarketplaceCollectorDropCard.d.ts +99 -0
- package/dist/features/collector-drops/components/MarketplaceCollectorDropCard.js +212 -0
- package/dist/features/collector-drops/components/MarketplaceCollectorDropGrid.d.ts +21 -0
- package/dist/features/collector-drops/components/MarketplaceCollectorDropGrid.js +47 -0
- package/dist/features/collector-drops/components/PlaceBidFormClient.d.ts +65 -0
- package/dist/features/collector-drops/components/PlaceBidFormClient.js +306 -0
- package/dist/features/collector-drops/components/bid-detail-fields.js +103 -0
- package/dist/features/collector-drops/components/index.d.ts +7 -0
- package/dist/features/collector-drops/components/index.js +5 -0
- package/dist/features/collector-drops/hooks/useBids.d.ts +33 -0
- package/dist/features/collector-drops/hooks/useBids.js +32 -0
- package/dist/features/collector-drops/hooks/useCollectorDrops.d.ts +51 -0
- package/dist/features/collector-drops/hooks/useCollectorDrops.js +105 -0
- package/dist/features/collector-drops/hooks/useIsCollectorDropEnded.d.ts +41 -0
- package/dist/features/collector-drops/hooks/useIsCollectorDropEnded.js +76 -0
- package/dist/features/collector-drops/hooks/useLiveCollectorDropBid.d.ts +20 -0
- package/dist/features/collector-drops/hooks/useLiveCollectorDropBid.js +23 -0
- package/dist/features/collector-drops/hooks/usePlaceBid.d.ts +25 -0
- package/dist/features/collector-drops/hooks/usePlaceBid.js +28 -0
- package/dist/features/collector-drops/hooks/useRealtimeBids.d.ts +41 -0
- package/dist/features/collector-drops/hooks/useRealtimeBids.js +170 -0
- package/dist/features/collector-drops/index.d.ts +8 -0
- package/dist/features/collector-drops/index.js +8 -0
- package/dist/features/collector-drops/manifest.js +17 -0
- package/dist/features/collector-drops/messages/en.json +18 -0
- package/dist/features/collector-drops/repository/bid.repository.d.ts +256 -0
- package/dist/features/collector-drops/repository/bid.repository.js +575 -0
- package/dist/features/collector-drops/schemas/bid-input.d.ts +30 -0
- package/dist/features/collector-drops/schemas/bid-input.js +28 -0
- package/dist/features/collector-drops/schemas/firestore.d.ts +120 -0
- package/dist/features/collector-drops/schemas/firestore.js +73 -0
- package/dist/features/collector-drops/schemas/index.d.ts +170 -0
- package/dist/features/collector-drops/schemas/index.js +64 -0
- package/dist/features/collector-drops/server.d.ts +8 -0
- package/dist/features/collector-drops/server.js +8 -0
- package/dist/features/collector-drops/types/index.d.ts +74 -0
- package/dist/features/consultation/schemas/index.d.ts +6 -6
- package/dist/features/contact/components/ContactInfoSidebar.d.ts +3 -1
- package/dist/features/contact/components/ContactInfoSidebar.js +3 -2
- package/dist/features/contact/components/ContactPageView.d.ts +4 -1
- package/dist/features/contact/components/ContactPageView.js +7 -6
- package/dist/features/contact/email.d.ts +1 -1
- package/dist/features/contact/schemas/inquiry-forms.js +2 -2
- package/dist/features/corporate/schemas/index.d.ts +5 -5
- package/dist/features/cron/firebase-adapters.d.ts +3 -3
- package/dist/features/cron/firebase-adapters.js +3 -3
- package/dist/features/cron/index.d.ts +0 -1
- package/dist/features/cron/index.js +9 -1
- package/dist/features/cron/jobs/preorder-reminder.job.d.ts +1 -1
- package/dist/features/cron/jobs/preorder-reminder.job.js +1 -1
- package/dist/features/cron/registry.d.ts +4 -4
- package/dist/features/cron/registry.js +4 -4
- package/dist/features/dashboard/components/AdminComposableRegion.d.ts +49 -0
- package/dist/features/dashboard/components/AdminComposableRegion.js +42 -0
- package/dist/features/dashboard/components/DashboardCardRenderer.d.ts +73 -0
- package/dist/features/dashboard/components/DashboardCardRenderer.js +434 -0
- package/dist/features/dashboard/components/DashboardHubView.d.ts +19 -1
- package/dist/features/dashboard/components/DashboardHubView.js +11 -6
- package/dist/features/dashboard/components/DashboardQuickJump.d.ts +90 -0
- package/dist/features/dashboard/components/DashboardQuickJump.js +255 -0
- package/dist/features/dashboard/components/DashboardSectionsClient.js +7 -0
- package/dist/features/dashboard/components/EditableWidget.d.ts +51 -0
- package/dist/features/dashboard/components/EditableWidget.js +44 -0
- package/dist/features/dashboard/components/HiddenHubCardGate.d.ts +25 -0
- package/dist/features/dashboard/components/HiddenHubCardGate.js +44 -0
- package/dist/features/dashboard/components/RecentVisitTracker.d.ts +35 -0
- package/dist/features/dashboard/components/RecentVisitTracker.js +33 -0
- package/dist/features/dashboard/components/WidgetInstanceEditor.d.ts +91 -0
- package/dist/features/dashboard/components/WidgetInstanceEditor.js +91 -0
- package/dist/features/dashboard/hooks/useHiddenHubCards.d.ts +9 -0
- package/dist/features/dashboard/hooks/useHiddenHubCards.js +101 -0
- package/dist/features/dashboard/hooks/usePageRegion.d.ts +27 -0
- package/dist/features/dashboard/hooks/usePageRegion.js +106 -0
- package/dist/features/dashboard/hooks/useRecentlyVisited.d.ts +9 -0
- package/dist/features/dashboard/hooks/useRecentlyVisited.js +127 -0
- package/dist/features/dashboard/hooks/useSavedCards.d.ts +23 -0
- package/dist/features/dashboard/hooks/useSavedCards.js +147 -0
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.d.ts +4 -1
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +30 -14
- package/dist/features/email/notification-templates.js +3 -3
- package/dist/features/events/actions/event-actions.d.ts +11 -3
- package/dist/features/events/actions/event-actions.js +21 -11
- package/dist/features/events/api/[id]/route.js +1 -1
- package/dist/features/events/components/AdminEventEditorView.d.ts +6 -1
- package/dist/features/events/components/AdminEventEditorView.js +81 -21
- package/dist/features/events/components/AdminEventEntriesView.d.ts +4 -1
- package/dist/features/events/components/AdminEventEntriesView.js +3 -2
- package/dist/features/events/components/AdminEventsView.d.ts +6 -2
- package/dist/features/events/components/AdminEventsView.js +5 -4
- package/dist/features/events/components/BonusSpinView.d.ts +27 -0
- package/dist/features/events/components/BonusSpinView.js +151 -0
- package/dist/features/events/components/EntryVoteButtons.d.ts +19 -0
- package/dist/features/events/components/EntryVoteButtons.js +65 -0
- package/dist/features/events/components/EventCard.js +1 -1
- package/dist/features/events/components/EventFilters.js +13 -5
- package/dist/features/events/components/EventGiveawayEntryForm.d.ts +24 -0
- package/dist/features/events/components/EventGiveawayEntryForm.js +46 -0
- package/dist/features/events/components/EventGiveawayWinnerView.d.ts +38 -0
- package/dist/features/events/components/EventGiveawayWinnerView.js +40 -0
- package/dist/features/events/components/EventGiveawaysSection.d.ts +48 -0
- package/dist/features/events/components/EventGiveawaysSection.js +102 -0
- package/dist/features/events/components/EventsIndexListing.js +7 -3
- package/dist/features/events/components/EventsListPageView.d.ts +4 -1
- package/dist/features/events/components/EventsListPageView.js +4 -2
- package/dist/features/events/components/RelatedEventsCarousel.js +1 -1
- package/dist/features/events/components/event-entry-detail-fields.d.ts +1 -1
- package/dist/features/events/components/event-entry-detail-fields.js +1 -1
- package/dist/features/events/components/index.d.ts +8 -8
- package/dist/features/events/components/index.js +4 -4
- package/dist/features/events/constants/event-type-meta.d.ts +14 -6
- package/dist/features/events/constants/event-type-meta.js +40 -14
- package/dist/features/events/manifest.js +31 -0
- package/dist/features/events/repository/entry-votes.repository.d.ts +45 -0
- package/dist/features/events/repository/entry-votes.repository.js +154 -0
- package/dist/features/events/repository/events.repository.js +1 -1
- package/dist/features/events/schemas/entry-votes.d.ts +134 -0
- package/dist/features/events/schemas/entry-votes.js +114 -0
- package/dist/features/events/schemas/event-form.d.ts +40 -10
- package/dist/features/events/schemas/event-form.js +32 -1
- package/dist/features/events/schemas/firestore.d.ts +55 -13
- package/dist/features/events/schemas/firestore.js +15 -10
- package/dist/features/events/schemas/index.d.ts +166 -133
- package/dist/features/events/schemas/index.js +53 -13
- package/dist/features/events/types/index.d.ts +32 -7
- package/dist/features/events/types/index.js +45 -8
- package/dist/features/events/utils/carousel-slide.d.ts +12 -14
- package/dist/features/events/utils/carousel-slide.js +23 -26
- package/dist/features/faq/actions/faq-actions.d.ts +197 -6
- package/dist/features/faq/actions/faq-actions.js +79 -2
- package/dist/features/faq/components/FAQAccordion.js +2 -1
- package/dist/features/faq/manifest.js +9 -1
- package/dist/features/faq/schemas/firestore.d.ts +26 -1
- package/dist/features/faq/schemas/firestore.js +1 -0
- package/dist/features/faq/schemas/index.d.ts +2 -2
- package/dist/features/faq/utils/getHomepageFaqsCached.d.ts +9 -0
- package/dist/features/faq/utils/getHomepageFaqsCached.js +21 -1
- package/dist/features/faq/utils/resolveFaqAnswer.d.ts +9 -0
- package/dist/features/faq/utils/resolveFaqAnswer.js +18 -0
- package/dist/features/gateway-events/schemas/index.d.ts +2 -2
- package/dist/features/giveaway/repository/giveaway-entry.repository.d.ts +48 -0
- package/dist/features/giveaway/repository/giveaway-entry.repository.js +172 -0
- package/dist/features/giveaway/schemas/config-write.d.ts +145 -0
- package/dist/features/giveaway/schemas/config-write.js +199 -0
- package/dist/features/giveaway/schemas/firestore.d.ts +77 -0
- package/dist/features/giveaway/schemas/firestore.js +42 -0
- package/dist/features/giveaway/schemas/zod.d.ts +113 -0
- package/dist/features/giveaway/schemas/zod.js +39 -0
- package/dist/features/giveaway/types/index.d.ts +72 -0
- package/dist/features/giveaway/types/index.js +68 -0
- package/dist/features/grouped/components/GroupedListingDetailView.d.ts +4 -1
- package/dist/features/grouped/components/GroupedListingDetailView.js +4 -3
- package/dist/features/grouped/components/GroupedListingEditorView.d.ts +10 -1
- package/dist/features/grouped/components/GroupedListingEditorView.js +3 -2
- package/dist/features/grouped/schemas/index.d.ts +2 -2
- package/dist/features/history/repository/user-history.repository.d.ts +1 -1
- package/dist/features/history/utils/guest-history.d.ts +1 -1
- package/dist/features/homepage/actions/index.d.ts +0 -1
- package/dist/features/homepage/actions/index.js +0 -1
- package/dist/features/homepage/api/carousel/route.d.ts +12 -6
- package/dist/features/homepage/api/carousel/route.js +15 -137
- package/dist/features/homepage/components/AdSlot.js +1 -1
- package/dist/features/homepage/components/CTABannerSection.js +2 -2
- package/dist/features/homepage/components/CollectionCardsSection.d.ts +2 -2
- package/dist/features/homepage/components/CollectionCardsSection.js +4 -4
- package/dist/features/homepage/components/CustomCardsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedCollectorDropsSection.d.ts +18 -0
- package/dist/features/homepage/components/FeaturedCollectorDropsSection.js +12 -0
- package/dist/features/homepage/components/GoogleReviewsSection.js +1 -1
- package/dist/features/homepage/components/HeroCarousel.js +7 -6
- package/dist/features/homepage/components/HomepageSectionBoundary.d.ts +1 -1
- package/dist/features/homepage/components/HomepageSectionBoundary.js +1 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.d.ts +4 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.js +23 -32
- package/dist/features/homepage/components/SectionCarousel.js +1 -1
- package/dist/features/homepage/components/ShopByCategorySection.js +12 -2
- package/dist/features/homepage/components/SocialPostCard.js +1 -1
- package/dist/features/homepage/components/TrustFeaturesSection.js +11 -1
- package/dist/features/homepage/components/index.d.ts +2 -2
- package/dist/features/homepage/components/index.js +1 -1
- package/dist/features/homepage/constants/carousel.d.ts +8 -0
- package/dist/features/homepage/constants/carousel.js +8 -0
- package/dist/features/homepage/constants/section-copy.d.ts +2 -2
- package/dist/features/homepage/constants/section-copy.js +5 -5
- package/dist/features/homepage/hooks/homepage-query.js +2 -2
- package/dist/features/homepage/hooks/useActiveAd.d.ts +1 -1
- package/dist/features/homepage/hooks/useActiveAd.js +1 -1
- package/dist/features/homepage/hooks/useFeaturedCollectorDrops.d.ts +15 -0
- package/dist/features/homepage/hooks/useFeaturedCollectorDrops.js +49 -0
- package/dist/features/homepage/index.d.ts +1 -1
- package/dist/features/homepage/index.js +1 -1
- package/dist/features/homepage/lib/section-gating.d.ts +1 -1
- package/dist/features/homepage/lib/section-gating.js +1 -1
- package/dist/features/homepage/lib/section-renderer.d.ts +3 -2
- package/dist/features/homepage/lib/section-renderer.js +24 -13
- package/dist/features/homepage/lib/slide-gating.d.ts +5 -5
- package/dist/features/homepage/lib/slide-gating.js +6 -6
- package/dist/features/homepage/repository/homepage-sections.repository.d.ts +1 -1
- package/dist/features/homepage/schemas/firestore.d.ts +48 -169
- package/dist/features/homepage/schemas/firestore.js +12 -57
- package/dist/features/homepage/schemas/index.d.ts +2 -885
- package/dist/features/homepage/schemas/index.js +7 -112
- package/dist/features/homepage/server.d.ts +1 -3
- package/dist/features/homepage/server.js +1 -3
- package/dist/features/inventory/components/AdminMoveLedgerView.d.ts +7 -2
- package/dist/features/inventory/components/AdminMoveLedgerView.js +3 -2
- package/dist/features/inventory/components/AdminStorageBoxesView.d.ts +6 -1
- package/dist/features/inventory/components/AdminStorageBoxesView.js +4 -3
- package/dist/features/inventory/components/ReceiveStationView.d.ts +4 -1
- package/dist/features/inventory/components/ReceiveStationView.js +3 -2
- package/dist/features/jobs/actions/enqueue-job.d.ts +1 -1
- package/dist/features/jobs/schemas/firestore.d.ts +1 -1
- package/dist/features/layout/AppLayoutShell.d.ts +30 -1
- package/dist/features/layout/AppLayoutShell.js +44 -14
- package/dist/features/layout/AutoBreadcrumbs.js +6 -7
- package/dist/features/layout/BottomActions.js +1 -1
- package/dist/features/layout/BottomNavbar.d.ts +1 -1
- package/dist/features/layout/BottomNavbar.js +1 -1
- package/dist/features/layout/EditModeToggle.d.ts +8 -0
- package/dist/features/layout/EditModeToggle.js +17 -0
- package/dist/features/layout/LanguageSwitcher.d.ts +27 -0
- package/dist/features/layout/LanguageSwitcher.js +28 -0
- package/dist/features/layout/NavbarLayout.js +2 -2
- package/dist/features/layout/SideActionDock.js +2 -2
- package/dist/features/layout/SidebarLayout.js +11 -1
- package/dist/features/layout/TitleBarLayout.d.ts +14 -1
- package/dist/features/layout/TitleBarLayout.js +2 -2
- package/dist/features/layout/index.d.ts +6 -6
- package/dist/features/layout/index.js +3 -3
- package/dist/features/live/components/LiveItemDetailPageView.d.ts +4 -1
- package/dist/features/live/components/LiveItemDetailPageView.js +22 -4
- package/dist/features/media/MediaPickerModal.js +1 -1
- package/dist/features/media/hooks/useMedia.d.ts +1 -1
- package/dist/features/media/index.d.ts +0 -8
- package/dist/features/media/index.js +2 -5
- package/dist/features/media/modals/ImageCropModal.d.ts +2 -8
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/ImageUpload.js +1 -1
- package/dist/features/media/upload/MediaUploadField.js +2 -2
- package/dist/features/media/upload/MediaUploadList.js +2 -2
- package/dist/features/media/upload/register-form-field-renderers.d.ts +1 -0
- package/dist/features/media/upload/register-form-field-renderers.js +34 -0
- package/dist/features/messages/components/ConversationThreadView.d.ts +4 -1
- package/dist/features/messages/components/ConversationThreadView.js +4 -3
- package/dist/features/messages/components/ConversationsInboxView.d.ts +6 -1
- package/dist/features/messages/components/ConversationsInboxView.js +26 -3
- package/dist/features/messages/schemas/firestore.d.ts +26 -3
- package/dist/features/messages/schemas/firestore.js +10 -0
- package/dist/features/obligations/constants/policies.js +71 -2
- package/dist/features/obligations/schemas/firestore.d.ts +17 -1
- package/dist/features/obligations/schemas/firestore.js +1 -0
- package/dist/features/orders/actions/order-actions.js +39 -0
- package/dist/features/orders/components/OrderPaymentSummary.js +1 -0
- package/dist/features/orders/components/OrderProvenanceCard.js +11 -11
- package/dist/features/orders/components/OrdersList.js +6 -4
- package/dist/features/orders/components/RefundRequestView.d.ts +4 -1
- package/dist/features/orders/components/RefundRequestView.js +3 -2
- package/dist/features/orders/constants/order-lane-tabs.d.ts +3 -3
- package/dist/features/orders/constants/order-lane-tabs.js +8 -8
- package/dist/features/orders/hooks/useOrders.d.ts +2 -0
- package/dist/features/orders/hooks/useOrders.js +7 -1
- package/dist/features/orders/repository/orders.repository.js +2 -2
- package/dist/features/orders/schemas/firestore.d.ts +197 -26
- package/dist/features/orders/schemas/firestore.js +1 -1
- package/dist/features/orders/schemas/index.d.ts +69 -29
- package/dist/features/orders/schemas/index.js +19 -1
- package/dist/features/orders/types/index.d.ts +31 -4
- package/dist/features/orders/utils/order-splitter.d.ts +3 -3
- package/dist/features/orders/utils/order-splitter.js +8 -8
- package/dist/features/payments/repository/payout.repository.d.ts +80 -0
- package/dist/features/payments/repository/payout.repository.js +116 -0
- package/dist/features/payments/schemas/firestore.d.ts +29 -0
- package/dist/features/payments/schemas/firestore.js +15 -0
- package/dist/features/payments/schemas/index.d.ts +2 -2
- package/dist/features/payments/types/index.d.ts +1 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +1 -1
- package/dist/features/pre-orders/components/PreOrderActionsClient.d.ts +5 -0
- package/dist/features/pre-orders/components/PreOrderActionsClient.js +8 -5
- package/dist/features/pre-orders/components/PreOrderDetailPageView.d.ts +4 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +31 -11
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +1 -1
- package/dist/features/pre-orders/components/PreOrdersListView.d.ts +4 -1
- package/dist/features/pre-orders/components/PreOrdersListView.js +3 -2
- package/dist/features/pre-orders/schemas/index.d.ts +8 -8
- package/dist/features/price-index/components/PriceIndexToolView.d.ts +4 -1
- package/dist/features/price-index/components/PriceIndexToolView.js +7 -7
- package/dist/features/price-index/lookup-target.js +1 -1
- package/dist/features/print/components/BoxLabelPrintView.d.ts +4 -1
- package/dist/features/print/components/BoxLabelPrintView.js +3 -2
- package/dist/features/products/actions/product-actions.d.ts +9 -9
- package/dist/features/products/actions/product-actions.js +19 -19
- package/dist/features/products/api/[id]/route.js +31 -10
- package/dist/features/products/api/route.d.ts +2 -2
- package/dist/features/products/api/route.js +11 -4
- package/dist/features/products/columns/productTableColumns.js +1 -1
- package/dist/features/products/components/ArtStickersListView.d.ts +4 -1
- package/dist/features/products/components/ArtStickersListView.js +7 -6
- package/dist/features/products/components/AvailabilityTabs.js +2 -2
- package/dist/features/products/components/BidHistory.d.ts +3 -0
- package/dist/features/products/components/BidHistory.js +3 -1
- package/dist/features/products/components/CardStoreLine.d.ts +2 -2
- package/dist/features/products/components/CardStoreLine.js +1 -1
- package/dist/features/products/components/CityCollectiblesView.d.ts +4 -1
- package/dist/features/products/components/CityCollectiblesView.js +3 -2
- package/dist/features/products/components/ClearanceBottomActions.d.ts +6 -0
- package/dist/features/products/components/ClearanceBottomActions.js +6 -0
- package/dist/features/products/components/ClearanceCollage.d.ts +35 -0
- package/dist/features/products/components/ClearanceCollage.js +91 -0
- package/dist/features/products/components/ClearanceDetailPageView.d.ts +37 -0
- package/dist/features/products/components/ClearanceDetailPageView.js +156 -0
- package/dist/features/products/components/ClearanceEntryActions.d.ts +32 -0
- package/dist/features/products/components/ClearanceEntryActions.js +104 -0
- package/dist/features/products/components/ClearanceIndexListing.d.ts +8 -0
- package/dist/features/products/components/ClearanceIndexListing.js +108 -0
- package/dist/features/products/components/ClearanceItemsEditor.d.ts +13 -0
- package/dist/features/products/components/ClearanceItemsEditor.js +101 -0
- package/dist/features/products/components/ClearanceListingView.d.ts +18 -0
- package/dist/features/products/components/ClearanceListingView.js +38 -0
- package/dist/features/products/components/ClearanceSection.d.ts +15 -0
- package/dist/features/products/components/ClearanceSection.js +49 -0
- package/dist/features/products/components/ClearanceWinnerMappingView.d.ts +14 -0
- package/dist/features/products/components/ClearanceWinnerMappingView.js +43 -0
- package/dist/features/products/components/CollectorDropDetailView.d.ts +16 -0
- package/dist/features/products/components/CollectorDropDetailView.js +13 -0
- package/dist/features/products/components/CollectorDropsIndexListing.d.ts +8 -0
- package/dist/features/products/components/CollectorDropsIndexListing.js +170 -0
- package/dist/features/products/components/CompareOverlay.d.ts +2 -2
- package/dist/features/products/components/CompareOverlay.js +5 -5
- package/dist/features/products/components/CustomSectionTabContent.d.ts +1 -1
- package/dist/features/products/components/CustomSectionTabContent.js +1 -1
- package/dist/features/products/components/GroupMemberPicker.js +1 -1
- package/dist/features/products/components/GroupSettingsPanel.d.ts +2 -2
- package/dist/features/products/components/GroupSettingsPanel.js +4 -4
- package/dist/features/products/components/ListingBottomActions.d.ts +4 -4
- package/dist/features/products/components/ListingBottomActions.js +1 -1
- package/dist/features/products/components/MarketplaceBundleCard.js +1 -1
- package/dist/features/products/components/MarketplaceClearanceCard.d.ts +34 -0
- package/dist/features/products/components/MarketplaceClearanceCard.js +129 -0
- package/dist/features/products/components/NonRefundableConsentModal.d.ts +1 -1
- package/dist/features/products/components/NonRefundableConsentModal.js +2 -2
- package/dist/features/products/components/PdpSectionJumpNav.d.ts +4 -0
- package/dist/features/products/components/PdpSectionJumpNav.js +41 -0
- package/dist/features/products/components/PlaceBidForm.d.ts +1 -1
- package/dist/features/products/components/PrizeRevealModal.js +31 -8
- package/dist/features/products/components/ProductDetailActions.js +1 -1
- package/dist/features/products/components/ProductDetailPageView.d.ts +4 -1
- package/dist/features/products/components/ProductDetailPageView.js +128 -98
- package/dist/features/products/components/ProductFeatureBadges.js +10 -7
- package/dist/features/products/components/ProductFilters.js +1 -1
- package/dist/features/products/components/ProductForm.d.ts +1 -1
- package/dist/features/products/components/ProductForm.js +20 -21
- package/dist/features/products/components/ProductGalleryClient.js +1 -1
- package/dist/features/products/components/ProductGradingTab.js +1 -1
- package/dist/features/products/components/ProductGrid.d.ts +18 -1
- package/dist/features/products/components/ProductGrid.js +91 -22
- package/dist/features/products/components/ProductsIndexListing.d.ts +1 -1
- package/dist/features/products/components/ProductsIndexListing.js +85 -18
- package/dist/features/products/components/ProductsIndexPageView.d.ts +4 -1
- package/dist/features/products/components/ProductsIndexPageView.js +12 -11
- package/dist/features/products/components/RelatedItemsSection.d.ts +82 -2
- package/dist/features/products/components/RelatedItemsSection.js +152 -9
- package/dist/features/products/components/ShowGroupSection.js +30 -2
- package/dist/features/products/components/SparesListView.d.ts +4 -1
- package/dist/features/products/components/SparesListView.js +3 -2
- package/dist/features/products/components/SublistingCarouselSection.js +1 -1
- package/dist/features/products/components/TrustBadgeRow.d.ts +15 -0
- package/dist/features/products/components/TrustBadgeRow.js +13 -0
- package/dist/features/products/components/index.d.ts +16 -18
- package/dist/features/products/components/index.js +9 -10
- package/dist/features/products/config/listing-type-listing-config.js +1 -1
- package/dist/features/products/constants/action-defs.d.ts +24 -25
- package/dist/features/products/constants/action-defs.js +35 -36
- package/dist/features/products/constants/card-badges.d.ts +3 -3
- package/dist/features/products/constants/card-badges.js +3 -3
- package/dist/features/products/constants/listing-tabs.d.ts +11 -5
- package/dist/features/products/constants/listing-tabs.js +21 -22
- package/dist/features/products/constants/preorder-window.d.ts +101 -0
- package/dist/features/products/constants/preorder-window.js +172 -0
- package/dist/features/products/constants/product-features.constants.js +3 -3
- package/dist/features/products/constants/sieve.d.ts +4 -4
- package/dist/features/products/constants/sieve.js +14 -14
- package/dist/features/products/hooks/useProducts.js +1 -1
- package/dist/features/products/hooks/useRelatedProducts.d.ts +2 -2
- package/dist/features/products/hooks/useRelatedProducts.js +5 -5
- package/dist/features/products/index.d.ts +1 -1
- package/dist/features/products/index.js +3 -3
- package/dist/features/products/messages/en.json +1 -1
- package/dist/features/products/repository/category-assignment.js +2 -2
- package/dist/features/products/repository/products.repository.d.ts +9 -6
- package/dist/features/products/repository/products.repository.js +54 -29
- package/dist/features/products/schemas/firestore.d.ts +81 -29
- package/dist/features/products/schemas/firestore.js +84 -14
- package/dist/features/products/schemas/index.d.ts +67 -47
- package/dist/features/products/schemas/index.js +46 -12
- package/dist/features/products/schemas/part-slots.d.ts +84 -0
- package/dist/features/products/schemas/part-slots.js +231 -0
- package/dist/features/products/schemas/product-features.d.ts +3 -3
- package/dist/features/products/schemas/product-features.validators.d.ts +40 -40
- package/dist/features/products/schemas/product-features.validators.js +3 -3
- package/dist/features/products/schemas/surface-counts.d.ts +1 -1
- package/dist/features/products/schemas/surface-counts.js +1 -1
- package/dist/features/products/types/index.d.ts +7 -7
- package/dist/features/products/utils/listing-badge-variant.d.ts +1 -1
- package/dist/features/products/utils/listing-badge-variant.js +5 -6
- package/dist/features/products/utils/listing-type.d.ts +6 -9
- package/dist/features/products/utils/listing-type.js +30 -9
- package/dist/features/promotions/actions/seller-coupon-actions.d.ts +2 -2
- package/dist/features/promotions/actions/seller-coupon-actions.js +2 -2
- package/dist/features/promotions/components/CouponCard.d.ts +1 -1
- package/dist/features/promotions/components/CouponsIndexListing.js +3 -1
- package/dist/features/promotions/hooks/useCouponValidate.d.ts +1 -1
- package/dist/features/promotions/repository/coupons.repository.d.ts +2 -5
- package/dist/features/promotions/repository/coupons.repository.js +22 -11
- package/dist/features/promotions/schemas/firestore.d.ts +28 -4
- package/dist/features/promotions/schemas/firestore.js +22 -0
- package/dist/features/promotions/schemas/index.d.ts +54 -30
- package/dist/features/promotions/schemas/index.js +40 -11
- package/dist/features/promotions/types/index.d.ts +1 -1
- package/dist/features/reviews/actions/review-actions.js +1 -1
- package/dist/features/reviews/api/[id]/route.js +34 -10
- package/dist/features/reviews/components/ReviewDetailPageView.d.ts +4 -1
- package/dist/features/reviews/components/ReviewDetailPageView.js +29 -2
- package/dist/features/reviews/components/ReviewDetailShell.js +2 -2
- package/dist/features/reviews/components/ReviewModal.js +1 -1
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +4 -1
- package/dist/features/reviews/components/ReviewsIndexPageView.js +4 -3
- package/dist/features/reviews/components/ReviewsList.js +1 -1
- package/dist/features/reviews/components/ReviewsListingPanel.d.ts +1 -1
- package/dist/features/reviews/schemas/firestore.d.ts +1 -1
- package/dist/features/reviews/schemas/index.d.ts +23 -20
- package/dist/features/reviews/schemas/index.js +25 -0
- package/dist/features/scams/actions/scam-actions.js +1 -1
- package/dist/features/scams/components/ScamProfileView.d.ts +4 -1
- package/dist/features/scams/components/ScamProfileView.js +4 -3
- package/dist/features/scams/components/ScamRegistryView.d.ts +4 -1
- package/dist/features/scams/components/ScamRegistryView.js +5 -3
- package/dist/features/scams/schemas/index.d.ts +8 -8
- package/dist/features/scams/schemas/report-form.d.ts +4 -4
- package/dist/features/search/action-index/repository.d.ts +1 -1
- package/dist/features/search/action-index/repository.js +1 -1
- package/dist/features/search/action-index/settings-entries.js +6 -6
- package/dist/features/search/components/Search.d.ts +1 -1
- package/dist/features/search/components/SearchFacetRail.js +2 -2
- package/dist/features/search/components/SearchResultsPageView.js +2 -1
- package/dist/features/search/hooks/useNavSuggestions.d.ts +1 -1
- package/dist/features/search/hooks/useNavSuggestions.js +1 -1
- package/dist/features/search/hooks/useSiteSearch.js +1 -1
- package/dist/features/seller/actions/offer-actions.js +3 -3
- package/dist/features/seller/actions/seller-actions.d.ts +19 -0
- package/dist/features/seller/actions/seller-actions.js +163 -44
- package/dist/features/seller/api/coupons/route.js +6 -1
- package/dist/features/seller/api/products/route.js +6 -1
- package/dist/features/seller/api/store/route.js +6 -1
- package/dist/features/seller/components/FulfillmentView.d.ts +4 -1
- package/dist/features/seller/components/FulfillmentView.js +3 -2
- package/dist/features/seller/components/PrintCenterView.d.ts +4 -1
- package/dist/features/seller/components/PrintCenterView.js +3 -2
- package/dist/features/seller/components/SellerAddressesView.d.ts +4 -1
- package/dist/features/seller/components/SellerAddressesView.js +3 -2
- package/dist/features/seller/components/SellerAnalyticsAlertsView.d.ts +4 -1
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +3 -2
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +4 -1
- package/dist/features/seller/components/SellerAnalyticsView.js +3 -1
- package/dist/features/seller/components/SellerArtAndStickersView.d.ts +18 -0
- package/dist/features/seller/components/SellerArtAndStickersView.js +7 -0
- package/dist/features/seller/components/SellerBidsView.d.ts +4 -1
- package/dist/features/seller/components/SellerBidsView.js +9 -8
- package/dist/features/seller/components/SellerBundlesView.d.ts +4 -1
- package/dist/features/seller/components/SellerBundlesView.js +3 -2
- package/dist/features/seller/components/SellerClassifiedView.d.ts +6 -2
- package/dist/features/seller/components/SellerClassifiedView.js +4 -3
- package/dist/features/seller/components/SellerCouponEditorView.d.ts +4 -1
- package/dist/features/seller/components/SellerCouponEditorView.js +3 -2
- package/dist/features/seller/components/SellerDigitalCodesView.d.ts +6 -2
- package/dist/features/seller/components/SellerDigitalCodesView.js +4 -3
- package/dist/features/seller/components/SellerFeaturesView.d.ts +6 -1
- package/dist/features/seller/components/SellerFeaturesView.js +8 -3
- package/dist/features/seller/components/SellerGoogleReviewsView.d.ts +4 -1
- package/dist/features/seller/components/SellerGoogleReviewsView.js +3 -2
- package/dist/features/seller/components/SellerGuideView.d.ts +11 -1
- package/dist/features/seller/components/SellerGuideView.js +7 -2
- package/dist/features/seller/components/SellerListingTypeView.d.ts +2 -2
- package/dist/features/seller/components/SellerListingTypeView.js +14 -20
- package/dist/features/seller/components/SellerLiveView.d.ts +6 -2
- package/dist/features/seller/components/SellerLiveView.js +4 -3
- package/dist/features/seller/components/SellerOffersView.d.ts +4 -1
- package/dist/features/seller/components/SellerOffersView.js +4 -3
- package/dist/features/seller/components/SellerOrdersView.d.ts +4 -1
- package/dist/features/seller/components/SellerOrdersView.js +44 -47
- package/dist/features/seller/components/SellerPayoutRequestView.d.ts +4 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +3 -2
- package/dist/features/seller/components/SellerPayoutSettingsView.js +125 -13
- package/dist/features/seller/components/SellerProductShell.d.ts +3 -3
- package/dist/features/seller/components/SellerProductShell.js +74 -26
- package/dist/features/seller/components/SellerProductsCards.js +3 -3
- package/dist/features/seller/components/SellerProductsView.js +21 -121
- package/dist/features/seller/components/SellerReviewsView.d.ts +10 -1
- package/dist/features/seller/components/SellerReviewsView.js +3 -2
- package/dist/features/seller/components/SellerShippingOfferView.d.ts +5 -0
- package/dist/features/seller/components/SellerShippingOfferView.js +164 -0
- package/dist/features/seller/components/SellerShippingView.d.ts +4 -1
- package/dist/features/seller/components/SellerShippingView.js +6 -5
- package/dist/features/seller/components/SellerSidebar.js +29 -5
- package/dist/features/seller/components/SellerSparesView.d.ts +6 -2
- package/dist/features/seller/components/SellerSparesView.js +4 -3
- package/dist/features/seller/components/SellerStoreCategoriesView.d.ts +4 -1
- package/dist/features/seller/components/SellerStoreCategoriesView.js +3 -2
- package/dist/features/seller/components/SellerStorefrontView.d.ts +4 -1
- package/dist/features/seller/components/SellerStorefrontView.js +6 -5
- package/dist/features/seller/components/SellerSupportView.d.ts +4 -1
- package/dist/features/seller/components/SellerSupportView.js +3 -2
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.d.ts +8 -1
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +1 -1
- package/dist/features/seller/components/index.d.ts +2 -4
- package/dist/features/seller/components/index.js +1 -2
- package/dist/features/seller/constants/store-tabs.d.ts +4 -0
- package/dist/features/seller/constants/store-tabs.js +12 -0
- package/dist/features/seller/hooks/useSellerStorefront.js +18 -1
- package/dist/features/seller/repository/seller-profile.repository.d.ts +32 -0
- package/dist/features/seller/repository/seller-profile.repository.js +98 -0
- package/dist/features/seller/schemas/coupon-form.d.ts +15 -15
- package/dist/features/seller/schemas/coupon-form.js +2 -2
- package/dist/features/seller/schemas/index.d.ts +6 -6
- package/dist/features/seller/schemas/product-form.d.ts +9 -9
- package/dist/features/seller/schemas/product-form.js +4 -4
- package/dist/features/seller/schemas/seller-profile-firestore.d.ts +48 -0
- package/dist/features/seller/schemas/seller-profile-firestore.js +38 -0
- package/dist/features/server-errors/schemas/index.d.ts +4 -4
- package/dist/features/shell/CommandPalette.d.ts +53 -4
- package/dist/features/shell/CommandPalette.js +144 -11
- package/dist/features/shell/QuickFormDrawer.d.ts +2 -14
- package/dist/features/shell/SectionForm.js +1 -1
- package/dist/features/shell/SectionVisibilityGate.d.ts +36 -0
- package/dist/features/shell/SectionVisibilityGate.js +46 -0
- package/dist/features/shell/WizardFormSteps.d.ts +7 -0
- package/dist/features/shell/WizardFormSteps.js +53 -0
- package/dist/features/shell/build-sections.d.ts +95 -2
- package/dist/features/shell/build-sections.js +177 -6
- package/dist/features/shell/field-ui-meta.d.ts +69 -0
- package/dist/features/shell/field-ui-meta.js +56 -0
- package/dist/features/shell/index.d.ts +2 -0
- package/dist/features/shell/index.js +1 -0
- package/dist/features/shell/searchNavItems.d.ts +22 -0
- package/dist/features/shell/searchNavItems.js +61 -0
- package/dist/features/shell/useFieldVisibility.d.ts +43 -0
- package/dist/features/shell/useFieldVisibility.js +126 -0
- package/dist/features/shipments/components/AdminShipmentEditorView.d.ts +6 -1
- package/dist/features/shipments/components/AdminShipmentEditorView.js +3 -2
- package/dist/features/shipments/components/AdminShipmentLotItemsView.d.ts +4 -1
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +3 -2
- package/dist/features/shipments/components/AdminShipmentProjectionsView.d.ts +6 -1
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +3 -9
- package/dist/features/shipments/components/AdminShipmentsView.d.ts +6 -2
- package/dist/features/shipments/components/AdminShipmentsView.js +5 -4
- package/dist/features/shipments/schemas/validation.d.ts +19 -19
- package/dist/features/shipments/schemas/validation.js +3 -4
- package/dist/features/site-settings/components/ActionPermissionsManager.js +21 -9
- package/dist/features/site-settings/components/NavPermissionsManager.d.ts +20 -1
- package/dist/features/site-settings/components/NavPermissionsManager.js +82 -6
- package/dist/features/site-settings/components/ThemeManagerView.js +22 -2
- package/dist/features/sticker-trace/components/StickerRunHistoryPanel.d.ts +8 -1
- package/dist/features/sticker-trace/components/StickerRunHistoryPanel.js +43 -11
- package/dist/features/sticker-trace/components/StickerTraceStudio.js +34 -13
- package/dist/features/sticker-trace/repository/sticker-sheets.repository.d.ts +1 -1
- package/dist/features/sticker-trace/repository/sticker-sheets.repository.js +1 -1
- package/dist/features/sticker-trace/repository/sticker-trace-runs.repository.d.ts +8 -0
- package/dist/features/sticker-trace/repository/sticker-trace-runs.repository.js +15 -0
- package/dist/features/store-extensions/repository/store-extensions.repositories.d.ts +2 -1
- package/dist/features/store-extensions/repository/store-extensions.repositories.js +16 -0
- package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/analytics-forms.d.ts +2 -2
- package/dist/features/store-extensions/schemas/firestore.d.ts +12 -2
- package/dist/features/store-extensions/schemas/firestore.js +3 -4
- package/dist/features/store-extensions/schemas/listing-template-form.d.ts +10 -10
- package/dist/features/store-extensions/schemas/listing-template-form.js +3 -4
- package/dist/features/store-extensions/schemas/payout-method-form.d.ts +10 -10
- package/dist/features/store-extensions/schemas/report-create-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +33 -20
- package/dist/features/store-extensions/schemas/shipping-config-form.js +11 -0
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +6 -6
- package/dist/features/stores/actions/store-query-actions.d.ts +2 -2
- package/dist/features/stores/actions/store-query-actions.js +5 -5
- package/dist/features/stores/api/[storeSlug]/collector-drops/route.d.ts +23 -0
- package/dist/features/stores/api/[storeSlug]/collector-drops/route.js +83 -0
- package/dist/features/stores/api/[storeSlug]/products/route.d.ts +1 -1
- package/dist/features/stores/api/[storeSlug]/products/route.js +1 -1
- package/dist/features/stores/components/InteractiveStoreCard.js +1 -1
- package/dist/features/stores/components/StoreArtStickersPageView.d.ts +4 -1
- package/dist/features/stores/components/StoreArtStickersPageView.js +6 -5
- package/dist/features/stores/components/StoreBundlesPageView.d.ts +5 -2
- package/dist/features/stores/components/StoreBundlesPageView.js +5 -4
- package/dist/features/stores/components/StoreCapabilitiesGuideView.d.ts +6 -2
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +6 -5
- package/dist/features/stores/components/StoreClassifiedsPageView.d.ts +4 -1
- package/dist/features/stores/components/StoreClassifiedsPageView.js +4 -3
- package/dist/features/stores/components/StoreClearancePageView.d.ts +11 -0
- package/dist/features/stores/components/StoreClearancePageView.js +25 -0
- package/dist/features/stores/components/StoreCollectorDropsListing.d.ts +7 -0
- package/dist/features/stores/components/StoreCollectorDropsListing.js +138 -0
- package/dist/features/stores/components/StoreCollectorDropsPageView.d.ts +11 -0
- package/dist/features/stores/components/StoreCollectorDropsPageView.js +25 -0
- package/dist/features/stores/components/StoreCollectorDropsView.d.ts +17 -0
- package/dist/features/stores/components/StoreCollectorDropsView.js +5 -0
- package/dist/features/stores/components/StoreCreateForm.js +16 -2
- package/dist/features/stores/components/StoreDetailLayoutView.d.ts +1 -1
- package/dist/features/stores/components/StoreDetailLayoutView.js +7 -1
- package/dist/features/stores/components/StoreDigitalCodesPageView.d.ts +4 -1
- package/dist/features/stores/components/StoreDigitalCodesPageView.js +4 -3
- package/dist/features/stores/components/StoreFinanceGuideView.d.ts +6 -2
- package/dist/features/stores/components/StoreFinanceGuideView.js +3 -2
- package/dist/features/stores/components/StoreGuideHubView.d.ts +4 -1
- package/dist/features/stores/components/StoreGuideHubView.js +6 -4
- package/dist/features/stores/components/StoreHeader.js +1 -1
- package/dist/features/stores/components/StoreListingsGuideView.d.ts +6 -2
- package/dist/features/stores/components/StoreListingsGuideView.js +12 -11
- package/dist/features/stores/components/StoreLiveItemsPageView.d.ts +4 -1
- package/dist/features/stores/components/StoreLiveItemsPageView.js +4 -3
- package/dist/features/stores/components/StoreNavTabs.d.ts +1 -1
- package/dist/features/stores/components/StoreOrdersGuideView.d.ts +6 -2
- package/dist/features/stores/components/StoreOrdersGuideView.js +6 -5
- package/dist/features/stores/components/StorePreOrdersPageView.d.ts +4 -1
- package/dist/features/stores/components/StorePreOrdersPageView.js +4 -3
- package/dist/features/stores/components/StoreProductsPageView.d.ts +12 -1
- package/dist/features/stores/components/StoreProductsPageView.js +4 -3
- package/dist/features/stores/components/StoreReviewsPageView.d.ts +4 -1
- package/dist/features/stores/components/StoreReviewsPageView.js +4 -3
- package/dist/features/stores/components/StoreSettingsGuideView.d.ts +6 -2
- package/dist/features/stores/components/StoreSettingsGuideView.js +3 -2
- package/dist/features/stores/components/StoreSparesPageView.d.ts +4 -1
- package/dist/features/stores/components/StoreSparesPageView.js +10 -9
- package/dist/features/stores/components/StoresIndexListing.js +16 -11
- package/dist/features/stores/components/StoresIndexPageView.d.ts +10 -1
- package/dist/features/stores/components/StoresIndexPageView.js +3 -2
- package/dist/features/stores/components/index.d.ts +5 -5
- package/dist/features/stores/components/index.js +2 -2
- package/dist/features/stores/hooks/useStores.d.ts +4 -4
- package/dist/features/stores/hooks/useStores.js +4 -4
- package/dist/features/stores/manifest.js +3 -3
- package/dist/features/stores/messages/en.json +1 -1
- package/dist/features/stores/repository/store.repository.d.ts +80 -0
- package/dist/features/stores/repository/store.repository.js +98 -0
- package/dist/features/stores/schemas/firestore.d.ts +193 -1
- package/dist/features/stores/schemas/firestore.js +66 -0
- package/dist/features/stores/schemas/index.d.ts +16 -16
- package/dist/features/stores/server.d.ts +1 -1
- package/dist/features/stores/server.js +1 -1
- package/dist/features/stores/types/index.d.ts +5 -5
- package/dist/features/support/schemas/firestore.d.ts +1 -1
- package/dist/features/support/schemas/firestore.js +1 -1
- package/dist/features/support/schemas/index.d.ts +12 -12
- package/dist/features/support/schemas/index.js +1 -1
- package/dist/features/tax-codes/schemas/tax-code-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-codes.validators.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-codes.validators.js +1 -1
- package/dist/features/tester/actions/checklist-item-actions.d.ts +3 -3
- package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +1 -1
- package/dist/features/tester/components/AdminTesterFeedbackView.d.ts +6 -1
- package/dist/features/tester/components/AdminTesterFeedbackView.js +3 -2
- package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.d.ts +4 -1
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +3 -2
- package/dist/features/wishlist/components/WishlistHeartButton.d.ts +2 -2
- package/dist/features/wishlist/components/WishlistHeartButton.js +2 -2
- package/dist/features/wishlist/components/WishlistPage.js +1 -1
- package/dist/features/wishlist/components/WishlistView.d.ts +1 -1
- package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +6 -6
- package/dist/features/wishlist/hooks/useUserWishlist.d.ts +1 -1
- package/dist/features/wishlist/hooks/useWishlistCount.js +1 -1
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +6 -6
- package/dist/features/wishlist/repository/user-wishlist.repository.d.ts +1 -1
- package/dist/features/wishlist/utils/guest-wishlist.d.ts +14 -5
- package/dist/index.d.ts +182 -203
- package/dist/index.js +284 -233
- package/dist/jobs.d.ts +1 -1
- package/dist/jobs.js +3 -3
- package/dist/next/api/api-response.d.ts +1 -1
- package/dist/next/api/parseJsonBody.d.ts +1 -1
- package/dist/next/api/routeHandler.d.ts +5 -0
- package/dist/next/api/routeHandler.js +24 -2
- package/dist/next/components/UnauthorizedView.d.ts +4 -1
- package/dist/next/components/UnauthorizedView.js +3 -2
- package/dist/next/index.d.ts +3 -1
- package/dist/next/index.js +5 -1
- package/dist/next/routing/portals.d.ts +288 -0
- package/dist/next/routing/portals.js +422 -0
- package/dist/next/routing/route-map.d.ts +114 -71
- package/dist/next/routing/route-map.js +137 -45
- package/dist/providers/ai-groq/index.d.ts +18 -0
- package/dist/providers/ai-groq/index.js +241 -0
- package/dist/providers/auth-firebase/claims.d.ts +85 -0
- package/dist/providers/auth-firebase/claims.js +116 -0
- package/dist/providers/auth-firebase/helpers.d.ts +6 -1
- package/dist/providers/auth-firebase/helpers.js +26 -2
- package/dist/providers/auth-firebase/provider.js +9 -4
- package/dist/providers/auth-firebase/session.js +32 -1
- package/dist/providers/db-firebase/admin.d.ts +26 -1
- package/dist/providers/db-firebase/admin.js +52 -5
- package/dist/providers/db-firebase/base.repository.d.ts +1 -1
- package/dist/providers/db-firebase/filter-aliases.d.ts +2 -2
- package/dist/providers/db-firebase/rtdb-url.js +1 -1
- package/dist/providers/db-firebase/sieve.js +2 -2
- package/dist/providers/payment-cashfree/easy-split.d.ts +119 -0
- package/dist/providers/payment-cashfree/easy-split.js +206 -0
- package/dist/providers/payment-cashfree/index.d.ts +341 -0
- package/dist/providers/payment-cashfree/index.js +714 -0
- package/dist/providers/payment-phonepe/index.d.ts +1 -1
- package/dist/providers/payment-phonepe/index.js +14 -1
- package/dist/providers/payment-razorpay/index.d.ts +1 -1
- package/dist/providers/shipping-shiprocket/index.d.ts +40 -5
- package/dist/providers/shipping-shiprocket/index.js +49 -5
- package/dist/providers.d.ts +3 -0
- package/dist/providers.js +5 -0
- package/dist/react/contexts/SessionContext.d.ts +18 -2
- package/dist/react/contexts/SessionContext.js +23 -1
- package/dist/react/hooks/useBrowsePageFlags.d.ts +2 -2
- package/dist/react/hooks/useBrowsePageFlags.js +11 -5
- package/dist/react/hooks/useCanSeePrices.js +1 -1
- package/dist/react/hooks/useCountdown.d.ts +1 -1
- package/dist/react/hooks/useCountdown.js +1 -1
- package/dist/react/hooks/useListingSurfaceVisibility.js +12 -2
- package/dist/react/hooks/useListingTypeFlags.d.ts +62 -8
- package/dist/react/hooks/useListingTypeFlags.js +14 -7
- package/dist/repositories/index.d.ts +3 -4
- package/dist/repositories/index.js +4 -5
- package/dist/schemas/registry.d.ts +338 -914
- package/dist/schemas/registry.js +7 -7
- package/dist/schemas/sieve.d.ts +2 -2
- package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
- package/dist/security/authorization.d.ts +27 -5
- package/dist/security/authorization.js +53 -13
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +1 -1
- package/dist/security/pii-mask.d.ts +1 -1
- package/dist/security/pii-mask.js +1 -1
- package/dist/security/pii-schemas.d.ts +26 -2
- package/dist/security/pii-schemas.js +26 -2
- package/dist/seo/json-ld.d.ts +6 -6
- package/dist/seo/json-ld.js +7 -7
- package/dist/seo/metadata.d.ts +3 -3
- package/dist/seo/metadata.js +7 -7
- package/dist/server-entry.d.ts +13 -13
- package/dist/server-entry.js +54 -15
- package/dist/server.d.ts +79 -46
- package/dist/server.js +158 -74
- package/dist/stores/panel-store.d.ts +1 -1
- package/dist/styles.css +380 -183
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/contrast.d.ts +61 -0
- package/dist/tokens/contrast.js +128 -0
- package/dist/tokens/themes/cobalt-night.js +10 -3
- package/dist/tokens/themes/default-dark.d.ts +5 -4
- package/dist/tokens/themes/default-dark.js +48 -40
- package/dist/tokens/themes/default-light.d.ts +5 -5
- package/dist/tokens/themes/default-light.js +64 -36
- package/dist/tokens/themes/required.d.ts +1 -1
- package/dist/tokens/themes/required.js +40 -0
- package/dist/tokens/themes/sunset.js +14 -2
- package/dist/tokens/tokens.css +117 -85
- package/dist/ui/chrome/BottomActionsContext.d.ts +190 -0
- package/dist/ui/chrome/BottomActionsContext.js +198 -0
- package/dist/ui/chrome/useBottomActions.d.ts +37 -0
- package/dist/ui/chrome/useBottomActions.js +86 -0
- package/dist/ui/columns/cell-renderers.d.ts +10 -5
- package/dist/ui/columns/cell-renderers.js +9 -7
- package/dist/ui/columns/column-renderers.js +13 -4
- package/dist/ui/components/AdminFilterFacets.d.ts +37 -0
- package/dist/ui/components/AdminFilterFacets.js +126 -0
- package/dist/ui/components/Avatar.js +1 -1
- package/dist/ui/components/AvatarDisplay.d.ts +1 -1
- package/dist/ui/components/BaseListingCard.js +1 -1
- package/dist/ui/components/Button.js +2 -13
- package/dist/ui/components/Button.style.css +91 -0
- package/dist/ui/components/Card.d.ts +1 -1
- package/dist/ui/components/Card.js +0 -9
- package/dist/ui/components/Card.style.css +0 -70
- package/dist/ui/components/ClaimCouponButton.d.ts +1 -1
- package/dist/ui/components/ConfirmDeleteModal.d.ts +1 -1
- package/dist/ui/components/ConfirmDeleteModal.js +2 -18
- package/dist/ui/components/ConfirmDeleteModal.style.css +53 -1
- package/dist/ui/components/DetailPageGallery.d.ts +1 -1
- package/dist/ui/components/DetailPageGallery.js +2 -2
- package/dist/ui/components/DetailPageHero.d.ts +1 -1
- package/dist/ui/components/DetailPageHero.js +1 -1
- package/dist/ui/components/DetailPageTabs.d.ts +1 -1
- package/dist/ui/components/DetailPageTabs.js +1 -1
- package/dist/ui/components/DetailViewShell.d.ts +27 -2
- package/dist/ui/components/DetailViewShell.js +5 -1
- package/dist/ui/components/Disclaimer.js +11 -2
- package/dist/ui/components/Drawer.js +19 -2
- package/dist/ui/components/FilterChipGroup.d.ts +2 -2
- package/dist/ui/components/Form.js +1 -1
- package/dist/ui/components/FormField.d.ts +19 -2
- package/dist/ui/components/FormField.js +88 -21
- package/dist/ui/components/GatedPrice.d.ts +1 -1
- package/dist/ui/components/GatedPrice.js +1 -1
- package/dist/ui/components/ImageGallery.js +1 -1
- package/dist/ui/components/ImageLightbox.js +5 -2
- package/dist/ui/components/ImageMosaic.js +1 -1
- package/dist/ui/components/ListingDetailShell.d.ts +68 -0
- package/dist/ui/components/ListingDetailShell.js +32 -0
- package/dist/ui/components/ListingToolbar.d.ts +56 -1
- package/dist/ui/components/ListingToolbar.js +54 -4
- package/dist/ui/components/LiveEditableRegion.d.ts +29 -0
- package/dist/ui/components/LiveEditableRegion.js +54 -0
- package/dist/ui/components/MediaAvatar.js +13 -0
- package/dist/ui/components/MediaImage.d.ts +116 -0
- package/dist/ui/components/MediaImage.js +194 -0
- package/dist/ui/components/MediaLightbox.js +246 -0
- package/dist/ui/components/MediaVideo.js +141 -0
- package/dist/ui/components/Modal.d.ts +1 -1
- package/dist/ui/components/Modal.js +18 -47
- package/dist/ui/components/Modal.style.css +43 -0
- package/dist/ui/components/PaginatedSelect.d.ts +1 -1
- package/dist/ui/components/QuickCreateModal.js +4 -1
- package/dist/ui/components/RecordDetailModal.js +1 -1
- package/dist/ui/components/RowActionMenu.js +11 -51
- package/dist/ui/components/RowActionMenu.style.css +64 -10
- package/dist/ui/components/SideDrawer.style.css +11 -16
- package/dist/ui/components/SiteLogo.js +1 -1
- package/dist/ui/components/SiteMark.js +1 -1
- package/dist/ui/components/SpecTable.d.ts +1 -1
- package/dist/ui/components/SplitTile.js +1 -1
- package/dist/ui/components/dialog-shell.d.ts +32 -0
- package/dist/ui/components/dialog-shell.js +23 -0
- package/dist/ui/components/form-field-registry.d.ts +43 -0
- package/dist/ui/components/form-field-registry.js +7 -0
- package/dist/ui/components/surface-tokens.d.ts +6 -2
- package/dist/ui/components/surface-tokens.js +3 -1
- package/dist/ui/design-pack.d.ts +21 -0
- package/dist/ui/design-pack.js +47 -0
- package/dist/ui/forms/FormShell.js +14 -1
- package/dist/ui/forms/useFormBottomActions.d.ts +78 -0
- package/dist/ui/forms/useFormBottomActions.js +128 -0
- package/dist/ui/icons/icon-registry.d.ts +6 -1
- package/dist/ui/icons/icon-registry.js +12 -3
- package/dist/ui/rich-text/RichText.js +35 -8
- package/dist/ui/types/image-crop.d.ts +8 -0
- package/dist/ui/types/quick-field.d.ts +33 -0
- package/dist/ui/widgets/index.d.ts +7 -0
- package/dist/ui/widgets/index.js +3 -0
- package/dist/ui/widgets/merge.d.ts +85 -0
- package/dist/ui/widgets/merge.js +162 -0
- package/dist/ui/widgets/pilot-registry.d.ts +104 -0
- package/dist/ui/widgets/pilot-registry.js +305 -0
- package/dist/ui/widgets/resolve.d.ts +109 -0
- package/dist/ui/widgets/resolve.js +442 -0
- package/dist/ui/widgets/types.d.ts +252 -0
- package/dist/ui/widgets/types.js +45 -0
- package/dist/utils/id-generators.d.ts +5 -5
- package/dist/utils/id-generators.js +14 -10
- package/dist/utils/listing-params.d.ts +1 -1
- package/dist/utils/listing-params.js +1 -1
- package/dist/utils/pack-by-span.d.ts +21 -0
- package/dist/utils/pack-by-span.js +84 -0
- package/dist/utils/search-txt-builders.d.ts +2 -2
- package/dist/utils/search-txt-builders.js +1 -1
- package/dist/validation/schemas.d.ts +17 -17
- package/package.json +533 -463
- package/scripts/dedupe-peer-deps.mjs +17 -0
- package/scripts/seed-cli.mjs +65 -18
- package/scripts/sieve-audit.mjs +14 -14
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.d.ts +0 -66
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +0 -187
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts +0 -15
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +0 -51
- package/dist/_internal/client/features/lottery/LotteryDetailView.d.ts +0 -37
- package/dist/_internal/client/features/lottery/LotteryDetailView.js +0 -48
- package/dist/_internal/client/features/lottery/LotteryEntriesView.d.ts +0 -24
- package/dist/_internal/client/features/lottery/LotteryEntriesView.js +0 -63
- package/dist/_internal/client/features/lottery/LotteryListView.d.ts +0 -29
- package/dist/_internal/client/features/lottery/LotteryListView.js +0 -44
- package/dist/_internal/client/features/lottery/LotteryPullForm.d.ts +0 -31
- package/dist/_internal/client/features/lottery/LotteryPullForm.js +0 -94
- package/dist/_internal/client/features/lottery/LotterySlotGrid.d.ts +0 -14
- package/dist/_internal/client/features/lottery/LotterySlotGrid.js +0 -23
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.d.ts +0 -29
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +0 -28
- package/dist/_internal/client/features/lottery/slot-collage-items.d.ts +0 -15
- package/dist/_internal/client/features/lottery/slot-collage-items.js +0 -13
- package/dist/_internal/server/features/auctions/actions.js +0 -76
- package/dist/_internal/server/features/auctions/data.d.ts +0 -2
- package/dist/_internal/server/features/auctions/data.js +0 -3
- package/dist/_internal/server/features/auctions/index.d.ts +0 -5
- package/dist/_internal/server/features/auctions/index.js +0 -5
- package/dist/_internal/server/features/auctions/og.d.ts +0 -22
- package/dist/_internal/server/features/auctions/og.js +0 -30
- package/dist/_internal/server/features/auctions/service.d.ts +0 -20
- package/dist/_internal/server/features/auctions/service.js +0 -65
- package/dist/_internal/server/features/beys/data.d.ts +0 -44
- package/dist/_internal/server/features/beys/data.js +0 -107
- package/dist/_internal/server/features/beys/og.d.ts +0 -42
- package/dist/_internal/server/features/beys/og.js +0 -89
- package/dist/_internal/server/features/checkout/freeze-parts.d.ts +0 -50
- package/dist/_internal/server/features/checkout/freeze-parts.js +0 -94
- package/dist/_internal/server/features/lottery/actions.d.ts +0 -43
- package/dist/_internal/server/features/lottery/actions.js +0 -365
- package/dist/_internal/server/features/lottery/adapters.d.ts +0 -15
- package/dist/_internal/server/features/lottery/adapters.js +0 -31
- package/dist/_internal/server/features/lottery/data.d.ts +0 -19
- package/dist/_internal/server/features/lottery/data.js +0 -41
- package/dist/_internal/server/features/lottery/metadata.d.ts +0 -6
- package/dist/_internal/server/features/lottery/metadata.js +0 -31
- package/dist/_internal/server/features/lottery/og.d.ts +0 -40
- package/dist/_internal/server/features/lottery/og.js +0 -79
- package/dist/_internal/server/features/parts/assembly.d.ts +0 -126
- package/dist/_internal/server/features/parts/assembly.js +0 -246
- package/dist/_internal/server/features/parts/buildable.d.ts +0 -47
- package/dist/_internal/server/features/parts/buildable.js +0 -159
- package/dist/_internal/server/features/parts/data.d.ts +0 -65
- package/dist/_internal/server/features/parts/data.js +0 -171
- package/dist/_internal/server/features/parts/og.d.ts +0 -34
- package/dist/_internal/server/features/parts/og.js +0 -66
- package/dist/_internal/server/features/prize-draws/actions.d.ts +0 -2
- package/dist/_internal/server/features/prize-draws/actions.js +0 -33
- package/dist/_internal/server/features/prize-draws/data.d.ts +0 -1
- package/dist/_internal/server/features/prize-draws/data.js +0 -2
- package/dist/_internal/server/features/prize-draws/index.d.ts +0 -4
- package/dist/_internal/server/features/prize-draws/index.js +0 -4
- package/dist/_internal/server/features/prize-draws/og.d.ts +0 -32
- package/dist/_internal/server/features/prize-draws/og.js +0 -47
- package/dist/_internal/server/features/prize-draws/service.d.ts +0 -3
- package/dist/_internal/server/features/prize-draws/service.js +0 -19
- package/dist/_internal/server/jobs/core/auctionSettlement.d.ts +0 -2
- package/dist/_internal/server/jobs/core/auctionSettlement.js +0 -240
- package/dist/_internal/server/jobs/core/onPrizeDrawPaymentConfirmed.d.ts +0 -19
- package/dist/_internal/server/jobs/core/onPrizeDrawPaymentConfirmed.js +0 -30
- package/dist/_internal/server/jobs/core/prizeDrawAssignWinner.d.ts +0 -20
- package/dist/_internal/server/jobs/core/prizeDrawAssignWinner.js +0 -114
- package/dist/_internal/server/jobs/core/prizeDrawExpiryReveal.d.ts +0 -14
- package/dist/_internal/server/jobs/core/prizeDrawExpiryReveal.js +0 -71
- package/dist/_internal/server/jobs/core/prizeDrawSoldOutReveal.d.ts +0 -22
- package/dist/_internal/server/jobs/core/prizeDrawSoldOutReveal.js +0 -67
- package/dist/_internal/server/jobs/handlers/auctionSettlement.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/auctionSettlement.js +0 -2
- package/dist/_internal/server/jobs/handlers/onPrizeDrawPaymentConfirmed.d.ts +0 -3
- package/dist/_internal/server/jobs/handlers/onPrizeDrawPaymentConfirmed.js +0 -11
- package/dist/_internal/server/jobs/handlers/prizeDrawExpiryReveal.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/prizeDrawExpiryReveal.js +0 -2
- package/dist/_internal/server/jobs/handlers/prizeDrawSoldOutReveal.d.ts +0 -3
- package/dist/_internal/server/jobs/handlers/prizeDrawSoldOutReveal.js +0 -4
- package/dist/_internal/shared/checkout/rules/art.rule.d.ts +0 -9
- package/dist/_internal/shared/checkout/rules/art.rule.js +0 -5
- package/dist/_internal/shared/checkout/rules/auction.rule.d.ts +0 -2
- package/dist/_internal/shared/checkout/rules/auction.rule.js +0 -37
- package/dist/_internal/shared/checkout/rules/prize-draw.rule.d.ts +0 -2
- package/dist/_internal/shared/checkout/rules/prize-draw.rule.js +0 -130
- package/dist/_internal/shared/checkout/rules/stickers.rule.d.ts +0 -9
- package/dist/_internal/shared/checkout/rules/stickers.rule.js +0 -5
- package/dist/_internal/shared/features/auctions/config.d.ts +0 -100
- package/dist/_internal/shared/features/auctions/config.js +0 -136
- package/dist/_internal/shared/features/auctions/errors.d.ts +0 -16
- package/dist/_internal/shared/features/auctions/errors.js +0 -32
- package/dist/_internal/shared/features/auctions/schema.d.ts +0 -42
- package/dist/_internal/shared/features/auctions/schema.js +0 -24
- package/dist/_internal/shared/listing-types/art/config.d.ts +0 -74
- package/dist/_internal/shared/listing-types/art/config.js +0 -36
- package/dist/_internal/shared/listing-types/art/ctas.js +0 -3
- package/dist/_internal/shared/listing-types/art/schema.d.ts +0 -2
- package/dist/_internal/shared/listing-types/art/schema.js +0 -3
- package/dist/_internal/shared/listing-types/auction/config.d.ts +0 -84
- package/dist/_internal/shared/listing-types/auction/config.js +0 -58
- package/dist/_internal/shared/listing-types/auction/schema.d.ts +0 -3
- package/dist/_internal/shared/listing-types/auction/schema.js +0 -7
- package/dist/_internal/shared/listing-types/prize-draw/config.d.ts +0 -73
- package/dist/_internal/shared/listing-types/prize-draw/config.js +0 -45
- package/dist/_internal/shared/listing-types/prize-draw/schema.d.ts +0 -3
- package/dist/_internal/shared/listing-types/prize-draw/schema.js +0 -13
- package/dist/_internal/shared/listing-types/stickers/config.d.ts +0 -74
- package/dist/_internal/shared/listing-types/stickers/config.js +0 -36
- package/dist/_internal/shared/listing-types/stickers/ctas.d.ts +0 -1
- package/dist/_internal/shared/listing-types/stickers/ctas.js +0 -3
- package/dist/_internal/shared/listing-types/stickers/schema.d.ts +0 -2
- package/dist/_internal/shared/listing-types/stickers/schema.js +0 -3
- package/dist/_internal/shared/listing-types/stickers/seed-factory.d.ts +0 -1
- package/dist/_internal/shared/listing-types/stickers/seed-factory.js +0 -1
- package/dist/features/about/components/HowAuctionsWorkView.d.ts +0 -3
- package/dist/features/about/components/HowAuctionsWorkView.js +0 -104
- package/dist/features/account/components/BuyerAuctionsGuideView.d.ts +0 -2
- package/dist/features/account/components/BuyerAuctionsGuideView.js +0 -46
- package/dist/features/admin/components/AdminArtView.d.ts +0 -13
- package/dist/features/admin/components/AdminArtView.js +0 -31
- package/dist/features/admin/components/AdminBeysView.d.ts +0 -27
- package/dist/features/admin/components/AdminBeysView.js +0 -180
- package/dist/features/admin/components/AdminCarouselEditorView.d.ts +0 -9
- package/dist/features/admin/components/AdminCarouselEditorView.js +0 -299
- package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +0 -14
- package/dist/features/admin/components/AdminCarouselGroupEditorView.js +0 -96
- package/dist/features/admin/components/AdminCarouselView.d.ts +0 -6
- package/dist/features/admin/components/AdminCarouselView.js +0 -273
- package/dist/features/admin/components/AdminPartsView.d.ts +0 -27
- package/dist/features/admin/components/AdminPartsView.js +0 -162
- package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +0 -4
- package/dist/features/admin/components/AdminPrizeDrawsView.js +0 -155
- package/dist/features/admin/components/AdminStickersView.d.ts +0 -13
- package/dist/features/admin/components/AdminStickersView.js +0 -31
- package/dist/features/auctions/actions/bid-actions.d.ts +0 -50
- package/dist/features/auctions/actions/bid-actions.js +0 -454
- package/dist/features/auctions/api/route.d.ts +0 -14
- package/dist/features/auctions/api/route.js +0 -62
- package/dist/features/auctions/columns/index.d.ts +0 -14
- package/dist/features/auctions/columns/index.js +0 -63
- package/dist/features/auctions/components/AuctionBidsTable.d.ts +0 -27
- package/dist/features/auctions/components/AuctionBidsTable.js +0 -96
- package/dist/features/auctions/components/AuctionBottomActions.d.ts +0 -23
- package/dist/features/auctions/components/AuctionBottomActions.js +0 -89
- package/dist/features/auctions/components/AuctionDetailPageView.d.ts +0 -22
- package/dist/features/auctions/components/AuctionDetailPageView.js +0 -246
- package/dist/features/auctions/components/AuctionFilters.d.ts +0 -16
- package/dist/features/auctions/components/AuctionFilters.js +0 -18
- package/dist/features/auctions/components/AuctionLiveStatusBadge.d.ts +0 -20
- package/dist/features/auctions/components/AuctionLiveStatusBadge.js +0 -21
- package/dist/features/auctions/components/AuctionsListView.d.ts +0 -6
- package/dist/features/auctions/components/AuctionsListView.js +0 -22
- package/dist/features/auctions/components/CollapsibleBidHistory.js +0 -34
- package/dist/features/auctions/components/LiveBidPrice.d.ts +0 -19
- package/dist/features/auctions/components/LiveBidPrice.js +0 -19
- package/dist/features/auctions/components/LiveMinIncrement.d.ts +0 -18
- package/dist/features/auctions/components/LiveMinIncrement.js +0 -25
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +0 -99
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +0 -212
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +0 -21
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +0 -47
- package/dist/features/auctions/components/PlaceBidFormClient.d.ts +0 -65
- package/dist/features/auctions/components/PlaceBidFormClient.js +0 -306
- package/dist/features/auctions/components/bid-detail-fields.js +0 -103
- package/dist/features/auctions/components/index.d.ts +0 -7
- package/dist/features/auctions/components/index.js +0 -5
- package/dist/features/auctions/hooks/useAuctions.d.ts +0 -51
- package/dist/features/auctions/hooks/useAuctions.js +0 -105
- package/dist/features/auctions/hooks/useBids.d.ts +0 -33
- package/dist/features/auctions/hooks/useBids.js +0 -32
- package/dist/features/auctions/hooks/useIsAuctionEnded.d.ts +0 -41
- package/dist/features/auctions/hooks/useIsAuctionEnded.js +0 -76
- package/dist/features/auctions/hooks/useLiveAuctionBid.d.ts +0 -20
- package/dist/features/auctions/hooks/useLiveAuctionBid.js +0 -23
- package/dist/features/auctions/hooks/usePlaceBid.d.ts +0 -25
- package/dist/features/auctions/hooks/usePlaceBid.js +0 -28
- package/dist/features/auctions/hooks/useRealtimeBids.d.ts +0 -41
- package/dist/features/auctions/hooks/useRealtimeBids.js +0 -170
- package/dist/features/auctions/index.d.ts +0 -8
- package/dist/features/auctions/index.js +0 -8
- package/dist/features/auctions/manifest.js +0 -17
- package/dist/features/auctions/messages/en.json +0 -18
- package/dist/features/auctions/repository/bid.repository.d.ts +0 -256
- package/dist/features/auctions/repository/bid.repository.js +0 -575
- package/dist/features/auctions/schemas/bid-input.d.ts +0 -30
- package/dist/features/auctions/schemas/bid-input.js +0 -28
- package/dist/features/auctions/schemas/firestore.d.ts +0 -120
- package/dist/features/auctions/schemas/firestore.js +0 -73
- package/dist/features/auctions/schemas/index.d.ts +0 -170
- package/dist/features/auctions/schemas/index.js +0 -64
- package/dist/features/auctions/server.d.ts +0 -8
- package/dist/features/auctions/server.js +0 -8
- package/dist/features/auctions/types/index.d.ts +0 -74
- package/dist/features/beys/components/BeyDetailPageView.d.ts +0 -50
- package/dist/features/beys/components/BeyDetailPageView.js +0 -104
- package/dist/features/beys/schemas/firestore.d.ts +0 -417
- package/dist/features/beys/schemas/firestore.js +0 -65
- package/dist/features/cron/jobs/auction-expiry.job.d.ts +0 -27
- package/dist/features/cron/jobs/auction-expiry.job.js +0 -43
- package/dist/features/events/components/EventRaffleEntryForm.d.ts +0 -24
- package/dist/features/events/components/EventRaffleEntryForm.js +0 -46
- package/dist/features/events/components/EventRaffleWinnerView.d.ts +0 -35
- package/dist/features/events/components/EventRaffleWinnerView.js +0 -39
- package/dist/features/events/components/EventRafflesSection.d.ts +0 -42
- package/dist/features/events/components/EventRafflesSection.js +0 -96
- package/dist/features/events/components/SpinWheelView.d.ts +0 -27
- package/dist/features/events/components/SpinWheelView.js +0 -151
- package/dist/features/homepage/actions/carousel-actions.d.ts +0 -38
- package/dist/features/homepage/actions/carousel-actions.js +0 -54
- package/dist/features/homepage/api/carousel/[id]/route.d.ts +0 -23
- package/dist/features/homepage/api/carousel/[id]/route.js +0 -125
- package/dist/features/homepage/components/FeaturedAuctionsSection.d.ts +0 -18
- package/dist/features/homepage/components/FeaturedAuctionsSection.js +0 -12
- package/dist/features/homepage/hooks/useFeaturedAuctions.d.ts +0 -15
- package/dist/features/homepage/hooks/useFeaturedAuctions.js +0 -49
- package/dist/features/homepage/repository/carousel.repository.d.ts +0 -100
- package/dist/features/homepage/repository/carousel.repository.js +0 -258
- package/dist/features/homepage/repository/carousels.repository.d.ts +0 -38
- package/dist/features/homepage/repository/carousels.repository.js +0 -149
- package/dist/features/layout/BottomActionsContext.d.ts +0 -173
- package/dist/features/layout/BottomActionsContext.js +0 -175
- package/dist/features/layout/hooks/useBottomActions.d.ts +0 -37
- package/dist/features/layout/hooks/useBottomActions.js +0 -86
- package/dist/features/layout/hooks/useFormBottomActions.d.ts +0 -78
- package/dist/features/layout/hooks/useFormBottomActions.js +0 -128
- package/dist/features/lottery/repository/lottery-entry.repository.d.ts +0 -48
- package/dist/features/lottery/repository/lottery-entry.repository.js +0 -172
- package/dist/features/lottery/schemas/config-write.d.ts +0 -145
- package/dist/features/lottery/schemas/config-write.js +0 -199
- package/dist/features/lottery/schemas/firestore.d.ts +0 -77
- package/dist/features/lottery/schemas/firestore.js +0 -25
- package/dist/features/lottery/schemas/zod.d.ts +0 -113
- package/dist/features/lottery/schemas/zod.js +0 -39
- package/dist/features/lottery/types/index.d.ts +0 -72
- package/dist/features/lottery/types/index.js +0 -68
- package/dist/features/media/MediaAvatar.js +0 -13
- package/dist/features/media/MediaImage.d.ts +0 -116
- package/dist/features/media/MediaImage.js +0 -194
- package/dist/features/media/MediaLightbox.js +0 -246
- package/dist/features/media/MediaVideo.js +0 -141
- package/dist/features/parts/components/AssemblyDrawer.d.ts +0 -107
- package/dist/features/parts/components/AssemblyDrawer.js +0 -257
- package/dist/features/parts/components/ModelCompositionPanel.d.ts +0 -37
- package/dist/features/parts/components/ModelCompositionPanel.js +0 -38
- package/dist/features/parts/components/PartDetailPageView.d.ts +0 -61
- package/dist/features/parts/components/PartDetailPageView.js +0 -123
- package/dist/features/parts/components/PartsIndexPageView.d.ts +0 -42
- package/dist/features/parts/components/PartsIndexPageView.js +0 -29
- package/dist/features/parts/components/PartsSearchBox.d.ts +0 -9
- package/dist/features/parts/components/PartsSearchBox.js +0 -136
- package/dist/features/parts/schemas/admin-edit.d.ts +0 -81
- package/dist/features/parts/schemas/admin-edit.js +0 -89
- package/dist/features/parts/schemas/firestore.d.ts +0 -925
- package/dist/features/parts/schemas/firestore.js +0 -384
- package/dist/features/parts/utils/colourway-match.d.ts +0 -62
- package/dist/features/parts/utils/colourway-match.js +0 -98
- package/dist/features/parts/utils/part-breakdown.d.ts +0 -53
- package/dist/features/parts/utils/part-breakdown.js +0 -77
- package/dist/features/products/components/AuctionDetailView.d.ts +0 -16
- package/dist/features/products/components/AuctionDetailView.js +0 -13
- package/dist/features/products/components/AuctionsIndexListing.d.ts +0 -8
- package/dist/features/products/components/AuctionsIndexListing.js +0 -170
- package/dist/features/products/components/MarketplacePrizeDrawCard.d.ts +0 -34
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +0 -129
- package/dist/features/products/components/PreOrderDetailView.d.ts +0 -18
- package/dist/features/products/components/PreOrderDetailView.js +0 -12
- package/dist/features/products/components/PrizeDrawBottomActions.d.ts +0 -6
- package/dist/features/products/components/PrizeDrawBottomActions.js +0 -6
- package/dist/features/products/components/PrizeDrawCollage.d.ts +0 -35
- package/dist/features/products/components/PrizeDrawCollage.js +0 -91
- package/dist/features/products/components/PrizeDrawDetailPageView.d.ts +0 -27
- package/dist/features/products/components/PrizeDrawDetailPageView.js +0 -136
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +0 -32
- package/dist/features/products/components/PrizeDrawEntryActions.js +0 -104
- package/dist/features/products/components/PrizeDrawItemsEditor.d.ts +0 -13
- package/dist/features/products/components/PrizeDrawItemsEditor.js +0 -101
- package/dist/features/products/components/PrizeDrawWinnerMappingView.d.ts +0 -14
- package/dist/features/products/components/PrizeDrawWinnerMappingView.js +0 -43
- package/dist/features/products/components/PrizeDrawsIndexListing.d.ts +0 -8
- package/dist/features/products/components/PrizeDrawsIndexListing.js +0 -108
- package/dist/features/products/components/PrizeDrawsListingView.d.ts +0 -15
- package/dist/features/products/components/PrizeDrawsListingView.js +0 -37
- package/dist/features/products/components/PrizeDrawsSection.d.ts +0 -15
- package/dist/features/products/components/PrizeDrawsSection.js +0 -49
- package/dist/features/seller/components/SellerArtView.d.ts +0 -15
- package/dist/features/seller/components/SellerArtView.js +0 -6
- package/dist/features/seller/components/SellerStickersView.d.ts +0 -15
- package/dist/features/seller/components/SellerStickersView.js +0 -6
- package/dist/features/stores/api/[storeSlug]/auctions/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/auctions/route.js +0 -83
- package/dist/features/stores/components/StoreAuctionsListing.d.ts +0 -7
- package/dist/features/stores/components/StoreAuctionsListing.js +0 -138
- package/dist/features/stores/components/StoreAuctionsPageView.d.ts +0 -8
- package/dist/features/stores/components/StoreAuctionsPageView.js +0 -24
- package/dist/features/stores/components/StoreAuctionsView.d.ts +0 -17
- package/dist/features/stores/components/StoreAuctionsView.js +0 -5
- package/dist/features/stores/components/StorePrizeDrawsPageView.d.ts +0 -8
- package/dist/features/stores/components/StorePrizeDrawsPageView.js +0 -24
- /package/dist/_internal/server/features/{auctions → collector-drops}/actions.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/ctas.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/og.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/og.js +0 -0
- /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/seed-factory.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/seed-factory.js +0 -0
- /package/dist/_internal/shared/listing-types/{auction → clearance}/ctas.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{auction → clearance}/ctas.js +0 -0
- /package/dist/_internal/shared/listing-types/{auction → clearance}/og.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{auction → clearance}/og.js +0 -0
- /package/dist/_internal/shared/listing-types/{auction → clearance}/seed-factory.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{auction → clearance}/seed-factory.js +0 -0
- /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/ctas.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/ctas.js +0 -0
- /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/og.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/og.js +0 -0
- /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/seed-factory.d.ts +0 -0
- /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/seed-factory.js +0 -0
- /package/dist/features/{auctions → collector-drops}/actions/index.d.ts +0 -0
- /package/dist/features/{auctions → collector-drops}/actions/index.js +0 -0
- /package/dist/features/{auctions → collector-drops}/components/CollapsibleBidHistory.d.ts +0 -0
- /package/dist/features/{auctions → collector-drops}/components/bid-detail-fields.d.ts +0 -0
- /package/dist/features/{auctions → collector-drops}/manifest.d.ts +0 -0
- /package/dist/features/{auctions → collector-drops}/types/index.js +0 -0
- /package/dist/{features/media → ui/components}/MediaAvatar.d.ts +0 -0
- /package/dist/{features/media → ui/components}/MediaLightbox.d.ts +0 -0
- /package/dist/{features/media → ui/components}/MediaVideo.d.ts +0 -0
- /package/dist/{_internal/shared/listing-types/stickers/og.d.ts → ui/types/image-crop.js} +0 -0
- /package/dist/{_internal/shared/listing-types/stickers/og.js → ui/types/quick-field.js} +0 -0
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
* intentionally sparse so the W-2..W-4 sweeps can fill them surface-by-
|
|
23
23
|
* surface without merge churn here.
|
|
24
24
|
*/
|
|
25
|
+
import { rolesOf, holdsAnyRole } from "../../../features/auth/role-predicates.js";
|
|
25
26
|
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
26
27
|
/** Pluck an `ActionDef` by resource + id. Returns null when missing. */
|
|
27
28
|
export function action(tree, resource, id) {
|
|
@@ -30,17 +31,32 @@ export function action(tree, resource, id) {
|
|
|
30
31
|
return null;
|
|
31
32
|
return bucket[id] ?? null;
|
|
32
33
|
}
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Gate — returns true when this user may perform the action.
|
|
36
|
+
*
|
|
37
|
+
* Admin always passes (admin sees and does everything). No `roles` field =
|
|
38
|
+
* anyone authenticated passes.
|
|
39
|
+
*
|
|
40
|
+
* 🛑 Reads the role SET (1.44). Was `role === "admin"` on a scalar plus
|
|
41
|
+
* `def.permissions.includes(role)`, so an action allowed to `["admin","seller"]`
|
|
42
|
+
* was refused to an admin+seller whose scalar resolved to the other value —
|
|
43
|
+
* and a `["admin","moderator"]` action was invisible to the `employee` that
|
|
44
|
+
* `moderator` folds into.
|
|
45
|
+
*
|
|
46
|
+
* Accepts a user carrier or a bare role string, so no caller has to change.
|
|
47
|
+
*/
|
|
48
|
+
export function canPerformAction(def, user) {
|
|
49
|
+
const carrier = typeof user === "string" ? { role: user } : (user ?? undefined);
|
|
50
|
+
const held = carrier ? rolesOf(carrier) : [];
|
|
51
|
+
const isAuthed = Boolean(typeof user === "string" ? user : user?.role || user?.roles?.length);
|
|
52
|
+
if (held.includes("admin"))
|
|
37
53
|
return true;
|
|
38
|
-
if (!def.
|
|
39
|
-
return
|
|
54
|
+
if (!def.roles || def.roles.length === 0) {
|
|
55
|
+
return isAuthed; // anyone authed
|
|
40
56
|
}
|
|
41
|
-
if (!
|
|
57
|
+
if (!isAuthed)
|
|
42
58
|
return false;
|
|
43
|
-
return def.
|
|
59
|
+
return holdsAnyRole(carrier, def.roles);
|
|
44
60
|
}
|
|
45
61
|
/** Filter the registry to actions scoped to the given listingType. */
|
|
46
62
|
export function actionsForListingType(tree, listingType) {
|
|
@@ -81,7 +97,7 @@ export const ACTIONS = {
|
|
|
81
97
|
ariaLabel: "Book this ad slot for the selected month",
|
|
82
98
|
description: "Reserves one placement for one month at the listed flat fee. The creative is reviewed by a person before it appears anywhere.",
|
|
83
99
|
kind: "primary",
|
|
84
|
-
|
|
100
|
+
roles: ["user"],
|
|
85
101
|
confirmation: {
|
|
86
102
|
title: "Book this slot?",
|
|
87
103
|
body: "This reserves the placement for the whole month at the listed price. Cancelling later does not release the month for someone else to buy.",
|
|
@@ -95,7 +111,7 @@ export const ACTIONS = {
|
|
|
95
111
|
ariaLabel: "Cancel this ad booking",
|
|
96
112
|
description: "Stops the creative running. 🛑 Does NOT free the month — the slot stays yours for the period you booked; releasing it is a separate admin act with a refund behind it.",
|
|
97
113
|
kind: "danger",
|
|
98
|
-
|
|
114
|
+
roles: ["user"],
|
|
99
115
|
confirmation: {
|
|
100
116
|
title: "Cancel this booking?",
|
|
101
117
|
body: "Your ad stops running. The month is NOT released for another advertiser, and this does not issue a refund on its own.",
|
|
@@ -109,7 +125,7 @@ export const ACTIONS = {
|
|
|
109
125
|
ariaLabel: "Approve this ad creative so it can render",
|
|
110
126
|
description: "Clears the creative to render for its booked month. Approval is of THIS creative — an edit returns it to review.",
|
|
111
127
|
kind: "primary",
|
|
112
|
-
|
|
128
|
+
roles: ["admin", "moderator"],
|
|
113
129
|
confirmation: {
|
|
114
130
|
title: "Approve this creative?",
|
|
115
131
|
body: "It will render on the public site for its booked month once the booking is paid.",
|
|
@@ -123,7 +139,7 @@ export const ACTIONS = {
|
|
|
123
139
|
ariaLabel: "Reject this ad creative and tell the advertiser why",
|
|
124
140
|
description: "Sends it back with your note. A note is REQUIRED — without one the advertiser resubmits the same creative and you review it twice.",
|
|
125
141
|
kind: "danger",
|
|
126
|
-
|
|
142
|
+
roles: ["admin", "moderator"],
|
|
127
143
|
confirmation: {
|
|
128
144
|
title: "Reject this creative?",
|
|
129
145
|
body: "The advertiser sees your note and can submit a new creative against the same booking. The slot stays theirs.",
|
|
@@ -153,7 +169,7 @@ export const ACTIONS = {
|
|
|
153
169
|
ariaLabel: "Create a new listing",
|
|
154
170
|
description: "Create a listing of any type.",
|
|
155
171
|
kind: "primary",
|
|
156
|
-
|
|
172
|
+
roles: ["admin", "seller"],
|
|
157
173
|
},
|
|
158
174
|
edit: {
|
|
159
175
|
iconKey: "edit",
|
|
@@ -162,7 +178,7 @@ export const ACTIONS = {
|
|
|
162
178
|
ariaLabel: "Edit listing",
|
|
163
179
|
description: "Edit this listing.",
|
|
164
180
|
kind: "secondary",
|
|
165
|
-
|
|
181
|
+
roles: ["admin", "seller"],
|
|
166
182
|
},
|
|
167
183
|
delete: {
|
|
168
184
|
iconKey: "delete",
|
|
@@ -171,7 +187,7 @@ export const ACTIONS = {
|
|
|
171
187
|
ariaLabel: "Delete listing",
|
|
172
188
|
description: "Permanently delete this listing.",
|
|
173
189
|
kind: "danger",
|
|
174
|
-
|
|
190
|
+
roles: ["admin", "seller"],
|
|
175
191
|
confirmation: {
|
|
176
192
|
title: "Delete this listing?",
|
|
177
193
|
body: "This cannot be undone. Orders that already reference it keep their own copy of the title, price and image, so past orders stay readable.",
|
|
@@ -182,7 +198,7 @@ export const ACTIONS = {
|
|
|
182
198
|
* Clone — ADMIN ONLY, and no confirmation.
|
|
183
199
|
*
|
|
184
200
|
* `POST /api/store/products/[id]/duplicate` already strips identity,
|
|
185
|
-
* analytics,
|
|
201
|
+
* analytics, collector drop bid state and group membership, titles the copy
|
|
186
202
|
* "… (Copy)" and forces `status: "draft"`. So it creates a draft and
|
|
187
203
|
* destroys nothing: a confirm dialog on a non-destructive action trains
|
|
188
204
|
* people to dismiss confirm dialogs.
|
|
@@ -198,7 +214,7 @@ export const ACTIONS = {
|
|
|
198
214
|
ariaLabel: "Duplicate this listing as a draft",
|
|
199
215
|
description: "Copy this listing into a new draft, without its bids, analytics or group membership.",
|
|
200
216
|
kind: "secondary",
|
|
201
|
-
|
|
217
|
+
roles: ["admin"],
|
|
202
218
|
},
|
|
203
219
|
"add-to-cart": {
|
|
204
220
|
iconKey: "cart",
|
|
@@ -207,7 +223,7 @@ export const ACTIONS = {
|
|
|
207
223
|
ariaLabel: "Add to cart",
|
|
208
224
|
description: "Add a standard listing to the buyer's cart.",
|
|
209
225
|
kind: "primary",
|
|
210
|
-
listingTypeScope: ["standard", "pre-order", "
|
|
226
|
+
listingTypeScope: ["standard", "pre-order", "clearance", "digital-code", "live"],
|
|
211
227
|
},
|
|
212
228
|
"buy-now": {
|
|
213
229
|
iconKey: "cart",
|
|
@@ -272,50 +288,50 @@ export const ACTIONS = {
|
|
|
272
288
|
/*
|
|
273
289
|
* Scope corrected 2026-08-31: this was `["classified"]`, but the button it
|
|
274
290
|
* labels (`MakeOfferButton`) mounts on every type whose capability says
|
|
275
|
-
* `canMakeOffer` — which is standard
|
|
291
|
+
* `canMakeOffer` — which is standard and art-and-stickers as well. On
|
|
276
292
|
* classified specifically it is the ONLY purchase path, and a seller who
|
|
277
293
|
* has not opted into haggling receives a request to buy at the asking
|
|
278
294
|
* price rather than a lower offer.
|
|
279
295
|
*/
|
|
280
296
|
description: "Propose a price to the seller, or request to buy at the asking price.",
|
|
281
297
|
kind: "secondary",
|
|
282
|
-
listingTypeScope: ["standard", "classified", "art
|
|
298
|
+
listingTypeScope: ["standard", "classified", "art-and-stickers"],
|
|
283
299
|
},
|
|
284
300
|
},
|
|
285
|
-
|
|
301
|
+
COLLECTOR_DROP: {
|
|
286
302
|
"place-bid": {
|
|
287
303
|
iconKey: "bid",
|
|
288
|
-
id: "
|
|
304
|
+
id: "collectorDrop.place-bid",
|
|
289
305
|
label: "Place bid",
|
|
290
|
-
description: "Submit a bid on
|
|
306
|
+
description: "Submit a bid on a collector drop listing.",
|
|
291
307
|
kind: "primary",
|
|
292
|
-
listingTypeScope: ["
|
|
308
|
+
listingTypeScope: ["collector-drop"],
|
|
293
309
|
},
|
|
294
310
|
"buy-it-now": {
|
|
295
311
|
iconKey: "cart",
|
|
296
|
-
id: "
|
|
312
|
+
id: "collectorDrop.buy-it-now",
|
|
297
313
|
label: "Buy It Now",
|
|
298
|
-
description: "Claim the listing at the buy-now price (SB-UNI-H). Offered while the
|
|
314
|
+
description: "Claim the listing at the buy-now price (SB-UNI-H). Offered while the collector drop is unsold, before its end date, and while the buy-now price still beats the standing bid. Places a bid at that price plus a 1h locked cart line — the collector drop stays live until the buyer pays.",
|
|
299
315
|
kind: "secondary",
|
|
300
|
-
listingTypeScope: ["
|
|
316
|
+
listingTypeScope: ["collector-drop"],
|
|
301
317
|
},
|
|
302
318
|
"watch": {
|
|
303
319
|
iconKey: "view",
|
|
304
|
-
id: "
|
|
305
|
-
label: "Watch
|
|
306
|
-
ariaLabel: "Watch this
|
|
307
|
-
description: "Subscribe to bid activity and ending-soon alerts for this
|
|
320
|
+
id: "collectorDrop.watch",
|
|
321
|
+
label: "Watch collector drop",
|
|
322
|
+
ariaLabel: "Watch this collector drop",
|
|
323
|
+
description: "Subscribe to bid activity and ending-soon alerts for this collector drop.",
|
|
308
324
|
kind: "ghost",
|
|
309
|
-
listingTypeScope: ["
|
|
325
|
+
listingTypeScope: ["collector-drop"],
|
|
310
326
|
},
|
|
311
327
|
"unwatch": {
|
|
312
328
|
iconKey: "hide",
|
|
313
|
-
id: "
|
|
329
|
+
id: "collectorDrop.unwatch",
|
|
314
330
|
label: "Watching",
|
|
315
|
-
ariaLabel: "Stop watching this
|
|
316
|
-
description: "Unsubscribe from bid activity alerts for this
|
|
331
|
+
ariaLabel: "Stop watching this collector drop",
|
|
332
|
+
description: "Unsubscribe from bid activity alerts for this collector drop.",
|
|
317
333
|
kind: "ghost",
|
|
318
|
-
listingTypeScope: ["
|
|
334
|
+
listingTypeScope: ["collector-drop"],
|
|
319
335
|
},
|
|
320
336
|
},
|
|
321
337
|
PRE_ORDER: {
|
|
@@ -350,30 +366,30 @@ export const ACTIONS = {
|
|
|
350
366
|
},
|
|
351
367
|
},
|
|
352
368
|
},
|
|
353
|
-
|
|
369
|
+
CLEARANCE: {
|
|
354
370
|
"buy-now": {
|
|
355
371
|
iconKey: "cart",
|
|
356
|
-
id: "
|
|
372
|
+
id: "clearance.buy-now",
|
|
357
373
|
label: "Buy now",
|
|
358
|
-
description: "Purchase a
|
|
374
|
+
description: "Purchase a clearance entry directly (buyout — skips cart, goes to checkout).",
|
|
359
375
|
kind: "primary",
|
|
360
|
-
listingTypeScope: ["
|
|
376
|
+
listingTypeScope: ["clearance"],
|
|
361
377
|
},
|
|
362
378
|
"enter-draw": {
|
|
363
379
|
iconKey: "confirm",
|
|
364
|
-
id: "
|
|
365
|
-
label: "
|
|
366
|
-
description: "
|
|
380
|
+
id: "clearance.enter-draw",
|
|
381
|
+
label: "Claim a lot",
|
|
382
|
+
description: "Buy a lot — you receive a real item, allocated at random.",
|
|
367
383
|
kind: "secondary",
|
|
368
|
-
listingTypeScope: ["
|
|
384
|
+
listingTypeScope: ["clearance"],
|
|
369
385
|
},
|
|
370
386
|
"reveal-code": {
|
|
371
387
|
iconKey: "view",
|
|
372
|
-
id: "
|
|
388
|
+
id: "clearance.reveal-code",
|
|
373
389
|
label: "Reveal code",
|
|
374
|
-
description: "Reveal the buyer's
|
|
390
|
+
description: "Reveal the buyer's clearance redemption code.",
|
|
375
391
|
kind: "primary",
|
|
376
|
-
listingTypeScope: ["
|
|
392
|
+
listingTypeScope: ["clearance"],
|
|
377
393
|
},
|
|
378
394
|
},
|
|
379
395
|
/*
|
|
@@ -428,7 +444,7 @@ export const ACTIONS = {
|
|
|
428
444
|
ariaLabel: "Edit bundle",
|
|
429
445
|
description: "Edit this bundle.",
|
|
430
446
|
kind: "secondary",
|
|
431
|
-
|
|
447
|
+
roles: ["admin", "seller"],
|
|
432
448
|
categoryTypeScope: ["bundle"],
|
|
433
449
|
},
|
|
434
450
|
delete: {
|
|
@@ -438,7 +454,7 @@ export const ACTIONS = {
|
|
|
438
454
|
ariaLabel: "Delete bundle",
|
|
439
455
|
description: "Permanently delete this bundle.",
|
|
440
456
|
kind: "danger",
|
|
441
|
-
|
|
457
|
+
roles: ["admin", "seller"],
|
|
442
458
|
categoryTypeScope: ["bundle"],
|
|
443
459
|
confirmation: {
|
|
444
460
|
title: "Delete this bundle?",
|
|
@@ -447,6 +463,24 @@ export const ACTIONS = {
|
|
|
447
463
|
confirmKind: "danger",
|
|
448
464
|
},
|
|
449
465
|
},
|
|
466
|
+
/*
|
|
467
|
+
* Phase 10 ("widget descriptors") — non-destructive, no confirmation.
|
|
468
|
+
* Records an `adminRow` RecentEntry via `recordVisit`; never a write to
|
|
469
|
+
* the bundle document itself. BUNDLE is one of only 5 `AdminRowResource`
|
|
470
|
+
* values (the others: CLEARANCE, BEY, PART, SUBLISTING) — the ones
|
|
471
|
+
* whose admin view resolves a row to a real URL via `rowHrefTemplate`,
|
|
472
|
+
* per `recent-entry.ts`'s own doc comment on why most resources are NOT
|
|
473
|
+
* eligible (`renderEditor`/`onRowClick` drawers have no URL to pin).
|
|
474
|
+
*/
|
|
475
|
+
"pin-to-dashboard": {
|
|
476
|
+
iconKey: "save",
|
|
477
|
+
id: "bundle.pin-to-dashboard",
|
|
478
|
+
label: "Pin to dashboard",
|
|
479
|
+
ariaLabel: "Pin this bundle to the dashboard",
|
|
480
|
+
description: "Adds this bundle as a recency card on your dashboard landing — findable and reopenable without the admin table.",
|
|
481
|
+
kind: "secondary",
|
|
482
|
+
roles: ["admin"],
|
|
483
|
+
},
|
|
450
484
|
},
|
|
451
485
|
/*
|
|
452
486
|
* These four buckets were literally `{}` for months while their editors
|
|
@@ -473,7 +507,7 @@ export const ACTIONS = {
|
|
|
473
507
|
ariaLabel: "Create a new grouped listing",
|
|
474
508
|
description: "Create a new grouped listing.",
|
|
475
509
|
kind: "primary",
|
|
476
|
-
|
|
510
|
+
roles: ["admin"],
|
|
477
511
|
},
|
|
478
512
|
edit: {
|
|
479
513
|
iconKey: "edit",
|
|
@@ -482,7 +516,7 @@ export const ACTIONS = {
|
|
|
482
516
|
ariaLabel: "Edit grouped listing",
|
|
483
517
|
description: "Edit this grouped listing.",
|
|
484
518
|
kind: "secondary",
|
|
485
|
-
|
|
519
|
+
roles: ["admin"],
|
|
486
520
|
},
|
|
487
521
|
delete: {
|
|
488
522
|
iconKey: "delete",
|
|
@@ -491,7 +525,7 @@ export const ACTIONS = {
|
|
|
491
525
|
ariaLabel: "Delete grouped listing",
|
|
492
526
|
description: "Permanently delete this grouped listing.",
|
|
493
527
|
kind: "danger",
|
|
494
|
-
|
|
528
|
+
roles: ["admin"],
|
|
495
529
|
confirmation: {
|
|
496
530
|
title: "Delete this grouped listing?",
|
|
497
531
|
body: "This cannot be undone. Member listings are not deleted — only the group that ties them together.",
|
|
@@ -531,7 +565,7 @@ export const ACTIONS = {
|
|
|
531
565
|
ariaLabel: "Edit part",
|
|
532
566
|
description: "Correct this part's recorded details. The correction is kept when the database is regenerated.",
|
|
533
567
|
kind: "secondary",
|
|
534
|
-
|
|
568
|
+
roles: ["admin"],
|
|
535
569
|
},
|
|
536
570
|
delete: {
|
|
537
571
|
iconKey: "delete",
|
|
@@ -540,7 +574,7 @@ export const ACTIONS = {
|
|
|
540
574
|
ariaLabel: "Delete part",
|
|
541
575
|
description: "Remove this part from the live database.",
|
|
542
576
|
kind: "danger",
|
|
543
|
-
|
|
577
|
+
roles: ["admin"],
|
|
544
578
|
confirmation: {
|
|
545
579
|
title: "Remove this part from the live database?",
|
|
546
580
|
body: "Beyblades built from it keep their parts list and will show its name without a link. " +
|
|
@@ -572,7 +606,7 @@ export const ACTIONS = {
|
|
|
572
606
|
ariaLabel: "Edit FAQ",
|
|
573
607
|
description: "Correct this question or its answer.",
|
|
574
608
|
kind: "secondary",
|
|
575
|
-
|
|
609
|
+
roles: ["admin"],
|
|
576
610
|
},
|
|
577
611
|
delete: {
|
|
578
612
|
iconKey: "delete",
|
|
@@ -581,7 +615,7 @@ export const ACTIONS = {
|
|
|
581
615
|
ariaLabel: "Delete FAQ",
|
|
582
616
|
description: "Remove this question from the help centre.",
|
|
583
617
|
kind: "danger",
|
|
584
|
-
|
|
618
|
+
roles: ["admin"],
|
|
585
619
|
confirmation: {
|
|
586
620
|
title: "Remove this question from the help centre?",
|
|
587
621
|
/*
|
|
@@ -613,7 +647,7 @@ export const ACTIONS = {
|
|
|
613
647
|
ariaLabel: "Edit Beyblade",
|
|
614
648
|
description: "Correct this Beyblade's recorded details. The correction is kept when the database is regenerated.",
|
|
615
649
|
kind: "secondary",
|
|
616
|
-
|
|
650
|
+
roles: ["admin"],
|
|
617
651
|
},
|
|
618
652
|
delete: {
|
|
619
653
|
iconKey: "delete",
|
|
@@ -622,7 +656,7 @@ export const ACTIONS = {
|
|
|
622
656
|
ariaLabel: "Delete Beyblade",
|
|
623
657
|
description: "Remove this Beyblade from the live database.",
|
|
624
658
|
kind: "danger",
|
|
625
|
-
|
|
659
|
+
roles: ["admin"],
|
|
626
660
|
confirmation: {
|
|
627
661
|
title: "Remove this Beyblade from the live database?",
|
|
628
662
|
body: "Its category page and any listings under it are not touched, and boxed sets that include " +
|
|
@@ -649,7 +683,7 @@ export const ACTIONS = {
|
|
|
649
683
|
ariaLabel: "Create a new category",
|
|
650
684
|
description: "Create a new category.",
|
|
651
685
|
kind: "primary",
|
|
652
|
-
|
|
686
|
+
roles: ["admin"],
|
|
653
687
|
categoryTypeScope: ["category"],
|
|
654
688
|
},
|
|
655
689
|
edit: {
|
|
@@ -659,7 +693,7 @@ export const ACTIONS = {
|
|
|
659
693
|
ariaLabel: "Edit category",
|
|
660
694
|
description: "Edit this category.",
|
|
661
695
|
kind: "secondary",
|
|
662
|
-
|
|
696
|
+
roles: ["admin"],
|
|
663
697
|
categoryTypeScope: ["category"],
|
|
664
698
|
},
|
|
665
699
|
delete: {
|
|
@@ -669,7 +703,7 @@ export const ACTIONS = {
|
|
|
669
703
|
ariaLabel: "Delete category",
|
|
670
704
|
description: "Permanently delete this category.",
|
|
671
705
|
kind: "danger",
|
|
672
|
-
|
|
706
|
+
roles: ["admin"],
|
|
673
707
|
confirmation: {
|
|
674
708
|
title: "Delete this category?",
|
|
675
709
|
body: "This cannot be undone. Listings filed under it are not deleted, but they will no longer appear on this category page.",
|
|
@@ -695,7 +729,7 @@ export const ACTIONS = {
|
|
|
695
729
|
ariaLabel: "Create a new brand",
|
|
696
730
|
description: "Create a new brand.",
|
|
697
731
|
kind: "primary",
|
|
698
|
-
|
|
732
|
+
roles: ["admin"],
|
|
699
733
|
categoryTypeScope: ["brand"],
|
|
700
734
|
},
|
|
701
735
|
edit: {
|
|
@@ -705,7 +739,7 @@ export const ACTIONS = {
|
|
|
705
739
|
ariaLabel: "Edit brand",
|
|
706
740
|
description: "Edit this brand.",
|
|
707
741
|
kind: "secondary",
|
|
708
|
-
|
|
742
|
+
roles: ["admin"],
|
|
709
743
|
categoryTypeScope: ["brand"],
|
|
710
744
|
},
|
|
711
745
|
delete: {
|
|
@@ -715,7 +749,7 @@ export const ACTIONS = {
|
|
|
715
749
|
ariaLabel: "Delete brand",
|
|
716
750
|
description: "Permanently delete this brand.",
|
|
717
751
|
kind: "danger",
|
|
718
|
-
|
|
752
|
+
roles: ["admin"],
|
|
719
753
|
confirmation: {
|
|
720
754
|
title: "Delete this brand?",
|
|
721
755
|
body: "This cannot be undone. Products keep their `brand` string, so they will be orphaned from every brand page until re-filed.",
|
|
@@ -741,7 +775,7 @@ export const ACTIONS = {
|
|
|
741
775
|
ariaLabel: "Create a new sub-listing",
|
|
742
776
|
description: "Create a new sub-listing.",
|
|
743
777
|
kind: "primary",
|
|
744
|
-
|
|
778
|
+
roles: ["admin"],
|
|
745
779
|
categoryTypeScope: ["sublisting"],
|
|
746
780
|
},
|
|
747
781
|
edit: {
|
|
@@ -751,7 +785,7 @@ export const ACTIONS = {
|
|
|
751
785
|
ariaLabel: "Edit sub-listing",
|
|
752
786
|
description: "Edit this sub-listing.",
|
|
753
787
|
kind: "secondary",
|
|
754
|
-
|
|
788
|
+
roles: ["admin"],
|
|
755
789
|
categoryTypeScope: ["sublisting"],
|
|
756
790
|
},
|
|
757
791
|
delete: {
|
|
@@ -761,7 +795,7 @@ export const ACTIONS = {
|
|
|
761
795
|
ariaLabel: "Delete sub-listing",
|
|
762
796
|
description: "Permanently delete this sub-listing.",
|
|
763
797
|
kind: "danger",
|
|
764
|
-
|
|
798
|
+
roles: ["admin"],
|
|
765
799
|
confirmation: {
|
|
766
800
|
title: "Delete this sub-listing?",
|
|
767
801
|
body: "This cannot be undone.",
|
|
@@ -819,7 +853,7 @@ export const ACTIONS = {
|
|
|
819
853
|
ariaLabel: "Fill the description from this category template",
|
|
820
854
|
description: "Fill the description field from the category's description template, with the listing's own details interpolated.",
|
|
821
855
|
kind: "secondary",
|
|
822
|
-
|
|
856
|
+
roles: ["seller", "admin"],
|
|
823
857
|
},
|
|
824
858
|
"replace-description": {
|
|
825
859
|
iconKey: "edit",
|
|
@@ -837,7 +871,7 @@ export const ACTIONS = {
|
|
|
837
871
|
* with the action and is translatable.
|
|
838
872
|
*/
|
|
839
873
|
kind: "danger",
|
|
840
|
-
|
|
874
|
+
roles: ["seller", "admin"],
|
|
841
875
|
confirmation: {
|
|
842
876
|
title: "Replace what you have written?",
|
|
843
877
|
body: "The description you typed will be overwritten by the category template. This cannot be undone.",
|
|
@@ -853,7 +887,7 @@ export const ACTIONS = {
|
|
|
853
887
|
ariaLabel: "Accept this offer",
|
|
854
888
|
description: "Accept a buyer's offer on a classified listing.",
|
|
855
889
|
kind: "primary",
|
|
856
|
-
|
|
890
|
+
roles: ["seller", "admin"],
|
|
857
891
|
},
|
|
858
892
|
"reject-offer": {
|
|
859
893
|
iconKey: "reject",
|
|
@@ -862,7 +896,7 @@ export const ACTIONS = {
|
|
|
862
896
|
ariaLabel: "Reject this offer",
|
|
863
897
|
description: "Reject a buyer's offer on a classified listing.",
|
|
864
898
|
kind: "danger",
|
|
865
|
-
|
|
899
|
+
roles: ["seller", "admin"],
|
|
866
900
|
confirmation: {
|
|
867
901
|
title: "Reject this offer?",
|
|
868
902
|
body: "The buyer will be notified that their offer was declined.",
|
|
@@ -877,7 +911,7 @@ export const ACTIONS = {
|
|
|
877
911
|
ariaLabel: "Counter this offer",
|
|
878
912
|
description: "Send a counter-offer to the buyer.",
|
|
879
913
|
kind: "secondary",
|
|
880
|
-
|
|
914
|
+
roles: ["seller", "admin"],
|
|
881
915
|
},
|
|
882
916
|
// ── Payout view ──────────────────────────────────────────────────────
|
|
883
917
|
"view-payout": {
|
|
@@ -887,7 +921,7 @@ export const ACTIONS = {
|
|
|
887
921
|
ariaLabel: "View payout details",
|
|
888
922
|
description: "View the details of a payout.",
|
|
889
923
|
kind: "ghost",
|
|
890
|
-
|
|
924
|
+
roles: ["seller", "admin"],
|
|
891
925
|
},
|
|
892
926
|
"export-payout": {
|
|
893
927
|
iconKey: "export",
|
|
@@ -896,7 +930,7 @@ export const ACTIONS = {
|
|
|
896
930
|
ariaLabel: "Export payout details",
|
|
897
931
|
description: "Download payout details as a file.",
|
|
898
932
|
kind: "ghost",
|
|
899
|
-
|
|
933
|
+
roles: ["seller", "admin"],
|
|
900
934
|
},
|
|
901
935
|
"set-payout-reminder": {
|
|
902
936
|
iconKey: "settings",
|
|
@@ -905,7 +939,7 @@ export const ACTIONS = {
|
|
|
905
939
|
ariaLabel: "Toggle a follow-up reminder on this payout",
|
|
906
940
|
description: "Flag this payout for a personal follow-up reminder.",
|
|
907
941
|
kind: "ghost",
|
|
908
|
-
|
|
942
|
+
roles: ["seller"],
|
|
909
943
|
},
|
|
910
944
|
// ── Review management ───────────────────────────────────────────────
|
|
911
945
|
"reply-review": {
|
|
@@ -915,7 +949,7 @@ export const ACTIONS = {
|
|
|
915
949
|
ariaLabel: "Reply to this review",
|
|
916
950
|
description: "Post or edit a public store reply to a buyer's review.",
|
|
917
951
|
kind: "secondary",
|
|
918
|
-
|
|
952
|
+
roles: ["seller", "admin"],
|
|
919
953
|
},
|
|
920
954
|
"contest-review": {
|
|
921
955
|
iconKey: "report",
|
|
@@ -924,7 +958,7 @@ export const ACTIONS = {
|
|
|
924
958
|
ariaLabel: "Contest this review",
|
|
925
959
|
description: "Flag a review for admin investigation.",
|
|
926
960
|
kind: "ghost",
|
|
927
|
-
|
|
961
|
+
roles: ["seller", "admin"],
|
|
928
962
|
},
|
|
929
963
|
"buyer-feedback": {
|
|
930
964
|
iconKey: "message",
|
|
@@ -933,7 +967,7 @@ export const ACTIONS = {
|
|
|
933
967
|
ariaLabel: "Send feedback to buyer",
|
|
934
968
|
description: "Send a private message to the buyer's notification inbox.",
|
|
935
969
|
kind: "ghost",
|
|
936
|
-
|
|
970
|
+
roles: ["seller", "admin"],
|
|
937
971
|
},
|
|
938
972
|
// ── WhatsApp integration ────────────────────────────────────────────
|
|
939
973
|
"whatsapp-connect": {
|
|
@@ -943,7 +977,7 @@ export const ACTIONS = {
|
|
|
943
977
|
ariaLabel: "Save WhatsApp credentials and connect",
|
|
944
978
|
description: "Save WhatsApp Business credentials and establish connection.",
|
|
945
979
|
kind: "primary",
|
|
946
|
-
|
|
980
|
+
roles: ["seller", "admin"],
|
|
947
981
|
},
|
|
948
982
|
"whatsapp-catalog-sync": {
|
|
949
983
|
iconKey: "retry",
|
|
@@ -952,7 +986,7 @@ export const ACTIONS = {
|
|
|
952
986
|
ariaLabel: "Sync products to WhatsApp catalog",
|
|
953
987
|
description: "Push published standard products to WhatsApp Business Catalog.",
|
|
954
988
|
kind: "secondary",
|
|
955
|
-
|
|
989
|
+
roles: ["seller", "admin"],
|
|
956
990
|
},
|
|
957
991
|
"whatsapp-catalog-import": {
|
|
958
992
|
iconKey: "upload",
|
|
@@ -961,7 +995,7 @@ export const ACTIONS = {
|
|
|
961
995
|
ariaLabel: "Import products from WhatsApp catalog",
|
|
962
996
|
description: "Import products from WhatsApp Catalog as drafts.",
|
|
963
997
|
kind: "secondary",
|
|
964
|
-
|
|
998
|
+
roles: ["seller", "admin"],
|
|
965
999
|
},
|
|
966
1000
|
// ── Google Reviews integration ──────────────────────────────────────
|
|
967
1001
|
"google-reviews-sync": {
|
|
@@ -971,7 +1005,7 @@ export const ACTIONS = {
|
|
|
971
1005
|
ariaLabel: "Sync Google Business reviews",
|
|
972
1006
|
description: "Pull latest reviews from Google Business profile.",
|
|
973
1007
|
kind: "ghost",
|
|
974
|
-
|
|
1008
|
+
roles: ["seller", "admin"],
|
|
975
1009
|
},
|
|
976
1010
|
"save-google-settings": {
|
|
977
1011
|
iconKey: "save",
|
|
@@ -980,7 +1014,7 @@ export const ACTIONS = {
|
|
|
980
1014
|
ariaLabel: "Save Google Business settings",
|
|
981
1015
|
description: "Save Google Business profile configuration.",
|
|
982
1016
|
kind: "primary",
|
|
983
|
-
|
|
1017
|
+
roles: ["seller", "admin"],
|
|
984
1018
|
},
|
|
985
1019
|
// ── Refresh ─────────────────────────────────────────────────────────
|
|
986
1020
|
"refresh-offers": {
|
|
@@ -990,7 +1024,7 @@ export const ACTIONS = {
|
|
|
990
1024
|
ariaLabel: "Refresh offers list",
|
|
991
1025
|
description: "Reload latest offers and statuses.",
|
|
992
1026
|
kind: "ghost",
|
|
993
|
-
|
|
1027
|
+
roles: ["seller", "admin"],
|
|
994
1028
|
},
|
|
995
1029
|
"edit-listing": {
|
|
996
1030
|
iconKey: "edit",
|
|
@@ -999,7 +1033,7 @@ export const ACTIONS = {
|
|
|
999
1033
|
ariaLabel: "Edit listing",
|
|
1000
1034
|
description: "Navigate to the edit form for this store listing.",
|
|
1001
1035
|
kind: "ghost",
|
|
1002
|
-
|
|
1036
|
+
roles: ["seller", "admin"],
|
|
1003
1037
|
},
|
|
1004
1038
|
"delete-listing": {
|
|
1005
1039
|
iconKey: "delete",
|
|
@@ -1008,7 +1042,7 @@ export const ACTIONS = {
|
|
|
1008
1042
|
ariaLabel: "Delete listing",
|
|
1009
1043
|
description: "Permanently delete this store listing.",
|
|
1010
1044
|
kind: "danger",
|
|
1011
|
-
|
|
1045
|
+
roles: ["seller", "admin"],
|
|
1012
1046
|
confirmation: {
|
|
1013
1047
|
title: "Delete listing?",
|
|
1014
1048
|
body: "This listing will be permanently removed. This action cannot be undone.",
|
|
@@ -1022,7 +1056,7 @@ export const ACTIONS = {
|
|
|
1022
1056
|
label: "Publish",
|
|
1023
1057
|
description: "Make this listing visible to buyers.",
|
|
1024
1058
|
kind: "primary",
|
|
1025
|
-
|
|
1059
|
+
roles: ["seller", "admin"],
|
|
1026
1060
|
},
|
|
1027
1061
|
"unpublish-listing": {
|
|
1028
1062
|
iconKey: "hide",
|
|
@@ -1030,7 +1064,7 @@ export const ACTIONS = {
|
|
|
1030
1064
|
label: "Unpublish",
|
|
1031
1065
|
description: "Hide this listing from buyers.",
|
|
1032
1066
|
kind: "secondary",
|
|
1033
|
-
|
|
1067
|
+
roles: ["seller", "admin"],
|
|
1034
1068
|
},
|
|
1035
1069
|
"mark-shipped": {
|
|
1036
1070
|
iconKey: "ship",
|
|
@@ -1038,7 +1072,7 @@ export const ACTIONS = {
|
|
|
1038
1072
|
label: "Mark as shipped",
|
|
1039
1073
|
description: "Update an order status to shipped and enter tracking info.",
|
|
1040
1074
|
kind: "primary",
|
|
1041
|
-
|
|
1075
|
+
roles: ["seller", "admin"],
|
|
1042
1076
|
},
|
|
1043
1077
|
"dispatch-custom": {
|
|
1044
1078
|
iconKey: "ship",
|
|
@@ -1047,7 +1081,7 @@ export const ACTIONS = {
|
|
|
1047
1081
|
ariaLabel: "Record a parcel you posted yourself",
|
|
1048
1082
|
description: "Record the carrier and tracking id for a parcel the seller posted themselves.",
|
|
1049
1083
|
kind: "primary",
|
|
1050
|
-
|
|
1084
|
+
roles: ["seller", "admin"],
|
|
1051
1085
|
},
|
|
1052
1086
|
"dispatch-platform": {
|
|
1053
1087
|
iconKey: "ship",
|
|
@@ -1056,7 +1090,7 @@ export const ACTIONS = {
|
|
|
1056
1090
|
ariaLabel: "Book this parcel through the platform's courier account",
|
|
1057
1091
|
description: "Book a pickup on the platform's own carrier account. The tracking id comes back from the courier.",
|
|
1058
1092
|
kind: "primary",
|
|
1059
|
-
|
|
1093
|
+
roles: ["seller", "admin"],
|
|
1060
1094
|
/*
|
|
1061
1095
|
* 🛑 Confirmed because it SPENDS MONEY and cannot be undone from this
|
|
1062
1096
|
* screen. A booking debits the platform's carrier wallet and schedules
|
|
@@ -1077,7 +1111,7 @@ export const ACTIONS = {
|
|
|
1077
1111
|
ariaLabel: "Mark this EMI installment as paid",
|
|
1078
1112
|
description: "Record collection of one EMI installment after verifying the buyer's manual transfer proof.",
|
|
1079
1113
|
kind: "primary",
|
|
1080
|
-
|
|
1114
|
+
roles: ["seller", "admin"],
|
|
1081
1115
|
confirmation: {
|
|
1082
1116
|
title: "Mark this installment as paid?",
|
|
1083
1117
|
body: "This confirms the buyer's payment was received and verified. The order becomes eligible to ship once every installment is marked paid.",
|
|
@@ -1091,7 +1125,7 @@ export const ACTIONS = {
|
|
|
1091
1125
|
label: "Request payout",
|
|
1092
1126
|
description: "Submit a payout request for available store earnings.",
|
|
1093
1127
|
kind: "primary",
|
|
1094
|
-
|
|
1128
|
+
roles: ["seller"],
|
|
1095
1129
|
},
|
|
1096
1130
|
"save-changes": {
|
|
1097
1131
|
iconKey: "save",
|
|
@@ -1099,7 +1133,7 @@ export const ACTIONS = {
|
|
|
1099
1133
|
label: "Save changes",
|
|
1100
1134
|
description: "Submit the store listing or settings form.",
|
|
1101
1135
|
kind: "primary",
|
|
1102
|
-
|
|
1136
|
+
roles: ["seller", "admin"],
|
|
1103
1137
|
},
|
|
1104
1138
|
"print-labels": {
|
|
1105
1139
|
iconKey: "export",
|
|
@@ -1108,7 +1142,7 @@ export const ACTIONS = {
|
|
|
1108
1142
|
ariaLabel: "Print inventory labels for selected products",
|
|
1109
1143
|
description: "Open the print page for inventory labels for the selected products.",
|
|
1110
1144
|
kind: "secondary",
|
|
1111
|
-
|
|
1145
|
+
roles: ["seller", "admin"],
|
|
1112
1146
|
},
|
|
1113
1147
|
/*
|
|
1114
1148
|
* D13 — assemble a complete bey from component listings, and part one back
|
|
@@ -1125,7 +1159,7 @@ export const ACTIONS = {
|
|
|
1125
1159
|
ariaLabel: "Build this listing from component parts in your inventory",
|
|
1126
1160
|
description: "Build one or more of this listing from parts you already hold. Each component's stock is decremented; units already reserved by unpaid orders are never consumed.",
|
|
1127
1161
|
kind: "secondary",
|
|
1128
|
-
|
|
1162
|
+
roles: ["seller", "admin"],
|
|
1129
1163
|
},
|
|
1130
1164
|
"part-out-listing": {
|
|
1131
1165
|
iconKey: "delete",
|
|
@@ -1134,7 +1168,7 @@ export const ACTIONS = {
|
|
|
1134
1168
|
ariaLabel: "Break this listing down into its component parts",
|
|
1135
1169
|
description: "Break this listing down and add its parts back to inventory. The complete listing's stock is decremented.",
|
|
1136
1170
|
kind: "danger",
|
|
1137
|
-
|
|
1171
|
+
roles: ["seller", "admin"],
|
|
1138
1172
|
confirmation: {
|
|
1139
1173
|
title: "Part this out?",
|
|
1140
1174
|
/*
|
|
@@ -1153,7 +1187,7 @@ export const ACTIONS = {
|
|
|
1153
1187
|
ariaLabel: "Set stock quantity for selected products",
|
|
1154
1188
|
description: "Set the same stock quantity on every selected listing. Units already reserved by unpaid orders stay reserved.",
|
|
1155
1189
|
kind: "ghost",
|
|
1156
|
-
|
|
1190
|
+
roles: ["seller", "admin"],
|
|
1157
1191
|
},
|
|
1158
1192
|
"set-location": {
|
|
1159
1193
|
iconKey: "settings",
|
|
@@ -1162,7 +1196,7 @@ export const ACTIONS = {
|
|
|
1162
1196
|
ariaLabel: "Set physical storage location for selected items",
|
|
1163
1197
|
description: "Assign zone, shelf, and bin for the selected inventory items.",
|
|
1164
1198
|
kind: "ghost",
|
|
1165
|
-
|
|
1199
|
+
roles: ["seller", "admin"],
|
|
1166
1200
|
},
|
|
1167
1201
|
"print-packing-slips": {
|
|
1168
1202
|
iconKey: "export",
|
|
@@ -1171,7 +1205,7 @@ export const ACTIONS = {
|
|
|
1171
1205
|
ariaLabel: "Print packing slips for selected orders",
|
|
1172
1206
|
description: "Open the print page for packing slip labels for the selected orders.",
|
|
1173
1207
|
kind: "secondary",
|
|
1174
|
-
|
|
1208
|
+
roles: ["seller", "admin"],
|
|
1175
1209
|
},
|
|
1176
1210
|
"open-print-center": {
|
|
1177
1211
|
iconKey: "view",
|
|
@@ -1180,7 +1214,7 @@ export const ACTIONS = {
|
|
|
1180
1214
|
ariaLabel: "Open the Print & Label Center",
|
|
1181
1215
|
description: "Open the Print & Label Center for this store.",
|
|
1182
1216
|
kind: "ghost",
|
|
1183
|
-
|
|
1217
|
+
roles: ["seller", "admin"],
|
|
1184
1218
|
},
|
|
1185
1219
|
// SB-UNI-W follow-up (plan §7) — leaves for the 11 unwired store-dashboard
|
|
1186
1220
|
// form/row CTAs identified by the W-3 sweep.
|
|
@@ -1191,7 +1225,7 @@ export const ACTIONS = {
|
|
|
1191
1225
|
ariaLabel: "Create a new product template",
|
|
1192
1226
|
description: "Submit the new-template form.",
|
|
1193
1227
|
kind: "primary",
|
|
1194
|
-
|
|
1228
|
+
roles: ["seller", "admin"],
|
|
1195
1229
|
},
|
|
1196
1230
|
"update-template": {
|
|
1197
1231
|
iconKey: "edit",
|
|
@@ -1200,7 +1234,7 @@ export const ACTIONS = {
|
|
|
1200
1234
|
ariaLabel: "Save changes to template",
|
|
1201
1235
|
description: "Submit the edit-template form.",
|
|
1202
1236
|
kind: "primary",
|
|
1203
|
-
|
|
1237
|
+
roles: ["seller", "admin"],
|
|
1204
1238
|
},
|
|
1205
1239
|
"edit-template": {
|
|
1206
1240
|
iconKey: "edit",
|
|
@@ -1209,7 +1243,7 @@ export const ACTIONS = {
|
|
|
1209
1243
|
ariaLabel: "Edit template",
|
|
1210
1244
|
description: "Open the edit-template drawer for this row.",
|
|
1211
1245
|
kind: "ghost",
|
|
1212
|
-
|
|
1246
|
+
roles: ["seller", "admin"],
|
|
1213
1247
|
},
|
|
1214
1248
|
"delete-template": {
|
|
1215
1249
|
iconKey: "delete",
|
|
@@ -1218,7 +1252,7 @@ export const ACTIONS = {
|
|
|
1218
1252
|
ariaLabel: "Delete template",
|
|
1219
1253
|
description: "Permanently remove this template.",
|
|
1220
1254
|
kind: "danger",
|
|
1221
|
-
|
|
1255
|
+
roles: ["seller", "admin"],
|
|
1222
1256
|
confirmation: {
|
|
1223
1257
|
title: "Delete template?",
|
|
1224
1258
|
body: "This template will be permanently removed. Existing products created from it are unaffected. This action cannot be undone.",
|
|
@@ -1233,7 +1267,7 @@ export const ACTIONS = {
|
|
|
1233
1267
|
ariaLabel: "Create a new bundle",
|
|
1234
1268
|
description: "Submit the new-bundle form.",
|
|
1235
1269
|
kind: "primary",
|
|
1236
|
-
|
|
1270
|
+
roles: ["seller", "admin"],
|
|
1237
1271
|
},
|
|
1238
1272
|
"create-feature": {
|
|
1239
1273
|
iconKey: "create",
|
|
@@ -1242,7 +1276,7 @@ export const ACTIONS = {
|
|
|
1242
1276
|
ariaLabel: "Create a new product feature badge",
|
|
1243
1277
|
description: "Submit the new-feature form.",
|
|
1244
1278
|
kind: "primary",
|
|
1245
|
-
|
|
1279
|
+
roles: ["seller", "admin"],
|
|
1246
1280
|
},
|
|
1247
1281
|
"update-slug": {
|
|
1248
1282
|
iconKey: "edit",
|
|
@@ -1251,7 +1285,7 @@ export const ACTIONS = {
|
|
|
1251
1285
|
ariaLabel: "Update store slug",
|
|
1252
1286
|
description: "Submit the slug-change form. Caution: existing links will redirect.",
|
|
1253
1287
|
kind: "primary",
|
|
1254
|
-
|
|
1288
|
+
roles: ["seller", "admin"],
|
|
1255
1289
|
confirmation: {
|
|
1256
1290
|
title: "Update store slug?",
|
|
1257
1291
|
body: "Existing links that reference the old slug will start redirecting. Make sure to update social bios and external listings.",
|
|
@@ -1266,7 +1300,7 @@ export const ACTIONS = {
|
|
|
1266
1300
|
ariaLabel: "Delete sublisting category",
|
|
1267
1301
|
description: "Permanently remove this sublisting category from the store.",
|
|
1268
1302
|
kind: "danger",
|
|
1269
|
-
|
|
1303
|
+
roles: ["seller", "admin"],
|
|
1270
1304
|
confirmation: {
|
|
1271
1305
|
title: "Delete sublisting category?",
|
|
1272
1306
|
body: "Products tagged with this category will lose the tag. This action cannot be undone.",
|
|
@@ -1286,7 +1320,7 @@ export const ACTIONS = {
|
|
|
1286
1320
|
ariaLabel: "Delete this analytics alert",
|
|
1287
1321
|
description: "Permanently removes this alert rule. Past notifications are unaffected.",
|
|
1288
1322
|
kind: "danger",
|
|
1289
|
-
|
|
1323
|
+
roles: ["seller", "admin"],
|
|
1290
1324
|
confirmation: {
|
|
1291
1325
|
title: "Delete this alert?",
|
|
1292
1326
|
body: "You will stop being notified when this rule matches. Alerts already sent are unaffected. This cannot be undone.",
|
|
@@ -1309,7 +1343,7 @@ export const ACTIONS = {
|
|
|
1309
1343
|
ariaLabel: "Open the new-template drawer",
|
|
1310
1344
|
description: "Open the new-template creation drawer.",
|
|
1311
1345
|
kind: "primary",
|
|
1312
|
-
|
|
1346
|
+
roles: ["seller", "admin"],
|
|
1313
1347
|
},
|
|
1314
1348
|
},
|
|
1315
1349
|
BLOG: {
|
|
@@ -1326,7 +1360,7 @@ export const ACTIONS = {
|
|
|
1326
1360
|
ariaLabel: "Duplicate this post as a draft",
|
|
1327
1361
|
description: "Copy this post into a new draft, without its views or featured flag.",
|
|
1328
1362
|
kind: "secondary",
|
|
1329
|
-
|
|
1363
|
+
roles: ["admin"],
|
|
1330
1364
|
},
|
|
1331
1365
|
"create-post": {
|
|
1332
1366
|
iconKey: "create",
|
|
@@ -1335,7 +1369,7 @@ export const ACTIONS = {
|
|
|
1335
1369
|
ariaLabel: "Create a new blog post",
|
|
1336
1370
|
description: "Navigate to the blog post editor.",
|
|
1337
1371
|
kind: "primary",
|
|
1338
|
-
|
|
1372
|
+
roles: ["admin", "moderator"],
|
|
1339
1373
|
},
|
|
1340
1374
|
"edit-post": {
|
|
1341
1375
|
iconKey: "edit",
|
|
@@ -1344,7 +1378,7 @@ export const ACTIONS = {
|
|
|
1344
1378
|
ariaLabel: "Edit this blog post",
|
|
1345
1379
|
description: "Open the editor for a blog post.",
|
|
1346
1380
|
kind: "ghost",
|
|
1347
|
-
|
|
1381
|
+
roles: ["admin", "moderator"],
|
|
1348
1382
|
},
|
|
1349
1383
|
"delete-post": {
|
|
1350
1384
|
iconKey: "delete",
|
|
@@ -1353,7 +1387,7 @@ export const ACTIONS = {
|
|
|
1353
1387
|
ariaLabel: "Delete this blog post",
|
|
1354
1388
|
description: "Permanently delete a blog post.",
|
|
1355
1389
|
kind: "danger",
|
|
1356
|
-
|
|
1390
|
+
roles: ["admin", "moderator"],
|
|
1357
1391
|
confirmation: {
|
|
1358
1392
|
title: "Delete this post?",
|
|
1359
1393
|
body: "This blog post will be permanently removed. This action cannot be undone.",
|
|
@@ -1406,7 +1440,7 @@ export const ACTIONS = {
|
|
|
1406
1440
|
* Clone, admin-only, backed by POST /api/admin/events/[id]/duplicate. A
|
|
1407
1441
|
* recurring sale is the real use case: same copy, same prizes, new dates.
|
|
1408
1442
|
*
|
|
1409
|
-
* 🛑 The endpoint rebuilds every
|
|
1443
|
+
* 🛑 The endpoint rebuilds every giveaway slot from its prize definition and
|
|
1410
1444
|
* resets the booking half — a spread would attribute a real buyer’s
|
|
1411
1445
|
* purchased slot to a brand-new event.
|
|
1412
1446
|
*/
|
|
@@ -1417,7 +1451,7 @@ export const ACTIONS = {
|
|
|
1417
1451
|
ariaLabel: "Duplicate this event as a draft",
|
|
1418
1452
|
description: "Copy this event into a new draft, without its entries, winner or slot bookings.",
|
|
1419
1453
|
kind: "secondary",
|
|
1420
|
-
|
|
1454
|
+
roles: ["admin"],
|
|
1421
1455
|
},
|
|
1422
1456
|
/*
|
|
1423
1457
|
* This bucket had only register / cancel-registration / draw-raffle-winner
|
|
@@ -1432,7 +1466,7 @@ export const ACTIONS = {
|
|
|
1432
1466
|
ariaLabel: "Edit event",
|
|
1433
1467
|
description: "Edit this event.",
|
|
1434
1468
|
kind: "secondary",
|
|
1435
|
-
|
|
1469
|
+
roles: ["admin"],
|
|
1436
1470
|
},
|
|
1437
1471
|
delete: {
|
|
1438
1472
|
iconKey: "delete",
|
|
@@ -1441,7 +1475,7 @@ export const ACTIONS = {
|
|
|
1441
1475
|
ariaLabel: "Delete event",
|
|
1442
1476
|
description: "Permanently delete this event.",
|
|
1443
1477
|
kind: "danger",
|
|
1444
|
-
|
|
1478
|
+
roles: ["admin"],
|
|
1445
1479
|
confirmation: {
|
|
1446
1480
|
title: "Delete this event?",
|
|
1447
1481
|
body: "This cannot be undone. Entries already recorded against it are removed with it, so a participant loses their place.",
|
|
@@ -1472,7 +1506,7 @@ export const ACTIONS = {
|
|
|
1472
1506
|
/*
|
|
1473
1507
|
* The raffle draw. Added 2026-10-19 — before this there was NO control to
|
|
1474
1508
|
* draw a raffle anywhere in the product: the endpoint and its
|
|
1475
|
-
* `ADMIN_ENDPOINTS.
|
|
1509
|
+
* `ADMIN_ENDPOINTS.EVENT_TRIGGER_GIVEAWAY` constant existed with zero
|
|
1476
1510
|
* callers, and the tester case whose step 3 reads "trigger the raffle
|
|
1477
1511
|
* draw" was literally unexecutable.
|
|
1478
1512
|
*
|
|
@@ -1486,14 +1520,14 @@ export const ACTIONS = {
|
|
|
1486
1520
|
"draw-raffle-winner": {
|
|
1487
1521
|
iconKey: "verify",
|
|
1488
1522
|
id: "event.draw-raffle-winner",
|
|
1489
|
-
label: "Draw
|
|
1523
|
+
label: "Draw giveaway winner",
|
|
1490
1524
|
ariaLabel: "Pick a random winner from the approved entries",
|
|
1491
1525
|
description: "Picks one winner at random from this event's approved entries, records them on the event, and notifies them.",
|
|
1492
1526
|
kind: "danger",
|
|
1493
|
-
|
|
1527
|
+
roles: ["admin"],
|
|
1494
1528
|
confirmation: {
|
|
1495
|
-
title: "Draw the
|
|
1496
|
-
body: "One winner will be picked at random from the approved entries, announced on the event page, and notified. A
|
|
1529
|
+
title: "Draw the giveaway winner?",
|
|
1530
|
+
body: "One winner will be picked at random from the approved entries, announced on the event page, and notified. A giveaway can only be drawn once — this action cannot be undone.",
|
|
1497
1531
|
confirmLabel: "Yes, draw the winner",
|
|
1498
1532
|
confirmKind: "danger",
|
|
1499
1533
|
},
|
|
@@ -1722,9 +1756,9 @@ export const ACTIONS = {
|
|
|
1722
1756
|
id: "seller.cancel-bid",
|
|
1723
1757
|
label: "Cancel selected",
|
|
1724
1758
|
ariaLabel: "Cancel selected bids",
|
|
1725
|
-
description: "Cancel the selected bids from this store's
|
|
1759
|
+
description: "Cancel the selected bids from this store's collector drops.",
|
|
1726
1760
|
kind: "danger",
|
|
1727
|
-
|
|
1761
|
+
roles: ["seller", "admin"],
|
|
1728
1762
|
confirmation: {
|
|
1729
1763
|
title: "Cancel these bids?",
|
|
1730
1764
|
body: "The selected bids will be cancelled and bidders will be notified.",
|
|
@@ -1741,7 +1775,7 @@ export const ACTIONS = {
|
|
|
1741
1775
|
ariaLabel: "Create a new procurement shipment",
|
|
1742
1776
|
description: "Start tracking a new import shipment.",
|
|
1743
1777
|
kind: "primary",
|
|
1744
|
-
|
|
1778
|
+
roles: ["admin"],
|
|
1745
1779
|
},
|
|
1746
1780
|
"mark-received": {
|
|
1747
1781
|
iconKey: "confirm",
|
|
@@ -1750,7 +1784,7 @@ export const ACTIONS = {
|
|
|
1750
1784
|
ariaLabel: "Mark this shipment as received",
|
|
1751
1785
|
description: "Flags the shipment as physically received so processing can begin.",
|
|
1752
1786
|
kind: "secondary",
|
|
1753
|
-
|
|
1787
|
+
roles: ["admin"],
|
|
1754
1788
|
},
|
|
1755
1789
|
"unlink-item": {
|
|
1756
1790
|
iconKey: "link",
|
|
@@ -1759,7 +1793,7 @@ export const ACTIONS = {
|
|
|
1759
1793
|
ariaLabel: "Unlink this item from its product",
|
|
1760
1794
|
description: "Clears the product link on this shipment item without touching the product itself.",
|
|
1761
1795
|
kind: "ghost",
|
|
1762
|
-
|
|
1796
|
+
roles: ["admin"],
|
|
1763
1797
|
},
|
|
1764
1798
|
"delete": {
|
|
1765
1799
|
iconKey: "delete",
|
|
@@ -1768,7 +1802,7 @@ export const ACTIONS = {
|
|
|
1768
1802
|
ariaLabel: "Delete this shipment",
|
|
1769
1803
|
description: "Permanently deletes the shipment and all its lots/items.",
|
|
1770
1804
|
kind: "danger",
|
|
1771
|
-
|
|
1805
|
+
roles: ["admin"],
|
|
1772
1806
|
confirmation: {
|
|
1773
1807
|
title: "Delete this shipment?",
|
|
1774
1808
|
body: "This permanently removes the shipment and all its lots and items. This cannot be undone. Items still linked to a product must be unlinked first.",
|
|
@@ -1792,7 +1826,7 @@ export const ACTIONS = {
|
|
|
1792
1826
|
ariaLabel: "Delete this lot and its items",
|
|
1793
1827
|
description: "Permanently deletes this lot and every item in it.",
|
|
1794
1828
|
kind: "danger",
|
|
1795
|
-
|
|
1829
|
+
roles: ["admin"],
|
|
1796
1830
|
confirmation: {
|
|
1797
1831
|
title: "Delete this lot?",
|
|
1798
1832
|
body: "This permanently removes the lot and every item in it. The rest of the shipment is untouched. Items still linked to a product must be unlinked first.",
|
|
@@ -1809,7 +1843,7 @@ export const ACTIONS = {
|
|
|
1809
1843
|
ariaLabel: "List this catalogue item directly",
|
|
1810
1844
|
description: "Seller-only — turns a catalogue item into a real listing under your own store immediately.",
|
|
1811
1845
|
kind: "primary",
|
|
1812
|
-
|
|
1846
|
+
roles: ["seller", "admin"],
|
|
1813
1847
|
},
|
|
1814
1848
|
"submit-for-approval": {
|
|
1815
1849
|
iconKey: "send",
|
|
@@ -1826,7 +1860,7 @@ export const ACTIONS = {
|
|
|
1826
1860
|
ariaLabel: "Unlink this catalogue item from its product",
|
|
1827
1861
|
description: "Clears the product link on this catalogue item without touching the product itself.",
|
|
1828
1862
|
kind: "ghost",
|
|
1829
|
-
|
|
1863
|
+
roles: ["admin"],
|
|
1830
1864
|
},
|
|
1831
1865
|
"delete": {
|
|
1832
1866
|
iconKey: "delete",
|
|
@@ -1849,7 +1883,7 @@ export const ACTIONS = {
|
|
|
1849
1883
|
ariaLabel: "Approve this catalogue listing request",
|
|
1850
1884
|
description: "Creates the product under the platform's consignment store and marks the item listed.",
|
|
1851
1885
|
kind: "primary",
|
|
1852
|
-
|
|
1886
|
+
roles: ["admin"],
|
|
1853
1887
|
},
|
|
1854
1888
|
"reject": {
|
|
1855
1889
|
iconKey: "reject",
|
|
@@ -1858,7 +1892,7 @@ export const ACTIONS = {
|
|
|
1858
1892
|
ariaLabel: "Reject this catalogue listing request",
|
|
1859
1893
|
description: "Declines the request and records a reason the owner can see.",
|
|
1860
1894
|
kind: "danger",
|
|
1861
|
-
|
|
1895
|
+
roles: ["admin"],
|
|
1862
1896
|
confirmation: {
|
|
1863
1897
|
title: "Reject this listing request?",
|
|
1864
1898
|
body: "The owner will see your rejection reason.",
|
|
@@ -1893,7 +1927,7 @@ export const ACTIONS = {
|
|
|
1893
1927
|
ariaLabel: "Enable this integration",
|
|
1894
1928
|
description: "Turn an integration on. Writes the authoritative settings field for it.",
|
|
1895
1929
|
kind: "primary",
|
|
1896
|
-
|
|
1930
|
+
roles: ["admin"],
|
|
1897
1931
|
},
|
|
1898
1932
|
"invalidate-cache": {
|
|
1899
1933
|
// `retry` — the icon registry has no `refresh`/`reload`/`sync` key, and
|
|
@@ -1905,7 +1939,7 @@ export const ACTIONS = {
|
|
|
1905
1939
|
ariaLabel: "Mark every cached public page stale",
|
|
1906
1940
|
description: "Mark every cached public page stale so the next visitor gets a freshly rendered one. Use after a bulk data change the Firestore triggers could not see — a seed load, a direct Firestore edit, or a catalogue purge.",
|
|
1907
1941
|
kind: "secondary",
|
|
1908
|
-
|
|
1942
|
+
roles: ["admin"],
|
|
1909
1943
|
/*
|
|
1910
1944
|
* 🛑 A confirmation on a NON-destructive action, because the cost is
|
|
1911
1945
|
* real and invisible at the click.
|
|
@@ -1923,6 +1957,21 @@ export const ACTIONS = {
|
|
|
1923
1957
|
confirmLabel: "Invalidate all",
|
|
1924
1958
|
},
|
|
1925
1959
|
},
|
|
1960
|
+
"clear-repository-cache": {
|
|
1961
|
+
// Item 8 §18 (overhaul brief) — the CacheManager in-memory read cache
|
|
1962
|
+
// (site settings, products), a different layer entirely from
|
|
1963
|
+
// `invalidate-cache`'s Next.js page/ISR cache above. No confirmation:
|
|
1964
|
+
// unlike that one, this has no production cost either way — a cleared
|
|
1965
|
+
// key just means the next read is a cache miss, one Firestore round
|
|
1966
|
+
// trip, bounded by the same TTL that already governs it.
|
|
1967
|
+
iconKey: "retry",
|
|
1968
|
+
id: "admin.clear-repository-cache",
|
|
1969
|
+
label: "Clear",
|
|
1970
|
+
ariaLabel: "Clear this cache entry",
|
|
1971
|
+
description: "Delete one cached read-cache entry (or every entry sharing a repository's key prefix) so the next read goes to Firestore instead of the in-memory cache.",
|
|
1972
|
+
kind: "secondary",
|
|
1973
|
+
roles: ["admin"],
|
|
1974
|
+
},
|
|
1926
1975
|
"update-pricing": {
|
|
1927
1976
|
iconKey: "save",
|
|
1928
1977
|
id: "admin.update-pricing",
|
|
@@ -1930,7 +1979,7 @@ export const ACTIONS = {
|
|
|
1930
1979
|
ariaLabel: "Save the new rate",
|
|
1931
1980
|
description: "Change one platform rate from now on. Orders, invoices and payouts already recorded keep the rate they were charged at — a rate change never restates history.",
|
|
1932
1981
|
kind: "primary",
|
|
1933
|
-
|
|
1982
|
+
roles: ["admin"],
|
|
1934
1983
|
/*
|
|
1935
1984
|
* 🛑 A confirmation even though `kind` is "primary" rather than "danger".
|
|
1936
1985
|
* The registry requires one for destructive actions; this one is here
|
|
@@ -1951,7 +2000,7 @@ export const ACTIONS = {
|
|
|
1951
2000
|
ariaLabel: "Add a dispute reason",
|
|
1952
2001
|
description: "Add a reason buyers can pick when reporting a problem. The reason's KIND decides which gate it is subject to; the wording is yours.",
|
|
1953
2002
|
kind: "primary",
|
|
1954
|
-
|
|
2003
|
+
roles: ["admin"],
|
|
1955
2004
|
},
|
|
1956
2005
|
"retire-dispute-reason": {
|
|
1957
2006
|
iconKey: "reject",
|
|
@@ -1960,7 +2009,7 @@ export const ACTIONS = {
|
|
|
1960
2009
|
ariaLabel: "Retire this dispute reason",
|
|
1961
2010
|
description: "Take a reason out of the buyer's picker. Never a delete — past disputes name it, and the order snapshots its label so history survives either way.",
|
|
1962
2011
|
kind: "danger",
|
|
1963
|
-
|
|
2012
|
+
roles: ["admin"],
|
|
1964
2013
|
confirmation: {
|
|
1965
2014
|
title: "Retire this reason?",
|
|
1966
2015
|
/*
|
|
@@ -1981,7 +2030,7 @@ export const ACTIONS = {
|
|
|
1981
2030
|
ariaLabel: "Put this dispute reason back in the picker",
|
|
1982
2031
|
description: "Offer a retired reason to buyers again. The original author is kept.",
|
|
1983
2032
|
kind: "primary",
|
|
1984
|
-
|
|
2033
|
+
roles: ["admin"],
|
|
1985
2034
|
},
|
|
1986
2035
|
"disable-integration": {
|
|
1987
2036
|
iconKey: "reject",
|
|
@@ -1990,7 +2039,7 @@ export const ACTIONS = {
|
|
|
1990
2039
|
ariaLabel: "Disable this integration",
|
|
1991
2040
|
description: "Turn an integration off. The consequence differs per integration and is stated on the row.",
|
|
1992
2041
|
kind: "danger",
|
|
1993
|
-
|
|
2042
|
+
roles: ["admin"],
|
|
1994
2043
|
confirmation: {
|
|
1995
2044
|
title: "Switch this integration off?",
|
|
1996
2045
|
body: "",
|
|
@@ -2005,7 +2054,7 @@ export const ACTIONS = {
|
|
|
2005
2054
|
ariaLabel: "Enable every integration",
|
|
2006
2055
|
description: "Turn every integration on in a single write.",
|
|
2007
2056
|
kind: "secondary",
|
|
2008
|
-
|
|
2057
|
+
roles: ["admin"],
|
|
2009
2058
|
confirmation: {
|
|
2010
2059
|
title: "Enable every integration?",
|
|
2011
2060
|
body: "Online payments, customer email, courier booking and the support surface will all be switched on. One write, one audit-log entry.",
|
|
@@ -2019,7 +2068,7 @@ export const ACTIONS = {
|
|
|
2019
2068
|
ariaLabel: "Disable every integration",
|
|
2020
2069
|
description: "Turn every integration off in a single write.",
|
|
2021
2070
|
kind: "danger",
|
|
2022
|
-
|
|
2071
|
+
roles: ["admin"],
|
|
2023
2072
|
confirmation: {
|
|
2024
2073
|
title: "Disable every integration?",
|
|
2025
2074
|
body: "This stops online payments, customer email and courier booking, and hides the buyer support surface. 🛑 Payments already in progress are abandoned — a buyer part-way through the gateway may be charged with no order placed. Staff email and open tickets stay workable. One write, one audit-log entry.",
|
|
@@ -2035,7 +2084,7 @@ export const ACTIONS = {
|
|
|
2035
2084
|
ariaLabel: "Approve listing",
|
|
2036
2085
|
description: "Mark a pending product listing as approved and visible to buyers.",
|
|
2037
2086
|
kind: "primary",
|
|
2038
|
-
|
|
2087
|
+
roles: ["admin", "moderator"],
|
|
2039
2088
|
},
|
|
2040
2089
|
"reject-product": {
|
|
2041
2090
|
iconKey: "reject",
|
|
@@ -2044,7 +2093,7 @@ export const ACTIONS = {
|
|
|
2044
2093
|
ariaLabel: "Reject listing",
|
|
2045
2094
|
description: "Reject a product listing and notify the seller with a reason.",
|
|
2046
2095
|
kind: "danger",
|
|
2047
|
-
|
|
2096
|
+
roles: ["admin", "moderator"],
|
|
2048
2097
|
confirmation: {
|
|
2049
2098
|
title: "Reject this listing?",
|
|
2050
2099
|
body: "The listing will be rejected and the seller will be notified. You can restore it later.",
|
|
@@ -2060,7 +2109,7 @@ export const ACTIONS = {
|
|
|
2060
2109
|
ariaLabel: "Ban this user",
|
|
2061
2110
|
description: "Soft-ban a user account — blocks login and all marketplace activity.",
|
|
2062
2111
|
kind: "danger",
|
|
2063
|
-
|
|
2112
|
+
roles: ["admin", "moderator"],
|
|
2064
2113
|
confirmation: {
|
|
2065
2114
|
title: "Ban this user?",
|
|
2066
2115
|
body: "The user will be blocked from logging in and all marketplace activity. You can lift the ban later.",
|
|
@@ -2075,7 +2124,7 @@ export const ACTIONS = {
|
|
|
2075
2124
|
ariaLabel: "Lift ban on this user",
|
|
2076
2125
|
description: "Remove a soft-ban and restore normal account access.",
|
|
2077
2126
|
kind: "secondary",
|
|
2078
|
-
|
|
2127
|
+
roles: ["admin"],
|
|
2079
2128
|
},
|
|
2080
2129
|
/**
|
|
2081
2130
|
* Credit or debit a buyer's points by hand — `admin_adjustment`'s first
|
|
@@ -2099,7 +2148,7 @@ export const ACTIONS = {
|
|
|
2099
2148
|
ariaLabel: "Credit or debit this user's points",
|
|
2100
2149
|
description: "Credit or debit a buyer's points balance, with a reason recorded in the ledger and the admin audit log.",
|
|
2101
2150
|
kind: "secondary",
|
|
2102
|
-
|
|
2151
|
+
roles: ["admin"],
|
|
2103
2152
|
},
|
|
2104
2153
|
"bulk-suspend-users": {
|
|
2105
2154
|
iconKey: "ban",
|
|
@@ -2108,7 +2157,7 @@ export const ACTIONS = {
|
|
|
2108
2157
|
ariaLabel: "Suspend selected users",
|
|
2109
2158
|
description: "Disable login for the selected accounts.",
|
|
2110
2159
|
kind: "danger",
|
|
2111
|
-
|
|
2160
|
+
roles: ["admin"],
|
|
2112
2161
|
confirmation: {
|
|
2113
2162
|
title: "Suspend these users?",
|
|
2114
2163
|
body: "Selected accounts will be disabled from logging in. You can restore them later.",
|
|
@@ -2123,7 +2172,7 @@ export const ACTIONS = {
|
|
|
2123
2172
|
ariaLabel: "Restore selected users",
|
|
2124
2173
|
description: "Re-enable login for the selected accounts.",
|
|
2125
2174
|
kind: "secondary",
|
|
2126
|
-
|
|
2175
|
+
roles: ["admin"],
|
|
2127
2176
|
},
|
|
2128
2177
|
"bulk-delete-users": {
|
|
2129
2178
|
iconKey: "delete",
|
|
@@ -2132,7 +2181,7 @@ export const ACTIONS = {
|
|
|
2132
2181
|
ariaLabel: "Delete selected users",
|
|
2133
2182
|
description: "Disable the selected accounts.",
|
|
2134
2183
|
kind: "danger",
|
|
2135
|
-
|
|
2184
|
+
roles: ["admin"],
|
|
2136
2185
|
confirmation: {
|
|
2137
2186
|
title: "Delete these users?",
|
|
2138
2187
|
body: "Selected accounts will be disabled. Their data (orders, reviews) is preserved — this does not permanently erase the account.",
|
|
@@ -2147,7 +2196,7 @@ export const ACTIONS = {
|
|
|
2147
2196
|
ariaLabel: "Mark payment as received and verified",
|
|
2148
2197
|
description: "Confirms manual cash/UPI payment was received. Moves order to Processing.",
|
|
2149
2198
|
kind: "primary",
|
|
2150
|
-
|
|
2199
|
+
roles: ["admin", "moderator"],
|
|
2151
2200
|
confirmation: {
|
|
2152
2201
|
title: "Verify payment?",
|
|
2153
2202
|
body: "This marks the payment as received. The order will move to Processing. This action cannot be undone.",
|
|
@@ -2161,7 +2210,7 @@ export const ACTIONS = {
|
|
|
2161
2210
|
ariaLabel: "Ask the buyer to re-upload a corrected payment proof",
|
|
2162
2211
|
description: "Clears the current proof and gives the buyer 15 more minutes to resubmit — for honest mistakes (blurry screenshot, wrong amount), not fraud.",
|
|
2163
2212
|
kind: "secondary",
|
|
2164
|
-
|
|
2213
|
+
roles: ["admin", "moderator"],
|
|
2165
2214
|
confirmation: {
|
|
2166
2215
|
title: "Request a proof re-upload?",
|
|
2167
2216
|
body: "The buyer's current proof will be cleared and they'll get 15 more minutes to resubmit. Use this for honest mistakes, not suspected fraud.",
|
|
@@ -2175,7 +2224,7 @@ export const ACTIONS = {
|
|
|
2175
2224
|
ariaLabel: "Reject this payment proof as fraudulent, cancel the order, and ban the account",
|
|
2176
2225
|
description: "Cancels the order, restores stock, and triggers a temporary 7-day full-account ban. Use only for suspected deliberate fraud, not honest mistakes.",
|
|
2177
2226
|
kind: "danger",
|
|
2178
|
-
|
|
2227
|
+
roles: ["admin", "moderator"],
|
|
2179
2228
|
confirmation: {
|
|
2180
2229
|
title: "Reject as fraudulent?",
|
|
2181
2230
|
body: "This cancels the order, returns the item to stock, and suspends the buyer's account for 7 days. This is severe — use only for suspected deliberate fraud, not an honest mistake.",
|
|
@@ -2202,7 +2251,7 @@ export const ACTIONS = {
|
|
|
2202
2251
|
ariaLabel: "Accept the pre-order balance payment proof",
|
|
2203
2252
|
description: "Confirms the pre-order balance was received. The order becomes shippable. Does NOT post a ledger entry — the sale was recognised in full at order creation.",
|
|
2204
2253
|
kind: "primary",
|
|
2205
|
-
|
|
2254
|
+
roles: ["admin", "moderator"],
|
|
2206
2255
|
confirmation: {
|
|
2207
2256
|
title: "Accept the balance payment?",
|
|
2208
2257
|
body: "This records the remaining balance as received and clears the order to ship. Check the reference against your bank first.",
|
|
@@ -2216,7 +2265,7 @@ export const ACTIONS = {
|
|
|
2216
2265
|
ariaLabel: "Reject the pre-order balance proof and ask the buyer to resend",
|
|
2217
2266
|
description: "Sends the proof back with your note. The buyer can submit again — no cancellation, no stock change, no ban: the goods are already made and allocated to them.",
|
|
2218
2267
|
kind: "secondary",
|
|
2219
|
-
|
|
2268
|
+
roles: ["admin", "moderator"],
|
|
2220
2269
|
confirmation: {
|
|
2221
2270
|
title: "Reject this balance proof?",
|
|
2222
2271
|
body: "The buyer is told why and can send another. The order stays open and the item stays theirs.",
|
|
@@ -2230,7 +2279,7 @@ export const ACTIONS = {
|
|
|
2230
2279
|
ariaLabel: "Grant verified-vendor status",
|
|
2231
2280
|
description: "Grant verified-vendor badge to a seller account.",
|
|
2232
2281
|
kind: "primary",
|
|
2233
|
-
|
|
2282
|
+
roles: ["admin"],
|
|
2234
2283
|
},
|
|
2235
2284
|
"unverify-vendor": {
|
|
2236
2285
|
iconKey: "reject",
|
|
@@ -2239,7 +2288,7 @@ export const ACTIONS = {
|
|
|
2239
2288
|
ariaLabel: "Revoke verified-vendor status",
|
|
2240
2289
|
description: "Revoke the verified-vendor badge from a seller account.",
|
|
2241
2290
|
kind: "secondary",
|
|
2242
|
-
|
|
2291
|
+
roles: ["admin"],
|
|
2243
2292
|
confirmation: {
|
|
2244
2293
|
title: "Remove vendor verification?",
|
|
2245
2294
|
body: "The verified badge will be removed from this seller's store.",
|
|
@@ -2255,7 +2304,7 @@ export const ACTIONS = {
|
|
|
2255
2304
|
ariaLabel: "Verify this store",
|
|
2256
2305
|
description: "Grant verified status to a store.",
|
|
2257
2306
|
kind: "primary",
|
|
2258
|
-
|
|
2307
|
+
roles: ["admin"],
|
|
2259
2308
|
},
|
|
2260
2309
|
"suspend-store": {
|
|
2261
2310
|
iconKey: "ban",
|
|
@@ -2264,7 +2313,7 @@ export const ACTIONS = {
|
|
|
2264
2313
|
ariaLabel: "Suspend this store",
|
|
2265
2314
|
description: "Suspend a store — hides all its listings from buyers.",
|
|
2266
2315
|
kind: "danger",
|
|
2267
|
-
|
|
2316
|
+
roles: ["admin"],
|
|
2268
2317
|
confirmation: {
|
|
2269
2318
|
title: "Suspend this store?",
|
|
2270
2319
|
body: "All listings from this store will be hidden. The seller will be notified.",
|
|
@@ -2295,7 +2344,7 @@ export const ACTIONS = {
|
|
|
2295
2344
|
ariaLabel: "Approve this store and make it public",
|
|
2296
2345
|
description: "Approve a pending store — sets it active and makes its listings visible to buyers.",
|
|
2297
2346
|
kind: "primary",
|
|
2298
|
-
|
|
2347
|
+
roles: ["admin"],
|
|
2299
2348
|
confirmation: {
|
|
2300
2349
|
title: "Approve this store?",
|
|
2301
2350
|
body: "The store becomes active and its listings become visible to buyers. The seller will be notified.",
|
|
@@ -2309,7 +2358,7 @@ export const ACTIONS = {
|
|
|
2309
2358
|
ariaLabel: "Reject this store application",
|
|
2310
2359
|
description: "Reject a pending store application — the store stays hidden from buyers.",
|
|
2311
2360
|
kind: "danger",
|
|
2312
|
-
|
|
2361
|
+
roles: ["admin"],
|
|
2313
2362
|
confirmation: {
|
|
2314
2363
|
title: "Reject this store application?",
|
|
2315
2364
|
body: "The store will not be published and the seller will be notified. You can approve it later if they resolve the issue.",
|
|
@@ -2325,7 +2374,7 @@ export const ACTIONS = {
|
|
|
2325
2374
|
ariaLabel: "Approve review",
|
|
2326
2375
|
description: "Publish a pending product review.",
|
|
2327
2376
|
kind: "primary",
|
|
2328
|
-
|
|
2377
|
+
roles: ["admin", "moderator"],
|
|
2329
2378
|
},
|
|
2330
2379
|
"reject-review": {
|
|
2331
2380
|
iconKey: "reject",
|
|
@@ -2334,7 +2383,7 @@ export const ACTIONS = {
|
|
|
2334
2383
|
ariaLabel: "Reject review",
|
|
2335
2384
|
description: "Reject a product review and prevent it from being shown.",
|
|
2336
2385
|
kind: "danger",
|
|
2337
|
-
|
|
2386
|
+
roles: ["admin", "moderator"],
|
|
2338
2387
|
confirmation: {
|
|
2339
2388
|
title: "Reject this review?",
|
|
2340
2389
|
body: "The review will be hidden from the product page.",
|
|
@@ -2350,7 +2399,7 @@ export const ACTIONS = {
|
|
|
2350
2399
|
ariaLabel: "Approve return request",
|
|
2351
2400
|
description: "Approve a return request and initiate the refund flow.",
|
|
2352
2401
|
kind: "primary",
|
|
2353
|
-
|
|
2402
|
+
roles: ["admin", "moderator"],
|
|
2354
2403
|
// Required by Rule #7 — approving starts a real refund, which is money
|
|
2355
2404
|
// leaving the platform and is not undoable from this screen. Its absence
|
|
2356
2405
|
// also CRASHED /admin/return-requests outright: the view reads
|
|
@@ -2370,7 +2419,7 @@ export const ACTIONS = {
|
|
|
2370
2419
|
ariaLabel: "Reject return request",
|
|
2371
2420
|
description: "Reject a return request with a reason.",
|
|
2372
2421
|
kind: "danger",
|
|
2373
|
-
|
|
2422
|
+
roles: ["admin", "moderator"],
|
|
2374
2423
|
confirmation: {
|
|
2375
2424
|
title: "Reject return request?",
|
|
2376
2425
|
body: "The return request will be declined and the buyer will be notified.",
|
|
@@ -2386,7 +2435,7 @@ export const ACTIONS = {
|
|
|
2386
2435
|
ariaLabel: "Run the weekly payout eligibility calculation",
|
|
2387
2436
|
description: "Runs the same weekly sweep as the scheduled job on demand, generating pending payout records for eligible sellers.",
|
|
2388
2437
|
kind: "primary",
|
|
2389
|
-
|
|
2438
|
+
roles: ["admin"],
|
|
2390
2439
|
},
|
|
2391
2440
|
"grant-payout": {
|
|
2392
2441
|
iconKey: "approve",
|
|
@@ -2395,7 +2444,7 @@ export const ACTIONS = {
|
|
|
2395
2444
|
ariaLabel: "Approve payout request",
|
|
2396
2445
|
description: "Approve a seller payout request and trigger the transfer.",
|
|
2397
2446
|
kind: "primary",
|
|
2398
|
-
|
|
2447
|
+
roles: ["admin"],
|
|
2399
2448
|
},
|
|
2400
2449
|
"hold-payout": {
|
|
2401
2450
|
iconKey: "pause",
|
|
@@ -2404,7 +2453,7 @@ export const ACTIONS = {
|
|
|
2404
2453
|
ariaLabel: "Put payout on hold",
|
|
2405
2454
|
description: "Put a payout request on hold pending investigation.",
|
|
2406
2455
|
kind: "secondary",
|
|
2407
|
-
|
|
2456
|
+
roles: ["admin"],
|
|
2408
2457
|
confirmation: {
|
|
2409
2458
|
title: "Hold this payout?",
|
|
2410
2459
|
body: "The payout will be paused. The seller will be notified.",
|
|
@@ -2420,7 +2469,7 @@ export const ACTIONS = {
|
|
|
2420
2469
|
ariaLabel: "Trigger bundle stock rebuild",
|
|
2421
2470
|
description: "Recalculate bundle availability from its constituent product stock.",
|
|
2422
2471
|
kind: "secondary",
|
|
2423
|
-
|
|
2472
|
+
roles: ["admin"],
|
|
2424
2473
|
},
|
|
2425
2474
|
// ── Dev / system ───────────────────────────────────────────────────────
|
|
2426
2475
|
"reset-seed-data": {
|
|
@@ -2430,7 +2479,7 @@ export const ACTIONS = {
|
|
|
2430
2479
|
ariaLabel: "Clear and re-seed Firestore",
|
|
2431
2480
|
description: "Delete all seeded documents and reload from seed fixtures. Dev environments only.",
|
|
2432
2481
|
kind: "danger",
|
|
2433
|
-
|
|
2482
|
+
roles: ["admin"],
|
|
2434
2483
|
confirmation: {
|
|
2435
2484
|
title: "Reset all seed data?",
|
|
2436
2485
|
body: "Every seeded document will be deleted and reloaded from fixtures. This cannot be undone. Only use this in a development environment.",
|
|
@@ -2445,7 +2494,7 @@ export const ACTIONS = {
|
|
|
2445
2494
|
label: "Save changes",
|
|
2446
2495
|
description: "Submit any admin editor form.",
|
|
2447
2496
|
kind: "primary",
|
|
2448
|
-
|
|
2497
|
+
roles: ["admin", "moderator"],
|
|
2449
2498
|
},
|
|
2450
2499
|
"export-csv": {
|
|
2451
2500
|
iconKey: "export",
|
|
@@ -2454,7 +2503,7 @@ export const ACTIONS = {
|
|
|
2454
2503
|
ariaLabel: "Export data as CSV",
|
|
2455
2504
|
description: "Download the current view's data as a CSV file.",
|
|
2456
2505
|
kind: "ghost",
|
|
2457
|
-
|
|
2506
|
+
roles: ["admin", "moderator"],
|
|
2458
2507
|
},
|
|
2459
2508
|
// ── Order management ──────────────────────────────────────────────────
|
|
2460
2509
|
"mark-shipped": {
|
|
@@ -2464,7 +2513,7 @@ export const ACTIONS = {
|
|
|
2464
2513
|
ariaLabel: "Mark order as shipped",
|
|
2465
2514
|
description: "Update an order status to shipped.",
|
|
2466
2515
|
kind: "primary",
|
|
2467
|
-
|
|
2516
|
+
roles: ["admin", "moderator"],
|
|
2468
2517
|
},
|
|
2469
2518
|
"mark-delivered": {
|
|
2470
2519
|
iconKey: "ship",
|
|
@@ -2473,7 +2522,7 @@ export const ACTIONS = {
|
|
|
2473
2522
|
ariaLabel: "Mark order as delivered",
|
|
2474
2523
|
description: "Update an order status to delivered.",
|
|
2475
2524
|
kind: "primary",
|
|
2476
|
-
|
|
2525
|
+
roles: ["admin", "moderator"],
|
|
2477
2526
|
},
|
|
2478
2527
|
"mark-installment-paid": {
|
|
2479
2528
|
iconKey: "confirm",
|
|
@@ -2482,7 +2531,7 @@ export const ACTIONS = {
|
|
|
2482
2531
|
ariaLabel: "Mark this EMI installment as paid",
|
|
2483
2532
|
description: "Record collection of one EMI installment after verifying the buyer's manual transfer proof.",
|
|
2484
2533
|
kind: "primary",
|
|
2485
|
-
|
|
2534
|
+
roles: ["admin", "moderator"],
|
|
2486
2535
|
confirmation: {
|
|
2487
2536
|
title: "Mark this installment as paid?",
|
|
2488
2537
|
body: "This confirms the buyer's payment was received and verified. The order becomes eligible to ship once every installment is marked paid.",
|
|
@@ -2497,7 +2546,7 @@ export const ACTIONS = {
|
|
|
2497
2546
|
ariaLabel: "Cancel selected orders",
|
|
2498
2547
|
description: "Cancel one or more pending orders.",
|
|
2499
2548
|
kind: "danger",
|
|
2500
|
-
|
|
2549
|
+
roles: ["admin"],
|
|
2501
2550
|
confirmation: {
|
|
2502
2551
|
title: "Cancel these orders?",
|
|
2503
2552
|
body: "The selected orders will be cancelled. Refunds are processed within 5–7 business days.",
|
|
@@ -2513,7 +2562,7 @@ export const ACTIONS = {
|
|
|
2513
2562
|
ariaLabel: "Mark payout as paid",
|
|
2514
2563
|
description: "Mark a payout as paid after transfer has been completed.",
|
|
2515
2564
|
kind: "primary",
|
|
2516
|
-
|
|
2565
|
+
roles: ["admin"],
|
|
2517
2566
|
},
|
|
2518
2567
|
// ── Session management ────────────────────────────────────────────────
|
|
2519
2568
|
"revoke-session": {
|
|
@@ -2523,7 +2572,7 @@ export const ACTIONS = {
|
|
|
2523
2572
|
ariaLabel: "Revoke selected sessions",
|
|
2524
2573
|
description: "Force-end one or more active user sessions.",
|
|
2525
2574
|
kind: "danger",
|
|
2526
|
-
|
|
2575
|
+
roles: ["admin"],
|
|
2527
2576
|
confirmation: {
|
|
2528
2577
|
title: "Revoke these sessions?",
|
|
2529
2578
|
body: "The selected sessions will be terminated. Users will need to sign in again.",
|
|
@@ -2539,7 +2588,7 @@ export const ACTIONS = {
|
|
|
2539
2588
|
ariaLabel: "Mark selected notifications as read",
|
|
2540
2589
|
description: "Mark one or more notifications as read.",
|
|
2541
2590
|
kind: "primary",
|
|
2542
|
-
|
|
2591
|
+
roles: ["admin", "moderator"],
|
|
2543
2592
|
},
|
|
2544
2593
|
"delete-notification": {
|
|
2545
2594
|
iconKey: "delete",
|
|
@@ -2548,7 +2597,7 @@ export const ACTIONS = {
|
|
|
2548
2597
|
ariaLabel: "Delete selected notifications",
|
|
2549
2598
|
description: "Permanently delete one or more notifications.",
|
|
2550
2599
|
kind: "danger",
|
|
2551
|
-
|
|
2600
|
+
roles: ["admin"],
|
|
2552
2601
|
confirmation: {
|
|
2553
2602
|
title: "Delete these notifications?",
|
|
2554
2603
|
body: "The selected notifications will be permanently removed.",
|
|
@@ -2564,7 +2613,7 @@ export const ACTIONS = {
|
|
|
2564
2613
|
ariaLabel: "Mark this tester feedback as reviewed",
|
|
2565
2614
|
description: "Mark a tester feedback submission as reviewed by the dev team.",
|
|
2566
2615
|
kind: "secondary",
|
|
2567
|
-
|
|
2616
|
+
roles: ["admin"],
|
|
2568
2617
|
},
|
|
2569
2618
|
"export-tester-feedback": {
|
|
2570
2619
|
iconKey: "export",
|
|
@@ -2573,7 +2622,7 @@ export const ACTIONS = {
|
|
|
2573
2622
|
ariaLabel: "Download tester feedback as a Markdown report",
|
|
2574
2623
|
description: "Download every tester checklist response as a Markdown file, grouped by feature area, for offline triage.",
|
|
2575
2624
|
kind: "ghost",
|
|
2576
|
-
|
|
2625
|
+
roles: ["admin"],
|
|
2577
2626
|
},
|
|
2578
2627
|
"export-event-entries": {
|
|
2579
2628
|
iconKey: "export",
|
|
@@ -2582,7 +2631,7 @@ export const ACTIONS = {
|
|
|
2582
2631
|
ariaLabel: "Download this event's entries as a Markdown report",
|
|
2583
2632
|
description: "Download an event's entries as a Markdown file — a per-option vote tally for polls, or individual entries (submitter, status, points, responses) for every other event type.",
|
|
2584
2633
|
kind: "ghost",
|
|
2585
|
-
|
|
2634
|
+
roles: ["admin"],
|
|
2586
2635
|
},
|
|
2587
2636
|
"create-checklist-item": {
|
|
2588
2637
|
iconKey: "create",
|
|
@@ -2591,7 +2640,7 @@ export const ACTIONS = {
|
|
|
2591
2640
|
ariaLabel: "Add a new tester checklist item",
|
|
2592
2641
|
description: "Create a new test case in the tester QA checklist catalog.",
|
|
2593
2642
|
kind: "primary",
|
|
2594
|
-
|
|
2643
|
+
roles: ["admin"],
|
|
2595
2644
|
},
|
|
2596
2645
|
"edit-checklist-item": {
|
|
2597
2646
|
iconKey: "edit",
|
|
@@ -2600,7 +2649,7 @@ export const ACTIONS = {
|
|
|
2600
2649
|
ariaLabel: "Edit this tester checklist item",
|
|
2601
2650
|
description: "Edit an existing test case in the tester QA checklist catalog.",
|
|
2602
2651
|
kind: "secondary",
|
|
2603
|
-
|
|
2652
|
+
roles: ["admin"],
|
|
2604
2653
|
},
|
|
2605
2654
|
"delete-checklist-item": {
|
|
2606
2655
|
iconKey: "delete",
|
|
@@ -2609,7 +2658,7 @@ export const ACTIONS = {
|
|
|
2609
2658
|
ariaLabel: "Delete this tester checklist item",
|
|
2610
2659
|
description: "Permanently delete a test case from the tester QA checklist catalog.",
|
|
2611
2660
|
kind: "danger",
|
|
2612
|
-
|
|
2661
|
+
roles: ["admin"],
|
|
2613
2662
|
confirmation: {
|
|
2614
2663
|
title: "Delete this checklist item?",
|
|
2615
2664
|
body: "This test case will be permanently removed from the tester QA checklist. Any tester answers already recorded for it are kept, but the item will no longer appear on the Tester Hub.",
|
|
@@ -2624,7 +2673,7 @@ export const ACTIONS = {
|
|
|
2624
2673
|
ariaLabel: "Confirm this as a real bug and credit the reporting tester",
|
|
2625
2674
|
description: "Confirms this reported issue as a real bug, credits the reporting tester as the bug hunter, and disables the case for all other testers.",
|
|
2626
2675
|
kind: "danger",
|
|
2627
|
-
|
|
2676
|
+
roles: ["admin"],
|
|
2628
2677
|
confirmation: {
|
|
2629
2678
|
title: "Confirm this bug?",
|
|
2630
2679
|
body: "This credits the reporting tester as the bug hunter for this case and disables it so no other tester can answer it. This can't be undone from the UI.",
|
|
@@ -2639,7 +2688,7 @@ export const ACTIONS = {
|
|
|
2639
2688
|
ariaLabel: "Reopen this fixed case as a new version for retest",
|
|
2640
2689
|
description: "Once a confirmed bug is fixed, reopen it as a new version (v+1) for testers to retest — the old disabled case stays in the database with its bug-hunter credit intact.",
|
|
2641
2690
|
kind: "secondary",
|
|
2642
|
-
|
|
2691
|
+
roles: ["admin"],
|
|
2643
2692
|
confirmation: {
|
|
2644
2693
|
title: "Reopen this case for retest?",
|
|
2645
2694
|
body: "This creates a new, active version of this test case for testers to answer again. The old case stays disabled in the database — its bug-hunter credit is not affected.",
|
|
@@ -2654,7 +2703,7 @@ export const ACTIONS = {
|
|
|
2654
2703
|
ariaLabel: "Resend this notification",
|
|
2655
2704
|
description: "Re-send a notification to the recipient.",
|
|
2656
2705
|
kind: "ghost",
|
|
2657
|
-
|
|
2706
|
+
roles: ["admin"],
|
|
2658
2707
|
},
|
|
2659
2708
|
// ── Blog management ───────────────────────────────────────────────────
|
|
2660
2709
|
"publish-blog": {
|
|
@@ -2664,7 +2713,7 @@ export const ACTIONS = {
|
|
|
2664
2713
|
ariaLabel: "Publish selected blog posts",
|
|
2665
2714
|
description: "Set selected blog posts to published status.",
|
|
2666
2715
|
kind: "primary",
|
|
2667
|
-
|
|
2716
|
+
roles: ["admin", "moderator"],
|
|
2668
2717
|
},
|
|
2669
2718
|
"draft-blog": {
|
|
2670
2719
|
iconKey: "edit",
|
|
@@ -2673,7 +2722,7 @@ export const ACTIONS = {
|
|
|
2673
2722
|
ariaLabel: "Move selected posts to draft",
|
|
2674
2723
|
description: "Revert selected blog posts to draft status.",
|
|
2675
2724
|
kind: "secondary",
|
|
2676
|
-
|
|
2725
|
+
roles: ["admin", "moderator"],
|
|
2677
2726
|
},
|
|
2678
2727
|
// ── Brand & category management ───────────────────────────────────────
|
|
2679
2728
|
"edit-brand": {
|
|
@@ -2683,7 +2732,7 @@ export const ACTIONS = {
|
|
|
2683
2732
|
ariaLabel: "Edit this brand",
|
|
2684
2733
|
description: "Open the edit panel for a brand.",
|
|
2685
2734
|
kind: "primary",
|
|
2686
|
-
|
|
2735
|
+
roles: ["admin"],
|
|
2687
2736
|
},
|
|
2688
2737
|
"edit-category": {
|
|
2689
2738
|
iconKey: "edit",
|
|
@@ -2692,9 +2741,9 @@ export const ACTIONS = {
|
|
|
2692
2741
|
ariaLabel: "Edit this category",
|
|
2693
2742
|
description: "Open the edit panel for a category.",
|
|
2694
2743
|
kind: "primary",
|
|
2695
|
-
|
|
2744
|
+
roles: ["admin"],
|
|
2696
2745
|
},
|
|
2697
|
-
// ── Feature &
|
|
2746
|
+
// ── Feature & clearance management ────────────────────────────────────
|
|
2698
2747
|
"delete-feature": {
|
|
2699
2748
|
iconKey: "delete",
|
|
2700
2749
|
id: "admin.delete-feature",
|
|
@@ -2702,7 +2751,7 @@ export const ACTIONS = {
|
|
|
2702
2751
|
ariaLabel: "Delete selected features",
|
|
2703
2752
|
description: "Permanently delete the selected product feature badges.",
|
|
2704
2753
|
kind: "danger",
|
|
2705
|
-
|
|
2754
|
+
roles: ["admin"],
|
|
2706
2755
|
confirmation: {
|
|
2707
2756
|
title: "Delete these features?",
|
|
2708
2757
|
body: "The selected product feature badges will be permanently removed. Products tagged with them will lose the badge.",
|
|
@@ -2712,15 +2761,15 @@ export const ACTIONS = {
|
|
|
2712
2761
|
},
|
|
2713
2762
|
"delete-prize-draw": {
|
|
2714
2763
|
iconKey: "delete",
|
|
2715
|
-
id: "admin.delete-
|
|
2716
|
-
label: "Delete
|
|
2717
|
-
ariaLabel: "Delete selected
|
|
2718
|
-
description: "Permanently delete the selected
|
|
2764
|
+
id: "admin.delete-clearance",
|
|
2765
|
+
label: "Delete Clearance",
|
|
2766
|
+
ariaLabel: "Delete selected clearance",
|
|
2767
|
+
description: "Permanently delete the selected clearance listings.",
|
|
2719
2768
|
kind: "danger",
|
|
2720
|
-
|
|
2769
|
+
roles: ["admin"],
|
|
2721
2770
|
confirmation: {
|
|
2722
|
-
title: "Delete these
|
|
2723
|
-
body: "The selected
|
|
2771
|
+
title: "Delete these clearance?",
|
|
2772
|
+
body: "The selected clearance listings will be permanently removed. This action cannot be undone.",
|
|
2724
2773
|
confirmLabel: "Delete",
|
|
2725
2774
|
confirmKind: "danger",
|
|
2726
2775
|
},
|
|
@@ -2733,7 +2782,7 @@ export const ACTIONS = {
|
|
|
2733
2782
|
ariaLabel: "Toggle featured status",
|
|
2734
2783
|
description: "Toggle whether the selected products appear in featured sections.",
|
|
2735
2784
|
kind: "secondary",
|
|
2736
|
-
|
|
2785
|
+
roles: ["admin", "moderator"],
|
|
2737
2786
|
},
|
|
2738
2787
|
"toggle-promoted": {
|
|
2739
2788
|
iconKey: "analytics",
|
|
@@ -2742,7 +2791,7 @@ export const ACTIONS = {
|
|
|
2742
2791
|
ariaLabel: "Toggle promoted status",
|
|
2743
2792
|
description: "Toggle whether the selected products appear in promoted placements.",
|
|
2744
2793
|
kind: "secondary",
|
|
2745
|
-
|
|
2794
|
+
roles: ["admin"],
|
|
2746
2795
|
},
|
|
2747
2796
|
"toggle-on-sale": {
|
|
2748
2797
|
iconKey: "analytics",
|
|
@@ -2751,7 +2800,7 @@ export const ACTIONS = {
|
|
|
2751
2800
|
ariaLabel: "Toggle on-sale status",
|
|
2752
2801
|
description: "Toggle the on-sale flag for the selected products.",
|
|
2753
2802
|
kind: "secondary",
|
|
2754
|
-
|
|
2803
|
+
roles: ["admin", "moderator"],
|
|
2755
2804
|
},
|
|
2756
2805
|
// ── Bundle management ─────────────────────────────────────────────────
|
|
2757
2806
|
"activate-bundle": {
|
|
@@ -2761,7 +2810,7 @@ export const ACTIONS = {
|
|
|
2761
2810
|
ariaLabel: "Activate selected bundles",
|
|
2762
2811
|
description: "Set the selected bundles to active status.",
|
|
2763
2812
|
kind: "primary",
|
|
2764
|
-
|
|
2813
|
+
roles: ["admin"],
|
|
2765
2814
|
},
|
|
2766
2815
|
"deactivate-bundle": {
|
|
2767
2816
|
iconKey: "pause",
|
|
@@ -2770,7 +2819,7 @@ export const ACTIONS = {
|
|
|
2770
2819
|
ariaLabel: "Deactivate selected bundles",
|
|
2771
2820
|
description: "Set the selected bundles to inactive status.",
|
|
2772
2821
|
kind: "secondary",
|
|
2773
|
-
|
|
2822
|
+
roles: ["admin"],
|
|
2774
2823
|
},
|
|
2775
2824
|
"delete-bundle": {
|
|
2776
2825
|
iconKey: "delete",
|
|
@@ -2779,7 +2828,7 @@ export const ACTIONS = {
|
|
|
2779
2828
|
ariaLabel: "Delete selected bundles",
|
|
2780
2829
|
description: "Permanently delete the selected bundles.",
|
|
2781
2830
|
kind: "danger",
|
|
2782
|
-
|
|
2831
|
+
roles: ["admin"],
|
|
2783
2832
|
confirmation: {
|
|
2784
2833
|
title: "Delete these bundles?",
|
|
2785
2834
|
body: "The selected bundles will be permanently removed. This action cannot be undone.",
|
|
@@ -2795,7 +2844,7 @@ export const ACTIONS = {
|
|
|
2795
2844
|
ariaLabel: "Manage this store",
|
|
2796
2845
|
description: "Open the store management panel.",
|
|
2797
2846
|
kind: "primary",
|
|
2798
|
-
|
|
2847
|
+
roles: ["admin"],
|
|
2799
2848
|
},
|
|
2800
2849
|
"manage-user": {
|
|
2801
2850
|
iconKey: "settings",
|
|
@@ -2804,35 +2853,7 @@ export const ACTIONS = {
|
|
|
2804
2853
|
ariaLabel: "Manage selected users",
|
|
2805
2854
|
description: "Open the user management panel.",
|
|
2806
2855
|
kind: "primary",
|
|
2807
|
-
|
|
2808
|
-
},
|
|
2809
|
-
// ── Carousel management ──────────────────────────────────────────────
|
|
2810
|
-
"edit-carousel": {
|
|
2811
|
-
iconKey: "edit",
|
|
2812
|
-
id: "admin.edit-carousel",
|
|
2813
|
-
label: "Edit Slide",
|
|
2814
|
-
ariaLabel: "Edit carousel slide",
|
|
2815
|
-
description: "Open the edit panel for a carousel slide.",
|
|
2816
|
-
kind: "ghost",
|
|
2817
|
-
permissions: ["admin"],
|
|
2818
|
-
},
|
|
2819
|
-
"activate-carousel": {
|
|
2820
|
-
iconKey: "resume",
|
|
2821
|
-
id: "admin.activate-carousel",
|
|
2822
|
-
label: "Activate",
|
|
2823
|
-
ariaLabel: "Show this slide in the carousel",
|
|
2824
|
-
description: "Set a carousel slide to active so the hero carousel renders it.",
|
|
2825
|
-
kind: "primary",
|
|
2826
|
-
permissions: ["admin"],
|
|
2827
|
-
},
|
|
2828
|
-
"deactivate-carousel": {
|
|
2829
|
-
iconKey: "hide",
|
|
2830
|
-
id: "admin.deactivate-carousel",
|
|
2831
|
-
label: "Deactivate",
|
|
2832
|
-
ariaLabel: "Hide this slide from the carousel",
|
|
2833
|
-
description: "Set a carousel slide to inactive without deleting it.",
|
|
2834
|
-
kind: "secondary",
|
|
2835
|
-
permissions: ["admin"],
|
|
2856
|
+
roles: ["admin"],
|
|
2836
2857
|
},
|
|
2837
2858
|
/*
|
|
2838
2859
|
* Homepage sections have no bucket of their own, so their leaves live here
|
|
@@ -2862,7 +2883,7 @@ export const ACTIONS = {
|
|
|
2862
2883
|
ariaLabel: "Edit this homepage section",
|
|
2863
2884
|
description: "Open the homepage sections list, which owns this section's config.",
|
|
2864
2885
|
kind: "ghost",
|
|
2865
|
-
|
|
2886
|
+
roles: ["admin"],
|
|
2866
2887
|
},
|
|
2867
2888
|
"enable-section": {
|
|
2868
2889
|
iconKey: "resume",
|
|
@@ -2871,7 +2892,7 @@ export const ACTIONS = {
|
|
|
2871
2892
|
ariaLabel: "Enable this homepage section",
|
|
2872
2893
|
description: "Render this section on its surface again.",
|
|
2873
2894
|
kind: "primary",
|
|
2874
|
-
|
|
2895
|
+
roles: ["admin"],
|
|
2875
2896
|
},
|
|
2876
2897
|
"disable-section": {
|
|
2877
2898
|
iconKey: "hide",
|
|
@@ -2880,7 +2901,7 @@ export const ACTIONS = {
|
|
|
2880
2901
|
ariaLabel: "Disable this homepage section",
|
|
2881
2902
|
description: "Stop rendering this section without deleting it or its saved config.",
|
|
2882
2903
|
kind: "secondary",
|
|
2883
|
-
|
|
2904
|
+
roles: ["admin"],
|
|
2884
2905
|
},
|
|
2885
2906
|
"delete-section": {
|
|
2886
2907
|
iconKey: "delete",
|
|
@@ -2889,7 +2910,7 @@ export const ACTIONS = {
|
|
|
2889
2910
|
ariaLabel: "Delete this homepage section",
|
|
2890
2911
|
description: "Permanently remove this homepage section and its saved config.",
|
|
2891
2912
|
kind: "danger",
|
|
2892
|
-
|
|
2913
|
+
roles: ["admin"],
|
|
2893
2914
|
confirmation: {
|
|
2894
2915
|
title: "Delete this section?",
|
|
2895
2916
|
/*
|
|
@@ -2909,7 +2930,7 @@ export const ACTIONS = {
|
|
|
2909
2930
|
ariaLabel: "Show this navigation item",
|
|
2910
2931
|
description: "Make a navigation item visible in the sidebar and menus.",
|
|
2911
2932
|
kind: "primary",
|
|
2912
|
-
|
|
2933
|
+
roles: ["admin"],
|
|
2913
2934
|
},
|
|
2914
2935
|
"hide-nav-item": {
|
|
2915
2936
|
iconKey: "hide",
|
|
@@ -2918,22 +2939,7 @@ export const ACTIONS = {
|
|
|
2918
2939
|
ariaLabel: "Hide this navigation item",
|
|
2919
2940
|
description: "Hide a navigation item without deleting it.",
|
|
2920
2941
|
kind: "secondary",
|
|
2921
|
-
|
|
2922
|
-
},
|
|
2923
|
-
"delete-carousel": {
|
|
2924
|
-
iconKey: "delete",
|
|
2925
|
-
id: "admin.delete-carousel",
|
|
2926
|
-
label: "Delete Slides",
|
|
2927
|
-
ariaLabel: "Delete selected carousel slides",
|
|
2928
|
-
description: "Permanently delete the selected carousel slides.",
|
|
2929
|
-
kind: "danger",
|
|
2930
|
-
permissions: ["admin"],
|
|
2931
|
-
confirmation: {
|
|
2932
|
-
title: "Delete these slides?",
|
|
2933
|
-
body: "The selected carousel slides will be permanently removed.",
|
|
2934
|
-
confirmLabel: "Delete",
|
|
2935
|
-
confirmKind: "danger",
|
|
2936
|
-
},
|
|
2942
|
+
roles: ["admin"],
|
|
2937
2943
|
},
|
|
2938
2944
|
// ── Contact management ────────────────────────────────────────────────
|
|
2939
2945
|
"mark-contact-read": {
|
|
@@ -2943,7 +2949,7 @@ export const ACTIONS = {
|
|
|
2943
2949
|
ariaLabel: "Mark selected messages as read",
|
|
2944
2950
|
description: "Mark one or more contact messages as read.",
|
|
2945
2951
|
kind: "primary",
|
|
2946
|
-
|
|
2952
|
+
roles: ["admin", "moderator"],
|
|
2947
2953
|
},
|
|
2948
2954
|
"archive-contact": {
|
|
2949
2955
|
iconKey: "archive",
|
|
@@ -2952,7 +2958,7 @@ export const ACTIONS = {
|
|
|
2952
2958
|
ariaLabel: "Archive selected messages",
|
|
2953
2959
|
description: "Move the selected contact messages to archive.",
|
|
2954
2960
|
kind: "secondary",
|
|
2955
|
-
|
|
2961
|
+
roles: ["admin", "moderator"],
|
|
2956
2962
|
},
|
|
2957
2963
|
"delete-contact": {
|
|
2958
2964
|
iconKey: "delete",
|
|
@@ -2961,7 +2967,7 @@ export const ACTIONS = {
|
|
|
2961
2967
|
ariaLabel: "Delete selected messages",
|
|
2962
2968
|
description: "Permanently delete the selected contact messages.",
|
|
2963
2969
|
kind: "danger",
|
|
2964
|
-
|
|
2970
|
+
roles: ["admin"],
|
|
2965
2971
|
confirmation: {
|
|
2966
2972
|
title: "Delete these messages?",
|
|
2967
2973
|
body: "The selected messages will be permanently removed.",
|
|
@@ -2977,7 +2983,7 @@ export const ACTIONS = {
|
|
|
2977
2983
|
ariaLabel: "Unsubscribe selected subscribers",
|
|
2978
2984
|
description: "Remove the selected subscribers from the newsletter.",
|
|
2979
2985
|
kind: "danger",
|
|
2980
|
-
|
|
2986
|
+
roles: ["admin"],
|
|
2981
2987
|
confirmation: {
|
|
2982
2988
|
title: "Unsubscribe these subscribers?",
|
|
2983
2989
|
body: "The selected subscribers will be removed from the newsletter.",
|
|
@@ -2993,7 +2999,7 @@ export const ACTIONS = {
|
|
|
2993
2999
|
ariaLabel: "Edit team member permissions",
|
|
2994
3000
|
description: "Open the permissions editor for a team member.",
|
|
2995
3001
|
kind: "ghost",
|
|
2996
|
-
|
|
3002
|
+
roles: ["admin"],
|
|
2997
3003
|
},
|
|
2998
3004
|
"remove-team-member": {
|
|
2999
3005
|
iconKey: "delete",
|
|
@@ -3002,7 +3008,7 @@ export const ACTIONS = {
|
|
|
3002
3008
|
ariaLabel: "Remove selected team members",
|
|
3003
3009
|
description: "Remove the selected team members.",
|
|
3004
3010
|
kind: "danger",
|
|
3005
|
-
|
|
3011
|
+
roles: ["admin"],
|
|
3006
3012
|
confirmation: {
|
|
3007
3013
|
title: "Remove these team members?",
|
|
3008
3014
|
body: "The selected team members will be removed from the team.",
|
|
@@ -3018,7 +3024,7 @@ export const ACTIONS = {
|
|
|
3018
3024
|
ariaLabel: "Delete selected FAQs",
|
|
3019
3025
|
description: "Permanently delete the selected FAQ entries.",
|
|
3020
3026
|
kind: "danger",
|
|
3021
|
-
|
|
3027
|
+
roles: ["admin"],
|
|
3022
3028
|
confirmation: {
|
|
3023
3029
|
title: "Delete these FAQs?",
|
|
3024
3030
|
body: "The selected FAQ entries will be permanently removed.",
|
|
@@ -3033,7 +3039,7 @@ export const ACTIONS = {
|
|
|
3033
3039
|
ariaLabel: "Archive selected FAQs",
|
|
3034
3040
|
description: "Archive the selected FAQ entries.",
|
|
3035
3041
|
kind: "secondary",
|
|
3036
|
-
|
|
3042
|
+
roles: ["admin", "moderator"],
|
|
3037
3043
|
},
|
|
3038
3044
|
// ── Coupon management ─────────────────────────────────────────────────
|
|
3039
3045
|
"delete-coupon": {
|
|
@@ -3043,7 +3049,7 @@ export const ACTIONS = {
|
|
|
3043
3049
|
ariaLabel: "Delete selected coupons",
|
|
3044
3050
|
description: "Permanently delete the selected coupons.",
|
|
3045
3051
|
kind: "danger",
|
|
3046
|
-
|
|
3052
|
+
roles: ["admin"],
|
|
3047
3053
|
confirmation: {
|
|
3048
3054
|
title: "Delete these coupons?",
|
|
3049
3055
|
body: "The selected coupons will be permanently removed. Active coupon codes will stop working.",
|
|
@@ -3058,7 +3064,7 @@ export const ACTIONS = {
|
|
|
3058
3064
|
ariaLabel: "Edit this coupon",
|
|
3059
3065
|
description: "Open the edit panel for a coupon.",
|
|
3060
3066
|
kind: "ghost",
|
|
3061
|
-
|
|
3067
|
+
roles: ["admin"],
|
|
3062
3068
|
},
|
|
3063
3069
|
"duplicate-coupon": {
|
|
3064
3070
|
iconKey: "duplicate",
|
|
@@ -3067,7 +3073,7 @@ export const ACTIONS = {
|
|
|
3067
3073
|
ariaLabel: "Duplicate this coupon",
|
|
3068
3074
|
description: "Create a copy of this coupon with a new code.",
|
|
3069
3075
|
kind: "ghost",
|
|
3070
|
-
|
|
3076
|
+
roles: ["admin"],
|
|
3071
3077
|
},
|
|
3072
3078
|
// ── Navigation management ─────────────────────────────────────────────
|
|
3073
3079
|
"edit-nav": {
|
|
@@ -3077,7 +3083,7 @@ export const ACTIONS = {
|
|
|
3077
3083
|
ariaLabel: "Edit navigation item",
|
|
3078
3084
|
description: "Edit a navigation menu item.",
|
|
3079
3085
|
kind: "ghost",
|
|
3080
|
-
|
|
3086
|
+
roles: ["admin"],
|
|
3081
3087
|
},
|
|
3082
3088
|
"delete-nav": {
|
|
3083
3089
|
iconKey: "delete",
|
|
@@ -3086,7 +3092,7 @@ export const ACTIONS = {
|
|
|
3086
3092
|
ariaLabel: "Delete selected navigation items",
|
|
3087
3093
|
description: "Permanently delete the selected navigation items.",
|
|
3088
3094
|
kind: "danger",
|
|
3089
|
-
|
|
3095
|
+
roles: ["admin"],
|
|
3090
3096
|
confirmation: {
|
|
3091
3097
|
title: "Delete these navigation items?",
|
|
3092
3098
|
body: "The selected navigation items will be permanently removed from the menu.",
|
|
@@ -3102,7 +3108,7 @@ export const ACTIONS = {
|
|
|
3102
3108
|
ariaLabel: "Delete selected sublisting categories",
|
|
3103
3109
|
description: "Permanently delete the selected sublisting categories.",
|
|
3104
3110
|
kind: "danger",
|
|
3105
|
-
|
|
3111
|
+
roles: ["admin"],
|
|
3106
3112
|
confirmation: {
|
|
3107
3113
|
title: "Delete these categories?",
|
|
3108
3114
|
body: "Products tagged with these categories will lose the tag.",
|
|
@@ -3118,7 +3124,7 @@ export const ACTIONS = {
|
|
|
3118
3124
|
ariaLabel: "Verify this scammer report",
|
|
3119
3125
|
description: "Mark a scammer report as verified after review.",
|
|
3120
3126
|
kind: "primary",
|
|
3121
|
-
|
|
3127
|
+
roles: ["admin", "moderator"],
|
|
3122
3128
|
},
|
|
3123
3129
|
"dismiss-scammer": {
|
|
3124
3130
|
iconKey: "reject",
|
|
@@ -3127,7 +3133,7 @@ export const ACTIONS = {
|
|
|
3127
3133
|
ariaLabel: "Dismiss this scammer report",
|
|
3128
3134
|
description: "Dismiss a scammer report as unverified.",
|
|
3129
3135
|
kind: "secondary",
|
|
3130
|
-
|
|
3136
|
+
roles: ["admin", "moderator"],
|
|
3131
3137
|
},
|
|
3132
3138
|
"delete-scammer": {
|
|
3133
3139
|
iconKey: "delete",
|
|
@@ -3136,7 +3142,7 @@ export const ACTIONS = {
|
|
|
3136
3142
|
ariaLabel: "Delete selected scammer reports",
|
|
3137
3143
|
description: "Permanently delete the selected scammer reports.",
|
|
3138
3144
|
kind: "danger",
|
|
3139
|
-
|
|
3145
|
+
roles: ["admin"],
|
|
3140
3146
|
confirmation: {
|
|
3141
3147
|
title: "Delete these reports?",
|
|
3142
3148
|
body: "The selected scammer reports will be permanently removed.",
|
|
@@ -3152,7 +3158,7 @@ export const ACTIONS = {
|
|
|
3152
3158
|
ariaLabel: "View support ticket details",
|
|
3153
3159
|
description: "Open the full support ticket details.",
|
|
3154
3160
|
kind: "ghost",
|
|
3155
|
-
|
|
3161
|
+
roles: ["admin", "moderator"],
|
|
3156
3162
|
},
|
|
3157
3163
|
"close-ticket": {
|
|
3158
3164
|
iconKey: "cancel",
|
|
@@ -3161,7 +3167,7 @@ export const ACTIONS = {
|
|
|
3161
3167
|
ariaLabel: "Close selected tickets",
|
|
3162
3168
|
description: "Close the selected support tickets.",
|
|
3163
3169
|
kind: "secondary",
|
|
3164
|
-
|
|
3170
|
+
roles: ["admin", "moderator"],
|
|
3165
3171
|
},
|
|
3166
3172
|
"escalate-ticket": {
|
|
3167
3173
|
iconKey: "report",
|
|
@@ -3170,7 +3176,7 @@ export const ACTIONS = {
|
|
|
3170
3176
|
ariaLabel: "Escalate this ticket",
|
|
3171
3177
|
description: "Escalate a support ticket to a higher priority.",
|
|
3172
3178
|
kind: "primary",
|
|
3173
|
-
|
|
3179
|
+
roles: ["admin", "moderator"],
|
|
3174
3180
|
},
|
|
3175
3181
|
// ── Event entry management ────────────────────────────────────────────
|
|
3176
3182
|
"approve-entry": {
|
|
@@ -3180,7 +3186,7 @@ export const ACTIONS = {
|
|
|
3180
3186
|
ariaLabel: "Approve selected event entries",
|
|
3181
3187
|
description: "Approve the selected event entries.",
|
|
3182
3188
|
kind: "primary",
|
|
3183
|
-
|
|
3189
|
+
roles: ["admin", "moderator"],
|
|
3184
3190
|
},
|
|
3185
3191
|
"reject-entry": {
|
|
3186
3192
|
iconKey: "reject",
|
|
@@ -3189,7 +3195,7 @@ export const ACTIONS = {
|
|
|
3189
3195
|
ariaLabel: "Reject selected event entries",
|
|
3190
3196
|
description: "Reject the selected event entries.",
|
|
3191
3197
|
kind: "danger",
|
|
3192
|
-
|
|
3198
|
+
roles: ["admin", "moderator"],
|
|
3193
3199
|
confirmation: {
|
|
3194
3200
|
title: "Reject these entries?",
|
|
3195
3201
|
body: "The selected entries will be rejected and participants will be notified.",
|
|
@@ -3205,7 +3211,7 @@ export const ACTIONS = {
|
|
|
3205
3211
|
ariaLabel: "Confirm this event entry",
|
|
3206
3212
|
description: "Confirm a single event entry.",
|
|
3207
3213
|
kind: "primary",
|
|
3208
|
-
|
|
3214
|
+
roles: ["admin", "moderator"],
|
|
3209
3215
|
},
|
|
3210
3216
|
"waitlist-entry": {
|
|
3211
3217
|
iconKey: "pause",
|
|
@@ -3214,7 +3220,7 @@ export const ACTIONS = {
|
|
|
3214
3220
|
ariaLabel: "Waitlist this event entry",
|
|
3215
3221
|
description: "Move a single event entry to waitlist.",
|
|
3216
3222
|
kind: "secondary",
|
|
3217
|
-
|
|
3223
|
+
roles: ["admin", "moderator"],
|
|
3218
3224
|
},
|
|
3219
3225
|
"cancel-entry": {
|
|
3220
3226
|
iconKey: "cancel",
|
|
@@ -3223,7 +3229,7 @@ export const ACTIONS = {
|
|
|
3223
3229
|
ariaLabel: "Cancel this event entry",
|
|
3224
3230
|
description: "Cancel a single event entry.",
|
|
3225
3231
|
kind: "danger",
|
|
3226
|
-
|
|
3232
|
+
roles: ["admin", "moderator"],
|
|
3227
3233
|
confirmation: {
|
|
3228
3234
|
title: "Cancel this entry?",
|
|
3229
3235
|
body: "This will remove the participant from the event. They can re-register if the event is still open.",
|
|
@@ -3239,7 +3245,7 @@ export const ACTIONS = {
|
|
|
3239
3245
|
ariaLabel: "Feature this review",
|
|
3240
3246
|
description: "Feature a review on the product page.",
|
|
3241
3247
|
kind: "ghost",
|
|
3242
|
-
|
|
3248
|
+
roles: ["admin", "moderator"],
|
|
3243
3249
|
},
|
|
3244
3250
|
"unfeature-review": {
|
|
3245
3251
|
iconKey: "review",
|
|
@@ -3248,7 +3254,7 @@ export const ACTIONS = {
|
|
|
3248
3254
|
ariaLabel: "Unfeature this review",
|
|
3249
3255
|
description: "Remove a review from the featured section.",
|
|
3250
3256
|
kind: "ghost",
|
|
3251
|
-
|
|
3257
|
+
roles: ["admin", "moderator"],
|
|
3252
3258
|
},
|
|
3253
3259
|
// ── Scammer management (row-level) ────────────────────────────────
|
|
3254
3260
|
"review-scammer": {
|
|
@@ -3258,7 +3264,7 @@ export const ACTIONS = {
|
|
|
3258
3264
|
ariaLabel: "Review this scammer report",
|
|
3259
3265
|
description: "Open the scammer profile for detailed review.",
|
|
3260
3266
|
kind: "ghost",
|
|
3261
|
-
|
|
3267
|
+
roles: ["admin", "moderator"],
|
|
3262
3268
|
},
|
|
3263
3269
|
// ── Bid management ────────────────────────────────────────────────────
|
|
3264
3270
|
"cancel-bid": {
|
|
@@ -3268,7 +3274,7 @@ export const ACTIONS = {
|
|
|
3268
3274
|
ariaLabel: "Cancel selected bids",
|
|
3269
3275
|
description: "Cancel the selected bids.",
|
|
3270
3276
|
kind: "danger",
|
|
3271
|
-
|
|
3277
|
+
roles: ["admin", "moderator"],
|
|
3272
3278
|
confirmation: {
|
|
3273
3279
|
title: "Cancel these bids?",
|
|
3274
3280
|
body: "The selected bids will be cancelled. Bidders will be notified.",
|
|
@@ -3285,7 +3291,7 @@ export const ACTIONS = {
|
|
|
3285
3291
|
kind: "danger",
|
|
3286
3292
|
// Admin only. The route is ROLES_ADMIN_ONLY, so listing "moderator" here
|
|
3287
3293
|
// showed a moderator an action that could only ever return 403.
|
|
3288
|
-
|
|
3294
|
+
roles: ["admin"],
|
|
3289
3295
|
confirmation: {
|
|
3290
3296
|
title: "Cancel this offer?",
|
|
3291
3297
|
body: "The offer will be expired and removed from the buyer's cart, and they'll be notified. This cannot be undone — the buyer would need to make a new offer.",
|
|
@@ -3301,7 +3307,7 @@ export const ACTIONS = {
|
|
|
3301
3307
|
ariaLabel: "Ban this address",
|
|
3302
3308
|
description: "Ban an address from being used on the platform.",
|
|
3303
3309
|
kind: "danger",
|
|
3304
|
-
|
|
3310
|
+
roles: ["admin", "moderator"],
|
|
3305
3311
|
confirmation: {
|
|
3306
3312
|
title: "Ban this address?",
|
|
3307
3313
|
body: "The address will be blocked from use at checkout across all accounts.",
|
|
@@ -3316,7 +3322,7 @@ export const ACTIONS = {
|
|
|
3316
3322
|
ariaLabel: "Approve unban request",
|
|
3317
3323
|
description: "Approve an address unban request and restore it to active.",
|
|
3318
3324
|
kind: "primary",
|
|
3319
|
-
|
|
3325
|
+
roles: ["admin"],
|
|
3320
3326
|
},
|
|
3321
3327
|
"reject-unban": {
|
|
3322
3328
|
iconKey: "reject",
|
|
@@ -3325,7 +3331,7 @@ export const ACTIONS = {
|
|
|
3325
3331
|
ariaLabel: "Reject unban request",
|
|
3326
3332
|
description: "Reject an address unban request — address stays banned.",
|
|
3327
3333
|
kind: "secondary",
|
|
3328
|
-
|
|
3334
|
+
roles: ["admin"],
|
|
3329
3335
|
},
|
|
3330
3336
|
// ── Payment method ban management ──────────────────────────────────────
|
|
3331
3337
|
"ban-payment-method": {
|
|
@@ -3335,7 +3341,7 @@ export const ACTIONS = {
|
|
|
3335
3341
|
ariaLabel: "Ban this payment method",
|
|
3336
3342
|
description: "Ban a payment identifier from being used on the platform.",
|
|
3337
3343
|
kind: "danger",
|
|
3338
|
-
|
|
3344
|
+
roles: ["admin", "moderator"],
|
|
3339
3345
|
confirmation: {
|
|
3340
3346
|
title: "Ban this payment method?",
|
|
3341
3347
|
body: "The payment identifier will be blocked from checkout across all accounts.",
|
|
@@ -3350,7 +3356,7 @@ export const ACTIONS = {
|
|
|
3350
3356
|
ariaLabel: "Approve payment method unban",
|
|
3351
3357
|
description: "Approve a payment method unban request.",
|
|
3352
3358
|
kind: "primary",
|
|
3353
|
-
|
|
3359
|
+
roles: ["admin"],
|
|
3354
3360
|
},
|
|
3355
3361
|
"reject-payment-unban": {
|
|
3356
3362
|
iconKey: "reject",
|
|
@@ -3359,7 +3365,7 @@ export const ACTIONS = {
|
|
|
3359
3365
|
ariaLabel: "Reject payment method unban",
|
|
3360
3366
|
description: "Reject a payment method unban request — stays banned.",
|
|
3361
3367
|
kind: "secondary",
|
|
3362
|
-
|
|
3368
|
+
roles: ["admin"],
|
|
3363
3369
|
},
|
|
3364
3370
|
},
|
|
3365
3371
|
CART: {
|
|
@@ -3570,7 +3576,7 @@ export const ACTIONS = {
|
|
|
3570
3576
|
ariaLabel: "Clear uploaded previews",
|
|
3571
3577
|
description: "Remove all preview images from the current session.",
|
|
3572
3578
|
kind: "secondary",
|
|
3573
|
-
|
|
3579
|
+
roles: ["admin", "moderator"],
|
|
3574
3580
|
},
|
|
3575
3581
|
"discard-staged": {
|
|
3576
3582
|
iconKey: "delete",
|
|
@@ -3579,7 +3585,7 @@ export const ACTIONS = {
|
|
|
3579
3585
|
ariaLabel: "Discard all staged uploads",
|
|
3580
3586
|
description: "Remove staged upload files from temporary storage.",
|
|
3581
3587
|
kind: "danger",
|
|
3582
|
-
|
|
3588
|
+
roles: ["admin", "moderator"],
|
|
3583
3589
|
confirmation: {
|
|
3584
3590
|
title: "Discard staged uploads?",
|
|
3585
3591
|
body: "All uploaded files not yet saved to a record will be deleted from storage.",
|
|
@@ -3602,7 +3608,7 @@ export const ACTIONS = {
|
|
|
3602
3608
|
ariaLabel: "Delete this media file",
|
|
3603
3609
|
description: "Permanently delete a media file and the asset row that resolves it.",
|
|
3604
3610
|
kind: "danger",
|
|
3605
|
-
|
|
3611
|
+
roles: ["admin"],
|
|
3606
3612
|
confirmation: {
|
|
3607
3613
|
title: "Delete this file?",
|
|
3608
3614
|
body: "The file is removed from storage and stops resolving. Any product, blog post or section still embedding it will show a broken image — this cannot be undone.",
|
|
@@ -3680,21 +3686,21 @@ export const ACTIONS = {
|
|
|
3680
3686
|
kind: "primary",
|
|
3681
3687
|
},
|
|
3682
3688
|
},
|
|
3683
|
-
|
|
3689
|
+
GIVEAWAY: {
|
|
3684
3690
|
"pull": {
|
|
3685
3691
|
iconKey: "retry",
|
|
3686
|
-
id: "
|
|
3692
|
+
id: "giveaway.pull",
|
|
3687
3693
|
label: "Submit Entry",
|
|
3688
|
-
description: "Submit a
|
|
3694
|
+
description: "Submit a giveaway pull entry — slot assigned immediately.",
|
|
3689
3695
|
kind: "primary",
|
|
3690
3696
|
},
|
|
3691
3697
|
"flag-entry": {
|
|
3692
3698
|
iconKey: "report",
|
|
3693
|
-
id: "
|
|
3699
|
+
id: "giveaway.flag-entry",
|
|
3694
3700
|
label: "Flag as Scammer",
|
|
3695
|
-
description: "Flag a
|
|
3701
|
+
description: "Flag a giveaway entry as fraudulent.",
|
|
3696
3702
|
kind: "danger",
|
|
3697
|
-
|
|
3703
|
+
roles: ["admin", "moderator"],
|
|
3698
3704
|
confirmation: {
|
|
3699
3705
|
title: "Flag this entry?",
|
|
3700
3706
|
body: "Entry will be marked fraudulent. Their claimed slot stays booked until you manually reopen it.",
|
|
@@ -3704,11 +3710,11 @@ export const ACTIONS = {
|
|
|
3704
3710
|
},
|
|
3705
3711
|
"reopen-slot": {
|
|
3706
3712
|
iconKey: "restore",
|
|
3707
|
-
id: "
|
|
3713
|
+
id: "giveaway.reopen-slot",
|
|
3708
3714
|
label: "Reopen Slot",
|
|
3709
3715
|
description: "Free a flagged entry's slot so it can be claimed again.",
|
|
3710
3716
|
kind: "secondary",
|
|
3711
|
-
|
|
3717
|
+
roles: ["admin"],
|
|
3712
3718
|
confirmation: {
|
|
3713
3719
|
title: "Reopen this slot?",
|
|
3714
3720
|
body: "The slot will be available for new pulls. The flagged entry's slot assignment is removed.",
|
|
@@ -3717,13 +3723,13 @@ export const ACTIONS = {
|
|
|
3717
3723
|
},
|
|
3718
3724
|
"cancel": {
|
|
3719
3725
|
iconKey: "cancel",
|
|
3720
|
-
id: "
|
|
3721
|
-
label: "Cancel
|
|
3726
|
+
id: "giveaway.cancel",
|
|
3727
|
+
label: "Cancel Giveaway",
|
|
3722
3728
|
description: "Close the draw window and reject pending pulls.",
|
|
3723
3729
|
kind: "danger",
|
|
3724
|
-
|
|
3730
|
+
roles: ["admin", "moderator"],
|
|
3725
3731
|
confirmation: {
|
|
3726
|
-
title: "Cancel
|
|
3732
|
+
title: "Cancel giveaway?",
|
|
3727
3733
|
body: "Draw window closes immediately. Pending pulls rejected.",
|
|
3728
3734
|
confirmLabel: "Cancel",
|
|
3729
3735
|
confirmKind: "danger",
|