@mohasinac/appkit 2.7.33 → 2.7.35
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/server/jobs/core/auctionSettlement.js +14 -14
- package/dist/_internal/server/jobs/core/offerExpiry.js +3 -2
- package/dist/_internal/server/jobs/core/onBidPlaced.js +14 -12
- package/dist/_internal/server/jobs/core/onOrderStatusChange.js +6 -71
- package/dist/_internal/server/jobs/core/onSupportTicketCreate.js +6 -8
- package/dist/_internal/server/jobs/core/onSupportTicketUpdate.js +6 -7
- package/dist/_internal/server/jobs/core/pendingOrderTimeout.js +11 -10
- package/dist/_internal/server/jobs/core/prizeRevealExpiry.js +2 -2
- package/dist/_internal/server/jobs/core/prizeRevealOpen.js +2 -2
- package/dist/_internal/server/jobs/core/prizeRevealReminder.js +2 -2
- package/dist/_internal/shared/actions/action-registry.js +48 -0
- package/dist/client.d.ts +4 -0
- package/dist/client.js +2 -0
- package/dist/features/admin/actions/notification-actions.js +18 -8
- package/dist/features/admin/schemas/firestore.d.ts +6 -2
- package/dist/features/admin/schemas/firestore.js +4 -0
- package/dist/features/homepage/components/FeaturedAuctionsSection.d.ts +4 -1
- package/dist/features/homepage/components/FeaturedAuctionsSection.js +2 -2
- package/dist/features/homepage/components/FeaturedPreOrdersSection.d.ts +4 -1
- package/dist/features/homepage/components/FeaturedPreOrdersSection.js +2 -2
- package/dist/features/homepage/components/FeaturedProductsSection.d.ts +3 -6
- package/dist/features/homepage/components/FeaturedProductsSection.js +3 -47
- package/dist/features/homepage/lib/section-renderer.js +3 -3
- package/dist/features/orders/actions/refund-actions.js +2 -2
- package/dist/features/seller/actions/offer-actions.js +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
- package/dist/seed/index.d.ts +1 -0
- package/dist/seed/index.js +1 -0
- package/dist/seed/manifest.js +5 -0
- package/dist/seed/offers-seed-data.d.ts +10 -0
- package/dist/seed/offers-seed-data.js +264 -0
- package/dist/seed/orders-seed-data.js +116 -2
- package/dist/seed/support-tickets-seed-data.js +43 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +1 -0
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/DateInput.d.ts +27 -0
- package/dist/ui/components/DateInput.js +11 -0
- package/dist/ui/components/FormField.d.ts +2 -1
- package/dist/ui/components/FormField.js +6 -4
- package/dist/ui/components/FormField.style.css +13 -0
- package/dist/ui/components/HorizontalScroller.js +25 -30
- package/dist/ui/components/Input.style.css +42 -4
- package/dist/ui/components/OtpInput.d.ts +14 -0
- package/dist/ui/components/OtpInput.js +55 -0
- package/dist/ui/components/OtpInput.style.css +13 -0
- package/dist/ui/components/Select.style.css +23 -6
- package/dist/ui/components/Textarea.style.css +31 -4
- package/dist/ui/components/index.style.css +1 -0
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.js +2 -0
- package/package.json +1 -1
|
@@ -133,4 +133,47 @@ export const supportTicketsSeedData = [
|
|
|
133
133
|
createdAt: daysBack(1),
|
|
134
134
|
updatedAt: daysBack(1),
|
|
135
135
|
},
|
|
136
|
+
// ── 7. Resolved — escalated fraud report (admin handled) ──────────────────
|
|
137
|
+
{
|
|
138
|
+
id: "ticket-meera-fraud-002",
|
|
139
|
+
userId: "user-meera-nair",
|
|
140
|
+
userEmail: "meera.nair@example.com",
|
|
141
|
+
userDisplayName: "Meera Nair",
|
|
142
|
+
category: "scam_report",
|
|
143
|
+
subject: "Seller sent empty box and is now unreachable",
|
|
144
|
+
description: "I paid Rs 8,499 for a S.H.Figuarts Broly via Razorpay. The seller (store-beyblade-arena) has not responded in 7 days and the tracking shows the box was 200g — way too light for the figure.",
|
|
145
|
+
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.RESOLVED,
|
|
146
|
+
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
|
|
147
|
+
assignedTo: "user-admin-letitrip",
|
|
148
|
+
assignedToName: "LetItRip Admin",
|
|
149
|
+
messages: [
|
|
150
|
+
msg("msg-meera-002-u1", "user-meera-nair", "user", "I have the weight receipt from Delhivery. 200g is impossible for this figure. The seller is not replying on messages or phone.", 10),
|
|
151
|
+
msg("msg-meera-002-s1", "user-simran-kaur", "support", "Hi Meera, I have escalated this to our admin team for review as it qualifies as a potential fraud case. You will hear back within 24 hours.", 9),
|
|
152
|
+
msg("msg-meera-002-a1", "user-admin-letitrip", "support", "Hi Meera, this is the LetItRip admin. I have reviewed the shipment weight log and the seller communication history. We are initiating a full refund of Rs 8,499 under our buyer protection policy. The seller account has been suspended pending investigation.", 8),
|
|
153
|
+
msg("msg-meera-002-u2", "user-meera-nair", "user", "Thank you so much. I really appreciate the quick escalation.", 7),
|
|
154
|
+
],
|
|
155
|
+
resolvedAt: daysBack(7),
|
|
156
|
+
createdAt: daysBack(10),
|
|
157
|
+
updatedAt: daysBack(7),
|
|
158
|
+
},
|
|
159
|
+
// ── 8. In-progress — seller account ban appeal (admin handling) ────────────
|
|
160
|
+
{
|
|
161
|
+
id: "ticket-rohit-ban-appeal-001",
|
|
162
|
+
userId: "user-rohit-joshi",
|
|
163
|
+
userEmail: "rohit.joshi@example.com",
|
|
164
|
+
userDisplayName: "Rohit Joshi",
|
|
165
|
+
category: "account",
|
|
166
|
+
subject: "My store was suspended — I believe it was a mistake",
|
|
167
|
+
description: "My store Beyblade Arena was suspended 2 days ago. I received no email explanation. I have 100% positive reviews and have never violated any policy. Please review.",
|
|
168
|
+
status: SUPPORT_TICKET_FIELDS.STATUS_VALUES.IN_PROGRESS,
|
|
169
|
+
priority: SUPPORT_TICKET_FIELDS.PRIORITY_VALUES.HIGH,
|
|
170
|
+
assignedTo: "user-admin-letitrip",
|
|
171
|
+
assignedToName: "LetItRip Admin",
|
|
172
|
+
messages: [
|
|
173
|
+
msg("msg-rohit-001-u1", "user-rohit-joshi", "user", "I run a legitimate business. I have 47 verified reviews and never had a single complaint. Please explain the suspension.", 2),
|
|
174
|
+
msg("msg-rohit-001-a1", "user-admin-letitrip", "support", "Hi Rohit, your store was suspended as part of an automatic fraud flag triggered by a buyer report. I am manually reviewing your transaction history and the specific report. Please share your business GST number and a copy of your most recent bank statement showing the Razorpay settlements for verification.", 1),
|
|
175
|
+
],
|
|
176
|
+
createdAt: daysBack(2),
|
|
177
|
+
updatedAt: daysBack(1),
|
|
178
|
+
},
|
|
136
179
|
];
|
package/dist/server.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export { makeFullStore } from "./seed/index";
|
|
|
48
48
|
export { makeFullUser } from "./seed/index";
|
|
49
49
|
export { makeHomepageSection } from "./seed/index";
|
|
50
50
|
export { makeNotification } from "./seed/index";
|
|
51
|
+
export { sendNotification } from "./features/admin/actions/notification-actions";
|
|
51
52
|
export { makeOrder } from "./seed/index";
|
|
52
53
|
export { makePayout } from "./seed/index";
|
|
53
54
|
export { makeProduct } from "./seed/index";
|
package/dist/server.js
CHANGED
|
@@ -149,6 +149,7 @@ export { makeHomepageSection } from "./seed/index";
|
|
|
149
149
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
150
150
|
// makeNotification - Shared export for make notification.
|
|
151
151
|
export { makeNotification } from "./seed/index";
|
|
152
|
+
export { sendNotification } from "./features/admin/actions/notification-actions";
|
|
152
153
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
153
154
|
// makeOrder - Shared export for make order.
|
|
154
155
|
export { makeOrder } from "./seed/index";
|