@mohasinac/appkit 4.41.16 → 4.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +1 -1
- package/dist/_internal/server/features/checkout/actions.d.ts +16 -14
- package/dist/_internal/server/features/checkout/actions.js +145 -97
- package/dist/_internal/server/features/checkout/bundle-expansion.d.ts +1 -1
- package/dist/_internal/server/features/checkout/index.d.ts +1 -1
- package/dist/_internal/server/features/checkout/index.js +1 -1
- package/dist/_internal/server/features/checkout/locked-lines.js +1 -1
- package/dist/_internal/server/features/checkout/source-context.js +2 -2
- package/dist/_internal/server/features/maintenance/analyze.js +1 -1
- package/dist/_internal/server/features/refunds/actions.d.ts +4 -4
- package/dist/_internal/server/features/refunds/actions.js +9 -8
- package/dist/_internal/server/functions/scheduled.d.ts +1 -2
- package/dist/_internal/server/functions/scheduled.js +1 -9
- package/dist/_internal/server/jobs/core/index.d.ts +0 -1
- package/dist/_internal/server/jobs/core/index.js +0 -1
- package/dist/_internal/server/jobs/handlers/index.d.ts +0 -1
- package/dist/_internal/server/jobs/handlers/index.js +0 -1
- package/dist/_internal/shared/actions/action-registry.js +2 -2
- package/dist/_internal/shared/checkout/order-math.d.ts +1 -1
- package/dist/_internal/shared/checkout/order-math.js +1 -1
- package/dist/_internal/shared/checkout/rules/prize-draw.rule.js +2 -2
- package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
- package/dist/_internal/shared/features/cart/schema.d.ts +6 -6
- package/dist/_internal/shared/features/orders/refund-copy.d.ts +1 -1
- package/dist/_internal/shared/features/orders/refund-copy.js +1 -1
- package/dist/_internal/shared/features/orders/schema.d.ts +5 -5
- package/dist/_internal/shared/features/orders/schema.js +1 -1
- package/dist/_internal/shared/features/products/schema.d.ts +2 -2
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/reviews/schema.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/configs/next.js +2 -2
- package/dist/constants/field-names.d.ts +1 -1
- package/dist/constants/field-names.js +1 -1
- package/dist/contracts/index.d.ts +0 -2
- package/dist/contracts/index.js +0 -1
- package/dist/contracts/payment.d.ts +13 -2
- package/dist/contracts/payment.js +2 -2
- package/dist/core/integration-keys.d.ts +7 -3
- package/dist/core/integration-keys.js +13 -7
- package/dist/core/money.d.ts +11 -0
- package/dist/core/money.js +15 -0
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/messages.d.ts +1 -0
- package/dist/errors/messages.js +1 -0
- package/dist/errors/{razorpay-unreachable.d.ts → payment-provider-unreachable.d.ts} +1 -1
- package/dist/errors/{razorpay-unreachable.js → payment-provider-unreachable.js} +1 -1
- package/dist/features/addresses/schemas/address-form.d.ts +20 -20
- package/dist/features/addresses/schemas/index.d.ts +2 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +32 -16
- package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
- package/dist/features/admin/schemas/admin-ops-forms.d.ts +10 -10
- package/dist/features/admin/schemas/admin-user-form.d.ts +2 -2
- package/dist/features/admin/schemas/firestore.d.ts +17 -8
- package/dist/features/admin/schemas/firestore.js +1 -1
- package/dist/features/admin/schemas/nav-item-form.d.ts +2 -2
- package/dist/features/auctions/schemas/index.d.ts +2 -2
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/schemas/index.d.ts +2 -2
- package/dist/features/blog/actions/blog-actions.d.ts +4 -4
- package/dist/features/blog/schemas/blog-form.d.ts +2 -2
- package/dist/features/blog/schemas/index.d.ts +4 -4
- package/dist/features/cart/schemas/index.d.ts +3 -3
- package/dist/features/catalogue/schemas/validation.d.ts +4 -4
- package/dist/features/categories/schemas/index.d.ts +2 -2
- package/dist/features/checkout/index.d.ts +0 -4
- package/dist/features/checkout/index.js +0 -3
- package/dist/features/checkout/types/index.d.ts +0 -25
- package/dist/features/checkout/types/index.js +1 -2
- package/dist/features/collections/schemas/index.d.ts +2 -2
- package/dist/features/consultation/schemas/index.d.ts +4 -4
- package/dist/features/corporate/schemas/index.d.ts +2 -2
- package/dist/features/events/schemas/index.d.ts +4 -4
- package/dist/features/grouped/schemas/index.d.ts +2 -2
- package/dist/features/homepage/schemas/index.d.ts +2 -2
- package/dist/features/lottery/schemas/zod.d.ts +4 -4
- package/dist/features/loyalty/schemas/index.d.ts +6 -6
- package/dist/features/orders/components/OrderPaymentSummary.d.ts +1 -1
- package/dist/features/orders/components/OrderPaymentSummary.js +5 -5
- package/dist/features/orders/components/RefundHistoryTable.js +1 -1
- package/dist/features/orders/repository/orders.repository.d.ts +10 -1
- package/dist/features/orders/repository/orders.repository.js +17 -1
- package/dist/features/orders/schemas/firestore.d.ts +11 -12
- package/dist/features/orders/schemas/firestore.js +0 -1
- package/dist/features/orders/schemas/index.d.ts +48 -48
- package/dist/features/orders/schemas/index.js +1 -1
- package/dist/features/orders/types/index.d.ts +1 -3
- package/dist/features/orders/types/index.js +1 -2
- package/dist/features/payments/manifest.js +1 -1
- package/dist/features/payments/repository/payout.repository.d.ts +1 -4
- package/dist/features/payments/repository/payout.repository.js +0 -29
- package/dist/features/payments/schemas/firestore.d.ts +8 -15
- package/dist/features/payments/schemas/firestore.js +7 -5
- package/dist/features/payments/schemas/index.d.ts +52 -125
- package/dist/features/payments/schemas/index.js +0 -58
- package/dist/features/payments/types/index.d.ts +2 -4
- package/dist/features/payments/types/index.js +1 -2
- package/dist/features/products/schemas/index.d.ts +14 -14
- package/dist/features/products/schemas/product-features.validators.d.ts +10 -10
- package/dist/features/promotions/schemas/index.d.ts +20 -20
- package/dist/features/reviews/schemas/index.d.ts +8 -8
- package/dist/features/scams/schemas/index.d.ts +10 -10
- package/dist/features/search/action-index/settings-entries.js +4 -4
- package/dist/features/seller/schemas/index.d.ts +12 -12
- package/dist/features/seller/schemas/order-forms.d.ts +4 -4
- package/dist/features/shipments/schemas/validation.d.ts +28 -28
- package/dist/features/store-extensions/schemas/payout-method-form.d.ts +50 -50
- package/dist/features/store-extensions/schemas/report-create-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +10 -10
- package/dist/features/support/schemas/index.d.ts +14 -14
- package/dist/features/tester/actions/checklist-item-actions.d.ts +4 -4
- package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
- package/dist/features/tester/seed-data/_money-flows.js +145 -0
- package/dist/features/tester/seed-data/authored/account-auth__signup-login.js +21 -2
- package/dist/features/tester/seed-data/authored/admin__site-system.js +38 -0
- package/dist/features/tester/seed-data/authored/buying__buying-checkout.js +10 -10
- package/dist/features/tester/seed-data/authored/buying__offers.js +11 -10
- package/dist/features/tester/seed-data/authored/cta-layout__checkout-bottom-bar.js +1 -1
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +24 -12
- package/dist/features/wishlist/schemas/index.d.ts +2 -2
- package/dist/index.d.ts +6 -28
- package/dist/index.js +8 -51
- package/dist/jobs.d.ts +1 -1
- package/dist/jobs.js +1 -1
- package/dist/providers/payment-phonepe/index.d.ts +117 -0
- package/dist/providers/payment-phonepe/index.js +221 -0
- package/dist/providers.d.ts +3 -2
- package/dist/providers.js +3 -2
- package/dist/schemas/registry.d.ts +163 -2623
- package/dist/schemas/registry.js +1 -6
- package/dist/seed/faq-seed-data.js +5 -5
- package/dist/seed/payouts-seed-data.js +3 -3
- package/dist/seed/site-settings-seed-data.js +7 -4
- package/dist/server-entry.d.ts +1 -2
- package/dist/server-entry.js +1 -3
- package/dist/server.d.ts +3 -9
- package/dist/server.js +5 -23
- package/dist/validation/schemas.d.ts +2 -2
- package/package.json +5 -4
- package/dist/_internal/server/features/payments/actions.d.ts +0 -30
- package/dist/_internal/server/features/payments/actions.js +0 -45
- package/dist/_internal/server/features/payments/data.d.ts +0 -13
- package/dist/_internal/server/features/payments/data.js +0 -20
- package/dist/_internal/server/features/payments/index.d.ts +0 -3
- package/dist/_internal/server/features/payments/index.js +0 -3
- package/dist/_internal/server/jobs/core/payoutBatch.d.ts +0 -2
- package/dist/_internal/server/jobs/core/payoutBatch.js +0 -120
- package/dist/_internal/server/jobs/handlers/payoutBatch.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/payoutBatch.js +0 -2
- package/dist/_internal/shared/features/payments/config.d.ts +0 -3
- package/dist/_internal/shared/features/payments/config.js +0 -3
- package/dist/contracts/client-payment-gateway.d.ts +0 -64
- package/dist/contracts/client-payment-gateway.js +0 -25
- package/dist/features/checkout/hooks/useCheckout.d.ts +0 -9
- package/dist/features/checkout/hooks/useCheckout.js +0 -24
- package/dist/features/checkout/hooks/useCheckoutApi.d.ts +0 -72
- package/dist/features/checkout/hooks/useCheckoutApi.js +0 -47
- package/dist/features/checkout/hooks/usePaymentCheckout.d.ts +0 -77
- package/dist/features/checkout/hooks/usePaymentCheckout.js +0 -192
- package/dist/providers/payment-razorpay/index.d.ts +0 -115
- package/dist/providers/payment-razorpay/index.js +0 -208
- package/dist/schemas/webhooks/razorpay.d.ts +0 -2634
- package/dist/schemas/webhooks/razorpay.js +0 -104
|
@@ -7,14 +7,14 @@ export declare const adminOrderUpdateSchema: z.ZodObject<{
|
|
|
7
7
|
notes: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
status: string;
|
|
10
|
-
notes?: string | undefined;
|
|
11
10
|
trackingNumber?: string | undefined;
|
|
11
|
+
notes?: string | undefined;
|
|
12
12
|
refundAmount?: number | undefined;
|
|
13
13
|
carrier?: string | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
status: string;
|
|
16
|
-
notes?: string | undefined;
|
|
17
16
|
trackingNumber?: string | undefined;
|
|
17
|
+
notes?: string | undefined;
|
|
18
18
|
refundAmount?: number | undefined;
|
|
19
19
|
carrier?: string | undefined;
|
|
20
20
|
}>;
|
|
@@ -108,7 +108,7 @@ export declare const adminAdFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
108
108
|
adsenseSlot: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
109
109
|
thirdPartyUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
status: "
|
|
111
|
+
status: "active" | "draft" | "scheduled" | "paused";
|
|
112
112
|
name: string;
|
|
113
113
|
priority: number;
|
|
114
114
|
provider: "manual" | "adsense" | "thirdParty";
|
|
@@ -124,7 +124,7 @@ export declare const adminAdFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
124
124
|
adsenseSlot?: string | undefined;
|
|
125
125
|
thirdPartyUrl?: string | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
status: "
|
|
127
|
+
status: "active" | "draft" | "scheduled" | "paused";
|
|
128
128
|
name: string;
|
|
129
129
|
priority: number;
|
|
130
130
|
provider: "manual" | "adsense" | "thirdParty";
|
|
@@ -140,7 +140,7 @@ export declare const adminAdFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
140
140
|
adsenseSlot?: string | undefined;
|
|
141
141
|
thirdPartyUrl?: string | undefined;
|
|
142
142
|
}>, {
|
|
143
|
-
status: "
|
|
143
|
+
status: "active" | "draft" | "scheduled" | "paused";
|
|
144
144
|
name: string;
|
|
145
145
|
priority: number;
|
|
146
146
|
provider: "manual" | "adsense" | "thirdParty";
|
|
@@ -156,7 +156,7 @@ export declare const adminAdFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
156
156
|
adsenseSlot?: string | undefined;
|
|
157
157
|
thirdPartyUrl?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
status: "
|
|
159
|
+
status: "active" | "draft" | "scheduled" | "paused";
|
|
160
160
|
name: string;
|
|
161
161
|
priority: number;
|
|
162
162
|
provider: "manual" | "adsense" | "thirdParty";
|
|
@@ -232,19 +232,19 @@ export declare const supportTicketUpdateSchema: z.ZodObject<{
|
|
|
232
232
|
status: "closed" | "open" | "resolved" | "in_progress" | "waiting_on_user";
|
|
233
233
|
priority: "normal" | "high" | "low" | "urgent";
|
|
234
234
|
storeId?: string | undefined;
|
|
235
|
-
userId?: string | undefined;
|
|
236
|
-
orderId?: string | undefined;
|
|
237
235
|
productId?: string | undefined;
|
|
236
|
+
userId?: string | undefined;
|
|
238
237
|
bidId?: string | undefined;
|
|
238
|
+
orderId?: string | undefined;
|
|
239
239
|
internalNotes?: string | undefined;
|
|
240
240
|
}, {
|
|
241
241
|
status: "closed" | "open" | "resolved" | "in_progress" | "waiting_on_user";
|
|
242
242
|
priority: "normal" | "high" | "low" | "urgent";
|
|
243
243
|
storeId?: string | undefined;
|
|
244
|
-
userId?: string | undefined;
|
|
245
|
-
orderId?: string | undefined;
|
|
246
244
|
productId?: string | undefined;
|
|
245
|
+
userId?: string | undefined;
|
|
247
246
|
bidId?: string | undefined;
|
|
247
|
+
orderId?: string | undefined;
|
|
248
248
|
internalNotes?: string | undefined;
|
|
249
249
|
}>;
|
|
250
250
|
export type SupportTicketUpdateValues = z.infer<typeof supportTicketUpdateSchema>;
|
|
@@ -16,7 +16,7 @@ export declare const adminUserUpdateSchema: z.ZodObject<{
|
|
|
16
16
|
facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
17
17
|
linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
role?: "user" | "
|
|
19
|
+
role?: "user" | "admin" | "moderator" | "seller" | undefined;
|
|
20
20
|
displayName?: string | undefined;
|
|
21
21
|
location?: string | undefined;
|
|
22
22
|
adminNotes?: string | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const adminUserUpdateSchema: z.ZodObject<{
|
|
|
31
31
|
twitter?: string | undefined;
|
|
32
32
|
linkedin?: string | undefined;
|
|
33
33
|
}, {
|
|
34
|
-
role?: "user" | "
|
|
34
|
+
role?: "user" | "admin" | "moderator" | "seller" | undefined;
|
|
35
35
|
displayName?: string | undefined;
|
|
36
36
|
location?: string | undefined;
|
|
37
37
|
adminNotes?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export type NotificationUpdateInput = Partial<Pick<NotificationDocument, "isRead
|
|
|
77
77
|
export declare const notificationQueryHelpers: {
|
|
78
78
|
readonly byUser: (userId: string) => readonly ["userId", "==", string];
|
|
79
79
|
readonly unread: (userId: string) => readonly [readonly ["userId", "==", string], readonly ["isRead", "==", false]];
|
|
80
|
-
readonly byType: (type: NotificationType) => readonly ["type", "==", "
|
|
80
|
+
readonly byType: (type: NotificationType) => readonly ["type", "==", "welcome" | "promotion" | "order_placed" | "order_confirmed" | "order_shipped" | "order_delivered" | "order_cancelled" | "bid_placed" | "bid_outbid" | "bid_won" | "bid_lost" | "auction_ended" | "review_approved" | "review_replied" | "product_available" | "system" | "account_action" | "support_ticket_update" | "scam_report_update" | "offer_received" | "offer_responded" | "offer_expired" | "offer_counter_accepted" | "refund_initiated" | "prize_won" | "prize_reveal_expired" | "emi_installment_due_soon" | "emi_installment_overdue" | "payment_review" | "catalogue_images_stale"];
|
|
81
81
|
};
|
|
82
82
|
export interface TrustBarItem {
|
|
83
83
|
icon: string;
|
|
@@ -90,9 +90,15 @@ export interface FeaturedResult {
|
|
|
90
90
|
caption: string;
|
|
91
91
|
}
|
|
92
92
|
export interface SiteSettingsCredentials {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
phonepeClientId?: string;
|
|
94
|
+
phonepeClientSecret?: string;
|
|
95
|
+
/** Version number PhonePe assigned this client credential (sent as-is to their API — a number in their SDK, stored as a string here to match every other credentials field). */
|
|
96
|
+
phonepeClientVersion?: string;
|
|
97
|
+
/** "sandbox" | "production" — selects PhonePe's base URL + Env enum. */
|
|
98
|
+
phonepeEnvironment?: string;
|
|
99
|
+
/** Username/password pair configured in the PhonePe dashboard's Webhook tab (SHA/Basic auth mode) — verified via the SDK's `validateCallback()`. */
|
|
100
|
+
phonepeWebhookUsername?: string;
|
|
101
|
+
phonepeWebhookPassword?: string;
|
|
96
102
|
resendApiKey?: string;
|
|
97
103
|
whatsappApiKey?: string;
|
|
98
104
|
metaAppId?: string;
|
|
@@ -133,9 +139,12 @@ export interface SiteSettingsCredentials {
|
|
|
133
139
|
whatsappTemplateLanguage?: string;
|
|
134
140
|
}
|
|
135
141
|
export interface SiteSettingsCredentialsMasked {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
142
|
+
phonepeClientId?: string;
|
|
143
|
+
phonepeClientSecret?: string;
|
|
144
|
+
phonepeClientVersion?: string;
|
|
145
|
+
phonepeEnvironment?: string;
|
|
146
|
+
phonepeWebhookUsername?: string;
|
|
147
|
+
phonepeWebhookPassword?: string;
|
|
139
148
|
resendApiKey?: string;
|
|
140
149
|
whatsappApiKey?: string;
|
|
141
150
|
metaAppId?: string;
|
|
@@ -326,7 +335,7 @@ export interface SiteSettingsDocument extends BaseDocument {
|
|
|
326
335
|
whatsappNumber?: string;
|
|
327
336
|
};
|
|
328
337
|
payment: {
|
|
329
|
-
|
|
338
|
+
phonepeEnabled: boolean;
|
|
330
339
|
upiManualEnabled: boolean;
|
|
331
340
|
codEnabled: boolean;
|
|
332
341
|
/** Tier PP — cart total (rupees) at/above which checkout requires OTP verification. Applies to all payment methods except COD. Optional — falls back to no OTP gate when unset. */
|
|
@@ -212,7 +212,7 @@ export const DEFAULT_SITE_SETTINGS_DATA = {
|
|
|
212
212
|
motto: "Your Marketplace, Your Rules",
|
|
213
213
|
theme: DEFAULT_SITE_SETTINGS_THEME,
|
|
214
214
|
payment: {
|
|
215
|
-
|
|
215
|
+
phonepeEnabled: false,
|
|
216
216
|
upiManualEnabled: true,
|
|
217
217
|
codEnabled: true,
|
|
218
218
|
otpCheckoutThreshold: 5000,
|
|
@@ -60,15 +60,15 @@ export declare const navItemUpdateSchema: z.ZodObject<{
|
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
label?: string | undefined;
|
|
62
62
|
icon?: string | undefined;
|
|
63
|
-
href?: string | undefined;
|
|
64
63
|
order?: number | undefined;
|
|
65
64
|
parentId?: string | undefined;
|
|
65
|
+
href?: string | undefined;
|
|
66
66
|
isVisible?: boolean | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
label?: string | undefined;
|
|
69
69
|
icon?: string | undefined;
|
|
70
|
-
href?: string | undefined;
|
|
71
70
|
order?: number | undefined;
|
|
72
71
|
parentId?: string | undefined;
|
|
72
|
+
href?: string | undefined;
|
|
73
73
|
isVisible?: boolean | undefined;
|
|
74
74
|
}>;
|
|
@@ -62,7 +62,7 @@ export declare const auctionItemSchema: z.ZodObject<{
|
|
|
62
62
|
updatedAt: z.ZodString;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
currency: string;
|
|
65
|
-
status: "
|
|
65
|
+
status: "published" | "draft" | "archived" | "sold";
|
|
66
66
|
id: string;
|
|
67
67
|
title: string;
|
|
68
68
|
createdAt: string;
|
|
@@ -92,7 +92,7 @@ export declare const auctionItemSchema: z.ZodObject<{
|
|
|
92
92
|
storeSlug?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
currency: string;
|
|
95
|
-
status: "
|
|
95
|
+
status: "published" | "draft" | "archived" | "sold";
|
|
96
96
|
id: string;
|
|
97
97
|
title: string;
|
|
98
98
|
createdAt: string;
|
|
@@ -65,14 +65,14 @@ export declare const authUserSchema: z.ZodObject<{
|
|
|
65
65
|
isEmailVerified: z.ZodOptional<z.ZodBoolean>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
id: string;
|
|
68
|
-
role?: "user" | "
|
|
68
|
+
role?: "user" | "admin" | "moderator" | "seller" | "employee" | undefined;
|
|
69
69
|
email?: string | undefined;
|
|
70
70
|
displayName?: string | undefined;
|
|
71
71
|
photoURL?: string | undefined;
|
|
72
72
|
isEmailVerified?: boolean | undefined;
|
|
73
73
|
}, {
|
|
74
74
|
id: string;
|
|
75
|
-
role?: "user" | "
|
|
75
|
+
role?: "user" | "admin" | "moderator" | "seller" | "employee" | undefined;
|
|
76
76
|
email?: string | undefined;
|
|
77
77
|
displayName?: string | undefined;
|
|
78
78
|
photoURL?: string | undefined;
|
|
@@ -24,8 +24,8 @@ export declare const beforeAfterItemSchema: z.ZodObject<{
|
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
id: string;
|
|
26
26
|
title: string;
|
|
27
|
-
sortOrder: number;
|
|
28
27
|
isActive: boolean;
|
|
28
|
+
sortOrder: number;
|
|
29
29
|
createdAt?: string | undefined;
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
productId?: string | undefined;
|
|
@@ -37,10 +37,10 @@ export declare const beforeAfterItemSchema: z.ZodObject<{
|
|
|
37
37
|
id: string;
|
|
38
38
|
title: string;
|
|
39
39
|
createdAt?: string | undefined;
|
|
40
|
-
sortOrder?: number | undefined;
|
|
41
40
|
description?: string | undefined;
|
|
42
41
|
isActive?: boolean | undefined;
|
|
43
42
|
productId?: string | undefined;
|
|
43
|
+
sortOrder?: number | undefined;
|
|
44
44
|
concern?: string | undefined;
|
|
45
45
|
beforeImageUrl?: string | undefined;
|
|
46
46
|
afterImageUrl?: string | undefined;
|
|
@@ -69,7 +69,7 @@ export declare const createBlogPostSchema: z.ZodObject<{
|
|
|
69
69
|
metaTitle: z.ZodOptional<z.ZodString>;
|
|
70
70
|
metaDescription: z.ZodOptional<z.ZodString>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
status: "
|
|
72
|
+
status: "published" | "draft" | "archived";
|
|
73
73
|
title: string;
|
|
74
74
|
content: string;
|
|
75
75
|
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
@@ -111,7 +111,7 @@ export declare const createBlogPostSchema: z.ZodObject<{
|
|
|
111
111
|
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
112
112
|
slug: string;
|
|
113
113
|
excerpt: string;
|
|
114
|
-
status?: "
|
|
114
|
+
status?: "published" | "draft" | "archived" | undefined;
|
|
115
115
|
publishedAt?: string | undefined;
|
|
116
116
|
tags?: string[] | undefined;
|
|
117
117
|
isFeatured?: boolean | undefined;
|
|
@@ -208,7 +208,7 @@ export declare const updateBlogPostSchema: z.ZodObject<{
|
|
|
208
208
|
metaTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
209
209
|
metaDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
status?: "
|
|
211
|
+
status?: "published" | "draft" | "archived" | undefined;
|
|
212
212
|
title?: string | undefined;
|
|
213
213
|
content?: string | undefined;
|
|
214
214
|
category?: "news" | "tips" | "guides" | "updates" | "community" | undefined;
|
|
@@ -245,7 +245,7 @@ export declare const updateBlogPostSchema: z.ZodObject<{
|
|
|
245
245
|
metaTitle?: string | undefined;
|
|
246
246
|
metaDescription?: string | undefined;
|
|
247
247
|
}, {
|
|
248
|
-
status?: "
|
|
248
|
+
status?: "published" | "draft" | "archived" | undefined;
|
|
249
249
|
title?: string | undefined;
|
|
250
250
|
content?: string | undefined;
|
|
251
251
|
category?: "news" | "tips" | "guides" | "updates" | "community" | undefined;
|
|
@@ -48,7 +48,7 @@ export declare const blogDraftSchema: z.ZodObject<{
|
|
|
48
48
|
authorName: z.ZodString;
|
|
49
49
|
isFeatured: z.ZodBoolean;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
status: "
|
|
51
|
+
status: "published" | "draft" | "archived";
|
|
52
52
|
title: string;
|
|
53
53
|
content: string;
|
|
54
54
|
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
@@ -63,7 +63,7 @@ export declare const blogDraftSchema: z.ZodObject<{
|
|
|
63
63
|
metaTitle: string;
|
|
64
64
|
metaDescription: string;
|
|
65
65
|
}, {
|
|
66
|
-
status: "
|
|
66
|
+
status: "published" | "draft" | "archived";
|
|
67
67
|
title: string;
|
|
68
68
|
content: string;
|
|
69
69
|
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
@@ -115,7 +115,7 @@ export declare const blogPostFirestoreSchema: z.ZodObject<{
|
|
|
115
115
|
metaTitle: z.ZodOptional<z.ZodString>;
|
|
116
116
|
metaDescription: z.ZodOptional<z.ZodString>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
status: "
|
|
118
|
+
status: "published" | "draft" | "archived";
|
|
119
119
|
id: string;
|
|
120
120
|
title: string;
|
|
121
121
|
content: string;
|
|
@@ -168,7 +168,7 @@ export declare const blogPostFirestoreSchema: z.ZodObject<{
|
|
|
168
168
|
metaTitle?: string | undefined;
|
|
169
169
|
metaDescription?: string | undefined;
|
|
170
170
|
}, {
|
|
171
|
-
status: "
|
|
171
|
+
status: "published" | "draft" | "archived";
|
|
172
172
|
id: string;
|
|
173
173
|
title: string;
|
|
174
174
|
content: string;
|
|
@@ -355,7 +355,7 @@ export declare const blogPostSchema: z.ZodObject<{
|
|
|
355
355
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
356
356
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
status: "
|
|
358
|
+
status: "published" | "draft" | "archived";
|
|
359
359
|
id: string;
|
|
360
360
|
title: string;
|
|
361
361
|
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
@@ -405,7 +405,7 @@ export declare const blogPostSchema: z.ZodObject<{
|
|
|
405
405
|
metaTitle?: string | undefined;
|
|
406
406
|
metaDescription?: string | undefined;
|
|
407
407
|
}, {
|
|
408
|
-
status: "
|
|
408
|
+
status: "published" | "draft" | "archived";
|
|
409
409
|
id: string;
|
|
410
410
|
title: string;
|
|
411
411
|
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
@@ -79,8 +79,8 @@ export declare const cartItemSchema: z.ZodObject<{
|
|
|
79
79
|
slug?: string | undefined;
|
|
80
80
|
attributes?: Record<string, string> | undefined;
|
|
81
81
|
} | undefined;
|
|
82
|
-
userId?: string | undefined;
|
|
83
82
|
quantity?: number | undefined;
|
|
83
|
+
userId?: string | undefined;
|
|
84
84
|
sessionId?: string | undefined;
|
|
85
85
|
addedAt?: string | undefined;
|
|
86
86
|
}>;
|
|
@@ -135,8 +135,8 @@ export declare const cartSummarySchema: z.ZodObject<{
|
|
|
135
135
|
slug?: string | undefined;
|
|
136
136
|
attributes?: Record<string, string> | undefined;
|
|
137
137
|
} | undefined;
|
|
138
|
-
userId?: string | undefined;
|
|
139
138
|
quantity?: number | undefined;
|
|
139
|
+
userId?: string | undefined;
|
|
140
140
|
sessionId?: string | undefined;
|
|
141
141
|
addedAt?: string | undefined;
|
|
142
142
|
}>, "many">;
|
|
@@ -173,8 +173,8 @@ export declare const cartSummarySchema: z.ZodObject<{
|
|
|
173
173
|
slug?: string | undefined;
|
|
174
174
|
attributes?: Record<string, string> | undefined;
|
|
175
175
|
} | undefined;
|
|
176
|
-
userId?: string | undefined;
|
|
177
176
|
quantity?: number | undefined;
|
|
177
|
+
userId?: string | undefined;
|
|
178
178
|
sessionId?: string | undefined;
|
|
179
179
|
addedAt?: string | undefined;
|
|
180
180
|
}[];
|
|
@@ -20,7 +20,7 @@ export declare const createCatalogueItemSchema: z.ZodObject<{
|
|
|
20
20
|
description?: string | undefined;
|
|
21
21
|
categorySlugs?: string[] | undefined;
|
|
22
22
|
mainImage?: string | undefined;
|
|
23
|
-
condition?: "new" | "
|
|
23
|
+
condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
title: string;
|
|
26
26
|
price?: number | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const createCatalogueItemSchema: z.ZodObject<{
|
|
|
30
30
|
categorySlugs?: string[] | undefined;
|
|
31
31
|
mainImage?: string | undefined;
|
|
32
32
|
images?: string[] | undefined;
|
|
33
|
-
condition?: "new" | "
|
|
33
|
+
condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
34
34
|
visibility?: "public" | "private" | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export declare const updateCatalogueItemSchema: z.ZodObject<{
|
|
@@ -53,7 +53,7 @@ export declare const updateCatalogueItemSchema: z.ZodObject<{
|
|
|
53
53
|
categorySlugs?: string[] | undefined;
|
|
54
54
|
mainImage?: string | undefined;
|
|
55
55
|
images?: string[] | undefined;
|
|
56
|
-
condition?: "new" | "
|
|
56
|
+
condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
57
57
|
visibility?: "public" | "private" | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
title?: string | undefined;
|
|
@@ -64,7 +64,7 @@ export declare const updateCatalogueItemSchema: z.ZodObject<{
|
|
|
64
64
|
categorySlugs?: string[] | undefined;
|
|
65
65
|
mainImage?: string | undefined;
|
|
66
66
|
images?: string[] | undefined;
|
|
67
|
-
condition?: "new" | "
|
|
67
|
+
condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
|
|
68
68
|
visibility?: "public" | "private" | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
export type CreateCatalogueItemInput = z.infer<typeof createCatalogueItemSchema>;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
export * from "./schemas";
|
|
3
|
-
export * from "./hooks/useCheckout";
|
|
4
|
-
export { useCheckout as useCheckoutApi } from "./hooks/useCheckoutApi";
|
|
5
|
-
export type { AddressListResponse, CartApiResponse, PlaceOrderResponse, CreatePaymentOrderResponse, UnavailableItem, PreflightResponse, } from "./hooks/useCheckoutApi";
|
|
6
|
-
export * from "./hooks/usePaymentCheckout";
|
|
7
3
|
export * from "./components";
|
|
8
4
|
export { manifest } from "./manifest";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
export * from "./schemas";
|
|
3
|
-
export * from "./hooks/useCheckout";
|
|
4
|
-
export { useCheckout as useCheckoutApi } from "./hooks/useCheckoutApi";
|
|
5
|
-
export * from "./hooks/usePaymentCheckout";
|
|
6
3
|
export * from "./components";
|
|
7
4
|
export { manifest } from "./manifest";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { type PaymentGateway, PaymentGatewayValues } from "../../payments/schemas";
|
|
2
|
-
export { type PaymentGateway, PaymentGatewayValues };
|
|
3
1
|
export interface UserAddress {
|
|
4
2
|
id: string;
|
|
5
3
|
label?: string;
|
|
@@ -21,26 +19,3 @@ export interface ShippingOption {
|
|
|
21
19
|
currency?: string;
|
|
22
20
|
estimatedDays?: number;
|
|
23
21
|
}
|
|
24
|
-
export interface CheckoutState {
|
|
25
|
-
step: CheckoutStep;
|
|
26
|
-
address?: UserAddress;
|
|
27
|
-
shippingOption?: ShippingOption;
|
|
28
|
-
paymentGateway?: PaymentGateway;
|
|
29
|
-
couponCode?: string;
|
|
30
|
-
notes?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface CheckoutSummary {
|
|
33
|
-
subtotal: number;
|
|
34
|
-
shippingCost: number;
|
|
35
|
-
discount?: number;
|
|
36
|
-
tax?: number;
|
|
37
|
-
total: number;
|
|
38
|
-
currency: string;
|
|
39
|
-
}
|
|
40
|
-
export interface PlaceOrderInput {
|
|
41
|
-
address: UserAddress;
|
|
42
|
-
shippingOptionId: string;
|
|
43
|
-
paymentGateway: PaymentGateway;
|
|
44
|
-
couponCode?: string;
|
|
45
|
-
notes?: string;
|
|
46
|
-
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { PaymentGatewayValues };
|
|
1
|
+
export {};
|
|
@@ -25,9 +25,9 @@ export declare const collectionItemSchema: z.ZodObject<{
|
|
|
25
25
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
title: string;
|
|
28
|
-
sortOrder: number;
|
|
29
28
|
slug: string;
|
|
30
29
|
active: boolean;
|
|
30
|
+
sortOrder: number;
|
|
31
31
|
image?: string | undefined;
|
|
32
32
|
createdAt?: string | undefined;
|
|
33
33
|
brandSlug?: string | undefined;
|
|
@@ -42,12 +42,12 @@ export declare const collectionItemSchema: z.ZodObject<{
|
|
|
42
42
|
slug: string;
|
|
43
43
|
image?: string | undefined;
|
|
44
44
|
createdAt?: string | undefined;
|
|
45
|
-
sortOrder?: number | undefined;
|
|
46
45
|
brandSlug?: string | undefined;
|
|
47
46
|
productCount?: number | undefined;
|
|
48
47
|
active?: boolean | undefined;
|
|
49
48
|
description?: string | undefined;
|
|
50
49
|
subtitle?: string | undefined;
|
|
50
|
+
sortOrder?: number | undefined;
|
|
51
51
|
bannerImage?: string | undefined;
|
|
52
52
|
franchiseSlug?: string | undefined;
|
|
53
53
|
manualProductIds?: string[] | undefined;
|
|
@@ -26,16 +26,16 @@ export declare const consultationBookingSchema: z.ZodObject<{
|
|
|
26
26
|
adminNote: z.ZodOptional<z.ZodString>;
|
|
27
27
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
status: "pending" | "
|
|
29
|
+
status: "pending" | "confirmed" | "completed" | "cancelled" | "no_show";
|
|
30
30
|
id: string;
|
|
31
31
|
email: string;
|
|
32
32
|
name: string;
|
|
33
33
|
message?: string | undefined;
|
|
34
34
|
createdAt?: string | undefined;
|
|
35
|
-
adminNote?: string | undefined;
|
|
36
35
|
userId?: string | undefined;
|
|
37
36
|
phone?: string | undefined;
|
|
38
37
|
mode?: "phone" | "online" | "in_person" | undefined;
|
|
38
|
+
adminNote?: string | undefined;
|
|
39
39
|
concern?: string[] | undefined;
|
|
40
40
|
preferredDate?: string | undefined;
|
|
41
41
|
preferredTime?: string | undefined;
|
|
@@ -44,12 +44,12 @@ export declare const consultationBookingSchema: z.ZodObject<{
|
|
|
44
44
|
email: string;
|
|
45
45
|
name: string;
|
|
46
46
|
message?: string | undefined;
|
|
47
|
-
status?: "pending" | "
|
|
47
|
+
status?: "pending" | "confirmed" | "completed" | "cancelled" | "no_show" | undefined;
|
|
48
48
|
createdAt?: string | undefined;
|
|
49
|
-
adminNote?: string | undefined;
|
|
50
49
|
userId?: string | undefined;
|
|
51
50
|
phone?: string | undefined;
|
|
52
51
|
mode?: "phone" | "online" | "in_person" | undefined;
|
|
52
|
+
adminNote?: string | undefined;
|
|
53
53
|
concern?: string[] | undefined;
|
|
54
54
|
preferredDate?: string | undefined;
|
|
55
55
|
preferredTime?: string | undefined;
|
|
@@ -33,8 +33,8 @@ export declare const corporateInquirySchema: z.ZodObject<{
|
|
|
33
33
|
contactPerson: string;
|
|
34
34
|
customBranding: boolean;
|
|
35
35
|
createdAt?: string | undefined;
|
|
36
|
-
adminNote?: string | undefined;
|
|
37
36
|
phone?: string | undefined;
|
|
37
|
+
adminNote?: string | undefined;
|
|
38
38
|
designation?: string | undefined;
|
|
39
39
|
units?: number | undefined;
|
|
40
40
|
budgetPerUnit?: number | undefined;
|
|
@@ -47,8 +47,8 @@ export declare const corporateInquirySchema: z.ZodObject<{
|
|
|
47
47
|
contactPerson: string;
|
|
48
48
|
status?: "pending" | "contacted" | "proposal_sent" | "negotiating" | "closed_won" | "closed_lost" | undefined;
|
|
49
49
|
createdAt?: string | undefined;
|
|
50
|
-
adminNote?: string | undefined;
|
|
51
50
|
phone?: string | undefined;
|
|
51
|
+
adminNote?: string | undefined;
|
|
52
52
|
designation?: string | undefined;
|
|
53
53
|
units?: number | undefined;
|
|
54
54
|
budgetPerUnit?: number | undefined;
|
|
@@ -938,7 +938,7 @@ export declare const eventItemSchema: z.ZodObject<{
|
|
|
938
938
|
updatedAt: z.ZodString;
|
|
939
939
|
}, "strip", z.ZodTypeAny, {
|
|
940
940
|
type: "lottery" | "sale" | "offer" | "poll" | "survey" | "feedback" | "raffle" | "spin_wheel";
|
|
941
|
-
status: "ended" | "
|
|
941
|
+
status: "ended" | "active" | "draft" | "cancelled" | "paused";
|
|
942
942
|
id: string;
|
|
943
943
|
title: string;
|
|
944
944
|
createdAt: string;
|
|
@@ -1093,7 +1093,7 @@ export declare const eventItemSchema: z.ZodObject<{
|
|
|
1093
1093
|
rafflePrizeProductIds?: string[] | undefined;
|
|
1094
1094
|
}, {
|
|
1095
1095
|
type: "lottery" | "sale" | "offer" | "poll" | "survey" | "feedback" | "raffle" | "spin_wheel";
|
|
1096
|
-
status: "ended" | "
|
|
1096
|
+
status: "ended" | "active" | "draft" | "cancelled" | "paused";
|
|
1097
1097
|
id: string;
|
|
1098
1098
|
title: string;
|
|
1099
1099
|
createdAt: string;
|
|
@@ -1255,14 +1255,14 @@ export declare const eventListParamsSchema: z.ZodObject<{
|
|
|
1255
1255
|
}, "strip", z.ZodTypeAny, {
|
|
1256
1256
|
type?: "lottery" | "sale" | "offer" | "poll" | "survey" | "feedback" | "raffle" | "spin_wheel" | undefined;
|
|
1257
1257
|
sort?: string | undefined;
|
|
1258
|
-
status?: "ended" | "
|
|
1258
|
+
status?: "ended" | "active" | "draft" | "cancelled" | "paused" | undefined;
|
|
1259
1259
|
page?: number | undefined;
|
|
1260
1260
|
q?: string | undefined;
|
|
1261
1261
|
perPage?: number | undefined;
|
|
1262
1262
|
}, {
|
|
1263
1263
|
type?: "lottery" | "sale" | "offer" | "poll" | "survey" | "feedback" | "raffle" | "spin_wheel" | undefined;
|
|
1264
1264
|
sort?: string | undefined;
|
|
1265
|
-
status?: "ended" | "
|
|
1265
|
+
status?: "ended" | "active" | "draft" | "cancelled" | "paused" | undefined;
|
|
1266
1266
|
page?: number | undefined;
|
|
1267
1267
|
q?: string | undefined;
|
|
1268
1268
|
perPage?: number | undefined;
|
|
@@ -51,9 +51,9 @@ export declare const groupedListingFirestoreSchema: z.ZodObject<{
|
|
|
51
51
|
visibilityStatus: "hidden" | "visible";
|
|
52
52
|
minActiveMembers: number;
|
|
53
53
|
activeMemberCount: number;
|
|
54
|
-
storeId?: string | undefined;
|
|
55
54
|
categorySlug?: string | undefined;
|
|
56
55
|
brandSlug?: string | undefined;
|
|
56
|
+
storeId?: string | undefined;
|
|
57
57
|
description?: string | undefined;
|
|
58
58
|
coverImage?: string | undefined;
|
|
59
59
|
}, {
|
|
@@ -74,9 +74,9 @@ export declare const groupedListingFirestoreSchema: z.ZodObject<{
|
|
|
74
74
|
visibilityStatus: "hidden" | "visible";
|
|
75
75
|
minActiveMembers: number;
|
|
76
76
|
activeMemberCount: number;
|
|
77
|
-
storeId?: string | undefined;
|
|
78
77
|
categorySlug?: string | undefined;
|
|
79
78
|
brandSlug?: string | undefined;
|
|
79
|
+
storeId?: string | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
81
81
|
coverImage?: string | undefined;
|
|
82
82
|
}>;
|
|
@@ -335,7 +335,7 @@ export declare const carouselFirestoreSchema: z.ZodObject<{
|
|
|
335
335
|
slideIds: z.ZodArray<z.ZodString, "many">;
|
|
336
336
|
createdBy: z.ZodString;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
status: "
|
|
338
|
+
status: "active" | "draft";
|
|
339
339
|
id: string;
|
|
340
340
|
name: string;
|
|
341
341
|
createdAt: string | Date | z.objectOutputType<{
|
|
@@ -347,7 +347,7 @@ export declare const carouselFirestoreSchema: z.ZodObject<{
|
|
|
347
347
|
createdBy: string;
|
|
348
348
|
slideIds: string[];
|
|
349
349
|
}, {
|
|
350
|
-
status: "
|
|
350
|
+
status: "active" | "draft";
|
|
351
351
|
id: string;
|
|
352
352
|
name: string;
|
|
353
353
|
createdAt: string | Date | z.objectInputType<{
|