@mohasinac/appkit 4.15.0 → 4.16.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/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/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/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 +3 -3
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +2 -2
- 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/schemas/registry.d.ts +108 -108
- 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
|
@@ -110,11 +110,11 @@ 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;
|
|
113
114
|
verified: boolean;
|
|
114
115
|
productId: string;
|
|
115
116
|
productTitle: string;
|
|
116
117
|
userName: string;
|
|
117
|
-
rating: number;
|
|
118
118
|
comment: string;
|
|
119
119
|
helpfulCount: number;
|
|
120
120
|
reportCount: number;
|
|
@@ -126,9 +126,10 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
|
|
|
126
126
|
trimStart?: number | undefined;
|
|
127
127
|
} | undefined;
|
|
128
128
|
storeId?: string | undefined;
|
|
129
|
+
listingType?: string | undefined;
|
|
130
|
+
storeName?: string | undefined;
|
|
129
131
|
images?: string[] | undefined;
|
|
130
132
|
featured?: boolean | undefined;
|
|
131
|
-
listingType?: string | undefined;
|
|
132
133
|
userAvatar?: string | undefined;
|
|
133
134
|
moderatorId?: string | undefined;
|
|
134
135
|
moderatorNote?: string | undefined;
|
|
@@ -139,7 +140,6 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
|
|
|
139
140
|
rejectedAt?: string | Date | z.objectOutputType<{
|
|
140
141
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
141
142
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
142
|
-
storeName?: string | undefined;
|
|
143
143
|
userSlug?: string | undefined;
|
|
144
144
|
hasImages?: boolean | undefined;
|
|
145
145
|
isAnonymous?: boolean | undefined;
|
|
@@ -158,11 +158,11 @@ 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;
|
|
161
162
|
verified: boolean;
|
|
162
163
|
productId: string;
|
|
163
164
|
productTitle: string;
|
|
164
165
|
userName: string;
|
|
165
|
-
rating: number;
|
|
166
166
|
comment: string;
|
|
167
167
|
helpfulCount: number;
|
|
168
168
|
reportCount: number;
|
|
@@ -174,9 +174,10 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
|
|
|
174
174
|
trimStart?: number | undefined;
|
|
175
175
|
} | undefined;
|
|
176
176
|
storeId?: string | undefined;
|
|
177
|
+
listingType?: string | undefined;
|
|
178
|
+
storeName?: string | undefined;
|
|
177
179
|
images?: string[] | undefined;
|
|
178
180
|
featured?: boolean | undefined;
|
|
179
|
-
listingType?: string | undefined;
|
|
180
181
|
userAvatar?: string | undefined;
|
|
181
182
|
moderatorId?: string | undefined;
|
|
182
183
|
moderatorNote?: string | undefined;
|
|
@@ -187,7 +188,6 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
|
|
|
187
188
|
rejectedAt?: string | Date | z.objectInputType<{
|
|
188
189
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
189
190
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
190
|
-
storeName?: string | undefined;
|
|
191
191
|
userSlug?: string | undefined;
|
|
192
192
|
hasImages?: boolean | undefined;
|
|
193
193
|
isAnonymous?: boolean | undefined;
|
|
@@ -293,9 +293,9 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
293
293
|
status: "pending" | "approved" | "rejected";
|
|
294
294
|
id: string;
|
|
295
295
|
userId: string;
|
|
296
|
+
rating: 3 | 1 | 2 | 4 | 5;
|
|
296
297
|
productId: string;
|
|
297
298
|
userName: string;
|
|
298
|
-
rating: 3 | 1 | 2 | 4 | 5;
|
|
299
299
|
title?: string | undefined;
|
|
300
300
|
video?: {
|
|
301
301
|
url: string;
|
|
@@ -306,27 +306,27 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
306
306
|
} | undefined;
|
|
307
307
|
createdAt?: string | undefined;
|
|
308
308
|
updatedAt?: string | undefined;
|
|
309
|
+
listingType?: string | undefined;
|
|
310
|
+
storeName?: string | undefined;
|
|
309
311
|
verified?: boolean | undefined;
|
|
310
312
|
images?: {
|
|
311
313
|
url: string;
|
|
312
314
|
thumbnailUrl?: string | undefined;
|
|
313
315
|
}[] | undefined;
|
|
314
316
|
featured?: boolean | undefined;
|
|
315
|
-
listingType?: string | undefined;
|
|
316
317
|
productTitle?: string | undefined;
|
|
317
318
|
userAvatar?: string | undefined;
|
|
318
319
|
comment?: string | undefined;
|
|
319
320
|
helpfulCount?: number | undefined;
|
|
320
321
|
reportCount?: number | undefined;
|
|
321
|
-
storeName?: string | undefined;
|
|
322
322
|
storeSlug?: string | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
status: "pending" | "approved" | "rejected";
|
|
325
325
|
id: string;
|
|
326
326
|
userId: string;
|
|
327
|
+
rating: 3 | 1 | 2 | 4 | 5;
|
|
327
328
|
productId: string;
|
|
328
329
|
userName: string;
|
|
329
|
-
rating: 3 | 1 | 2 | 4 | 5;
|
|
330
330
|
title?: string | undefined;
|
|
331
331
|
video?: {
|
|
332
332
|
url: string;
|
|
@@ -337,19 +337,19 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
337
337
|
} | undefined;
|
|
338
338
|
createdAt?: string | undefined;
|
|
339
339
|
updatedAt?: string | undefined;
|
|
340
|
+
listingType?: string | undefined;
|
|
341
|
+
storeName?: string | undefined;
|
|
340
342
|
verified?: boolean | undefined;
|
|
341
343
|
images?: {
|
|
342
344
|
url: string;
|
|
343
345
|
thumbnailUrl?: string | undefined;
|
|
344
346
|
}[] | undefined;
|
|
345
347
|
featured?: boolean | undefined;
|
|
346
|
-
listingType?: string | undefined;
|
|
347
348
|
productTitle?: string | undefined;
|
|
348
349
|
userAvatar?: string | undefined;
|
|
349
350
|
comment?: string | undefined;
|
|
350
351
|
helpfulCount?: number | undefined;
|
|
351
352
|
reportCount?: number | undefined;
|
|
352
|
-
storeName?: string | undefined;
|
|
353
353
|
storeSlug?: string | undefined;
|
|
354
354
|
}>;
|
|
355
355
|
/** Base schema for list-query parameters. */
|
|
@@ -370,9 +370,9 @@ export declare const reviewListParamsSchema: z.ZodObject<{
|
|
|
370
370
|
perPage?: number | undefined;
|
|
371
371
|
storeId?: string | undefined;
|
|
372
372
|
userId?: string | undefined;
|
|
373
|
+
rating?: number | undefined;
|
|
373
374
|
featured?: boolean | undefined;
|
|
374
375
|
productId?: string | undefined;
|
|
375
|
-
rating?: number | undefined;
|
|
376
376
|
}, {
|
|
377
377
|
sort?: string | undefined;
|
|
378
378
|
status?: "pending" | "approved" | "rejected" | undefined;
|
|
@@ -380,7 +380,7 @@ export declare const reviewListParamsSchema: z.ZodObject<{
|
|
|
380
380
|
perPage?: number | undefined;
|
|
381
381
|
storeId?: string | undefined;
|
|
382
382
|
userId?: string | undefined;
|
|
383
|
+
rating?: number | undefined;
|
|
383
384
|
featured?: boolean | undefined;
|
|
384
385
|
productId?: string | undefined;
|
|
385
|
-
rating?: number | undefined;
|
|
386
386
|
}>;
|
|
@@ -87,9 +87,9 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
|
|
|
87
87
|
updatedAt: string | Date | z.objectOutputType<{
|
|
88
88
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
89
89
|
}, z.ZodTypeAny, "passthrough">;
|
|
90
|
+
views: number;
|
|
90
91
|
description: string;
|
|
91
92
|
tags: string[];
|
|
92
|
-
views: number;
|
|
93
93
|
scamType: string;
|
|
94
94
|
reportedBy: string;
|
|
95
95
|
reportedByAnon: boolean;
|
|
@@ -127,9 +127,9 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
|
|
|
127
127
|
updatedAt: string | Date | z.objectInputType<{
|
|
128
128
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
129
129
|
}, z.ZodTypeAny, "passthrough">;
|
|
130
|
+
views: number;
|
|
130
131
|
description: string;
|
|
131
132
|
tags: string[];
|
|
132
|
-
views: number;
|
|
133
133
|
scamType: string;
|
|
134
134
|
reportedBy: string;
|
|
135
135
|
reportedByAnon: boolean;
|
|
@@ -27,9 +27,9 @@ export declare const searchProductItemSchema: z.ZodObject<{
|
|
|
27
27
|
currency?: string | undefined;
|
|
28
28
|
status?: string | undefined;
|
|
29
29
|
price?: number | undefined;
|
|
30
|
+
listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "bundle" | undefined;
|
|
30
31
|
mainImage?: string | undefined;
|
|
31
32
|
featured?: boolean | undefined;
|
|
32
|
-
listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "bundle" | undefined;
|
|
33
33
|
isPromoted?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
id: string;
|
|
@@ -38,9 +38,9 @@ export declare const searchProductItemSchema: z.ZodObject<{
|
|
|
38
38
|
currency?: string | undefined;
|
|
39
39
|
status?: string | undefined;
|
|
40
40
|
price?: number | undefined;
|
|
41
|
+
listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "bundle" | undefined;
|
|
41
42
|
mainImage?: string | undefined;
|
|
42
43
|
featured?: boolean | undefined;
|
|
43
|
-
listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "bundle" | undefined;
|
|
44
44
|
isPromoted?: boolean | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
/**
|
|
@@ -89,8 +89,8 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
89
89
|
id: string;
|
|
90
90
|
createdAt: string;
|
|
91
91
|
updatedAt: string;
|
|
92
|
-
ownerId: string;
|
|
93
92
|
storeName: string;
|
|
93
|
+
ownerId: string;
|
|
94
94
|
storeSlug: string;
|
|
95
95
|
isPublic: boolean;
|
|
96
96
|
location?: string | undefined;
|
|
@@ -121,8 +121,8 @@ export declare const sellerStoreSchema: z.ZodObject<{
|
|
|
121
121
|
id: string;
|
|
122
122
|
createdAt: string;
|
|
123
123
|
updatedAt: string;
|
|
124
|
-
ownerId: string;
|
|
125
124
|
storeName: string;
|
|
125
|
+
ownerId: string;
|
|
126
126
|
storeSlug: string;
|
|
127
127
|
isPublic: boolean;
|
|
128
128
|
location?: string | undefined;
|
|
@@ -230,36 +230,36 @@ export declare const createShipmentItemSchema: z.ZodEffects<z.ZodObject<{
|
|
|
230
230
|
quantity: number;
|
|
231
231
|
isForSelfUse: boolean;
|
|
232
232
|
notes?: string | undefined;
|
|
233
|
-
categorySlugs?: string[] | undefined;
|
|
234
|
-
brandSlug?: string | undefined;
|
|
235
233
|
price?: number | undefined;
|
|
234
|
+
brandSlug?: string | undefined;
|
|
235
|
+
categorySlugs?: string[] | undefined;
|
|
236
236
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
237
237
|
}, {
|
|
238
238
|
title: string;
|
|
239
239
|
quantity: number;
|
|
240
240
|
isForSelfUse: boolean;
|
|
241
241
|
notes?: string | undefined;
|
|
242
|
-
categorySlugs?: string[] | undefined;
|
|
243
|
-
brandSlug?: string | undefined;
|
|
244
242
|
price?: number | undefined;
|
|
243
|
+
brandSlug?: string | undefined;
|
|
244
|
+
categorySlugs?: string[] | undefined;
|
|
245
245
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
246
246
|
}>, {
|
|
247
247
|
title: string;
|
|
248
248
|
quantity: number;
|
|
249
249
|
isForSelfUse: boolean;
|
|
250
250
|
notes?: string | undefined;
|
|
251
|
-
categorySlugs?: string[] | undefined;
|
|
252
|
-
brandSlug?: string | undefined;
|
|
253
251
|
price?: number | undefined;
|
|
252
|
+
brandSlug?: string | undefined;
|
|
253
|
+
categorySlugs?: string[] | undefined;
|
|
254
254
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
255
255
|
}, {
|
|
256
256
|
title: string;
|
|
257
257
|
quantity: number;
|
|
258
258
|
isForSelfUse: boolean;
|
|
259
259
|
notes?: string | undefined;
|
|
260
|
-
categorySlugs?: string[] | undefined;
|
|
261
|
-
brandSlug?: string | undefined;
|
|
262
260
|
price?: number | undefined;
|
|
261
|
+
brandSlug?: string | undefined;
|
|
262
|
+
categorySlugs?: string[] | undefined;
|
|
263
263
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
264
264
|
}>;
|
|
265
265
|
export declare const updateShipmentItemSchema: z.ZodObject<{
|
|
@@ -278,11 +278,11 @@ export declare const updateShipmentItemSchema: z.ZodObject<{
|
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
279
|
title?: string | undefined;
|
|
280
280
|
notes?: string | undefined;
|
|
281
|
-
categorySlugs?: string[] | undefined;
|
|
282
|
-
brandSlug?: string | undefined;
|
|
283
281
|
price?: number | undefined;
|
|
284
|
-
|
|
282
|
+
brandSlug?: string | undefined;
|
|
285
283
|
quantity?: number | undefined;
|
|
284
|
+
categorySlugs?: string[] | undefined;
|
|
285
|
+
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
286
286
|
isForSelfUse?: boolean | undefined;
|
|
287
287
|
linkedProductId?: string | null | undefined;
|
|
288
288
|
linkedProductSlug?: string | null | undefined;
|
|
@@ -290,11 +290,11 @@ export declare const updateShipmentItemSchema: z.ZodObject<{
|
|
|
290
290
|
}, {
|
|
291
291
|
title?: string | undefined;
|
|
292
292
|
notes?: string | undefined;
|
|
293
|
-
categorySlugs?: string[] | undefined;
|
|
294
|
-
brandSlug?: string | undefined;
|
|
295
293
|
price?: number | undefined;
|
|
296
|
-
|
|
294
|
+
brandSlug?: string | undefined;
|
|
297
295
|
quantity?: number | undefined;
|
|
296
|
+
categorySlugs?: string[] | undefined;
|
|
297
|
+
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
298
298
|
isForSelfUse?: boolean | undefined;
|
|
299
299
|
linkedProductId?: string | null | undefined;
|
|
300
300
|
linkedProductSlug?: string | null | undefined;
|
|
@@ -319,36 +319,36 @@ export declare const bulkShipmentItemsSchema: z.ZodEffects<z.ZodArray<z.ZodObjec
|
|
|
319
319
|
quantity: number;
|
|
320
320
|
isForSelfUse: boolean;
|
|
321
321
|
notes?: string | undefined;
|
|
322
|
-
categorySlugs?: string[] | undefined;
|
|
323
|
-
brandSlug?: string | undefined;
|
|
324
322
|
price?: number | undefined;
|
|
323
|
+
brandSlug?: string | undefined;
|
|
324
|
+
categorySlugs?: string[] | undefined;
|
|
325
325
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
326
326
|
}, {
|
|
327
327
|
title: string;
|
|
328
328
|
quantity: number;
|
|
329
329
|
isForSelfUse: boolean;
|
|
330
330
|
notes?: string | undefined;
|
|
331
|
-
categorySlugs?: string[] | undefined;
|
|
332
|
-
brandSlug?: string | undefined;
|
|
333
331
|
price?: number | undefined;
|
|
332
|
+
brandSlug?: string | undefined;
|
|
333
|
+
categorySlugs?: string[] | undefined;
|
|
334
334
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
335
335
|
}>, "many">, {
|
|
336
336
|
title: string;
|
|
337
337
|
quantity: number;
|
|
338
338
|
isForSelfUse: boolean;
|
|
339
339
|
notes?: string | undefined;
|
|
340
|
-
categorySlugs?: string[] | undefined;
|
|
341
|
-
brandSlug?: string | undefined;
|
|
342
340
|
price?: number | undefined;
|
|
341
|
+
brandSlug?: string | undefined;
|
|
342
|
+
categorySlugs?: string[] | undefined;
|
|
343
343
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
344
344
|
}[], {
|
|
345
345
|
title: string;
|
|
346
346
|
quantity: number;
|
|
347
347
|
isForSelfUse: boolean;
|
|
348
348
|
notes?: string | undefined;
|
|
349
|
-
categorySlugs?: string[] | undefined;
|
|
350
|
-
brandSlug?: string | undefined;
|
|
351
349
|
price?: number | undefined;
|
|
350
|
+
brandSlug?: string | undefined;
|
|
351
|
+
categorySlugs?: string[] | undefined;
|
|
352
352
|
condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
|
|
353
353
|
}[]>;
|
|
354
354
|
export type CreateShipmentInput = z.infer<typeof createShipmentSchema>;
|
|
@@ -33,8 +33,8 @@ export type ListingTemplateFormValues = z.infer<typeof listingTemplateFormSchema
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const listingTemplateCreateSchema: z.ZodObject<{
|
|
35
35
|
name: z.ZodString;
|
|
36
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
37
36
|
listingType: z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "bundle", "classified", "digital-code", "live", "art", "stickers"]>;
|
|
37
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
38
38
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").FirestoreValue, z.ZodTypeDef, import("../../..").FirestoreValue>>>;
|
|
@@ -63,15 +63,15 @@ export declare const listingTemplateUpdateSchema: z.ZodObject<{
|
|
|
63
63
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
65
|
name?: string | undefined;
|
|
66
|
-
description?: string | undefined;
|
|
67
66
|
listingType?: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle" | undefined;
|
|
67
|
+
description?: string | undefined;
|
|
68
68
|
isActive?: boolean | undefined;
|
|
69
69
|
isShared?: boolean | undefined;
|
|
70
70
|
defaults?: Record<string, import("../../..").FirestoreValue> | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
name?: string | undefined;
|
|
73
|
-
description?: string | undefined;
|
|
74
73
|
listingType?: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle" | undefined;
|
|
74
|
+
description?: string | undefined;
|
|
75
75
|
isActive?: boolean | undefined;
|
|
76
76
|
isShared?: boolean | undefined;
|
|
77
77
|
defaults?: Record<string, import("../../..").FirestoreValue> | undefined;
|
|
@@ -13,14 +13,14 @@ export declare const storeCategoryFormSchema: z.ZodObject<{
|
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
label: string;
|
|
15
15
|
displayOrder: number;
|
|
16
|
-
description?: string | undefined;
|
|
17
16
|
slug?: string | undefined;
|
|
17
|
+
description?: string | undefined;
|
|
18
18
|
coverImageUrl?: string | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
label: string;
|
|
21
21
|
displayOrder: number;
|
|
22
|
-
description?: string | undefined;
|
|
23
22
|
slug?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
24
|
coverImageUrl?: string | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
export type StoreCategoryFormValues = z.infer<typeof storeCategoryFormSchema>;
|
|
@@ -410,8 +410,8 @@ export declare const storeFirestoreSchema: z.ZodObject<{
|
|
|
410
410
|
updatedAt: string | Date | z.objectOutputType<{
|
|
411
411
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
412
412
|
}, z.ZodTypeAny, "passthrough">;
|
|
413
|
-
ownerId: string;
|
|
414
413
|
storeName: string;
|
|
414
|
+
ownerId: string;
|
|
415
415
|
storeSlug: string;
|
|
416
416
|
isPublic: boolean;
|
|
417
417
|
location?: string | undefined;
|
|
@@ -495,8 +495,8 @@ export declare const storeFirestoreSchema: z.ZodObject<{
|
|
|
495
495
|
updatedAt: string | Date | z.objectInputType<{
|
|
496
496
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
497
497
|
}, z.ZodTypeAny, "passthrough">;
|
|
498
|
-
ownerId: string;
|
|
499
498
|
storeName: string;
|
|
499
|
+
ownerId: string;
|
|
500
500
|
storeSlug: string;
|
|
501
501
|
isPublic: boolean;
|
|
502
502
|
location?: string | undefined;
|
|
@@ -607,8 +607,8 @@ export declare const storeListItemSchema: z.ZodObject<{
|
|
|
607
607
|
}, "strip", z.ZodTypeAny, {
|
|
608
608
|
status: string;
|
|
609
609
|
id: string;
|
|
610
|
-
ownerId: string;
|
|
611
610
|
storeName: string;
|
|
611
|
+
ownerId: string;
|
|
612
612
|
storeSlug: string;
|
|
613
613
|
isPublic: boolean;
|
|
614
614
|
createdAt?: string | undefined;
|
|
@@ -623,8 +623,8 @@ export declare const storeListItemSchema: z.ZodObject<{
|
|
|
623
623
|
}, {
|
|
624
624
|
status: string;
|
|
625
625
|
id: string;
|
|
626
|
-
ownerId: string;
|
|
627
626
|
storeName: string;
|
|
627
|
+
ownerId: string;
|
|
628
628
|
storeSlug: string;
|
|
629
629
|
isPublic: boolean;
|
|
630
630
|
createdAt?: string | undefined;
|
|
@@ -158,12 +158,12 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
158
158
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
159
159
|
}, z.ZodTypeAny, "passthrough">;
|
|
160
160
|
userId: string;
|
|
161
|
-
description: string;
|
|
162
161
|
category: "general" | "account" | "order_issue" | "billing_payment" | "listing_dispute" | "scam_report" | "refund_request" | "auction_dispute" | "store_change_request" | "order_modification_request" | "unban_request";
|
|
162
|
+
priority: "normal" | "high" | "low" | "urgent";
|
|
163
|
+
description: string;
|
|
163
164
|
userEmail: string;
|
|
164
165
|
userDisplayName: string;
|
|
165
166
|
subject: string;
|
|
166
|
-
priority: "normal" | "high" | "low" | "urgent";
|
|
167
167
|
messages: {
|
|
168
168
|
id: string;
|
|
169
169
|
body: string;
|
|
@@ -201,12 +201,12 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
201
201
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
202
202
|
}, z.ZodTypeAny, "passthrough">;
|
|
203
203
|
userId: string;
|
|
204
|
-
description: string;
|
|
205
204
|
category: "general" | "account" | "order_issue" | "billing_payment" | "listing_dispute" | "scam_report" | "refund_request" | "auction_dispute" | "store_change_request" | "order_modification_request" | "unban_request";
|
|
205
|
+
priority: "normal" | "high" | "low" | "urgent";
|
|
206
|
+
description: string;
|
|
206
207
|
userEmail: string;
|
|
207
208
|
userDisplayName: string;
|
|
208
209
|
subject: string;
|
|
209
|
-
priority: "normal" | "high" | "low" | "urgent";
|
|
210
210
|
messages: {
|
|
211
211
|
id: string;
|
|
212
212
|
body: string;
|
|
@@ -3083,6 +3083,30 @@ const rawTesterChecklistItems = [
|
|
|
3083
3083
|
description: "Both PATCH routes previously spread the raw request body into Firestore with no schema, so any key and any status string could be written. Confirm the normal Take / Action / Dismiss and Approve / Reject flows still all work — that is what the tightening must not have broken.",
|
|
3084
3084
|
href: "/admin/reports",
|
|
3085
3085
|
},
|
|
3086
|
+
{
|
|
3087
|
+
key: "admin-tables-render-badges-not-text",
|
|
3088
|
+
label: "Admin list tables show a coloured STATUS BADGE, a thumbnail and formatted money — not raw text",
|
|
3089
|
+
description: "Fixed 2026-08-25 — `column-renderers.tsx` was promised by its own sibling's docstring and never written (it could not be: a .ts and .tsx of the same name both emit the same .js). Every column without a hand-written renderer fell back to String(value), so a price read `1499` and a date read as a raw ISO string. Check a few different admin lists.",
|
|
3090
|
+
href: "/admin/products",
|
|
3091
|
+
},
|
|
3092
|
+
{
|
|
3093
|
+
key: "admin-table-readable-on-phone",
|
|
3094
|
+
label: "An admin list is readable at phone width — it switches to the card/list view instead of squeezing a table",
|
|
3095
|
+
description: "Fixed 2026-08-25 — no column-level responsive behaviour existed at all (`TableColumn.hidden` was documented but no DataTable ever read it). Below md the table view is now suppressed entirely; from md up, low-priority columns (created/updated dates, ids, view counts) drop out progressively. Resize from 320px to 1400px and confirm columns reappear rather than the row wrapping.",
|
|
3096
|
+
href: "/admin/orders",
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
key: "action-buttons-have-icons",
|
|
3100
|
+
label: "Buttons driven by the action registry show an icon beside their label",
|
|
3101
|
+
description: "Fixed 2026-08-25 — `ActionDef.iconKey` existed on the type, was set on 2 of 220 actions, and was rendered by nothing. All 220 now carry one and `<Button action={…}>` renders it. Spot-check a row action menu and a bulk action bar.",
|
|
3102
|
+
href: "/admin/products",
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
key: "sold-flag-badge-readable",
|
|
3106
|
+
label: "The \"Sold\" flag chip on an admin product card is legible in BOTH light and dark themes",
|
|
3107
|
+
description: "Fixed 2026-08-25 — the flag list gave `isSold` two backgrounds and two inks on one element, so the painted colour was decided by stylesheet order rather than by the list. The identical bug was found on the scammer status badge the day before. Also check \"Promoted\", which was raw dual-theme purple.",
|
|
3108
|
+
href: "/admin/products",
|
|
3109
|
+
},
|
|
3086
3110
|
{
|
|
3087
3111
|
key: "homepage-section-all-types-creatable",
|
|
3088
3112
|
label: "EVERY section type in the New Section dropdown can actually be created — especially Featured Bundles, Prize Draws, Event Raffles and Collection Cards",
|
|
@@ -29,7 +29,7 @@ export declare function useWishlistWithGuest(userId: string | null | undefined,
|
|
|
29
29
|
productPrice: number;
|
|
30
30
|
productSlug: string;
|
|
31
31
|
addedAt: string | undefined;
|
|
32
|
-
type: "
|
|
32
|
+
type: "category" | "store" | "classified" | "auction" | "digital-code" | "live" | "product" | "preorder";
|
|
33
33
|
}[];
|
|
34
34
|
total: number;
|
|
35
35
|
wishlistedIds: Set<string>;
|