@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
|
@@ -106,35 +106,35 @@ export declare const bundleQueryRuleSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
106
106
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
107
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "pre-order", "prize-draw"]>>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
109
110
|
categorySlug?: string | undefined;
|
|
110
111
|
brandSlug?: string | undefined;
|
|
111
112
|
tags?: string[] | undefined;
|
|
112
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
113
113
|
}, {
|
|
114
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
114
115
|
categorySlug?: string | undefined;
|
|
115
116
|
brandSlug?: string | undefined;
|
|
116
117
|
tags?: string[] | undefined;
|
|
117
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
orderBy: z.ZodOptional<z.ZodEnum<["price-asc", "price-desc", "createdAt-desc"]>>;
|
|
120
120
|
limit: z.ZodNumber;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
122
|
type: "dynamic";
|
|
123
123
|
filter: {
|
|
124
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
124
125
|
categorySlug?: string | undefined;
|
|
125
126
|
brandSlug?: string | undefined;
|
|
126
127
|
tags?: string[] | undefined;
|
|
127
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
128
128
|
};
|
|
129
129
|
limit: number;
|
|
130
130
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
131
131
|
}, {
|
|
132
132
|
type: "dynamic";
|
|
133
133
|
filter: {
|
|
134
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
134
135
|
categorySlug?: string | undefined;
|
|
135
136
|
brandSlug?: string | undefined;
|
|
136
137
|
tags?: string[] | undefined;
|
|
137
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
138
138
|
};
|
|
139
139
|
limit: number;
|
|
140
140
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
@@ -260,35 +260,35 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
260
260
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
261
261
|
listingType: z.ZodOptional<z.ZodEnum<["standard", "pre-order", "prize-draw"]>>;
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
263
264
|
categorySlug?: string | undefined;
|
|
264
265
|
brandSlug?: string | undefined;
|
|
265
266
|
tags?: string[] | undefined;
|
|
266
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
267
267
|
}, {
|
|
268
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
268
269
|
categorySlug?: string | undefined;
|
|
269
270
|
brandSlug?: string | undefined;
|
|
270
271
|
tags?: string[] | undefined;
|
|
271
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
orderBy: z.ZodOptional<z.ZodEnum<["price-asc", "price-desc", "createdAt-desc"]>>;
|
|
274
274
|
limit: z.ZodNumber;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
276
|
type: "dynamic";
|
|
277
277
|
filter: {
|
|
278
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
278
279
|
categorySlug?: string | undefined;
|
|
279
280
|
brandSlug?: string | undefined;
|
|
280
281
|
tags?: string[] | undefined;
|
|
281
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
282
282
|
};
|
|
283
283
|
limit: number;
|
|
284
284
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
285
285
|
}, {
|
|
286
286
|
type: "dynamic";
|
|
287
287
|
filter: {
|
|
288
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
288
289
|
categorySlug?: string | undefined;
|
|
289
290
|
brandSlug?: string | undefined;
|
|
290
291
|
tags?: string[] | undefined;
|
|
291
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
292
292
|
};
|
|
293
293
|
limit: number;
|
|
294
294
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
@@ -394,9 +394,9 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
394
394
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
395
395
|
}, z.ZodTypeAny, "passthrough">;
|
|
396
396
|
slug: string;
|
|
397
|
+
createdBy: string;
|
|
397
398
|
isActive: boolean;
|
|
398
399
|
order: number;
|
|
399
|
-
createdBy: string;
|
|
400
400
|
isFeatured: boolean;
|
|
401
401
|
rootId: string;
|
|
402
402
|
tier: number;
|
|
@@ -430,12 +430,12 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
430
430
|
name: string;
|
|
431
431
|
tier: number;
|
|
432
432
|
}[];
|
|
433
|
+
brandSlug?: string | undefined;
|
|
433
434
|
faqs?: {
|
|
434
435
|
question: string;
|
|
435
436
|
answer: string;
|
|
436
437
|
}[] | undefined;
|
|
437
438
|
description?: string | undefined;
|
|
438
|
-
brandSlug?: string | undefined;
|
|
439
439
|
showOnHomepage?: boolean | undefined;
|
|
440
440
|
categoryType?: "brand" | "category" | "sublisting" | "bundle" | undefined;
|
|
441
441
|
bundleKind?: "brand" | "special" | undefined;
|
|
@@ -452,7 +452,7 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
452
452
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
453
453
|
featuredPriority?: number | undefined;
|
|
454
454
|
isBrand?: boolean | undefined;
|
|
455
|
-
createdByType?: "
|
|
455
|
+
createdByType?: "store" | "admin" | undefined;
|
|
456
456
|
createdByStoreId?: string | undefined;
|
|
457
457
|
itemCode?: string | undefined;
|
|
458
458
|
brandWebsite?: string | undefined;
|
|
@@ -466,10 +466,10 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
466
466
|
} | {
|
|
467
467
|
type: "dynamic";
|
|
468
468
|
filter: {
|
|
469
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
469
470
|
categorySlug?: string | undefined;
|
|
470
471
|
brandSlug?: string | undefined;
|
|
471
472
|
tags?: string[] | undefined;
|
|
472
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
473
473
|
};
|
|
474
474
|
limit: number;
|
|
475
475
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
@@ -493,9 +493,9 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
493
493
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
494
494
|
}, z.ZodTypeAny, "passthrough">;
|
|
495
495
|
slug: string;
|
|
496
|
+
createdBy: string;
|
|
496
497
|
isActive: boolean;
|
|
497
498
|
order: number;
|
|
498
|
-
createdBy: string;
|
|
499
499
|
isFeatured: boolean;
|
|
500
500
|
rootId: string;
|
|
501
501
|
tier: number;
|
|
@@ -529,12 +529,12 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
529
529
|
name: string;
|
|
530
530
|
tier: number;
|
|
531
531
|
}[];
|
|
532
|
+
brandSlug?: string | undefined;
|
|
532
533
|
faqs?: {
|
|
533
534
|
question: string;
|
|
534
535
|
answer: string;
|
|
535
536
|
}[] | undefined;
|
|
536
537
|
description?: string | undefined;
|
|
537
|
-
brandSlug?: string | undefined;
|
|
538
538
|
showOnHomepage?: boolean | undefined;
|
|
539
539
|
categoryType?: "brand" | "category" | "sublisting" | "bundle" | undefined;
|
|
540
540
|
bundleKind?: "brand" | "special" | undefined;
|
|
@@ -551,7 +551,7 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
551
551
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
552
552
|
featuredPriority?: number | undefined;
|
|
553
553
|
isBrand?: boolean | undefined;
|
|
554
|
-
createdByType?: "
|
|
554
|
+
createdByType?: "store" | "admin" | undefined;
|
|
555
555
|
createdByStoreId?: string | undefined;
|
|
556
556
|
itemCode?: string | undefined;
|
|
557
557
|
brandWebsite?: string | undefined;
|
|
@@ -565,10 +565,10 @@ export declare const categoryFirestoreSchema: z.ZodObject<{
|
|
|
565
565
|
} | {
|
|
566
566
|
type: "dynamic";
|
|
567
567
|
filter: {
|
|
568
|
+
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
568
569
|
categorySlug?: string | undefined;
|
|
569
570
|
brandSlug?: string | undefined;
|
|
570
571
|
tags?: string[] | undefined;
|
|
571
|
-
listingType?: "standard" | "pre-order" | "prize-draw" | undefined;
|
|
572
572
|
};
|
|
573
573
|
limit: number;
|
|
574
574
|
orderBy?: "price-asc" | "price-desc" | "createdAt-desc" | undefined;
|
|
@@ -26,14 +26,14 @@ export declare const collectionItemSchema: z.ZodObject<{
|
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
title: string;
|
|
28
28
|
sortOrder: number;
|
|
29
|
-
active: boolean;
|
|
30
29
|
slug: string;
|
|
30
|
+
active: boolean;
|
|
31
31
|
image?: string | undefined;
|
|
32
32
|
createdAt?: string | undefined;
|
|
33
|
-
description?: string | undefined;
|
|
34
33
|
brandSlug?: string | undefined;
|
|
35
|
-
subtitle?: string | undefined;
|
|
36
34
|
productCount?: number | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
subtitle?: string | undefined;
|
|
37
37
|
bannerImage?: string | undefined;
|
|
38
38
|
franchiseSlug?: string | undefined;
|
|
39
39
|
manualProductIds?: string[] | undefined;
|
|
@@ -43,11 +43,11 @@ export declare const collectionItemSchema: z.ZodObject<{
|
|
|
43
43
|
image?: string | undefined;
|
|
44
44
|
createdAt?: string | undefined;
|
|
45
45
|
sortOrder?: number | undefined;
|
|
46
|
+
brandSlug?: string | undefined;
|
|
47
|
+
productCount?: number | undefined;
|
|
46
48
|
active?: boolean | undefined;
|
|
47
49
|
description?: string | undefined;
|
|
48
|
-
brandSlug?: string | undefined;
|
|
49
50
|
subtitle?: string | undefined;
|
|
50
|
-
productCount?: number | undefined;
|
|
51
51
|
bannerImage?: string | undefined;
|
|
52
52
|
franchiseSlug?: string | undefined;
|
|
53
53
|
manualProductIds?: string[] | undefined;
|
|
@@ -61,16 +61,16 @@ export declare const collectionListItemSchema: z.ZodObject<{
|
|
|
61
61
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
62
62
|
}, "strip", z.ZodTypeAny, {
|
|
63
63
|
title: string;
|
|
64
|
-
active: boolean;
|
|
65
64
|
slug: string;
|
|
65
|
+
active: boolean;
|
|
66
66
|
image?: string | undefined;
|
|
67
|
-
subtitle?: string | undefined;
|
|
68
67
|
productCount?: number | undefined;
|
|
68
|
+
subtitle?: string | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
title: string;
|
|
71
71
|
slug: string;
|
|
72
72
|
image?: string | undefined;
|
|
73
|
+
productCount?: number | undefined;
|
|
73
74
|
active?: boolean | undefined;
|
|
74
75
|
subtitle?: string | undefined;
|
|
75
|
-
productCount?: number | undefined;
|
|
76
76
|
}>;
|
|
@@ -943,10 +943,10 @@ export declare const eventItemSchema: z.ZodObject<{
|
|
|
943
943
|
title: string;
|
|
944
944
|
createdAt: string;
|
|
945
945
|
updatedAt: string;
|
|
946
|
+
createdBy: string;
|
|
946
947
|
description: string;
|
|
947
948
|
startsAt: string;
|
|
948
949
|
endsAt: string;
|
|
949
|
-
createdBy: string;
|
|
950
950
|
stats: {
|
|
951
951
|
totalEntries: number;
|
|
952
952
|
approvedEntries: number;
|
|
@@ -1098,10 +1098,10 @@ export declare const eventItemSchema: z.ZodObject<{
|
|
|
1098
1098
|
title: string;
|
|
1099
1099
|
createdAt: string;
|
|
1100
1100
|
updatedAt: string;
|
|
1101
|
+
createdBy: string;
|
|
1101
1102
|
description: string;
|
|
1102
1103
|
startsAt: string;
|
|
1103
1104
|
endsAt: string;
|
|
1104
|
-
createdBy: string;
|
|
1105
1105
|
stats: {
|
|
1106
1106
|
totalEntries: number;
|
|
1107
1107
|
approvedEntries: number;
|
|
@@ -27,10 +27,10 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
27
27
|
template: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
category: string;
|
|
30
|
+
priority: number;
|
|
30
31
|
isActive: boolean;
|
|
31
32
|
order: number;
|
|
32
33
|
showOnHomepage: boolean;
|
|
33
|
-
priority: number;
|
|
34
34
|
question: string;
|
|
35
35
|
answer: {
|
|
36
36
|
text: string;
|
|
@@ -51,11 +51,11 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
51
51
|
format?: "html" | "plain" | "markdown" | undefined;
|
|
52
52
|
};
|
|
53
53
|
template?: string | undefined;
|
|
54
|
+
priority?: number | undefined;
|
|
54
55
|
tags?: string[] | undefined;
|
|
55
56
|
isActive?: boolean | undefined;
|
|
56
57
|
order?: number | undefined;
|
|
57
58
|
showOnHomepage?: boolean | undefined;
|
|
58
|
-
priority?: number | undefined;
|
|
59
59
|
showInFooter?: boolean | undefined;
|
|
60
60
|
isPinned?: boolean | undefined;
|
|
61
61
|
relatedFAQs?: string[] | undefined;
|
|
@@ -63,10 +63,10 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
63
63
|
variables?: Record<string, string> | undefined;
|
|
64
64
|
}>, {
|
|
65
65
|
category: string;
|
|
66
|
+
priority: number;
|
|
66
67
|
isActive: boolean;
|
|
67
68
|
order: number;
|
|
68
69
|
showOnHomepage: boolean;
|
|
69
|
-
priority: number;
|
|
70
70
|
question: string;
|
|
71
71
|
answer: {
|
|
72
72
|
text: string;
|
|
@@ -87,11 +87,11 @@ export declare const faqCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
87
87
|
format?: "html" | "plain" | "markdown" | undefined;
|
|
88
88
|
};
|
|
89
89
|
template?: string | undefined;
|
|
90
|
+
priority?: number | undefined;
|
|
90
91
|
tags?: string[] | undefined;
|
|
91
92
|
isActive?: boolean | undefined;
|
|
92
93
|
order?: number | undefined;
|
|
93
94
|
showOnHomepage?: boolean | undefined;
|
|
94
|
-
priority?: number | undefined;
|
|
95
95
|
showInFooter?: boolean | undefined;
|
|
96
96
|
isPinned?: boolean | undefined;
|
|
97
97
|
relatedFAQs?: string[] | undefined;
|
|
@@ -125,11 +125,11 @@ export declare const faqUpdateSchema: z.ZodObject<{
|
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
126
|
template?: string | undefined;
|
|
127
127
|
category?: string | undefined;
|
|
128
|
+
priority?: number | undefined;
|
|
128
129
|
tags?: string[] | undefined;
|
|
129
130
|
isActive?: boolean | undefined;
|
|
130
131
|
order?: number | undefined;
|
|
131
132
|
showOnHomepage?: boolean | undefined;
|
|
132
|
-
priority?: number | undefined;
|
|
133
133
|
question?: string | undefined;
|
|
134
134
|
answer?: {
|
|
135
135
|
text: string;
|
|
@@ -143,11 +143,11 @@ export declare const faqUpdateSchema: z.ZodObject<{
|
|
|
143
143
|
}, {
|
|
144
144
|
template?: string | undefined;
|
|
145
145
|
category?: string | undefined;
|
|
146
|
+
priority?: number | undefined;
|
|
146
147
|
tags?: string[] | undefined;
|
|
147
148
|
isActive?: boolean | undefined;
|
|
148
149
|
order?: number | undefined;
|
|
149
150
|
showOnHomepage?: boolean | undefined;
|
|
150
|
-
priority?: number | undefined;
|
|
151
151
|
question?: string | undefined;
|
|
152
152
|
answer?: {
|
|
153
153
|
text: string;
|
|
@@ -91,6 +91,7 @@ export declare const faqSchema: z.ZodObject<{
|
|
|
91
91
|
};
|
|
92
92
|
createdAt?: string | undefined;
|
|
93
93
|
updatedAt?: string | undefined;
|
|
94
|
+
priority?: number | undefined;
|
|
94
95
|
tags?: string[] | undefined;
|
|
95
96
|
isActive?: boolean | undefined;
|
|
96
97
|
order?: number | undefined;
|
|
@@ -100,7 +101,6 @@ export declare const faqSchema: z.ZodObject<{
|
|
|
100
101
|
notHelpful?: number | undefined;
|
|
101
102
|
} | undefined;
|
|
102
103
|
showOnHomepage?: boolean | undefined;
|
|
103
|
-
priority?: number | undefined;
|
|
104
104
|
showInFooter?: boolean | undefined;
|
|
105
105
|
isPinned?: boolean | undefined;
|
|
106
106
|
relatedFAQs?: string[] | undefined;
|
|
@@ -117,6 +117,7 @@ export declare const faqSchema: z.ZodObject<{
|
|
|
117
117
|
};
|
|
118
118
|
createdAt?: string | undefined;
|
|
119
119
|
updatedAt?: string | undefined;
|
|
120
|
+
priority?: number | undefined;
|
|
120
121
|
tags?: string[] | undefined;
|
|
121
122
|
isActive?: boolean | undefined;
|
|
122
123
|
order?: number | undefined;
|
|
@@ -126,7 +127,6 @@ export declare const faqSchema: z.ZodObject<{
|
|
|
126
127
|
notHelpful?: number | undefined;
|
|
127
128
|
} | undefined;
|
|
128
129
|
showOnHomepage?: boolean | undefined;
|
|
129
|
-
priority?: number | undefined;
|
|
130
130
|
showInFooter?: boolean | undefined;
|
|
131
131
|
isPinned?: boolean | undefined;
|
|
132
132
|
relatedFAQs?: string[] | undefined;
|
|
@@ -282,10 +282,11 @@ export declare const faqFirestoreSchema: z.ZodObject<{
|
|
|
282
282
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
283
283
|
}, z.ZodTypeAny, "passthrough">;
|
|
284
284
|
category: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general";
|
|
285
|
+
createdBy: string;
|
|
286
|
+
priority: number;
|
|
285
287
|
tags: string[];
|
|
286
288
|
isActive: boolean;
|
|
287
289
|
order: number;
|
|
288
|
-
createdBy: string;
|
|
289
290
|
stats: {
|
|
290
291
|
views: number;
|
|
291
292
|
helpful: number;
|
|
@@ -295,7 +296,6 @@ export declare const faqFirestoreSchema: z.ZodObject<{
|
|
|
295
296
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
296
297
|
};
|
|
297
298
|
showOnHomepage: boolean;
|
|
298
|
-
priority: number;
|
|
299
299
|
question: string;
|
|
300
300
|
answer: {
|
|
301
301
|
text: string;
|
|
@@ -321,10 +321,11 @@ export declare const faqFirestoreSchema: z.ZodObject<{
|
|
|
321
321
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
322
322
|
}, z.ZodTypeAny, "passthrough">;
|
|
323
323
|
category: "orders_payment" | "shipping_delivery" | "returns_refunds" | "product_information" | "account_security" | "technical_support" | "general";
|
|
324
|
+
createdBy: string;
|
|
325
|
+
priority: number;
|
|
324
326
|
tags: string[];
|
|
325
327
|
isActive: boolean;
|
|
326
328
|
order: number;
|
|
327
|
-
createdBy: string;
|
|
328
329
|
stats: {
|
|
329
330
|
views: number;
|
|
330
331
|
helpful: number;
|
|
@@ -334,7 +335,6 @@ export declare const faqFirestoreSchema: z.ZodObject<{
|
|
|
334
335
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
335
336
|
};
|
|
336
337
|
showOnHomepage: boolean;
|
|
337
|
-
priority: number;
|
|
338
338
|
question: string;
|
|
339
339
|
answer: {
|
|
340
340
|
text: string;
|
|
@@ -78,9 +78,9 @@ export declare const groupedListingUpdateSchema: z.ZodObject<{
|
|
|
78
78
|
categorySlug: z.ZodOptional<z.ZodString>;
|
|
79
79
|
}, "strict", z.ZodTypeAny, {
|
|
80
80
|
title?: string | undefined;
|
|
81
|
-
description?: string | undefined;
|
|
82
81
|
categorySlug?: string | undefined;
|
|
83
82
|
brandSlug?: string | undefined;
|
|
83
|
+
description?: string | undefined;
|
|
84
84
|
isActive?: boolean | undefined;
|
|
85
85
|
isFeatured?: boolean | undefined;
|
|
86
86
|
coverImage?: string | undefined;
|
|
@@ -89,9 +89,9 @@ export declare const groupedListingUpdateSchema: z.ZodObject<{
|
|
|
89
89
|
minActiveMembers?: number | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
title?: string | undefined;
|
|
92
|
-
description?: string | undefined;
|
|
93
92
|
categorySlug?: string | undefined;
|
|
94
93
|
brandSlug?: string | undefined;
|
|
94
|
+
description?: string | undefined;
|
|
95
95
|
isActive?: boolean | undefined;
|
|
96
96
|
isFeatured?: boolean | undefined;
|
|
97
97
|
coverImage?: string | undefined;
|
|
@@ -43,8 +43,8 @@ export declare const groupedListingFirestoreSchema: z.ZodObject<{
|
|
|
43
43
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
44
44
|
}, z.ZodTypeAny, "passthrough">;
|
|
45
45
|
slug: string;
|
|
46
|
-
isActive: boolean;
|
|
47
46
|
createdBy: string;
|
|
47
|
+
isActive: boolean;
|
|
48
48
|
isFeatured: boolean;
|
|
49
49
|
productIds: string[];
|
|
50
50
|
groupTheme: "set" | "related" | "character" | "lineage" | "generic";
|
|
@@ -52,9 +52,9 @@ export declare const groupedListingFirestoreSchema: z.ZodObject<{
|
|
|
52
52
|
minActiveMembers: number;
|
|
53
53
|
activeMemberCount: number;
|
|
54
54
|
storeId?: string | undefined;
|
|
55
|
-
description?: string | undefined;
|
|
56
55
|
categorySlug?: string | undefined;
|
|
57
56
|
brandSlug?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
58
|
coverImage?: string | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
id: string;
|
|
@@ -66,8 +66,8 @@ export declare const groupedListingFirestoreSchema: z.ZodObject<{
|
|
|
66
66
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
67
67
|
}, z.ZodTypeAny, "passthrough">;
|
|
68
68
|
slug: string;
|
|
69
|
-
isActive: boolean;
|
|
70
69
|
createdBy: string;
|
|
70
|
+
isActive: boolean;
|
|
71
71
|
isFeatured: boolean;
|
|
72
72
|
productIds: string[];
|
|
73
73
|
groupTheme: "set" | "related" | "character" | "lineage" | "generic";
|
|
@@ -75,9 +75,9 @@ export declare const groupedListingFirestoreSchema: z.ZodObject<{
|
|
|
75
75
|
minActiveMembers: number;
|
|
76
76
|
activeMemberCount: number;
|
|
77
77
|
storeId?: string | undefined;
|
|
78
|
-
description?: string | undefined;
|
|
79
78
|
categorySlug?: string | undefined;
|
|
80
79
|
brandSlug?: string | undefined;
|
|
80
|
+
description?: string | undefined;
|
|
81
81
|
coverImage?: string | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
export type GroupedListingFromSchema = z.infer<typeof groupedListingFirestoreSchema>;
|
|
@@ -691,8 +691,8 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
691
691
|
id?: string | undefined;
|
|
692
692
|
} | undefined;
|
|
693
693
|
enabled?: boolean | undefined;
|
|
694
|
-
opacity?: number | undefined;
|
|
695
694
|
description?: string | undefined;
|
|
695
|
+
opacity?: number | undefined;
|
|
696
696
|
subtitle?: string | undefined;
|
|
697
697
|
}, {
|
|
698
698
|
color?: string | undefined;
|
|
@@ -705,8 +705,8 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
705
705
|
id?: string | undefined;
|
|
706
706
|
} | undefined;
|
|
707
707
|
enabled?: boolean | undefined;
|
|
708
|
-
opacity?: number | undefined;
|
|
709
708
|
description?: string | undefined;
|
|
709
|
+
opacity?: number | undefined;
|
|
710
710
|
subtitle?: string | undefined;
|
|
711
711
|
}>>;
|
|
712
712
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -749,9 +749,8 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
749
749
|
updatedAt: string | Date | z.objectOutputType<{
|
|
750
750
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
751
751
|
}, z.ZodTypeAny, "passthrough">;
|
|
752
|
-
active: boolean;
|
|
753
|
-
order: number;
|
|
754
752
|
createdBy: string;
|
|
753
|
+
active: boolean;
|
|
755
754
|
cards: {
|
|
756
755
|
id: string;
|
|
757
756
|
background: {
|
|
@@ -794,10 +793,22 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
794
793
|
isButtonOnly?: boolean | undefined;
|
|
795
794
|
gridCol?: 3 | 1 | 2 | undefined;
|
|
796
795
|
}[];
|
|
796
|
+
order: number;
|
|
797
797
|
link?: {
|
|
798
798
|
url: string;
|
|
799
799
|
openInNewTab: boolean;
|
|
800
800
|
} | undefined;
|
|
801
|
+
media?: {
|
|
802
|
+
type: "video" | "image";
|
|
803
|
+
url: string;
|
|
804
|
+
alt?: string | undefined;
|
|
805
|
+
thumbnail?: string | undefined;
|
|
806
|
+
} | undefined;
|
|
807
|
+
mobileMedia?: {
|
|
808
|
+
type: "video" | "image";
|
|
809
|
+
url: string;
|
|
810
|
+
alt?: string | undefined;
|
|
811
|
+
} | undefined;
|
|
801
812
|
background?: {
|
|
802
813
|
type: "color" | "gradient" | "video" | "image";
|
|
803
814
|
color?: string | undefined;
|
|
@@ -823,32 +834,21 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
823
834
|
id?: string | undefined;
|
|
824
835
|
} | undefined;
|
|
825
836
|
enabled?: boolean | undefined;
|
|
826
|
-
opacity?: number | undefined;
|
|
827
837
|
description?: string | undefined;
|
|
838
|
+
opacity?: number | undefined;
|
|
828
839
|
subtitle?: string | undefined;
|
|
829
840
|
} | undefined;
|
|
830
|
-
media?: {
|
|
831
|
-
type: "video" | "image";
|
|
832
|
-
url: string;
|
|
833
|
-
alt?: string | undefined;
|
|
834
|
-
thumbnail?: string | undefined;
|
|
835
|
-
} | undefined;
|
|
836
|
-
mobileMedia?: {
|
|
837
|
-
type: "video" | "image";
|
|
838
|
-
url: string;
|
|
839
|
-
alt?: string | undefined;
|
|
840
|
-
} | undefined;
|
|
841
|
-
settings?: {
|
|
842
|
-
height?: "medium" | "viewport" | "tall" | undefined;
|
|
843
|
-
autoplayDelayMs?: number | undefined;
|
|
844
|
-
} | undefined;
|
|
845
|
-
carouselId?: string | null | undefined;
|
|
846
841
|
analytics?: {
|
|
847
842
|
views: number;
|
|
848
843
|
lastViewed?: string | Date | z.objectOutputType<{
|
|
849
844
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
850
845
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
851
846
|
} | undefined;
|
|
847
|
+
settings?: {
|
|
848
|
+
height?: "medium" | "viewport" | "tall" | undefined;
|
|
849
|
+
autoplayDelayMs?: number | undefined;
|
|
850
|
+
} | undefined;
|
|
851
|
+
carouselId?: string | null | undefined;
|
|
852
852
|
}, {
|
|
853
853
|
id: string;
|
|
854
854
|
title: string;
|
|
@@ -858,9 +858,8 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
858
858
|
updatedAt: string | Date | z.objectInputType<{
|
|
859
859
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
860
860
|
}, z.ZodTypeAny, "passthrough">;
|
|
861
|
-
active: boolean;
|
|
862
|
-
order: number;
|
|
863
861
|
createdBy: string;
|
|
862
|
+
active: boolean;
|
|
864
863
|
cards: {
|
|
865
864
|
id: string;
|
|
866
865
|
background: {
|
|
@@ -903,10 +902,22 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
903
902
|
isButtonOnly?: boolean | undefined;
|
|
904
903
|
gridCol?: 3 | 1 | 2 | undefined;
|
|
905
904
|
}[];
|
|
905
|
+
order: number;
|
|
906
906
|
link?: {
|
|
907
907
|
url: string;
|
|
908
908
|
openInNewTab: boolean;
|
|
909
909
|
} | undefined;
|
|
910
|
+
media?: {
|
|
911
|
+
type: "video" | "image";
|
|
912
|
+
url: string;
|
|
913
|
+
alt?: string | undefined;
|
|
914
|
+
thumbnail?: string | undefined;
|
|
915
|
+
} | undefined;
|
|
916
|
+
mobileMedia?: {
|
|
917
|
+
type: "video" | "image";
|
|
918
|
+
url: string;
|
|
919
|
+
alt?: string | undefined;
|
|
920
|
+
} | undefined;
|
|
910
921
|
background?: {
|
|
911
922
|
type: "color" | "gradient" | "video" | "image";
|
|
912
923
|
color?: string | undefined;
|
|
@@ -932,32 +943,21 @@ export declare const carouselSlideFirestoreSchema: z.ZodObject<{
|
|
|
932
943
|
id?: string | undefined;
|
|
933
944
|
} | undefined;
|
|
934
945
|
enabled?: boolean | undefined;
|
|
935
|
-
opacity?: number | undefined;
|
|
936
946
|
description?: string | undefined;
|
|
947
|
+
opacity?: number | undefined;
|
|
937
948
|
subtitle?: string | undefined;
|
|
938
949
|
} | undefined;
|
|
939
|
-
media?: {
|
|
940
|
-
type: "video" | "image";
|
|
941
|
-
url: string;
|
|
942
|
-
alt?: string | undefined;
|
|
943
|
-
thumbnail?: string | undefined;
|
|
944
|
-
} | undefined;
|
|
945
|
-
mobileMedia?: {
|
|
946
|
-
type: "video" | "image";
|
|
947
|
-
url: string;
|
|
948
|
-
alt?: string | undefined;
|
|
949
|
-
} | undefined;
|
|
950
|
-
settings?: {
|
|
951
|
-
height?: "medium" | "viewport" | "tall" | undefined;
|
|
952
|
-
autoplayDelayMs?: number | undefined;
|
|
953
|
-
} | undefined;
|
|
954
|
-
carouselId?: string | null | undefined;
|
|
955
950
|
analytics?: {
|
|
956
951
|
views: number;
|
|
957
952
|
lastViewed?: string | Date | z.objectInputType<{
|
|
958
953
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
959
954
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
960
955
|
} | undefined;
|
|
956
|
+
settings?: {
|
|
957
|
+
height?: "medium" | "viewport" | "tall" | undefined;
|
|
958
|
+
autoplayDelayMs?: number | undefined;
|
|
959
|
+
} | undefined;
|
|
960
|
+
carouselId?: string | null | undefined;
|
|
961
961
|
}>;
|
|
962
962
|
export type HomepageSectionFromSchema = z.infer<typeof homepageSectionFirestoreSchema>;
|
|
963
963
|
export type CarouselFromSchema = z.infer<typeof carouselFirestoreSchema>;
|
|
@@ -116,8 +116,8 @@ export declare const conversationFirestoreSchema: z.ZodObject<{
|
|
|
116
116
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
117
117
|
}, z.ZodTypeAny, "passthrough">;
|
|
118
118
|
storeId: string;
|
|
119
|
-
buyerId: string;
|
|
120
119
|
storeName: string;
|
|
120
|
+
buyerId: string;
|
|
121
121
|
lastMessageAt: string | Date | z.objectOutputType<{
|
|
122
122
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
123
123
|
}, z.ZodTypeAny, "passthrough">;
|
|
@@ -149,8 +149,8 @@ export declare const conversationFirestoreSchema: z.ZodObject<{
|
|
|
149
149
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
150
150
|
}, z.ZodTypeAny, "passthrough">;
|
|
151
151
|
storeId: string;
|
|
152
|
-
buyerId: string;
|
|
153
152
|
storeName: string;
|
|
153
|
+
buyerId: string;
|
|
154
154
|
lastMessageAt: string | Date | z.objectInputType<{
|
|
155
155
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
156
156
|
}, z.ZodTypeAny, "passthrough">;
|