@mohasinac/appkit 4.3.2 → 4.4.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/maintenance/views/AnalysisRunnerView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/CloudLogsListView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/ServerErrorDetailView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +1 -1
- package/dist/_internal/server/jobs/core/assignSpinPrize.d.ts +14 -3
- package/dist/_internal/server/jobs/core/assignSpinPrize.js +95 -56
- package/dist/_internal/server/jobs/handlers/assignSpinPrize.js +8 -2
- package/dist/_internal/shared/actions/action-registry.js +15 -0
- package/dist/_internal/shared/features/brands/schema.d.ts +4 -4
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +4 -4
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/reviews/schema.d.ts +2 -2
- package/dist/client.d.ts +36 -0
- package/dist/client.js +30 -0
- package/dist/constants/api-endpoints.d.ts +6 -0
- package/dist/constants/api-endpoints.js +2 -0
- package/dist/constants/field-names.d.ts +3 -0
- package/dist/constants/field-names.js +4 -0
- package/dist/features/about/components/DeveloperView.d.ts +16 -0
- package/dist/features/about/components/DeveloperView.js +29 -0
- package/dist/features/about/index.d.ts +2 -0
- package/dist/features/about/index.js +1 -0
- package/dist/features/account/schemas/index.d.ts +16 -16
- package/dist/features/addresses/schemas/index.d.ts +8 -8
- package/dist/features/admin/components/AdminAddressesView.js +1 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.js +2 -2
- package/dist/features/admin/components/AdminArtView.js +1 -1
- package/dist/features/admin/components/AdminBidsView.js +2 -2
- package/dist/features/admin/components/AdminBlogView.js +2 -2
- package/dist/features/admin/components/AdminBrandsView.js +2 -2
- package/dist/features/admin/components/AdminBundlesView.js +2 -2
- package/dist/features/admin/components/AdminCartsView.js +2 -2
- package/dist/features/admin/components/AdminCategoriesView.js +2 -2
- package/dist/features/admin/components/AdminClassifiedView.js +1 -1
- package/dist/features/admin/components/AdminContactView.js +2 -2
- package/dist/features/admin/components/AdminCouponsView.js +2 -2
- package/dist/features/admin/components/AdminDigitalCodesView.js +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +2 -2
- package/dist/features/admin/components/AdminFeaturesView.js +1 -1
- package/dist/features/admin/components/AdminGroupedListingsView.js +1 -1
- package/dist/features/admin/components/AdminHistoryView.js +1 -1
- package/dist/features/admin/components/AdminLiveView.js +1 -1
- package/dist/features/admin/components/AdminNewsletterView.js +2 -2
- package/dist/features/admin/components/AdminNotificationsView.js +2 -2
- package/dist/features/admin/components/AdminOrdersView.js +2 -2
- package/dist/features/admin/components/AdminPaymentMethodsView.js +1 -1
- package/dist/features/admin/components/AdminPayoutsView.js +2 -2
- package/dist/features/admin/components/AdminPrizeDrawsView.js +2 -2
- package/dist/features/admin/components/AdminProductsView.js +2 -2
- package/dist/features/admin/components/AdminReturnRequestsView.js +1 -1
- package/dist/features/admin/components/AdminReviewsView.js +2 -2
- package/dist/features/admin/components/AdminScammersView.js +2 -2
- package/dist/features/admin/components/AdminSessionsView.js +2 -2
- package/dist/features/admin/components/AdminStickersView.js +1 -1
- package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
- package/dist/features/admin/components/AdminStoresView.js +2 -2
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +2 -2
- package/dist/features/admin/components/AdminTeamView.js +2 -2
- package/dist/features/admin/components/AdminTesterChecklistView.js +2 -2
- package/dist/features/admin/components/AdminUsersView.js +2 -2
- package/dist/features/admin/components/AdminWishlistsView.js +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
- package/dist/features/auth/hooks/useAuth.d.ts +1 -1
- package/dist/features/blog/actions/blog-actions.d.ts +14 -14
- package/dist/features/blog/schemas/index.d.ts +14 -14
- package/dist/features/cart/hooks/useAddToCart.d.ts +6 -2
- package/dist/features/cart/hooks/useAddToCart.js +20 -3
- package/dist/features/cart/schemas/index.d.ts +3 -3
- package/dist/features/cart/utils/pending-ops.d.ts +20 -0
- package/dist/features/cart/utils/pending-ops.js +22 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +1 -1
- package/dist/features/categories/components/CategoryBundlesListing.js +1 -1
- package/dist/features/categories/components/CategoryFilters.js +1 -1
- package/dist/features/categories/components/CategoryTree.js +1 -1
- package/dist/features/categories/schemas/index.d.ts +16 -16
- package/dist/features/events/actions/event-actions.d.ts +21 -1
- package/dist/features/events/actions/event-actions.js +85 -3
- package/dist/features/events/components/AdminEventEditorView.js +11 -2
- package/dist/features/events/components/AdminEventEntriesView.js +37 -4
- package/dist/features/events/components/AdminEventsView.js +2 -2
- package/dist/features/events/components/EventLeaderboard.d.ts +12 -2
- package/dist/features/events/components/EventLeaderboard.js +4 -1
- package/dist/features/events/components/EventRafflesSection.js +2 -2
- package/dist/features/events/repository/event-entry.repository.d.ts +39 -0
- package/dist/features/events/repository/event-entry.repository.js +153 -0
- package/dist/features/events/schemas/firestore.d.ts +28 -1
- package/dist/features/events/schemas/firestore.js +9 -0
- package/dist/features/events/schemas/index.d.ts +13 -13
- package/dist/features/events/types/index.d.ts +26 -0
- package/dist/features/faq/actions/faq-actions.d.ts +8 -8
- package/dist/features/faq/schemas/index.d.ts +22 -22
- package/dist/features/grouped/schemas/index.d.ts +2 -2
- package/dist/features/homepage/components/AnnouncementBar.d.ts +9 -1
- package/dist/features/homepage/components/AnnouncementBar.js +6 -3
- package/dist/features/homepage/components/MarketplaceHomepageView.js +2 -2
- package/dist/features/homepage/components/SectionCarousel.js +5 -1
- package/dist/features/homepage/components/WelcomeSection.js +2 -2
- package/dist/features/homepage/schemas/index.d.ts +2 -2
- package/dist/features/layout/BottomNavbar.js +8 -6
- package/dist/features/lottery/schemas/zod.d.ts +10 -10
- package/dist/features/media/MediaVideo.js +11 -3
- package/dist/features/orders/schemas/index.d.ts +52 -52
- package/dist/features/products/components/CompareOverlay.d.ts +9 -0
- package/dist/features/products/components/CompareOverlay.js +28 -3
- package/dist/features/products/components/InteractiveProductCard.js +9 -3
- package/dist/features/products/components/MakeOfferForm.js +1 -1
- package/dist/features/products/components/PlaceBidForm.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +1 -1
- package/dist/features/products/components/PrizeDrawsSection.js +2 -2
- package/dist/features/products/components/ProductDetailActions.js +3 -1
- package/dist/features/products/components/ProductGrid.js +1 -1
- package/dist/features/products/components/ProductInfo.js +1 -1
- package/dist/features/products/components/ProductsIndexListing.js +12 -2
- package/dist/features/products/hooks/useRelatedProducts.js +1 -1
- package/dist/features/products/schemas/index.d.ts +10 -10
- package/dist/features/promotions/schemas/index.d.ts +8 -8
- package/dist/features/reviews/schemas/index.d.ts +12 -12
- package/dist/features/scams/schemas/index.d.ts +6 -6
- package/dist/features/seller/components/CouponInlineSelect.js +1 -1
- package/dist/features/seller/components/SellerArtView.js +2 -2
- package/dist/features/seller/components/SellerAuctionsView.js +2 -2
- package/dist/features/seller/components/SellerBidsView.js +2 -2
- package/dist/features/seller/components/SellerBundlesView.js +1 -1
- package/dist/features/seller/components/SellerClassifiedView.js +2 -2
- package/dist/features/seller/components/SellerCouponsView.js +2 -2
- package/dist/features/seller/components/SellerDigitalCodesView.js +2 -2
- package/dist/features/seller/components/SellerGroupedListingsView.js +1 -1
- package/dist/features/seller/components/SellerLiveView.js +2 -2
- package/dist/features/seller/components/SellerOffersView.js +2 -2
- package/dist/features/seller/components/SellerOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPayoutMethodsView.js +2 -2
- package/dist/features/seller/components/SellerPayoutsView.js +2 -2
- package/dist/features/seller/components/SellerPreOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPrizeDrawsView.js +2 -2
- package/dist/features/seller/components/SellerProductsView.js +2 -2
- package/dist/features/seller/components/SellerShippingConfigsView.js +2 -2
- package/dist/features/seller/components/SellerStickersView.js +2 -2
- package/dist/features/seller/components/SellerStoreCategoriesView.js +1 -1
- package/dist/features/seller/components/SublistingInlineSelect.js +1 -1
- package/dist/features/seller/hooks/useSellerListingData.d.ts +1 -1
- package/dist/features/seller/schemas/index.d.ts +16 -16
- package/dist/features/server-errors/schemas/index.d.ts +4 -4
- package/dist/features/shell/StepForm.d.ts +1 -1
- package/dist/features/shipments/components/AdminShipmentsView.js +2 -2
- package/dist/features/stores/components/StoreProductsView.js +1 -1
- package/dist/features/stores/components/StoresIndexListing.js +1 -1
- package/dist/features/stores/schemas/index.d.ts +30 -30
- package/dist/features/support/schemas/index.d.ts +2 -2
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +68 -1
- package/dist/features/whatsapp-bot/helpers/payment-proof-message.d.ts +14 -0
- package/dist/features/whatsapp-bot/helpers/payment-proof-message.js +17 -0
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +2 -8
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +4 -11
- package/dist/features/wishlist/repository/user-wishlist.repository.d.ts +11 -0
- package/dist/features/wishlist/repository/user-wishlist.repository.js +33 -0
- package/dist/index.d.ts +7 -12
- package/dist/index.js +16 -28
- package/dist/next/components/ErrorView.js +1 -1
- package/dist/next/components/NotFoundView.js +1 -1
- package/dist/next/components/UnauthorizedView.js +1 -1
- package/dist/next/routing/route-map.d.ts +4 -0
- package/dist/next/routing/route-map.js +2 -0
- package/dist/react/contexts/SessionContext.d.ts +1 -1
- package/dist/react/hooks/use-action-dispatch.d.ts +1 -1
- package/dist/react/hooks/useFormStatePreservation.d.ts +1 -1
- package/dist/schemas/registry.d.ts +236 -236
- package/dist/schemas/webhooks/razorpay.d.ts +100 -100
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +1 -1
- package/dist/security/rate-limit.d.ts +10 -0
- package/dist/security/rate-limit.js +13 -1
- package/dist/seed/events-seed-data.js +52 -1
- package/dist/server.d.ts +6 -0
- package/dist/server.js +8 -0
- package/dist/styles.css +25 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/HorizontalScroller.d.ts +7 -1
- package/dist/ui/components/HorizontalScroller.js +2 -2
- package/dist/ui/components/HorizontalScroller.style.css +24 -0
- package/dist/validation/schemas.d.ts +12 -12
- package/package.json +1 -1
|
@@ -633,7 +633,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
|
|
|
633
633
|
}, "strip", z.ZodTypeAny, {
|
|
634
634
|
status: "used" | "active" | "expired";
|
|
635
635
|
id: string;
|
|
636
|
-
source: "manual" | "prize-draw" | "
|
|
636
|
+
source: "manual" | "prize-draw" | "raffle" | "promo" | "spin";
|
|
637
637
|
updatedAt: string | Date | z.objectOutputType<{
|
|
638
638
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
639
639
|
}, z.ZodTypeAny, "passthrough">;
|
|
@@ -674,7 +674,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
|
|
|
674
674
|
}, {
|
|
675
675
|
status: "used" | "active" | "expired";
|
|
676
676
|
id: string;
|
|
677
|
-
source: "manual" | "prize-draw" | "
|
|
677
|
+
source: "manual" | "prize-draw" | "raffle" | "promo" | "spin";
|
|
678
678
|
updatedAt: string | Date | z.objectInputType<{
|
|
679
679
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
680
680
|
}, z.ZodTypeAny, "passthrough">;
|
|
@@ -763,13 +763,13 @@ export declare const couponItemSchema: z.ZodObject<{
|
|
|
763
763
|
createdAt: string;
|
|
764
764
|
updatedAt: string;
|
|
765
765
|
description: string;
|
|
766
|
-
isActive: boolean;
|
|
767
766
|
isPublic: boolean;
|
|
767
|
+
isActive: boolean;
|
|
768
768
|
usageCount: number;
|
|
769
769
|
discountValue: number;
|
|
770
770
|
storeId?: string | undefined;
|
|
771
|
-
expiresAt?: string | undefined;
|
|
772
771
|
startsAt?: string | undefined;
|
|
772
|
+
expiresAt?: string | undefined;
|
|
773
773
|
buyQuantity?: number | undefined;
|
|
774
774
|
getQuantity?: number | undefined;
|
|
775
775
|
perUserLimit?: number | undefined;
|
|
@@ -787,13 +787,13 @@ export declare const couponItemSchema: z.ZodObject<{
|
|
|
787
787
|
createdAt: string;
|
|
788
788
|
updatedAt: string;
|
|
789
789
|
description: string;
|
|
790
|
-
isActive: boolean;
|
|
791
790
|
isPublic: boolean;
|
|
791
|
+
isActive: boolean;
|
|
792
792
|
usageCount: number;
|
|
793
793
|
discountValue: number;
|
|
794
794
|
storeId?: string | undefined;
|
|
795
|
-
expiresAt?: string | undefined;
|
|
796
795
|
startsAt?: string | undefined;
|
|
796
|
+
expiresAt?: string | undefined;
|
|
797
797
|
buyQuantity?: number | undefined;
|
|
798
798
|
getQuantity?: number | undefined;
|
|
799
799
|
perUserLimit?: number | undefined;
|
|
@@ -817,14 +817,14 @@ export declare const promotionsListParamsSchema: z.ZodObject<{
|
|
|
817
817
|
scope?: "seller" | "admin" | undefined;
|
|
818
818
|
pageSize?: number | undefined;
|
|
819
819
|
storeId?: string | undefined;
|
|
820
|
-
isActive?: boolean | undefined;
|
|
821
820
|
filters?: string | undefined;
|
|
821
|
+
isActive?: boolean | undefined;
|
|
822
822
|
}, {
|
|
823
823
|
sort?: string | undefined;
|
|
824
824
|
page?: number | undefined;
|
|
825
825
|
scope?: "seller" | "admin" | undefined;
|
|
826
826
|
pageSize?: number | undefined;
|
|
827
827
|
storeId?: string | undefined;
|
|
828
|
-
isActive?: boolean | undefined;
|
|
829
828
|
filters?: string | undefined;
|
|
829
|
+
isActive?: boolean | undefined;
|
|
830
830
|
}>;
|
|
@@ -110,14 +110,14 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
|
|
|
110
110
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
111
111
|
}, z.ZodTypeAny, "passthrough">;
|
|
112
112
|
userId: string;
|
|
113
|
+
rating: number;
|
|
114
|
+
verified: boolean;
|
|
113
115
|
productId: string;
|
|
114
116
|
productTitle: string;
|
|
115
|
-
rating: number;
|
|
116
117
|
userName: string;
|
|
117
118
|
comment: string;
|
|
118
119
|
helpfulCount: number;
|
|
119
120
|
reportCount: number;
|
|
120
|
-
verified: boolean;
|
|
121
121
|
video?: {
|
|
122
122
|
url: string;
|
|
123
123
|
thumbnailUrl: string;
|
|
@@ -158,14 +158,14 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
|
|
|
158
158
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
159
159
|
}, z.ZodTypeAny, "passthrough">;
|
|
160
160
|
userId: string;
|
|
161
|
+
rating: number;
|
|
162
|
+
verified: boolean;
|
|
161
163
|
productId: string;
|
|
162
164
|
productTitle: string;
|
|
163
|
-
rating: number;
|
|
164
165
|
userName: string;
|
|
165
166
|
comment: string;
|
|
166
167
|
helpfulCount: number;
|
|
167
168
|
reportCount: number;
|
|
168
|
-
verified: boolean;
|
|
169
169
|
video?: {
|
|
170
170
|
url: string;
|
|
171
171
|
thumbnailUrl: string;
|
|
@@ -293,8 +293,8 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
293
293
|
status: "pending" | "approved" | "rejected";
|
|
294
294
|
id: string;
|
|
295
295
|
userId: string;
|
|
296
|
-
productId: string;
|
|
297
296
|
rating: 3 | 1 | 2 | 4 | 5;
|
|
297
|
+
productId: string;
|
|
298
298
|
userName: string;
|
|
299
299
|
title?: string | undefined;
|
|
300
300
|
video?: {
|
|
@@ -313,19 +313,19 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
313
313
|
thumbnailUrl?: string | undefined;
|
|
314
314
|
}[] | undefined;
|
|
315
315
|
storeName?: string | undefined;
|
|
316
|
+
verified?: boolean | undefined;
|
|
316
317
|
productTitle?: string | undefined;
|
|
317
|
-
storeSlug?: string | undefined;
|
|
318
318
|
userAvatar?: string | undefined;
|
|
319
319
|
comment?: string | undefined;
|
|
320
320
|
helpfulCount?: number | undefined;
|
|
321
321
|
reportCount?: number | undefined;
|
|
322
|
-
|
|
322
|
+
storeSlug?: string | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
status: "pending" | "approved" | "rejected";
|
|
325
325
|
id: string;
|
|
326
326
|
userId: string;
|
|
327
|
-
productId: string;
|
|
328
327
|
rating: 3 | 1 | 2 | 4 | 5;
|
|
328
|
+
productId: string;
|
|
329
329
|
userName: string;
|
|
330
330
|
title?: string | undefined;
|
|
331
331
|
video?: {
|
|
@@ -344,13 +344,13 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
344
344
|
thumbnailUrl?: string | undefined;
|
|
345
345
|
}[] | undefined;
|
|
346
346
|
storeName?: string | undefined;
|
|
347
|
+
verified?: boolean | undefined;
|
|
347
348
|
productTitle?: string | undefined;
|
|
348
|
-
storeSlug?: string | undefined;
|
|
349
349
|
userAvatar?: string | undefined;
|
|
350
350
|
comment?: string | undefined;
|
|
351
351
|
helpfulCount?: number | undefined;
|
|
352
352
|
reportCount?: number | undefined;
|
|
353
|
-
|
|
353
|
+
storeSlug?: string | undefined;
|
|
354
354
|
}>;
|
|
355
355
|
/** Base schema for list-query parameters. */
|
|
356
356
|
export declare const reviewListParamsSchema: z.ZodObject<{
|
|
@@ -371,8 +371,8 @@ export declare const reviewListParamsSchema: z.ZodObject<{
|
|
|
371
371
|
storeId?: string | undefined;
|
|
372
372
|
userId?: string | undefined;
|
|
373
373
|
featured?: boolean | undefined;
|
|
374
|
-
productId?: string | undefined;
|
|
375
374
|
rating?: number | undefined;
|
|
375
|
+
productId?: string | undefined;
|
|
376
376
|
}, {
|
|
377
377
|
sort?: string | undefined;
|
|
378
378
|
status?: "pending" | "approved" | "rejected" | undefined;
|
|
@@ -381,6 +381,6 @@ export declare const reviewListParamsSchema: z.ZodObject<{
|
|
|
381
381
|
storeId?: string | undefined;
|
|
382
382
|
userId?: string | undefined;
|
|
383
383
|
featured?: boolean | undefined;
|
|
384
|
-
productId?: string | undefined;
|
|
385
384
|
rating?: number | undefined;
|
|
385
|
+
productId?: string | undefined;
|
|
386
386
|
}>;
|
|
@@ -79,7 +79,7 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
|
|
|
79
79
|
contestCount: z.ZodNumber;
|
|
80
80
|
isContested: z.ZodOptional<z.ZodBoolean>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
status: "rejected" | "removed" | "
|
|
82
|
+
status: "rejected" | "removed" | "pending_review" | "verified";
|
|
83
83
|
id: string;
|
|
84
84
|
createdAt: string | Date | z.objectOutputType<{
|
|
85
85
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
@@ -119,7 +119,7 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
|
|
|
119
119
|
verificationNote?: string | undefined;
|
|
120
120
|
mergedFromIds?: string[] | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
status: "rejected" | "removed" | "
|
|
122
|
+
status: "rejected" | "removed" | "pending_review" | "verified";
|
|
123
123
|
id: string;
|
|
124
124
|
createdAt: string | Date | z.objectInputType<{
|
|
125
125
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
@@ -191,7 +191,7 @@ export declare const scammerIncidentFirestoreSchema: z.ZodObject<{
|
|
|
191
191
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
192
192
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
status: "rejected" | "removed" | "
|
|
194
|
+
status: "rejected" | "removed" | "pending_review" | "verified";
|
|
195
195
|
id: string;
|
|
196
196
|
createdAt: string | Date | z.objectOutputType<{
|
|
197
197
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
@@ -214,7 +214,7 @@ export declare const scammerIncidentFirestoreSchema: z.ZodObject<{
|
|
|
214
214
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
215
215
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
216
216
|
}, {
|
|
217
|
-
status: "rejected" | "removed" | "
|
|
217
|
+
status: "rejected" | "removed" | "pending_review" | "verified";
|
|
218
218
|
id: string;
|
|
219
219
|
createdAt: string | Date | z.objectInputType<{
|
|
220
220
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
@@ -346,10 +346,10 @@ export declare const scammerContestFirestoreSchema: z.ZodObject<{
|
|
|
346
346
|
contestedBy: string;
|
|
347
347
|
contestedByAnon: boolean;
|
|
348
348
|
explanation: string;
|
|
349
|
+
reviewedBy?: string | undefined;
|
|
349
350
|
reviewedAt?: string | Date | z.objectOutputType<{
|
|
350
351
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
351
352
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
352
|
-
reviewedBy?: string | undefined;
|
|
353
353
|
reviewNote?: string | undefined;
|
|
354
354
|
}, {
|
|
355
355
|
status: "pending" | "dismissed" | "upheld";
|
|
@@ -363,10 +363,10 @@ export declare const scammerContestFirestoreSchema: z.ZodObject<{
|
|
|
363
363
|
contestedBy: string;
|
|
364
364
|
contestedByAnon: boolean;
|
|
365
365
|
explanation: string;
|
|
366
|
+
reviewedBy?: string | undefined;
|
|
366
367
|
reviewedAt?: string | Date | z.objectInputType<{
|
|
367
368
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
368
369
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
369
|
-
reviewedBy?: string | undefined;
|
|
370
370
|
reviewNote?: string | undefined;
|
|
371
371
|
}>;
|
|
372
372
|
export type ScammerFromSchema = z.infer<typeof scammerFirestoreSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { PaginatedSelect } from "../../../ui/components/PaginatedSelect";
|
|
6
6
|
import { apiClient } from "../../../http";
|
|
@@ -4,13 +4,13 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* SellerArtView — seller browse/manage of art print listings
|
|
5
5
|
* (EMI/art-stickers session). Mirrors SellerClassifiedView's pattern.
|
|
6
6
|
*/
|
|
7
|
-
import { Badge, sortBy } from "@mohasinac/appkit";
|
|
7
|
+
import { Badge, sortBy } from "@mohasinac/appkit/client";
|
|
8
8
|
import { useState, useCallback } from "react";
|
|
9
9
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
10
10
|
import { ConfirmDeleteModal, RowActionMenu, Text } from "../../../ui";
|
|
11
11
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
12
12
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
13
|
-
import { ROUTES } from "
|
|
13
|
+
import { ROUTES } from "../../../constants/index";
|
|
14
14
|
import { toRecordArray, toRelativeDate, toCurrency, toStringValue, } from "../../admin/hooks/useAdminListingData";
|
|
15
15
|
import { DataListingView } from "../../admin/components/DataListingView";
|
|
16
16
|
import { SELLER_BULK_ACTIONS, ROW_ACTION_META } from "../../products/constants/action-defs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { useUrlTable } from "../../../react/hooks/useUrlTable";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState, useCallback } from "react";
|
|
7
7
|
import { useUrlTable } from "../../../react/hooks/useUrlTable";
|
|
8
8
|
import { useBulkSelection } from "../../../react/hooks/useBulkSelection";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, sieveFilter, sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, sieveFilter, sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { Badge, Button, FilterChipGroup, Stack, Text, TextLink } from "../../../ui";
|
|
5
5
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
6
6
|
import { ROW_ACTION_META, ROW_ACTION_ID } from "../../products/constants/action-defs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Badge, sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { Badge, sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { useState, useCallback } from "react";
|
|
5
5
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
6
6
|
import { ConfirmDeleteModal, RowActionMenu, Text } from "../../../ui";
|
|
7
7
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
8
8
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
9
|
-
import { ROUTES } from "
|
|
9
|
+
import { ROUTES } from "../../../constants/index";
|
|
10
10
|
import { toRecordArray, toRelativeDate, toCurrency, toStringValue, } from "../../admin/hooks/useAdminListingData";
|
|
11
11
|
import { DataListingView } from "../../admin/components/DataListingView";
|
|
12
12
|
import { SELLER_BULK_ACTIONS, ROW_ACTION_META } from "../../products/constants/action-defs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { Div, FilterChipGroup, ListingLayout, useToast } from "../../../ui";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { useState, useCallback } from "react";
|
|
5
5
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
6
6
|
import { Badge, ConfirmDeleteModal, RowActionMenu, Span, Text } from "../../../ui";
|
|
7
7
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
8
8
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
9
|
-
import { ROUTES } from "
|
|
9
|
+
import { ROUTES } from "../../../constants/index";
|
|
10
10
|
import { toRecordArray, toRelativeDate, toCurrency, toStringValue, } from "../../admin/hooks/useAdminListingData";
|
|
11
11
|
import { DataListingView } from "../../admin/components/DataListingView";
|
|
12
12
|
import { SELLER_BULK_ACTIONS, ROW_ACTION_META } from "../../products/constants/action-defs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Row, sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { Row, sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { Badge, Button, Span } from "../../../ui";
|
|
5
5
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
6
6
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Badge, Span, sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { Badge, Span, sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { useState, useCallback } from "react";
|
|
5
5
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
6
6
|
import { ConfirmDeleteModal, Div, RowActionMenu, Text } from "../../../ui";
|
|
7
7
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
8
8
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
9
|
-
import { ROUTES } from "
|
|
9
|
+
import { ROUTES } from "../../../constants/index";
|
|
10
10
|
import { toRecordArray, toRelativeDate, toCurrency, toStringValue, } from "../../admin/hooks/useAdminListingData";
|
|
11
11
|
import { DataListingView } from "../../admin/components/DataListingView";
|
|
12
12
|
import { SELLER_BULK_ACTIONS, ROW_ACTION_META } from "../../products/constants/action-defs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { FilterChipGroup, ListingLayout, RowActionMenu } from "../../../ui";
|
|
7
7
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { Row, SIEVE_OP, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { Row, SIEVE_OP, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState, useCallback } from "react";
|
|
7
7
|
import { Eye, Printer, MapPin, Truck } from "lucide-react";
|
|
8
8
|
import { useUrlTable } from "../../../react/hooks/useUrlTable";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { Row, Stack, sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { Row, Stack, sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { Plus } from "lucide-react";
|
|
@@ -9,7 +9,7 @@ import { useUrlTable } from "../../../react/hooks/useUrlTable";
|
|
|
9
9
|
import { Button, Badge, ConfirmDeleteModal, Div, ListingToolbar, Span, Text, useToast, } from "../../../ui";
|
|
10
10
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
11
11
|
const CLS_TYPE_PILL = "inline-flex items-center rounded-full px-[var(--appkit-space-2)] py-[var(--appkit-space-0-5)] text-[length:var(--appkit-text-xs)] font-semibold uppercase tracking-wide bg-violet-100 text-violet-700 dark:bg-violet-900/40 dark:text-violet-300";
|
|
12
|
-
import { ROUTES } from "
|
|
12
|
+
import { ROUTES } from "../../../constants/index";
|
|
13
13
|
import { toRecordArray, toStringValue, useSellerListingData, } from "../hooks/useSellerListingData";
|
|
14
14
|
import { TABLE_KEYS } from "../../../constants/table-keys";
|
|
15
15
|
const PAGE_SIZE = 50;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import { Badge, Div, FilterChipGroup, ListingLayout, Row, RowActionMenu, SideDrawer, Span, Stack, Text, Toggle, useToast } from "../../../ui";
|
|
8
8
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { Badge, ConfirmDeleteModal, Div, FilterChipGroup, ListingLayout, RowActionMenu, Span, Text } from "../../../ui";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { useUrlTable } from "../../../react/hooks/useUrlTable";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState, useCallback } from "react";
|
|
7
7
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
8
8
|
import { useActionDispatch } from "../../../react/hooks/use-action-dispatch";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { Stack, sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { Stack, sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { Plus } from "lucide-react";
|
|
@@ -9,7 +9,7 @@ import { useUrlTable } from "../../../react/hooks/useUrlTable";
|
|
|
9
9
|
import { Button, ConfirmDeleteModal, DataTable, Badge, Div, ListingToolbar, RowActionMenu, Span, Text, useToast, } from "../../../ui";
|
|
10
10
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
11
11
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
12
|
-
import { ROUTES } from "
|
|
12
|
+
import { ROUTES } from "../../../constants/index";
|
|
13
13
|
import { toRecordArray, toStringValue, useSellerListingData, } from "../hooks/useSellerListingData";
|
|
14
14
|
import { TABLE_KEYS } from "../../../constants/table-keys";
|
|
15
15
|
const PAGE_SIZE = 50;
|
|
@@ -4,13 +4,13 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* SellerStickersView — seller browse/manage of sticker listings
|
|
5
5
|
* (EMI/art-stickers session). Mirrors SellerClassifiedView's pattern.
|
|
6
6
|
*/
|
|
7
|
-
import { Badge, sortBy } from "@mohasinac/appkit";
|
|
7
|
+
import { Badge, sortBy } from "@mohasinac/appkit/client";
|
|
8
8
|
import { useState, useCallback } from "react";
|
|
9
9
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
10
10
|
import { ConfirmDeleteModal, RowActionMenu, Text } from "../../../ui";
|
|
11
11
|
import { SELLER_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
12
12
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry";
|
|
13
|
-
import { ROUTES } from "
|
|
13
|
+
import { ROUTES } from "../../../constants/index";
|
|
14
14
|
import { toRecordArray, toRelativeDate, toCurrency, toStringValue, } from "../../admin/hooks/useAdminListingData";
|
|
15
15
|
import { DataListingView } from "../../admin/components/DataListingView";
|
|
16
16
|
import { SELLER_BULK_ACTIONS, ROW_ACTION_META } from "../../products/constants/action-defs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { Badge, Row, Span, Stack, sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { Badge, Row, Span, Stack, sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import { useState, useCallback } from "react";
|
|
6
6
|
import { useEntityDelete } from "../../../react/hooks/useEntityDelete";
|
|
7
7
|
import { Plus } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { PaginatedSelect } from "../../../ui/components/PaginatedSelect";
|
|
5
5
|
import { apiClient } from "../../../http";
|
|
6
6
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -91,28 +91,28 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
91
91
|
updatedAt: string;
|
|
92
92
|
storeName: string;
|
|
93
93
|
isPublic: boolean;
|
|
94
|
-
storeSlug: string;
|
|
95
94
|
ownerId: string;
|
|
95
|
+
storeSlug: string;
|
|
96
96
|
location?: string | undefined;
|
|
97
97
|
returnPolicy?: string | undefined;
|
|
98
|
+
socialLinks?: {
|
|
99
|
+
instagram?: string | undefined;
|
|
100
|
+
facebook?: string | undefined;
|
|
101
|
+
twitter?: string | undefined;
|
|
102
|
+
linkedin?: string | undefined;
|
|
103
|
+
} | undefined;
|
|
98
104
|
stats?: {
|
|
99
105
|
itemsSold: number;
|
|
100
106
|
totalProducts: number;
|
|
101
107
|
totalReviews: number;
|
|
102
108
|
averageRating?: number | undefined;
|
|
103
109
|
} | undefined;
|
|
104
|
-
website?: string | undefined;
|
|
105
110
|
storeCategory?: string | undefined;
|
|
106
111
|
storeDescription?: string | undefined;
|
|
107
112
|
storeLogoURL?: string | undefined;
|
|
108
113
|
storeBannerURL?: string | undefined;
|
|
109
114
|
bio?: string | undefined;
|
|
110
|
-
|
|
111
|
-
instagram?: string | undefined;
|
|
112
|
-
facebook?: string | undefined;
|
|
113
|
-
twitter?: string | undefined;
|
|
114
|
-
linkedin?: string | undefined;
|
|
115
|
-
} | undefined;
|
|
115
|
+
website?: string | undefined;
|
|
116
116
|
shippingPolicy?: string | undefined;
|
|
117
117
|
isVacationMode?: boolean | undefined;
|
|
118
118
|
vacationMessage?: string | undefined;
|
|
@@ -123,28 +123,28 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
123
123
|
updatedAt: string;
|
|
124
124
|
storeName: string;
|
|
125
125
|
isPublic: boolean;
|
|
126
|
-
storeSlug: string;
|
|
127
126
|
ownerId: string;
|
|
127
|
+
storeSlug: string;
|
|
128
128
|
location?: string | undefined;
|
|
129
129
|
returnPolicy?: string | undefined;
|
|
130
|
+
socialLinks?: {
|
|
131
|
+
instagram?: string | undefined;
|
|
132
|
+
facebook?: string | undefined;
|
|
133
|
+
twitter?: string | undefined;
|
|
134
|
+
linkedin?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
130
136
|
stats?: {
|
|
131
137
|
itemsSold: number;
|
|
132
138
|
totalProducts: number;
|
|
133
139
|
totalReviews: number;
|
|
134
140
|
averageRating?: number | undefined;
|
|
135
141
|
} | undefined;
|
|
136
|
-
website?: string | undefined;
|
|
137
142
|
storeCategory?: string | undefined;
|
|
138
143
|
storeDescription?: string | undefined;
|
|
139
144
|
storeLogoURL?: string | undefined;
|
|
140
145
|
storeBannerURL?: string | undefined;
|
|
141
146
|
bio?: string | undefined;
|
|
142
|
-
|
|
143
|
-
instagram?: string | undefined;
|
|
144
|
-
facebook?: string | undefined;
|
|
145
|
-
twitter?: string | undefined;
|
|
146
|
-
linkedin?: string | undefined;
|
|
147
|
-
} | undefined;
|
|
147
|
+
website?: string | undefined;
|
|
148
148
|
shippingPolicy?: string | undefined;
|
|
149
149
|
isVacationMode?: boolean | undefined;
|
|
150
150
|
vacationMessage?: string | undefined;
|
|
@@ -21,13 +21,13 @@ export declare const serverErrorFirestoreSchema: z.ZodObject<{
|
|
|
21
21
|
id: string;
|
|
22
22
|
source: "function" | "vercel" | "client";
|
|
23
23
|
requestId: string;
|
|
24
|
-
route: string;
|
|
25
24
|
occurredAt: number;
|
|
25
|
+
route: string;
|
|
26
26
|
stack?: string | undefined;
|
|
27
27
|
userId?: string | undefined;
|
|
28
28
|
method?: string | undefined;
|
|
29
|
-
userAgent?: string | undefined;
|
|
30
29
|
componentStack?: string | undefined;
|
|
30
|
+
userAgent?: string | undefined;
|
|
31
31
|
bodyDigest?: string | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
code: string;
|
|
@@ -35,13 +35,13 @@ export declare const serverErrorFirestoreSchema: z.ZodObject<{
|
|
|
35
35
|
id: string;
|
|
36
36
|
source: "function" | "vercel" | "client";
|
|
37
37
|
requestId: string;
|
|
38
|
-
route: string;
|
|
39
38
|
occurredAt: number;
|
|
39
|
+
route: string;
|
|
40
40
|
stack?: string | undefined;
|
|
41
41
|
userId?: string | undefined;
|
|
42
42
|
method?: string | undefined;
|
|
43
|
-
userAgent?: string | undefined;
|
|
44
43
|
componentStack?: string | undefined;
|
|
44
|
+
userAgent?: string | undefined;
|
|
45
45
|
bodyDigest?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type ServerErrorFromSchema = z.infer<typeof serverErrorFirestoreSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { FilterChipGroup, ListingLayout } from "../../../ui";
|
|
7
7
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|