@mohasinac/appkit 3.0.4 → 3.1.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/_internal/client/features/lottery/LotteryAdminEditView.d.ts +42 -0
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +86 -0
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts +14 -0
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +46 -0
- package/dist/_internal/client/features/lottery/LotteryDetailView.d.ts +28 -0
- package/dist/_internal/client/features/lottery/LotteryDetailView.js +17 -0
- package/dist/_internal/client/features/lottery/LotteryEntriesView.d.ts +23 -0
- package/dist/_internal/client/features/lottery/LotteryEntriesView.js +58 -0
- package/dist/_internal/client/features/lottery/LotteryListView.d.ts +21 -0
- package/dist/_internal/client/features/lottery/LotteryListView.js +25 -0
- package/dist/_internal/client/features/lottery/LotteryPullForm.d.ts +19 -0
- package/dist/_internal/client/features/lottery/LotteryPullForm.js +65 -0
- package/dist/_internal/client/features/lottery/LotterySlotGrid.d.ts +13 -0
- package/dist/_internal/client/features/lottery/LotterySlotGrid.js +21 -0
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.d.ts +28 -0
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +18 -0
- package/dist/_internal/server/features/auctions/__tests__/service.test.d.ts +1 -0
- package/dist/_internal/server/features/auctions/__tests__/service.test.js +140 -0
- package/dist/_internal/server/features/auctions/data.d.ts +2 -4
- package/dist/_internal/server/features/auctions/data.js +3 -9
- package/dist/_internal/server/features/checkout/__tests__/actions.test.d.ts +1 -0
- package/dist/_internal/server/features/checkout/__tests__/actions.test.js +600 -0
- package/dist/_internal/server/features/classified/adapters.d.ts +2 -15
- package/dist/_internal/server/features/classified/adapters.js +2 -17
- package/dist/_internal/server/features/classified/data.d.ts +1 -6
- package/dist/_internal/server/features/classified/data.js +2 -10
- package/dist/_internal/server/features/digital-code/adapters.d.ts +2 -15
- package/dist/_internal/server/features/digital-code/adapters.js +2 -17
- package/dist/_internal/server/features/digital-code/data.d.ts +1 -6
- package/dist/_internal/server/features/digital-code/data.js +2 -10
- package/dist/_internal/server/features/live/adapters.d.ts +2 -15
- package/dist/_internal/server/features/live/adapters.js +2 -17
- package/dist/_internal/server/features/live/data.d.ts +1 -6
- package/dist/_internal/server/features/live/data.js +2 -10
- package/dist/_internal/server/features/lottery/actions.d.ts +43 -0
- package/dist/_internal/server/features/lottery/actions.js +243 -0
- package/dist/_internal/server/features/lottery/adapters.d.ts +9 -0
- package/dist/_internal/server/features/lottery/adapters.js +21 -0
- package/dist/_internal/server/features/lottery/data.d.ts +20 -0
- package/dist/_internal/server/features/lottery/data.js +41 -0
- package/dist/_internal/server/features/lottery/metadata.d.ts +6 -0
- package/dist/_internal/server/features/lottery/metadata.js +31 -0
- package/dist/_internal/server/features/pre-orders/data.d.ts +2 -4
- package/dist/_internal/server/features/pre-orders/data.js +3 -9
- package/dist/_internal/server/features/prize-draws/actions.d.ts +2 -0
- package/dist/_internal/server/features/prize-draws/actions.js +22 -0
- package/dist/_internal/server/features/prize-draws/data.d.ts +1 -17
- package/dist/_internal/server/features/prize-draws/data.js +2 -20
- package/dist/_internal/server/features/prize-draws/index.d.ts +3 -1
- package/dist/_internal/server/features/prize-draws/index.js +2 -0
- package/dist/_internal/server/features/prize-draws/service.d.ts +3 -0
- package/dist/_internal/server/features/prize-draws/service.js +19 -0
- package/dist/_internal/server/features/refunds/__tests__/actions.test.d.ts +1 -0
- package/dist/_internal/server/features/refunds/__tests__/actions.test.js +263 -0
- package/dist/_internal/server/features/shared/listing-adapters.d.ts +19 -0
- package/dist/_internal/server/features/shared/listing-adapters.js +20 -0
- package/dist/_internal/server/features/shared/listing-data-factory.d.ts +9 -0
- package/dist/_internal/server/features/shared/listing-data-factory.js +33 -0
- package/dist/_internal/server/features/stores/data.d.ts +3 -14
- package/dist/_internal/server/features/stores/data.js +6 -44
- package/dist/_internal/server/jobs/core/__tests__/auctionSettlement.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/auctionSettlement.test.js +249 -0
- package/dist/_internal/server/jobs/core/__tests__/onBidPlaced.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/onBidPlaced.test.js +201 -0
- package/dist/_internal/server/jobs/core/__tests__/onOrderCreate.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/onOrderCreate.test.js +169 -0
- package/dist/_internal/server/jobs/core/__tests__/onOrderStatusChange.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/onOrderStatusChange.test.js +148 -0
- package/dist/_internal/server/jobs/core/__tests__/onProductStockChange.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/onProductStockChange.test.js +210 -0
- package/dist/_internal/server/jobs/core/__tests__/onReviewWrite.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/onReviewWrite.test.js +190 -0
- package/dist/_internal/server/jobs/core/__tests__/onUserBanChange.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/onUserBanChange.test.js +161 -0
- package/dist/_internal/server/jobs/core/__tests__/payoutBatch.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/payoutBatch.test.js +302 -0
- package/dist/_internal/server/jobs/core/__tests__/triggerEventRaffle.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/triggerEventRaffle.test.js +252 -0
- package/dist/_internal/server/jobs/core/__tests__/wrapJobHandler.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/wrapJobHandler.test.js +129 -0
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +46 -0
- package/dist/_internal/shared/features/cart/schema.d.ts +8 -8
- package/dist/_internal/shared/features/cart/schema.js +3 -0
- package/dist/_internal/shared/features/products/schema.d.ts +8 -8
- package/dist/_internal/shared/listing-types/_registry.js +2 -0
- package/dist/_internal/shared/listing-types/auction/schema.d.ts +3 -1
- package/dist/_internal/shared/listing-types/auction/schema.js +7 -1
- package/dist/_internal/shared/listing-types/classified/schema.d.ts +2 -1
- package/dist/_internal/shared/listing-types/classified/schema.js +3 -1
- package/dist/_internal/shared/listing-types/digital-code/schema.d.ts +3 -1
- package/dist/_internal/shared/listing-types/digital-code/schema.js +7 -1
- package/dist/_internal/shared/listing-types/live/schema.d.ts +2 -1
- package/dist/_internal/shared/listing-types/live/schema.js +3 -1
- package/dist/_internal/shared/listing-types/pre-order/schema.d.ts +3 -1
- package/dist/_internal/shared/listing-types/pre-order/schema.js +7 -1
- package/dist/_internal/shared/listing-types/prize-draw/schema.d.ts +3 -1
- package/dist/_internal/shared/listing-types/prize-draw/schema.js +13 -1
- package/dist/_internal/shared/listing-types/standard/schema.d.ts +2 -1
- package/dist/_internal/shared/listing-types/standard/schema.js +4 -1
- package/dist/_internal/shared/types/base-document.d.ts +15 -0
- package/dist/_internal/shared/types/base-document.js +1 -0
- package/dist/_internal/shared/types/index.d.ts +2 -0
- package/dist/_internal/shared/types/index.js +1 -0
- package/dist/client.d.ts +13 -4
- package/dist/client.js +11 -2
- package/dist/constants/api-endpoints.d.ts +12 -0
- package/dist/constants/api-endpoints.js +4 -0
- package/dist/constants/field-names.d.ts +5 -1
- package/dist/constants/field-names.js +5 -1
- package/dist/features/addresses/repository/__tests__/addresses.repository.test.d.ts +1 -0
- package/dist/features/addresses/repository/__tests__/addresses.repository.test.js +386 -0
- package/dist/features/addresses/schemas/firestore.d.ts +2 -4
- package/dist/features/admin/api/bids/route.d.ts +2 -2
- package/dist/features/admin/api/coupons/route.d.ts +2 -2
- package/dist/features/admin/api/products/route.d.ts +2 -2
- package/dist/features/admin/api/reviews/route.d.ts +2 -2
- package/dist/features/admin/components/AdminFulfillmentView.d.ts +6 -0
- package/dist/features/admin/components/AdminFulfillmentView.js +107 -0
- package/dist/features/admin/components/AdminProductEditorView.js +21 -9
- package/dist/features/admin/components/AdminProductsView.js +3 -0
- package/dist/features/admin/components/DataListingView.d.ts +1 -0
- package/dist/features/admin/components/index.d.ts +2 -0
- package/dist/features/admin/components/index.js +1 -0
- package/dist/features/admin/repository/__tests__/notification.repository.test.d.ts +1 -0
- package/dist/features/admin/repository/__tests__/notification.repository.test.js +356 -0
- package/dist/features/admin/repository/__tests__/site-settings.repository.test.d.ts +1 -0
- package/dist/features/admin/repository/__tests__/site-settings.repository.test.js +298 -0
- package/dist/features/admin/schemas/firestore.d.ts +3 -8
- package/dist/features/auctions/repository/__tests__/bid.repository.test.d.ts +1 -0
- package/dist/features/auctions/repository/__tests__/bid.repository.test.js +290 -0
- package/dist/features/auctions/schemas/firestore.d.ts +2 -4
- package/dist/features/auctions/schemas/index.d.ts +2 -2
- package/dist/features/auth/api/route.d.ts +2 -2
- package/dist/features/auth/repository/__tests__/session.repository.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/session.repository.test.js +310 -0
- package/dist/features/auth/repository/__tests__/session.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/session.test.js +146 -0
- package/dist/features/auth/repository/__tests__/sms-counter.repository.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/sms-counter.repository.test.js +171 -0
- package/dist/features/auth/repository/__tests__/sms-counter.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/sms-counter.test.js +88 -0
- package/dist/features/auth/repository/__tests__/token.repository.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/token.repository.test.js +260 -0
- package/dist/features/auth/repository/__tests__/token.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/token.test.js +140 -0
- package/dist/features/auth/repository/__tests__/user.repository.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/user.repository.test.js +352 -0
- package/dist/features/auth/repository/__tests__/user.test.d.ts +1 -0
- package/dist/features/auth/repository/__tests__/user.test.js +226 -0
- package/dist/features/auth/repository/session.repository.js +10 -1
- package/dist/features/before-after/schemas/index.d.ts +2 -2
- package/dist/features/blog/schemas/firestore.d.ts +2 -4
- package/dist/features/blog/schemas/index.d.ts +4 -4
- package/dist/features/cart/repository/__tests__/cart.repository.test.d.ts +1 -0
- package/dist/features/cart/repository/__tests__/cart.repository.test.js +371 -0
- package/dist/features/cart/repository/cart.repository.js +2 -2
- package/dist/features/cart/schemas/firestore.d.ts +2 -4
- package/dist/features/categories/api/[id]/route.d.ts +4 -4
- package/dist/features/categories/api/route.d.ts +2 -2
- package/dist/features/categories/repository/__tests__/categories.repository.test.d.ts +1 -0
- package/dist/features/categories/repository/__tests__/categories.repository.test.js +813 -0
- package/dist/features/categories/schemas/firestore.d.ts +2 -4
- package/dist/features/categories/schemas/index.d.ts +4 -4
- package/dist/features/events/components/EventCard.js +1 -0
- package/dist/features/events/repository/__tests__/event.repository.test.d.ts +1 -0
- package/dist/features/events/repository/__tests__/event.repository.test.js +299 -0
- package/dist/features/events/schemas/firestore.d.ts +5 -4
- package/dist/features/events/schemas/index.d.ts +836 -16
- package/dist/features/events/schemas/index.js +80 -1
- package/dist/features/events/types/index.d.ts +4 -1
- package/dist/features/faq/repository/__tests__/faqs.repository.test.d.ts +1 -0
- package/dist/features/faq/repository/__tests__/faqs.repository.test.js +311 -0
- package/dist/features/faq/schemas/firestore.d.ts +2 -4
- package/dist/features/faq/schemas/index.d.ts +2 -2
- package/dist/features/grouped/schemas/index.d.ts +2 -2
- package/dist/features/history/repository/__tests__/user-history.repository.test.d.ts +1 -0
- package/dist/features/history/repository/__tests__/user-history.repository.test.js +180 -0
- package/dist/features/homepage/api/[id]/route.d.ts +4 -4
- package/dist/features/homepage/api/carousel/[id]/route.d.ts +4 -4
- package/dist/features/homepage/api/carousel/route.d.ts +2 -2
- package/dist/features/homepage/api/route.d.ts +2 -2
- package/dist/features/homepage/repository/__tests__/carousel.repository.test.d.ts +1 -0
- package/dist/features/homepage/repository/__tests__/carousel.repository.test.js +182 -0
- package/dist/features/homepage/repository/__tests__/homepage-sections.repository.test.d.ts +1 -0
- package/dist/features/homepage/repository/__tests__/homepage-sections.repository.test.js +185 -0
- package/dist/features/homepage/schemas/firestore.d.ts +4 -12
- package/dist/features/homepage/schemas/index.d.ts +2 -2
- package/dist/features/lottery/repository/lottery-entry.repository.d.ts +33 -0
- package/dist/features/lottery/repository/lottery-entry.repository.js +130 -0
- package/dist/features/lottery/schemas/firestore.d.ts +49 -0
- package/dist/features/lottery/schemas/firestore.js +25 -0
- package/dist/features/lottery/schemas/zod.d.ts +113 -0
- package/dist/features/lottery/schemas/zod.js +39 -0
- package/dist/features/lottery/types/index.d.ts +67 -0
- package/dist/features/lottery/types/index.js +55 -0
- package/dist/features/messages/repository/__tests__/conversations.repository.test.d.ts +1 -0
- package/dist/features/messages/repository/__tests__/conversations.repository.test.js +257 -0
- package/dist/features/messages/schemas/firestore.d.ts +2 -4
- package/dist/features/messages/schemas/index.d.ts +2 -2
- package/dist/features/orders/repository/__tests__/orders.repository.test.d.ts +1 -0
- package/dist/features/orders/repository/__tests__/orders.repository.test.js +211 -0
- package/dist/features/orders/repository/orders.repository.d.ts +5 -0
- package/dist/features/orders/repository/orders.repository.js +26 -0
- package/dist/features/orders/schemas/firestore.d.ts +9 -5
- package/dist/features/orders/schemas/firestore.js +3 -0
- package/dist/features/payments/repository/__tests__/payout.repository.test.d.ts +1 -0
- package/dist/features/payments/repository/__tests__/payout.repository.test.js +292 -0
- package/dist/features/payments/schemas/firestore.d.ts +2 -4
- package/dist/features/pre-orders/schemas/index.d.ts +2 -2
- package/dist/features/products/api/[id]/route.d.ts +4 -4
- package/dist/features/products/api/route.d.ts +2 -2
- package/dist/features/products/constants/action-defs.d.ts +16 -0
- package/dist/features/products/constants/action-defs.js +16 -0
- package/dist/features/products/constants/listing-tabs.d.ts +48 -0
- package/dist/features/products/constants/listing-tabs.js +12 -0
- package/dist/features/products/repository/__tests__/product-features.repository.test.d.ts +1 -0
- package/dist/features/products/repository/__tests__/product-features.repository.test.js +329 -0
- package/dist/features/products/repository/__tests__/products.repository.test.d.ts +1 -0
- package/dist/features/products/repository/__tests__/products.repository.test.js +607 -0
- package/dist/features/products/repository/products.repository.d.ts +37 -0
- package/dist/features/products/repository/products.repository.js +28 -1
- package/dist/features/products/schemas/firestore.d.ts +23 -7
- package/dist/features/products/schemas/firestore.js +2 -0
- package/dist/features/products/schemas/index.d.ts +18 -18
- package/dist/features/products/schemas/index.js +4 -2
- package/dist/features/products/types/index.d.ts +3 -1
- package/dist/features/promotions/repository/__tests__/claimed-coupons.repository.test.d.ts +1 -0
- package/dist/features/promotions/repository/__tests__/claimed-coupons.repository.test.js +219 -0
- package/dist/features/promotions/repository/__tests__/coupons.repository.test.d.ts +1 -0
- package/dist/features/promotions/repository/__tests__/coupons.repository.test.js +480 -0
- package/dist/features/promotions/schemas/firestore.d.ts +2 -4
- package/dist/features/promotions/schemas/index.d.ts +4 -4
- package/dist/features/reviews/api/[id]/route.d.ts +4 -4
- package/dist/features/reviews/api/route.d.ts +2 -2
- package/dist/features/reviews/repository/__tests__/reviews.repository.test.d.ts +1 -0
- package/dist/features/reviews/repository/__tests__/reviews.repository.test.js +327 -0
- package/dist/features/reviews/schemas/firestore.d.ts +2 -4
- package/dist/features/reviews/schemas/index.d.ts +2 -2
- package/dist/features/scams/repository/__tests__/scammer.repository.test.d.ts +1 -0
- package/dist/features/scams/repository/__tests__/scammer.repository.test.js +385 -0
- package/dist/features/scams/schemas/firestore.d.ts +2 -4
- package/dist/features/scams/schemas/index.d.ts +4 -4
- package/dist/features/search/repository/__tests__/search.repository.test.d.ts +1 -0
- package/dist/features/search/repository/__tests__/search.repository.test.js +369 -0
- package/dist/features/search/schemas/index.d.ts +2 -2
- package/dist/features/seller/api/coupons/route.d.ts +2 -2
- package/dist/features/seller/api/offers/route.d.ts +2 -2
- package/dist/features/seller/api/products/route.d.ts +2 -2
- package/dist/features/seller/api/store/route.d.ts +2 -2
- package/dist/features/seller/components/BarcodeField.d.ts +17 -0
- package/dist/features/seller/components/BarcodeField.js +30 -0
- package/dist/features/seller/components/FulfillmentView.d.ts +5 -0
- package/dist/features/seller/components/FulfillmentView.js +120 -0
- package/dist/features/seller/components/PrintCenterView.d.ts +3 -1
- package/dist/features/seller/components/PrintCenterView.js +52 -4
- package/dist/features/seller/components/SellerProductShell.d.ts +2 -0
- package/dist/features/seller/components/SellerProductShell.js +2 -1
- package/dist/features/seller/components/index.d.ts +4 -0
- package/dist/features/seller/components/index.js +2 -0
- package/dist/features/seller/repository/__tests__/offer.repository.test.d.ts +1 -0
- package/dist/features/seller/repository/__tests__/offer.repository.test.js +458 -0
- package/dist/features/seller/schemas/index.d.ts +2 -2
- package/dist/features/store-extensions/schemas/firestore.d.ts +12 -44
- package/dist/features/stores/components/StoreClassifiedsListing.d.ts +5 -0
- package/dist/features/stores/components/StoreClassifiedsListing.js +48 -0
- package/dist/features/stores/components/StoreClassifiedsPageView.d.ts +4 -0
- package/dist/features/stores/components/StoreClassifiedsPageView.js +20 -0
- package/dist/features/stores/components/StoreDetailLayoutView.js +23 -2
- package/dist/features/stores/components/StoreDigitalCodesListing.d.ts +5 -0
- package/dist/features/stores/components/StoreDigitalCodesListing.js +48 -0
- package/dist/features/stores/components/StoreDigitalCodesPageView.d.ts +4 -0
- package/dist/features/stores/components/StoreDigitalCodesPageView.js +20 -0
- package/dist/features/stores/components/StoreLiveItemsListing.d.ts +5 -0
- package/dist/features/stores/components/StoreLiveItemsListing.js +48 -0
- package/dist/features/stores/components/StoreLiveItemsPageView.d.ts +4 -0
- package/dist/features/stores/components/StoreLiveItemsPageView.js +20 -0
- package/dist/features/stores/components/index.d.ts +9 -0
- package/dist/features/stores/components/index.js +3 -0
- package/dist/features/stores/repository/__tests__/store.repository.test.d.ts +1 -0
- package/dist/features/stores/repository/__tests__/store.repository.test.js +261 -0
- package/dist/features/stores/schemas/firestore.d.ts +2 -4
- package/dist/features/stores/schemas/index.d.ts +4 -4
- package/dist/features/support/repository/__tests__/support.repository.test.d.ts +1 -0
- package/dist/features/support/repository/__tests__/support.repository.test.js +312 -0
- package/dist/features/support/schemas/firestore.d.ts +2 -4
- package/dist/features/support/schemas/index.d.ts +2 -2
- package/dist/features/wishlist/repository/__tests__/user-wishlist.repository.test.d.ts +1 -0
- package/dist/features/wishlist/repository/__tests__/user-wishlist.repository.test.js +139 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +17 -0
- package/dist/next/api/routeHandler.d.ts +1 -1
- package/dist/next/routing/route-map.d.ts +24 -0
- package/dist/next/routing/route-map.js +11 -0
- package/dist/repositories/index.d.ts +1 -0
- package/dist/repositories/index.js +2 -0
- package/dist/schemas/registry.d.ts +24 -24
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +1 -1
- package/dist/security/pii-schemas.d.ts +2 -0
- package/dist/security/pii-schemas.js +6 -0
- package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
- package/dist/seed/events-seed-data.js +85 -2
- package/dist/seed/grouped-listings-seed-data.d.ts +5 -2
- package/dist/seed/index.d.ts +1 -0
- package/dist/seed/index.js +1 -0
- package/dist/seed/lottery-entries-seed-data.d.ts +2 -0
- package/dist/seed/lottery-entries-seed-data.js +108 -0
- package/dist/seed/manifest.js +1 -0
- package/dist/seed/products-preorders-seed-data.d.ts +5 -2
- package/dist/seed/products-standard-seed-data.js +8 -0
- package/dist/server-entry.d.ts +3 -0
- package/dist/server-entry.js +3 -0
- package/dist/server.d.ts +10 -4
- package/dist/server.js +6 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/utils/id-generators.d.ts +8 -0
- package/dist/utils/id-generators.js +14 -0
- package/package.json +2 -1
|
@@ -183,10 +183,10 @@ export declare const SCHEMAS: {
|
|
|
183
183
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
184
184
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
185
185
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
186
|
-
id: string;
|
|
187
186
|
title: string;
|
|
188
187
|
slug: string;
|
|
189
188
|
tags: string[];
|
|
189
|
+
id: string;
|
|
190
190
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
191
191
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
192
192
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -233,10 +233,10 @@ export declare const SCHEMAS: {
|
|
|
233
233
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
234
234
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
235
235
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
236
|
-
id: string;
|
|
237
236
|
title: string;
|
|
238
237
|
slug: string;
|
|
239
238
|
tags: string[];
|
|
239
|
+
id: string;
|
|
240
240
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
241
241
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
242
242
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -708,8 +708,8 @@ export declare const SCHEMAS: {
|
|
|
708
708
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
709
709
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
710
710
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
711
|
-
id: string;
|
|
712
711
|
title: string;
|
|
712
|
+
id: string;
|
|
713
713
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
714
714
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
715
715
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -817,8 +817,8 @@ export declare const SCHEMAS: {
|
|
|
817
817
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
818
818
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
819
819
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
820
|
-
id: string;
|
|
821
820
|
title: string;
|
|
821
|
+
id: string;
|
|
822
822
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
823
823
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
824
824
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1138,8 +1138,8 @@ export declare const SCHEMAS: {
|
|
|
1138
1138
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
1139
1139
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1140
1140
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
1141
|
-
id: string;
|
|
1142
1141
|
slug: string;
|
|
1142
|
+
id: string;
|
|
1143
1143
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
1144
1144
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1145
1145
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1232,8 +1232,8 @@ export declare const SCHEMAS: {
|
|
|
1232
1232
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
1233
1233
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1234
1234
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
1235
|
-
id: string;
|
|
1236
1235
|
slug: string;
|
|
1236
|
+
id: string;
|
|
1237
1237
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
1238
1238
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1239
1239
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1601,8 +1601,8 @@ export declare const SCHEMAS: {
|
|
|
1601
1601
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
1602
1602
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1603
1603
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
1604
|
-
id: string;
|
|
1605
1604
|
storeName: string;
|
|
1605
|
+
id: string;
|
|
1606
1606
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
1607
1607
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1608
1608
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1634,8 +1634,8 @@ export declare const SCHEMAS: {
|
|
|
1634
1634
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
1635
1635
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1636
1636
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
1637
|
-
id: string;
|
|
1638
1637
|
storeName: string;
|
|
1638
|
+
id: string;
|
|
1639
1639
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
1640
1640
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1641
1641
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1815,8 +1815,8 @@ export declare const SCHEMAS: {
|
|
|
1815
1815
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
1816
1816
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1817
1817
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
1818
|
-
id: string;
|
|
1819
1818
|
description: string;
|
|
1819
|
+
id: string;
|
|
1820
1820
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
1821
1821
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1822
1822
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1874,8 +1874,8 @@ export declare const SCHEMAS: {
|
|
|
1874
1874
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
1875
1875
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1876
1876
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
1877
|
-
id: string;
|
|
1878
1877
|
description: string;
|
|
1878
|
+
id: string;
|
|
1879
1879
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
1880
1880
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
1881
1881
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -2044,8 +2044,8 @@ export declare const SCHEMAS: {
|
|
|
2044
2044
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
2045
2045
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2046
2046
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2047
|
-
id: string;
|
|
2048
2047
|
tags: string[];
|
|
2048
|
+
id: string;
|
|
2049
2049
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
2050
2050
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2051
2051
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -2083,8 +2083,8 @@ export declare const SCHEMAS: {
|
|
|
2083
2083
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
2084
2084
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2085
2085
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2086
|
-
id: string;
|
|
2087
2086
|
tags: string[];
|
|
2087
|
+
id: string;
|
|
2088
2088
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
2089
2089
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2090
2090
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -2153,9 +2153,9 @@ export declare const SCHEMAS: {
|
|
|
2153
2153
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
2154
2154
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2155
2155
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2156
|
-
id: string;
|
|
2157
2156
|
title: string;
|
|
2158
2157
|
slug: string;
|
|
2158
|
+
id: string;
|
|
2159
2159
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
2160
2160
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2161
2161
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -2176,9 +2176,9 @@ export declare const SCHEMAS: {
|
|
|
2176
2176
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
2177
2177
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2178
2178
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
2179
|
-
id: string;
|
|
2180
2179
|
title: string;
|
|
2181
2180
|
slug: string;
|
|
2181
|
+
id: string;
|
|
2182
2182
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
2183
2183
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
2184
2184
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -3042,8 +3042,8 @@ export declare const SCHEMAS: {
|
|
|
3042
3042
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
3043
3043
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3044
3044
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3045
|
-
id: string;
|
|
3046
3045
|
title: string;
|
|
3046
|
+
id: string;
|
|
3047
3047
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
3048
3048
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3049
3049
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -3089,8 +3089,8 @@ export declare const SCHEMAS: {
|
|
|
3089
3089
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
3090
3090
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3091
3091
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3092
|
-
id: string;
|
|
3093
3092
|
title: string;
|
|
3093
|
+
id: string;
|
|
3094
3094
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
3095
3095
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3096
3096
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -3197,9 +3197,9 @@ export declare const SCHEMAS: {
|
|
|
3197
3197
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
3198
3198
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3199
3199
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3200
|
-
id: string;
|
|
3201
3200
|
description: string;
|
|
3202
3201
|
tags: string[];
|
|
3202
|
+
id: string;
|
|
3203
3203
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
3204
3204
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3205
3205
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -3237,9 +3237,9 @@ export declare const SCHEMAS: {
|
|
|
3237
3237
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
3238
3238
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3239
3239
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3240
|
-
id: string;
|
|
3241
3240
|
description: string;
|
|
3242
3241
|
tags: string[];
|
|
3242
|
+
id: string;
|
|
3243
3243
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
3244
3244
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3245
3245
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -3309,8 +3309,8 @@ export declare const SCHEMAS: {
|
|
|
3309
3309
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
3310
3310
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3311
3311
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3312
|
-
id: string;
|
|
3313
3312
|
description: string;
|
|
3313
|
+
id: string;
|
|
3314
3314
|
scamType: string;
|
|
3315
3315
|
reportedBy: string;
|
|
3316
3316
|
scammerId: string;
|
|
@@ -3332,8 +3332,8 @@ export declare const SCHEMAS: {
|
|
|
3332
3332
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
3333
3333
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3334
3334
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3335
|
-
id: string;
|
|
3336
3335
|
description: string;
|
|
3336
|
+
id: string;
|
|
3337
3337
|
scamType: string;
|
|
3338
3338
|
reportedBy: string;
|
|
3339
3339
|
scammerId: string;
|
|
@@ -3775,8 +3775,8 @@ export declare const SCHEMAS: {
|
|
|
3775
3775
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
3776
3776
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3777
3777
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3778
|
-
id: string;
|
|
3779
3778
|
storeName: string;
|
|
3779
|
+
id: string;
|
|
3780
3780
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
3781
3781
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3782
3782
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -3859,8 +3859,8 @@ export declare const SCHEMAS: {
|
|
|
3859
3859
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
3860
3860
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3861
3861
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
3862
|
-
id: string;
|
|
3863
3862
|
storeName: string;
|
|
3863
|
+
id: string;
|
|
3864
3864
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
3865
3865
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
3866
3866
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -4038,8 +4038,8 @@ export declare const SCHEMAS: {
|
|
|
4038
4038
|
createdAt: string | Date | import("zod").objectOutputType<{
|
|
4039
4039
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
4040
4040
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
4041
|
-
id: string;
|
|
4042
4041
|
description: string;
|
|
4042
|
+
id: string;
|
|
4043
4043
|
updatedAt: string | Date | import("zod").objectOutputType<{
|
|
4044
4044
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
4045
4045
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -4081,8 +4081,8 @@ export declare const SCHEMAS: {
|
|
|
4081
4081
|
createdAt: string | Date | import("zod").objectInputType<{
|
|
4082
4082
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
4083
4083
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
4084
|
-
id: string;
|
|
4085
4084
|
description: string;
|
|
4085
|
+
id: string;
|
|
4086
4086
|
updatedAt: string | Date | import("zod").objectInputType<{
|
|
4087
4087
|
toDate: import("zod").ZodFunction<import("zod").ZodTuple<[], import("zod").ZodUnknown>, import("zod").ZodDate>;
|
|
4088
4088
|
}, import("zod").ZodTypeAny, "passthrough">;
|
package/dist/security/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { requireAuth, requireRole, requireOwnership, requireEmailVerified, requi
|
|
|
5
5
|
export type { UserRole } from "./authorization";
|
|
6
6
|
export { redactPii, safeDisplayName, safeDisplayEmail, maskIp } from "./pii-redact";
|
|
7
7
|
export { encryptValue, decryptValue, hmacBlindIndex, encryptPiiFields, decryptPiiFields, encryptPii, decryptPii, isPiiEncrypted, piiBlindIndex, addPiiIndices, getPiiConfigError, encryptShippingAddress, decryptShippingAddress, encryptPayoutDetails, decryptPayoutDetails, encryptShippingConfig, decryptShippingConfig, encryptPayoutBankAccount, decryptPayoutBankAccount, maskName, maskEmail, maskPublicReview, maskPublicBid, maskPublicEventEntry, maskOfferForSeller, ENC_PREFIX, HMAC_PREFIX, } from "./pii-encrypt";
|
|
8
|
-
export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, } from "./pii-schemas";
|
|
8
|
+
export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, LOTTERY_ENTRY_PII_FIELDS, } from "./pii-schemas";
|
|
9
9
|
export { encryptSecret, decryptSecret, isSecretEncrypted, maskSecret, } from "./settings-encryption";
|
|
10
10
|
export type { Permission, RoleDefinition, RbacConfig, ResolvedUser, RbacHookReturn, } from "./rbac";
|
|
11
11
|
export { DEFAULT_ROLES, resolvePermissions, hasPermission, hasAllPermissions, hasAnyPermission, createRbacHook, Can, createRequirePermission, createRequirePermissionSync, createRbacMiddleware, } from "./rbac";
|
package/dist/security/index.js
CHANGED
|
@@ -3,6 +3,6 @@ export { rateLimit, applyRateLimit, rateLimitByIdentifier, RateLimitPresets, cle
|
|
|
3
3
|
export { requireAuth, requireRole, requireOwnership, requireEmailVerified, requireActiveAccount, canChangeRole, getRoleLevel, } from "./authorization";
|
|
4
4
|
export { redactPii, safeDisplayName, safeDisplayEmail, maskIp } from "./pii-redact";
|
|
5
5
|
export { encryptValue, decryptValue, hmacBlindIndex, encryptPiiFields, decryptPiiFields, encryptPii, decryptPii, isPiiEncrypted, piiBlindIndex, addPiiIndices, getPiiConfigError, encryptShippingAddress, decryptShippingAddress, encryptPayoutDetails, decryptPayoutDetails, encryptShippingConfig, decryptShippingConfig, encryptPayoutBankAccount, decryptPayoutBankAccount, maskName, maskEmail, maskPublicReview, maskPublicBid, maskPublicEventEntry, maskOfferForSeller, ENC_PREFIX, HMAC_PREFIX, } from "./pii-encrypt";
|
|
6
|
-
export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, } from "./pii-schemas";
|
|
6
|
+
export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, LOTTERY_ENTRY_PII_FIELDS, } from "./pii-schemas";
|
|
7
7
|
export { encryptSecret, decryptSecret, isSecretEncrypted, maskSecret, } from "./settings-encryption";
|
|
8
8
|
export { DEFAULT_ROLES, resolvePermissions, hasPermission, hasAllPermissions, hasAnyPermission, createRbacHook, Can, createRequirePermission, createRequirePermissionSync, createRbacMiddleware, } from "./rbac";
|
|
@@ -36,5 +36,7 @@ export declare const OFFER_PII_FIELDS: readonly ["buyerName", "buyerEmail", "sel
|
|
|
36
36
|
export declare const CHAT_PII_FIELDS: readonly ["buyerName", "sellerName"];
|
|
37
37
|
/** PII fields in event entries */
|
|
38
38
|
export declare const EVENT_ENTRY_PII_FIELDS: readonly ["userDisplayName", "userEmail", "ipAddress"];
|
|
39
|
+
/** PII fields in lottery entries */
|
|
40
|
+
export declare const LOTTERY_ENTRY_PII_FIELDS: readonly ["userPhone", "userEmail", "userDisplayName"];
|
|
39
41
|
/** Store OAuth bearer tokens — encrypted via SETTINGS_ENCRYPTION_KEY */
|
|
40
42
|
export declare const STORE_SECRET_FIELDS: readonly ["whatsappConfig.accessToken"];
|
|
@@ -60,5 +60,11 @@ export const EVENT_ENTRY_PII_FIELDS = [
|
|
|
60
60
|
"userEmail",
|
|
61
61
|
"ipAddress",
|
|
62
62
|
];
|
|
63
|
+
/** PII fields in lottery entries */
|
|
64
|
+
export const LOTTERY_ENTRY_PII_FIELDS = [
|
|
65
|
+
"userPhone",
|
|
66
|
+
"userEmail",
|
|
67
|
+
"userDisplayName",
|
|
68
|
+
];
|
|
63
69
|
/** Store OAuth bearer tokens — encrypted via SETTINGS_ENCRYPTION_KEY */
|
|
64
70
|
export const STORE_SECRET_FIELDS = ["whatsappConfig.accessToken"];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* the actual collection-specific seeding logic (800+ lines with PII encryption,
|
|
7
7
|
* Auth user creation, subcollection handling, etc.).
|
|
8
8
|
*/
|
|
9
|
-
export type SeedCollectionName = "users" | "addresses" | "categories" | "stores" | "products" | "orders" | "reviews" | "bids" | "coupons" | "carousels" | "carouselSlides" | "homepageSections" | "siteSettings" | "faqs" | "notifications" | "payouts" | "blogPosts" | "events" | "eventEntries" | "sessions" | "carts" | "wishlists" | "history" | "conversations" | "groupedListings" | "scammerProfiles" | "supportTickets" | "productFeatures" | "offers" | "couponUsage" | "claimedCoupons" | "payoutMethods" | "shippingConfigs" | "analyticsCards" | "analyticsAlerts" | "storeCategories" | "listingTemplates" | "moderationQueue" | "reports" | "itemRequests" | "storeWhatsAppConfig" | "storeGoogleConfig" | "roleOverrides" | "customRoles" | "adminNotifications";
|
|
9
|
+
export type SeedCollectionName = "users" | "addresses" | "categories" | "stores" | "products" | "orders" | "reviews" | "bids" | "coupons" | "carousels" | "carouselSlides" | "homepageSections" | "siteSettings" | "faqs" | "notifications" | "payouts" | "blogPosts" | "events" | "eventEntries" | "sessions" | "carts" | "wishlists" | "history" | "conversations" | "groupedListings" | "scammerProfiles" | "supportTickets" | "productFeatures" | "offers" | "couponUsage" | "claimedCoupons" | "payoutMethods" | "shippingConfigs" | "analyticsCards" | "analyticsAlerts" | "storeCategories" | "listingTemplates" | "moderationQueue" | "reports" | "itemRequests" | "storeWhatsAppConfig" | "storeGoogleConfig" | "roleOverrides" | "customRoles" | "adminNotifications" | "lotteryEntries";
|
|
10
10
|
export interface SeedOperationResult {
|
|
11
11
|
success?: boolean;
|
|
12
12
|
message: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* WHY: Seeds
|
|
3
|
-
* WHAT: 2 upcoming + 4 active + 2 ended. Includes raffle (open + drawn), spin wheel, poll, survey, feedback, sale, offer.
|
|
2
|
+
* WHY: Seeds 10 YGO-themed events covering all event types (poll, survey, sale, raffle, spin_wheel, feedback, offer, lottery).
|
|
3
|
+
* WHAT: 2 upcoming + 4 active + 2 ended + 2 lottery (1 active, 1 draft). Includes raffle (open + drawn), spin wheel, poll, survey, feedback, sale, offer.
|
|
4
4
|
*
|
|
5
5
|
* EXPORTS:
|
|
6
6
|
* eventsSeedData — Array of EventDocument for seed runner
|
|
@@ -217,6 +217,89 @@ export const eventsSeedData = [
|
|
|
217
217
|
createdAt: daysAgo(35),
|
|
218
218
|
updatedAt: daysAgo(5),
|
|
219
219
|
},
|
|
220
|
+
// ── 9. ACTIVE — Lottery: Pokémon Number Draw (July 2026) ─────────────────
|
|
221
|
+
{
|
|
222
|
+
id: "event-pokemon-number-draw-july-2026",
|
|
223
|
+
slug: "pokemon-number-draw-july-2026",
|
|
224
|
+
type: "lottery",
|
|
225
|
+
title: "Pokémon Number Draw — July 2026",
|
|
226
|
+
description: "<p>Choose your lucky slot and win rare Pokémon collectibles! 25 slots available. Each slot is assigned a prize from our collection. First-come, first-served.</p>",
|
|
227
|
+
status: EVENT_FIELDS.STATUS_VALUES.ACTIVE,
|
|
228
|
+
startsAt: daysAgo(2),
|
|
229
|
+
endsAt: daysAhead(5),
|
|
230
|
+
coverImage: { type: "image", url: seedExtMedia("https://upload.wikimedia.org/wikipedia/commons/9/98/International_Pok%C3%A9mon_logo.svg"), alt: "Pok\u00e9mon Number Draw" },
|
|
231
|
+
tags: ["lottery", "pokemon", "prizes"],
|
|
232
|
+
lotteryConfig: {
|
|
233
|
+
totalSlots: 25,
|
|
234
|
+
pricingMode: "variable",
|
|
235
|
+
drawWindowDurationMinutes: 5,
|
|
236
|
+
maxPullsPerTransaction: 1,
|
|
237
|
+
maxPullsPerUser: 1,
|
|
238
|
+
slots: [
|
|
239
|
+
{ slotNumber: 1, name: "Charizard Base Set Holo", priceInPaise: 500000, weight: 1, isBooked: true, bookedByUserId: "user-ravi-k", bookedByDisplayName: "Ravi K", bookedByUserLotteryNumber: 1 },
|
|
240
|
+
{ slotNumber: 2, name: "Blastoise Base Set Holo", priceInPaise: 300000, weight: 33, isBooked: true, bookedByUserId: "user-priya-s", bookedByDisplayName: "Priya S", bookedByUserLotteryNumber: 2 },
|
|
241
|
+
{ slotNumber: 3, name: "Venusaur Base Set Holo", priceInPaise: 250000, weight: 40, isBooked: true, bookedByUserId: "user-arjun-m", bookedByDisplayName: "Arjun M", bookedByUserLotteryNumber: 3 },
|
|
242
|
+
{ slotNumber: 4, name: "Pikachu Surfing Promo", priceInPaise: 150000, weight: 66, isBooked: true, bookedByUserId: "user-sneha-p", bookedByDisplayName: "Sneha P", bookedByUserLotteryNumber: 4 },
|
|
243
|
+
{ slotNumber: 5, name: "Mewtwo Base Set Holo", priceInPaise: 200000, weight: 50, isBooked: true, bookedByUserId: "user-vikram-r", bookedByDisplayName: "Vikram R", bookedByUserLotteryNumber: 5 },
|
|
244
|
+
{ slotNumber: 6, name: "Gengar First Ed. Fossil", priceInPaise: 350000, weight: 28, isBooked: false },
|
|
245
|
+
{ slotNumber: 7, name: "Alakazam Base Set Holo", priceInPaise: 80000, weight: 93, isBooked: false },
|
|
246
|
+
{ slotNumber: 8, name: "Machamp 1st Ed. Base Set", priceInPaise: 40000, weight: 99, isBooked: false },
|
|
247
|
+
{ slotNumber: 9, name: "Clefairy Base Set Holo", priceInPaise: 60000, weight: 95, isBooked: false },
|
|
248
|
+
{ slotNumber: 10, name: "Chansey Base Set Holo", priceInPaise: 70000, weight: 94, isBooked: false },
|
|
249
|
+
{ slotNumber: 11, name: "Ninetales Base Set Holo", priceInPaise: 100000, weight: 80, isBooked: false },
|
|
250
|
+
{ slotNumber: 12, name: "Scyther Jungle Holo", priceInPaise: 50000, weight: 97, isBooked: false },
|
|
251
|
+
{ slotNumber: 13, name: "Gyarados Base Set Holo", priceInPaise: 120000, weight: 76, isBooked: false },
|
|
252
|
+
{ slotNumber: 14, name: "Lapras Fossil Holo", priceInPaise: 90000, weight: 88, isBooked: false },
|
|
253
|
+
{ slotNumber: 15, name: "Zapdos Fossil Holo", priceInPaise: 220000, weight: 45, isBooked: false },
|
|
254
|
+
{ slotNumber: 16, name: "Articuno Fossil Holo", priceInPaise: 200000, weight: 50, isBooked: false },
|
|
255
|
+
{ slotNumber: 17, name: "Moltres Fossil Holo", priceInPaise: 180000, weight: 55, isBooked: false },
|
|
256
|
+
{ slotNumber: 18, name: "Dragonite Base Set Holo", priceInPaise: 400000, weight: 20, isBooked: false },
|
|
257
|
+
{ slotNumber: 19, name: "Snorlax Jungle Holo", priceInPaise: 60000, weight: 95, isBooked: false },
|
|
258
|
+
{ slotNumber: 20, name: "Jolteon Jungle Holo", priceInPaise: 70000, weight: 94, isBooked: false },
|
|
259
|
+
{ slotNumber: 21, name: "Flareon Jungle Holo", priceInPaise: 70000, weight: 94, isBooked: false },
|
|
260
|
+
{ slotNumber: 22, name: "Vaporeon Jungle Holo", priceInPaise: 70000, weight: 94, isBooked: false },
|
|
261
|
+
{ slotNumber: 23, name: "Espeon Neo Discovery Holo", priceInPaise: 80000, weight: 93, isBooked: false },
|
|
262
|
+
{ slotNumber: 24, name: "Umbreon Neo Discovery Holo", priceInPaise: 100000, weight: 80, isBooked: false },
|
|
263
|
+
{ slotNumber: 25, name: "Lugia Neo Genesis Holo", priceInPaise: 450000, weight: 10, isBooked: false },
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
stats: { totalEntries: 5, approvedEntries: 5, flaggedEntries: 0 },
|
|
267
|
+
createdBy: "user-admin-letitrip",
|
|
268
|
+
createdAt: daysAgo(3),
|
|
269
|
+
updatedAt: daysAgo(0),
|
|
270
|
+
},
|
|
271
|
+
// ── 10. DRAFT — Lottery: Yu-Gi-Oh! Slot Raffle ───────────────────────────
|
|
272
|
+
{
|
|
273
|
+
id: "event-yugioh-slot-raffle-draft",
|
|
274
|
+
slug: "yugioh-slot-raffle-draft",
|
|
275
|
+
type: "lottery",
|
|
276
|
+
title: "Yu-Gi-Oh! Slot Raffle — Coming Soon",
|
|
277
|
+
description: "<p>10 rare YGO slots up for grabs. Details coming soon!</p>",
|
|
278
|
+
status: EVENT_FIELDS.STATUS_VALUES.DRAFT,
|
|
279
|
+
startsAt: daysAhead(7),
|
|
280
|
+
endsAt: daysAhead(14),
|
|
281
|
+
coverImage: { type: "image", url: seedExtMedia("https://upload.wikimedia.org/wikipedia/en/3/3d/Yu-Gi-Oh%21_Logo.png"), alt: "Yu-Gi-Oh! Slot Raffle" },
|
|
282
|
+
tags: ["lottery", "yugioh", "prizes"],
|
|
283
|
+
lotteryConfig: {
|
|
284
|
+
totalSlots: 10,
|
|
285
|
+
pricingMode: "uniform",
|
|
286
|
+
uniformPriceInPaise: 50000,
|
|
287
|
+
drawWindowDurationMinutes: 10,
|
|
288
|
+
maxPullsPerTransaction: 1,
|
|
289
|
+
maxPullsPerUser: 1,
|
|
290
|
+
slots: Array.from({ length: 10 }, (_, i) => ({
|
|
291
|
+
slotNumber: i + 1,
|
|
292
|
+
name: `Prize Slot ${i + 1}`,
|
|
293
|
+
priceInPaise: 50000,
|
|
294
|
+
weight: 50,
|
|
295
|
+
isBooked: false,
|
|
296
|
+
})),
|
|
297
|
+
},
|
|
298
|
+
stats: { totalEntries: 0, approvedEntries: 0, flaggedEntries: 0 },
|
|
299
|
+
createdBy: "user-admin-letitrip",
|
|
300
|
+
createdAt: daysAgo(1),
|
|
301
|
+
updatedAt: daysAgo(0),
|
|
302
|
+
},
|
|
220
303
|
];
|
|
221
304
|
// ── Event Entries ────────────────────────────────────────────────────────────
|
|
222
305
|
export const eventEntriesSeedData = [
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const groupedListingsSeedData: {
|
|
2
2
|
listingType: "standard";
|
|
3
|
-
id?: string | undefined;
|
|
4
3
|
title?: string | undefined;
|
|
5
4
|
description?: string | undefined;
|
|
6
5
|
slug?: string | undefined;
|
|
@@ -32,7 +31,7 @@ export declare const groupedListingsSeedData: {
|
|
|
32
31
|
features?: string[] | undefined;
|
|
33
32
|
shippingInfo?: string | undefined;
|
|
34
33
|
returnPolicy?: string | undefined;
|
|
35
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
34
|
+
condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
36
35
|
insurance?: boolean | undefined;
|
|
37
36
|
insuranceCost?: number | undefined;
|
|
38
37
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -103,6 +102,8 @@ export declare const groupedListingsSeedData: {
|
|
|
103
102
|
prizeRevealStatus?: "pending" | "open" | "closed" | undefined;
|
|
104
103
|
prizeRevealDeadlineDays?: number | undefined;
|
|
105
104
|
prizeGithubFileUrl?: string | undefined;
|
|
105
|
+
prizeDrawMode?: "reveal" | "lottery" | undefined;
|
|
106
|
+
lotteryConfig?: import("..").LotteryConfig | undefined;
|
|
106
107
|
shipping?: {
|
|
107
108
|
allowedProviderIds?: string[];
|
|
108
109
|
overrides?: Array<{
|
|
@@ -117,7 +118,9 @@ export declare const groupedListingsSeedData: {
|
|
|
117
118
|
shelf: string;
|
|
118
119
|
bin: string;
|
|
119
120
|
} | undefined;
|
|
121
|
+
barcodeId?: string | undefined;
|
|
120
122
|
searchTokens?: string[] | undefined;
|
|
123
|
+
id?: string | undefined;
|
|
121
124
|
createdAt?: Date | undefined;
|
|
122
125
|
updatedAt?: Date | undefined;
|
|
123
126
|
}[];
|
package/dist/seed/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export type { CouponUsageSeedRecord } from "./coupon-usage-seed-data";
|
|
|
61
61
|
export { couponUsageSeedData } from "./coupon-usage-seed-data";
|
|
62
62
|
export { claimedCouponsSeedData } from "./claimed-coupons-seed-data";
|
|
63
63
|
export { eventsSeedData, eventEntriesSeedData } from "./events-seed-data";
|
|
64
|
+
export { lotteryEntriesSeedData } from "./lottery-entries-seed-data";
|
|
64
65
|
export { payoutsSeedData } from "./payouts-seed-data";
|
|
65
66
|
export { notificationsSeedData } from "./notifications-seed-data";
|
|
66
67
|
export { blogPostsSeedData } from "./blog-posts-seed-data";
|
package/dist/seed/index.js
CHANGED
|
@@ -48,6 +48,7 @@ export { couponsSeedData } from "./coupons-seed-data";
|
|
|
48
48
|
export { couponUsageSeedData } from "./coupon-usage-seed-data";
|
|
49
49
|
export { claimedCouponsSeedData } from "./claimed-coupons-seed-data";
|
|
50
50
|
export { eventsSeedData, eventEntriesSeedData } from "./events-seed-data";
|
|
51
|
+
export { lotteryEntriesSeedData } from "./lottery-entries-seed-data";
|
|
51
52
|
export { payoutsSeedData } from "./payouts-seed-data";
|
|
52
53
|
export { notificationsSeedData } from "./notifications-seed-data";
|
|
53
54
|
export { blogPostsSeedData } from "./blog-posts-seed-data";
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Seeds 5 lottery entries for the active Pokémon Number Draw event.
|
|
3
|
+
* WHAT: 5 entries with userLotteryNumber 1-5, all status "drawn" (slot already assigned).
|
|
4
|
+
*
|
|
5
|
+
* EXPORTS:
|
|
6
|
+
* lotteryEntriesSeedData — Array of LotteryEntryDocument for seed runner
|
|
7
|
+
*
|
|
8
|
+
* @tag domain:lottery
|
|
9
|
+
* @tag layer:seed
|
|
10
|
+
* @tag pattern:none
|
|
11
|
+
* @tag access:server-only
|
|
12
|
+
* @tag consumers:seed/index.ts,seed/runner.ts,SeedPanel
|
|
13
|
+
* @tag sideEffects:none
|
|
14
|
+
*/
|
|
15
|
+
const NOW = new Date();
|
|
16
|
+
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
17
|
+
export const lotteryEntriesSeedData = [
|
|
18
|
+
{
|
|
19
|
+
id: "lottery-entry-pokemon-draw-1",
|
|
20
|
+
sourceType: "event",
|
|
21
|
+
eventId: "event-pokemon-number-draw-july-2026",
|
|
22
|
+
userId: "user-ravi-k",
|
|
23
|
+
userDisplayName: "Ravi K",
|
|
24
|
+
userEmail: "ravi.k@example.com",
|
|
25
|
+
userPhone: "9876543210",
|
|
26
|
+
transactionId: "TXN-SEED-001",
|
|
27
|
+
paymentTime: daysAgo(2),
|
|
28
|
+
purchasedItemNumber: 1,
|
|
29
|
+
userLotteryNumber: 1,
|
|
30
|
+
assignedPrizeSlotNumber: 1,
|
|
31
|
+
status: "drawn",
|
|
32
|
+
isFlagged: false,
|
|
33
|
+
submittedAt: daysAgo(2),
|
|
34
|
+
drawnAt: daysAgo(2),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "lottery-entry-pokemon-draw-2",
|
|
38
|
+
sourceType: "event",
|
|
39
|
+
eventId: "event-pokemon-number-draw-july-2026",
|
|
40
|
+
userId: "user-priya-s",
|
|
41
|
+
userDisplayName: "Priya S",
|
|
42
|
+
userEmail: "priya.s@example.com",
|
|
43
|
+
userPhone: "9876543211",
|
|
44
|
+
transactionId: "TXN-SEED-002",
|
|
45
|
+
paymentTime: daysAgo(2),
|
|
46
|
+
purchasedItemNumber: 2,
|
|
47
|
+
userLotteryNumber: 2,
|
|
48
|
+
assignedPrizeSlotNumber: 2,
|
|
49
|
+
status: "drawn",
|
|
50
|
+
isFlagged: false,
|
|
51
|
+
submittedAt: daysAgo(2),
|
|
52
|
+
drawnAt: daysAgo(2),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "lottery-entry-pokemon-draw-3",
|
|
56
|
+
sourceType: "event",
|
|
57
|
+
eventId: "event-pokemon-number-draw-july-2026",
|
|
58
|
+
userId: "user-arjun-m",
|
|
59
|
+
userDisplayName: "Arjun M",
|
|
60
|
+
userEmail: "arjun.m@example.com",
|
|
61
|
+
userPhone: "9876543212",
|
|
62
|
+
transactionId: "TXN-SEED-003",
|
|
63
|
+
paymentTime: daysAgo(1),
|
|
64
|
+
purchasedItemNumber: 3,
|
|
65
|
+
userLotteryNumber: 3,
|
|
66
|
+
assignedPrizeSlotNumber: 3,
|
|
67
|
+
status: "drawn",
|
|
68
|
+
isFlagged: false,
|
|
69
|
+
submittedAt: daysAgo(1),
|
|
70
|
+
drawnAt: daysAgo(1),
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "lottery-entry-pokemon-draw-4",
|
|
74
|
+
sourceType: "event",
|
|
75
|
+
eventId: "event-pokemon-number-draw-july-2026",
|
|
76
|
+
userId: "user-sneha-p",
|
|
77
|
+
userDisplayName: "Sneha P",
|
|
78
|
+
userEmail: "sneha.p@example.com",
|
|
79
|
+
userPhone: "9876543213",
|
|
80
|
+
transactionId: "TXN-SEED-004",
|
|
81
|
+
paymentTime: daysAgo(1),
|
|
82
|
+
purchasedItemNumber: 4,
|
|
83
|
+
userLotteryNumber: 4,
|
|
84
|
+
assignedPrizeSlotNumber: 4,
|
|
85
|
+
status: "drawn",
|
|
86
|
+
isFlagged: false,
|
|
87
|
+
submittedAt: daysAgo(1),
|
|
88
|
+
drawnAt: daysAgo(1),
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "lottery-entry-pokemon-draw-5",
|
|
92
|
+
sourceType: "event",
|
|
93
|
+
eventId: "event-pokemon-number-draw-july-2026",
|
|
94
|
+
userId: "user-vikram-r",
|
|
95
|
+
userDisplayName: "Vikram R",
|
|
96
|
+
userEmail: "vikram.r@example.com",
|
|
97
|
+
userPhone: "9876543214",
|
|
98
|
+
transactionId: "TXN-SEED-005",
|
|
99
|
+
paymentTime: daysAgo(0),
|
|
100
|
+
purchasedItemNumber: 5,
|
|
101
|
+
userLotteryNumber: 5,
|
|
102
|
+
assignedPrizeSlotNumber: 5,
|
|
103
|
+
status: "drawn",
|
|
104
|
+
isFlagged: false,
|
|
105
|
+
submittedAt: daysAgo(0),
|
|
106
|
+
drawnAt: daysAgo(0),
|
|
107
|
+
},
|
|
108
|
+
];
|
package/dist/seed/manifest.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const productsPreordersSeedData: {
|
|
2
2
|
listingType: "pre-order";
|
|
3
3
|
searchTokens: string[];
|
|
4
|
-
id?: string | undefined;
|
|
5
4
|
title?: string | undefined;
|
|
6
5
|
description?: string | undefined;
|
|
7
6
|
slug?: string | undefined;
|
|
@@ -33,7 +32,7 @@ export declare const productsPreordersSeedData: {
|
|
|
33
32
|
features?: string[] | undefined;
|
|
34
33
|
shippingInfo?: string | undefined;
|
|
35
34
|
returnPolicy?: string | undefined;
|
|
36
|
-
condition?: "new" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
35
|
+
condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
37
36
|
insurance?: boolean | undefined;
|
|
38
37
|
insuranceCost?: number | undefined;
|
|
39
38
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
@@ -104,6 +103,8 @@ export declare const productsPreordersSeedData: {
|
|
|
104
103
|
prizeRevealStatus?: "pending" | "open" | "closed" | undefined;
|
|
105
104
|
prizeRevealDeadlineDays?: number | undefined;
|
|
106
105
|
prizeGithubFileUrl?: string | undefined;
|
|
106
|
+
prizeDrawMode?: "reveal" | "lottery" | undefined;
|
|
107
|
+
lotteryConfig?: import("..").LotteryConfig | undefined;
|
|
107
108
|
shipping?: {
|
|
108
109
|
allowedProviderIds?: string[];
|
|
109
110
|
overrides?: Array<{
|
|
@@ -118,6 +119,8 @@ export declare const productsPreordersSeedData: {
|
|
|
118
119
|
shelf: string;
|
|
119
120
|
bin: string;
|
|
120
121
|
} | undefined;
|
|
122
|
+
barcodeId?: string | undefined;
|
|
123
|
+
id?: string | undefined;
|
|
121
124
|
createdAt?: Date | undefined;
|
|
122
125
|
updatedAt?: Date | undefined;
|
|
123
126
|
}[];
|