@mohasinac/appkit 4.15.0 → 4.16.1
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/shared/actions/action-registry.d.ts +9 -2
- package/dist/_internal/shared/actions/action-registry.js +455 -6
- package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
- package/dist/_internal/shared/features/cart/schema.d.ts +11 -11
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +22 -22
- package/dist/_internal/shared/features/orders/schema.d.ts +4 -4
- package/dist/_internal/shared/features/products/schema.d.ts +25 -25
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/reviews/schema.d.ts +2 -2
- package/dist/client.d.ts +3 -3
- package/dist/client.js +3 -3
- package/dist/contracts/extend.d.ts +29 -0
- package/dist/contracts/extend.js +20 -0
- package/dist/contracts/index.d.ts +2 -1
- package/dist/contracts/index.js +2 -0
- package/dist/features/admin/components/AdminViewCards.js +24 -17
- package/dist/features/admin/components/DataListingView.js +15 -1
- package/dist/features/admin/components/DataTable.js +7 -17
- package/dist/features/auctions/schemas/index.d.ts +14 -14
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/blog/actions/blog-actions.d.ts +7 -7
- package/dist/features/blog/schemas/blog-form.d.ts +6 -6
- package/dist/features/blog/schemas/index.d.ts +10 -10
- package/dist/features/cart/schemas/index.d.ts +3 -3
- package/dist/features/catalogue/schemas/validation.d.ts +12 -12
- package/dist/features/categories/schemas/index.d.ts +16 -16
- package/dist/features/collections/schemas/index.d.ts +8 -8
- package/dist/features/events/schemas/index.d.ts +2 -2
- package/dist/features/faq/actions/faq-actions.d.ts +6 -6
- package/dist/features/faq/schemas/index.d.ts +6 -6
- package/dist/features/grouped/schemas/grouped-listing-form.d.ts +2 -2
- package/dist/features/grouped/schemas/index.d.ts +4 -4
- package/dist/features/homepage/schemas/index.d.ts +40 -40
- package/dist/features/messages/schemas/index.d.ts +2 -2
- package/dist/features/orders/schemas/index.d.ts +24 -24
- package/dist/features/pre-orders/schemas/index.d.ts +4 -4
- package/dist/features/products/schemas/index.d.ts +36 -36
- package/dist/features/products/schemas/product-features.validators.d.ts +2 -2
- package/dist/features/promotions/schemas/index.d.ts +14 -14
- package/dist/features/reviews/schemas/index.d.ts +14 -14
- package/dist/features/scams/schemas/index.d.ts +2 -2
- package/dist/features/search/schemas/index.d.ts +2 -2
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +27 -9
- package/dist/features/seller/schemas/index.d.ts +2 -2
- package/dist/features/shipments/schemas/validation.d.ts +22 -22
- package/dist/features/store-extensions/schemas/listing-template-form.d.ts +22 -4
- package/dist/features/store-extensions/schemas/listing-template-form.js +42 -1
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +19 -13
- package/dist/features/store-extensions/schemas/shipping-config-form.js +25 -2
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +42 -2
- package/dist/features/store-extensions/schemas/store-category-form.js +28 -0
- package/dist/features/stores/schemas/index.d.ts +4 -4
- package/dist/features/support/schemas/index.d.ts +4 -4
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +24 -0
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/registry.d.ts +116 -113
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/DataTable.js +4 -2
- package/dist/ui/columns/build-columns.d.ts +6 -1
- package/dist/ui/columns/build-columns.js +53 -0
- package/dist/ui/columns/cell-renderers.d.ts +68 -0
- package/dist/ui/columns/cell-renderers.js +111 -0
- package/dist/ui/columns/column-renderers.d.ts +6 -1
- package/dist/ui/columns/column-renderers.js +6 -1
- package/dist/ui/columns/index.d.ts +2 -1
- package/dist/ui/columns/index.js +5 -1
- package/dist/ui/components/Button.js +27 -2
- package/dist/ui/icons/icon-registry.d.ts +65 -0
- package/dist/ui/icons/icon-registry.js +115 -0
- package/package.json +1 -1
|
@@ -91,17 +91,17 @@ export declare const orderDocumentItemSchema: z.ZodObject<{
|
|
|
91
91
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "classified", "digital-code", "live"]>>;
|
|
92
92
|
prizeRevealStatus: z.ZodOptional<z.ZodEnum<["pending", "open", "closed", "revealed"]>>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
quantity: number;
|
|
94
95
|
productId: string;
|
|
95
96
|
productTitle: string;
|
|
96
|
-
quantity: number;
|
|
97
97
|
unitPrice: number;
|
|
98
98
|
totalPrice: number;
|
|
99
99
|
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
100
100
|
prizeRevealStatus?: "closed" | "open" | "pending" | "revealed" | undefined;
|
|
101
101
|
}, {
|
|
102
|
+
quantity: number;
|
|
102
103
|
productId: string;
|
|
103
104
|
productTitle: string;
|
|
104
|
-
quantity: number;
|
|
105
105
|
unitPrice: number;
|
|
106
106
|
totalPrice: number;
|
|
107
107
|
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
@@ -168,14 +168,14 @@ export declare const appliedOrderDiscountSchema: z.ZodObject<{
|
|
|
168
168
|
code: string;
|
|
169
169
|
type: "auto" | "coupon" | "deal";
|
|
170
170
|
discountAmount: number;
|
|
171
|
-
scope?: "
|
|
171
|
+
scope?: "admin" | "seller" | undefined;
|
|
172
172
|
storeId?: string | undefined;
|
|
173
173
|
couponId?: string | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
code: string;
|
|
176
176
|
type: "auto" | "coupon" | "deal";
|
|
177
177
|
discountAmount: number;
|
|
178
|
-
scope?: "
|
|
178
|
+
scope?: "admin" | "seller" | undefined;
|
|
179
179
|
storeId?: string | undefined;
|
|
180
180
|
couponId?: string | undefined;
|
|
181
181
|
}>;
|
|
@@ -250,17 +250,17 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
250
250
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "classified", "digital-code", "live"]>>;
|
|
251
251
|
prizeRevealStatus: z.ZodOptional<z.ZodEnum<["pending", "open", "closed", "revealed"]>>;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
quantity: number;
|
|
253
254
|
productId: string;
|
|
254
255
|
productTitle: string;
|
|
255
|
-
quantity: number;
|
|
256
256
|
unitPrice: number;
|
|
257
257
|
totalPrice: number;
|
|
258
258
|
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
259
259
|
prizeRevealStatus?: "closed" | "open" | "pending" | "revealed" | undefined;
|
|
260
260
|
}, {
|
|
261
|
+
quantity: number;
|
|
261
262
|
productId: string;
|
|
262
263
|
productTitle: string;
|
|
263
|
-
quantity: number;
|
|
264
264
|
unitPrice: number;
|
|
265
265
|
totalPrice: number;
|
|
266
266
|
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
@@ -326,14 +326,14 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
326
326
|
code: string;
|
|
327
327
|
type: "auto" | "coupon" | "deal";
|
|
328
328
|
discountAmount: number;
|
|
329
|
-
scope?: "
|
|
329
|
+
scope?: "admin" | "seller" | undefined;
|
|
330
330
|
storeId?: string | undefined;
|
|
331
331
|
couponId?: string | undefined;
|
|
332
332
|
}, {
|
|
333
333
|
code: string;
|
|
334
334
|
type: "auto" | "coupon" | "deal";
|
|
335
335
|
discountAmount: number;
|
|
336
|
-
scope?: "
|
|
336
|
+
scope?: "admin" | "seller" | undefined;
|
|
337
337
|
storeId?: string | undefined;
|
|
338
338
|
couponId?: string | undefined;
|
|
339
339
|
}>, "many">>;
|
|
@@ -547,11 +547,11 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
547
547
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
548
548
|
}, z.ZodTypeAny, "passthrough">;
|
|
549
549
|
userId: string;
|
|
550
|
+
quantity: number;
|
|
550
551
|
productId: string;
|
|
551
552
|
productTitle: string;
|
|
552
553
|
userName: string;
|
|
553
554
|
userEmail: string;
|
|
554
|
-
quantity: number;
|
|
555
555
|
unitPrice: number;
|
|
556
556
|
totalPrice: number;
|
|
557
557
|
paymentStatus: "paid" | "failed" | "pending" | "processing" | "refunded" | "partial_refund";
|
|
@@ -562,6 +562,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
562
562
|
platformFee?: number | undefined;
|
|
563
563
|
paymentMethod?: string | undefined;
|
|
564
564
|
notes?: string | undefined;
|
|
565
|
+
storeName?: string | undefined;
|
|
565
566
|
prizeRevealMode?: "scheduled" | "instant" | undefined;
|
|
566
567
|
paymentId?: string | undefined;
|
|
567
568
|
shippingAddress?: string | undefined;
|
|
@@ -587,9 +588,9 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
587
588
|
shippingCarrier?: string | undefined;
|
|
588
589
|
trackingUrl?: string | undefined;
|
|
589
590
|
items?: {
|
|
591
|
+
quantity: number;
|
|
590
592
|
productId: string;
|
|
591
593
|
productTitle: string;
|
|
592
|
-
quantity: number;
|
|
593
594
|
unitPrice: number;
|
|
594
595
|
totalPrice: number;
|
|
595
596
|
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
@@ -605,7 +606,6 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
605
606
|
}, z.ZodTypeAny, "passthrough">;
|
|
606
607
|
} | undefined;
|
|
607
608
|
prizeDrawProductId?: string | undefined;
|
|
608
|
-
storeName?: string | undefined;
|
|
609
609
|
couponCode?: string | undefined;
|
|
610
610
|
physicalLocation?: {
|
|
611
611
|
zone: string;
|
|
@@ -622,7 +622,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
622
622
|
code: string;
|
|
623
623
|
type: "auto" | "coupon" | "deal";
|
|
624
624
|
discountAmount: number;
|
|
625
|
-
scope?: "
|
|
625
|
+
scope?: "admin" | "seller" | undefined;
|
|
626
626
|
storeId?: string | undefined;
|
|
627
627
|
couponId?: string | undefined;
|
|
628
628
|
}[] | undefined;
|
|
@@ -695,11 +695,11 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
695
695
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
696
696
|
}, z.ZodTypeAny, "passthrough">;
|
|
697
697
|
userId: string;
|
|
698
|
+
quantity: number;
|
|
698
699
|
productId: string;
|
|
699
700
|
productTitle: string;
|
|
700
701
|
userName: string;
|
|
701
702
|
userEmail: string;
|
|
702
|
-
quantity: number;
|
|
703
703
|
unitPrice: number;
|
|
704
704
|
totalPrice: number;
|
|
705
705
|
paymentStatus: "paid" | "failed" | "pending" | "processing" | "refunded" | "partial_refund";
|
|
@@ -710,6 +710,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
710
710
|
platformFee?: number | undefined;
|
|
711
711
|
paymentMethod?: string | undefined;
|
|
712
712
|
notes?: string | undefined;
|
|
713
|
+
storeName?: string | undefined;
|
|
713
714
|
prizeRevealMode?: "scheduled" | "instant" | undefined;
|
|
714
715
|
paymentId?: string | undefined;
|
|
715
716
|
shippingAddress?: string | undefined;
|
|
@@ -735,9 +736,9 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
735
736
|
shippingCarrier?: string | undefined;
|
|
736
737
|
trackingUrl?: string | undefined;
|
|
737
738
|
items?: {
|
|
739
|
+
quantity: number;
|
|
738
740
|
productId: string;
|
|
739
741
|
productTitle: string;
|
|
740
|
-
quantity: number;
|
|
741
742
|
unitPrice: number;
|
|
742
743
|
totalPrice: number;
|
|
743
744
|
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
@@ -753,7 +754,6 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
753
754
|
}, z.ZodTypeAny, "passthrough">;
|
|
754
755
|
} | undefined;
|
|
755
756
|
prizeDrawProductId?: string | undefined;
|
|
756
|
-
storeName?: string | undefined;
|
|
757
757
|
couponCode?: string | undefined;
|
|
758
758
|
physicalLocation?: {
|
|
759
759
|
zone: string;
|
|
@@ -770,7 +770,7 @@ export declare const orderFirestoreSchema: z.ZodObject<{
|
|
|
770
770
|
code: string;
|
|
771
771
|
type: "auto" | "coupon" | "deal";
|
|
772
772
|
discountAmount: number;
|
|
773
|
-
scope?: "
|
|
773
|
+
scope?: "admin" | "seller" | undefined;
|
|
774
774
|
storeId?: string | undefined;
|
|
775
775
|
couponId?: string | undefined;
|
|
776
776
|
}[] | undefined;
|
|
@@ -847,8 +847,8 @@ export declare const orderItemSchema: z.ZodObject<{
|
|
|
847
847
|
}, "strip", z.ZodTypeAny, {
|
|
848
848
|
title: string;
|
|
849
849
|
price: number;
|
|
850
|
-
productId: string;
|
|
851
850
|
quantity: number;
|
|
851
|
+
productId: string;
|
|
852
852
|
currency?: string | undefined;
|
|
853
853
|
image?: string | undefined;
|
|
854
854
|
storeId?: string | undefined;
|
|
@@ -856,8 +856,8 @@ export declare const orderItemSchema: z.ZodObject<{
|
|
|
856
856
|
}, {
|
|
857
857
|
title: string;
|
|
858
858
|
price: number;
|
|
859
|
-
productId: string;
|
|
860
859
|
quantity: number;
|
|
860
|
+
productId: string;
|
|
861
861
|
currency?: string | undefined;
|
|
862
862
|
image?: string | undefined;
|
|
863
863
|
storeId?: string | undefined;
|
|
@@ -907,8 +907,8 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
907
907
|
}, "strip", z.ZodTypeAny, {
|
|
908
908
|
title: string;
|
|
909
909
|
price: number;
|
|
910
|
-
productId: string;
|
|
911
910
|
quantity: number;
|
|
911
|
+
productId: string;
|
|
912
912
|
currency?: string | undefined;
|
|
913
913
|
image?: string | undefined;
|
|
914
914
|
storeId?: string | undefined;
|
|
@@ -916,8 +916,8 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
916
916
|
}, {
|
|
917
917
|
title: string;
|
|
918
918
|
price: number;
|
|
919
|
-
productId: string;
|
|
920
919
|
quantity: number;
|
|
920
|
+
productId: string;
|
|
921
921
|
currency?: string | undefined;
|
|
922
922
|
image?: string | undefined;
|
|
923
923
|
storeId?: string | undefined;
|
|
@@ -962,18 +962,18 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
962
962
|
[k: string]: unknown;
|
|
963
963
|
};
|
|
964
964
|
userId: string;
|
|
965
|
+
total: number;
|
|
965
966
|
paymentStatus: string;
|
|
966
967
|
items: {
|
|
967
968
|
title: string;
|
|
968
969
|
price: number;
|
|
969
|
-
productId: string;
|
|
970
970
|
quantity: number;
|
|
971
|
+
productId: string;
|
|
971
972
|
currency?: string | undefined;
|
|
972
973
|
image?: string | undefined;
|
|
973
974
|
storeId?: string | undefined;
|
|
974
975
|
attributes?: Record<string, string> | undefined;
|
|
975
976
|
}[];
|
|
976
|
-
total: number;
|
|
977
977
|
subtotal: number;
|
|
978
978
|
orderStatus: "pending" | "cancelled" | "processing" | "refunded" | "delivered" | "confirmed" | "shipped" | "return_requested" | "returned";
|
|
979
979
|
createdAt?: string | undefined;
|
|
@@ -999,18 +999,18 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
999
999
|
[k: string]: unknown;
|
|
1000
1000
|
};
|
|
1001
1001
|
userId: string;
|
|
1002
|
+
total: number;
|
|
1002
1003
|
paymentStatus: string;
|
|
1003
1004
|
items: {
|
|
1004
1005
|
title: string;
|
|
1005
1006
|
price: number;
|
|
1006
|
-
productId: string;
|
|
1007
1007
|
quantity: number;
|
|
1008
|
+
productId: string;
|
|
1008
1009
|
currency?: string | undefined;
|
|
1009
1010
|
image?: string | undefined;
|
|
1010
1011
|
storeId?: string | undefined;
|
|
1011
1012
|
attributes?: Record<string, string> | undefined;
|
|
1012
1013
|
}[];
|
|
1013
|
-
total: number;
|
|
1014
1014
|
subtotal: number;
|
|
1015
1015
|
orderStatus: "pending" | "cancelled" | "processing" | "refunded" | "delivered" | "confirmed" | "shipped" | "return_requested" | "returned";
|
|
1016
1016
|
createdAt?: string | undefined;
|
|
@@ -50,14 +50,13 @@ export declare const preorderItemSchema: z.ZodObject<{
|
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
id: string;
|
|
52
52
|
name: string;
|
|
53
|
-
active: boolean;
|
|
54
53
|
slug: string;
|
|
54
|
+
active: boolean;
|
|
55
55
|
isFeatured: boolean;
|
|
56
56
|
salePrice: number;
|
|
57
57
|
regularPrice: number;
|
|
58
58
|
brand?: string | undefined;
|
|
59
59
|
createdAt?: string | undefined;
|
|
60
|
-
images?: string[] | undefined;
|
|
61
60
|
media?: {
|
|
62
61
|
type: "video" | "image" | "file";
|
|
63
62
|
url: string;
|
|
@@ -67,6 +66,7 @@ export declare const preorderItemSchema: z.ZodObject<{
|
|
|
67
66
|
youtubeId?: string | undefined;
|
|
68
67
|
duration?: number | undefined;
|
|
69
68
|
}[] | undefined;
|
|
69
|
+
images?: string[] | undefined;
|
|
70
70
|
franchise?: string | undefined;
|
|
71
71
|
preorderShipDate?: string | undefined;
|
|
72
72
|
}, {
|
|
@@ -78,8 +78,6 @@ export declare const preorderItemSchema: z.ZodObject<{
|
|
|
78
78
|
brand?: string | undefined;
|
|
79
79
|
createdAt?: string | undefined;
|
|
80
80
|
active?: boolean | undefined;
|
|
81
|
-
images?: string[] | undefined;
|
|
82
|
-
isFeatured?: boolean | undefined;
|
|
83
81
|
media?: {
|
|
84
82
|
type: "video" | "image" | "file";
|
|
85
83
|
url: string;
|
|
@@ -89,6 +87,8 @@ export declare const preorderItemSchema: z.ZodObject<{
|
|
|
89
87
|
youtubeId?: string | undefined;
|
|
90
88
|
duration?: number | undefined;
|
|
91
89
|
}[] | undefined;
|
|
90
|
+
images?: string[] | undefined;
|
|
91
|
+
isFeatured?: boolean | undefined;
|
|
92
92
|
franchise?: string | undefined;
|
|
93
93
|
preorderShipDate?: string | undefined;
|
|
94
94
|
}>;
|
|
@@ -338,13 +338,26 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
338
338
|
createdAt?: string | undefined;
|
|
339
339
|
updatedAt?: string | undefined;
|
|
340
340
|
storeId?: string | undefined;
|
|
341
|
-
|
|
342
|
-
description?: string | undefined;
|
|
343
|
-
slug?: string | undefined;
|
|
341
|
+
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
344
342
|
category?: string | undefined;
|
|
345
343
|
categorySlug?: string | undefined;
|
|
346
|
-
subcategory?: string | undefined;
|
|
347
344
|
stockQuantity?: number | undefined;
|
|
345
|
+
rating?: number | undefined;
|
|
346
|
+
publishedAt?: string | undefined;
|
|
347
|
+
slug?: string | undefined;
|
|
348
|
+
viewCount?: number | undefined;
|
|
349
|
+
features?: string[] | undefined;
|
|
350
|
+
media?: {
|
|
351
|
+
type: "video" | "image" | "file";
|
|
352
|
+
url: string;
|
|
353
|
+
source?: "upload" | "youtube" | "external" | undefined;
|
|
354
|
+
alt?: string | undefined;
|
|
355
|
+
thumbnailUrl?: string | undefined;
|
|
356
|
+
youtubeId?: string | undefined;
|
|
357
|
+
duration?: number | undefined;
|
|
358
|
+
}[] | undefined;
|
|
359
|
+
description?: string | undefined;
|
|
360
|
+
subcategory?: string | undefined;
|
|
348
361
|
availableQuantity?: number | undefined;
|
|
349
362
|
mainImage?: string | undefined;
|
|
350
363
|
images?: string[] | undefined;
|
|
@@ -361,7 +374,6 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
361
374
|
insurance?: boolean | undefined;
|
|
362
375
|
insuranceCost?: number | undefined;
|
|
363
376
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
364
|
-
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
365
377
|
auctionEndDate?: string | Date | undefined;
|
|
366
378
|
startingBid?: number | undefined;
|
|
367
379
|
currentBid?: number | undefined;
|
|
@@ -381,7 +393,6 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
381
393
|
preOrderCancellable?: boolean | undefined;
|
|
382
394
|
isPromoted?: boolean | undefined;
|
|
383
395
|
pickupAddressId?: string | undefined;
|
|
384
|
-
viewCount?: number | undefined;
|
|
385
396
|
prizeRevealStatus?: "closed" | "open" | "pending" | undefined;
|
|
386
397
|
prizeRevealWindowStart?: string | Date | undefined;
|
|
387
398
|
prizeRevealWindowEnd?: string | Date | undefined;
|
|
@@ -390,17 +401,6 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
390
401
|
prizeCurrentEntries?: number | undefined;
|
|
391
402
|
prizeMaxEntries?: number | undefined;
|
|
392
403
|
pricePerEntry?: number | undefined;
|
|
393
|
-
rating?: number | undefined;
|
|
394
|
-
publishedAt?: string | undefined;
|
|
395
|
-
media?: {
|
|
396
|
-
type: "video" | "image" | "file";
|
|
397
|
-
url: string;
|
|
398
|
-
source?: "upload" | "youtube" | "external" | undefined;
|
|
399
|
-
alt?: string | undefined;
|
|
400
|
-
thumbnailUrl?: string | undefined;
|
|
401
|
-
youtubeId?: string | undefined;
|
|
402
|
-
duration?: number | undefined;
|
|
403
|
-
}[] | undefined;
|
|
404
404
|
seo?: {
|
|
405
405
|
title?: string | undefined;
|
|
406
406
|
description?: string | undefined;
|
|
@@ -477,13 +477,26 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
477
477
|
createdAt?: string | undefined;
|
|
478
478
|
updatedAt?: string | undefined;
|
|
479
479
|
storeId?: string | undefined;
|
|
480
|
-
|
|
481
|
-
description?: string | undefined;
|
|
482
|
-
slug?: string | undefined;
|
|
480
|
+
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
483
481
|
category?: string | undefined;
|
|
484
482
|
categorySlug?: string | undefined;
|
|
485
|
-
subcategory?: string | undefined;
|
|
486
483
|
stockQuantity?: number | undefined;
|
|
484
|
+
rating?: number | undefined;
|
|
485
|
+
publishedAt?: string | undefined;
|
|
486
|
+
slug?: string | undefined;
|
|
487
|
+
viewCount?: number | undefined;
|
|
488
|
+
features?: string[] | undefined;
|
|
489
|
+
media?: {
|
|
490
|
+
type: "video" | "image" | "file";
|
|
491
|
+
url: string;
|
|
492
|
+
source?: "upload" | "youtube" | "external" | undefined;
|
|
493
|
+
alt?: string | undefined;
|
|
494
|
+
thumbnailUrl?: string | undefined;
|
|
495
|
+
youtubeId?: string | undefined;
|
|
496
|
+
duration?: number | undefined;
|
|
497
|
+
}[] | undefined;
|
|
498
|
+
description?: string | undefined;
|
|
499
|
+
subcategory?: string | undefined;
|
|
487
500
|
availableQuantity?: number | undefined;
|
|
488
501
|
mainImage?: string | undefined;
|
|
489
502
|
images?: string[] | undefined;
|
|
@@ -500,7 +513,6 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
500
513
|
insurance?: boolean | undefined;
|
|
501
514
|
insuranceCost?: number | undefined;
|
|
502
515
|
shippingPaidBy?: "seller" | "buyer" | undefined;
|
|
503
|
-
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
504
516
|
auctionEndDate?: string | Date | undefined;
|
|
505
517
|
startingBid?: number | undefined;
|
|
506
518
|
currentBid?: number | undefined;
|
|
@@ -520,7 +532,6 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
520
532
|
preOrderCancellable?: boolean | undefined;
|
|
521
533
|
isPromoted?: boolean | undefined;
|
|
522
534
|
pickupAddressId?: string | undefined;
|
|
523
|
-
viewCount?: number | undefined;
|
|
524
535
|
prizeRevealStatus?: "closed" | "open" | "pending" | undefined;
|
|
525
536
|
prizeRevealWindowStart?: string | Date | undefined;
|
|
526
537
|
prizeRevealWindowEnd?: string | Date | undefined;
|
|
@@ -529,17 +540,6 @@ export declare const productItemSchema: z.ZodObject<{
|
|
|
529
540
|
prizeCurrentEntries?: number | undefined;
|
|
530
541
|
prizeMaxEntries?: number | undefined;
|
|
531
542
|
pricePerEntry?: number | undefined;
|
|
532
|
-
rating?: number | undefined;
|
|
533
|
-
publishedAt?: string | undefined;
|
|
534
|
-
media?: {
|
|
535
|
-
type: "video" | "image" | "file";
|
|
536
|
-
url: string;
|
|
537
|
-
source?: "upload" | "youtube" | "external" | undefined;
|
|
538
|
-
alt?: string | undefined;
|
|
539
|
-
thumbnailUrl?: string | undefined;
|
|
540
|
-
youtubeId?: string | undefined;
|
|
541
|
-
duration?: number | undefined;
|
|
542
|
-
}[] | undefined;
|
|
543
543
|
seo?: {
|
|
544
544
|
title?: string | undefined;
|
|
545
545
|
description?: string | undefined;
|
|
@@ -625,10 +625,10 @@ export declare const productListParamsSchema: z.ZodObject<{
|
|
|
625
625
|
q?: string | undefined;
|
|
626
626
|
perPage?: number | undefined;
|
|
627
627
|
storeId?: string | undefined;
|
|
628
|
+
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
628
629
|
category?: string | undefined;
|
|
629
630
|
featured?: boolean | undefined;
|
|
630
631
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
631
|
-
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
632
632
|
minPrice?: number | undefined;
|
|
633
633
|
maxPrice?: number | undefined;
|
|
634
634
|
inStock?: boolean | undefined;
|
|
@@ -639,10 +639,10 @@ export declare const productListParamsSchema: z.ZodObject<{
|
|
|
639
639
|
q?: string | undefined;
|
|
640
640
|
perPage?: number | undefined;
|
|
641
641
|
storeId?: string | undefined;
|
|
642
|
+
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
642
643
|
category?: string | undefined;
|
|
643
644
|
featured?: boolean | undefined;
|
|
644
645
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
645
|
-
listingType?: "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | undefined;
|
|
646
646
|
minPrice?: number | undefined;
|
|
647
647
|
maxPrice?: number | undefined;
|
|
648
648
|
inStock?: boolean | undefined;
|
|
@@ -86,8 +86,8 @@ export declare const productFeatureUpdateSchema: z.ZodObject<{
|
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
label?: string | undefined;
|
|
88
88
|
icon?: string | undefined;
|
|
89
|
-
description?: string | undefined;
|
|
90
89
|
category?: "shipping" | "custom" | "seller" | "condition" | "auction" | "platform" | "preorder" | undefined;
|
|
90
|
+
description?: string | undefined;
|
|
91
91
|
isActive?: boolean | undefined;
|
|
92
92
|
displayOrder?: number | undefined;
|
|
93
93
|
iconColor?: string | undefined;
|
|
@@ -95,8 +95,8 @@ export declare const productFeatureUpdateSchema: z.ZodObject<{
|
|
|
95
95
|
}, {
|
|
96
96
|
label?: string | undefined;
|
|
97
97
|
icon?: string | undefined;
|
|
98
|
-
description?: string | undefined;
|
|
99
98
|
category?: "shipping" | "custom" | "seller" | "condition" | "auction" | "platform" | "preorder" | undefined;
|
|
99
|
+
description?: string | undefined;
|
|
100
100
|
isActive?: boolean | undefined;
|
|
101
101
|
displayOrder?: number | undefined;
|
|
102
102
|
iconColor?: string | undefined;
|
|
@@ -269,7 +269,7 @@ export declare const couponFirestoreSchema: z.ZodObject<{
|
|
|
269
269
|
code: string;
|
|
270
270
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
271
271
|
id: string;
|
|
272
|
-
scope: "
|
|
272
|
+
scope: "admin" | "seller";
|
|
273
273
|
name: string;
|
|
274
274
|
createdAt: string | Date | z.objectOutputType<{
|
|
275
275
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
@@ -277,8 +277,8 @@ export declare const couponFirestoreSchema: z.ZodObject<{
|
|
|
277
277
|
updatedAt: string | Date | z.objectOutputType<{
|
|
278
278
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
279
279
|
}, z.ZodTypeAny, "passthrough">;
|
|
280
|
-
description: string;
|
|
281
280
|
createdBy: string;
|
|
281
|
+
description: string;
|
|
282
282
|
stats: {
|
|
283
283
|
totalUses: number;
|
|
284
284
|
totalRevenue: number;
|
|
@@ -327,7 +327,7 @@ export declare const couponFirestoreSchema: z.ZodObject<{
|
|
|
327
327
|
code: string;
|
|
328
328
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
329
329
|
id: string;
|
|
330
|
-
scope: "
|
|
330
|
+
scope: "admin" | "seller";
|
|
331
331
|
name: string;
|
|
332
332
|
createdAt: string | Date | z.objectInputType<{
|
|
333
333
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
@@ -335,8 +335,8 @@ export declare const couponFirestoreSchema: z.ZodObject<{
|
|
|
335
335
|
updatedAt: string | Date | z.objectInputType<{
|
|
336
336
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
337
337
|
}, z.ZodTypeAny, "passthrough">;
|
|
338
|
-
description: string;
|
|
339
338
|
createdBy: string;
|
|
339
|
+
description: string;
|
|
340
340
|
stats: {
|
|
341
341
|
totalUses: number;
|
|
342
342
|
totalRevenue: number;
|
|
@@ -459,7 +459,7 @@ export declare const claimedCouponSnapshotSchema: z.ZodObject<{
|
|
|
459
459
|
}>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
461
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
462
|
-
scope: "
|
|
462
|
+
scope: "admin" | "seller";
|
|
463
463
|
name: string;
|
|
464
464
|
discount: {
|
|
465
465
|
value: number;
|
|
@@ -478,7 +478,7 @@ export declare const claimedCouponSnapshotSchema: z.ZodObject<{
|
|
|
478
478
|
description?: string | undefined;
|
|
479
479
|
}, {
|
|
480
480
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
481
|
-
scope: "
|
|
481
|
+
scope: "admin" | "seller";
|
|
482
482
|
name: string;
|
|
483
483
|
discount: {
|
|
484
484
|
value: number;
|
|
@@ -545,7 +545,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
|
|
|
545
545
|
}>;
|
|
546
546
|
}, "strip", z.ZodTypeAny, {
|
|
547
547
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
548
|
-
scope: "
|
|
548
|
+
scope: "admin" | "seller";
|
|
549
549
|
name: string;
|
|
550
550
|
discount: {
|
|
551
551
|
value: number;
|
|
@@ -564,7 +564,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
|
|
|
564
564
|
description?: string | undefined;
|
|
565
565
|
}, {
|
|
566
566
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
567
|
-
scope: "
|
|
567
|
+
scope: "admin" | "seller";
|
|
568
568
|
name: string;
|
|
569
569
|
discount: {
|
|
570
570
|
value: number;
|
|
@@ -624,7 +624,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
|
|
|
624
624
|
couponId: string;
|
|
625
625
|
couponSnapshot: {
|
|
626
626
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
627
|
-
scope: "
|
|
627
|
+
scope: "admin" | "seller";
|
|
628
628
|
name: string;
|
|
629
629
|
discount: {
|
|
630
630
|
value: number;
|
|
@@ -664,7 +664,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
|
|
|
664
664
|
couponId: string;
|
|
665
665
|
couponSnapshot: {
|
|
666
666
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
667
|
-
scope: "
|
|
667
|
+
scope: "admin" | "seller";
|
|
668
668
|
name: string;
|
|
669
669
|
discount: {
|
|
670
670
|
value: number;
|
|
@@ -738,7 +738,7 @@ export declare const couponItemSchema: z.ZodObject<{
|
|
|
738
738
|
code: string;
|
|
739
739
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
740
740
|
id: string;
|
|
741
|
-
scope: "
|
|
741
|
+
scope: "admin" | "seller";
|
|
742
742
|
name: string;
|
|
743
743
|
createdAt: string;
|
|
744
744
|
updatedAt: string;
|
|
@@ -762,7 +762,7 @@ export declare const couponItemSchema: z.ZodObject<{
|
|
|
762
762
|
code: string;
|
|
763
763
|
type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
|
|
764
764
|
id: string;
|
|
765
|
-
scope: "
|
|
765
|
+
scope: "admin" | "seller";
|
|
766
766
|
name: string;
|
|
767
767
|
createdAt: string;
|
|
768
768
|
updatedAt: string;
|
|
@@ -794,7 +794,7 @@ export declare const promotionsListParamsSchema: z.ZodObject<{
|
|
|
794
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
795
|
sort?: string | undefined;
|
|
796
796
|
page?: number | undefined;
|
|
797
|
-
scope?: "
|
|
797
|
+
scope?: "admin" | "seller" | undefined;
|
|
798
798
|
pageSize?: number | undefined;
|
|
799
799
|
storeId?: string | undefined;
|
|
800
800
|
isActive?: boolean | undefined;
|
|
@@ -802,7 +802,7 @@ export declare const promotionsListParamsSchema: z.ZodObject<{
|
|
|
802
802
|
}, {
|
|
803
803
|
sort?: string | undefined;
|
|
804
804
|
page?: number | undefined;
|
|
805
|
-
scope?: "
|
|
805
|
+
scope?: "admin" | "seller" | undefined;
|
|
806
806
|
pageSize?: number | undefined;
|
|
807
807
|
storeId?: string | undefined;
|
|
808
808
|
isActive?: boolean | undefined;
|