@mohasinac/appkit 4.56.0 → 4.57.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.
Files changed (52) hide show
  1. package/dist/.build-stamp.json +3 -3
  2. package/dist/_internal/server/features/checkout/actions.d.ts +31 -0
  3. package/dist/_internal/server/features/checkout/actions.js +117 -5
  4. package/dist/_internal/server/features/orders/actions.d.ts +30 -0
  5. package/dist/_internal/server/features/orders/actions.js +103 -0
  6. package/dist/_internal/server/features/orders/adapters.js +7 -0
  7. package/dist/_internal/shared/actions/action-registry.js +53 -0
  8. package/dist/_internal/shared/shipping/quote.js +5 -6
  9. package/dist/client.d.ts +21 -0
  10. package/dist/client.js +2 -0
  11. package/dist/features/about/components/PublicProfileView.js +2 -1
  12. package/dist/features/account/components/UserOrdersView.js +25 -3
  13. package/dist/features/admin/components/OwnerQuickActions.d.ts +1 -1
  14. package/dist/features/admin/components/OwnerQuickActions.js +53 -6
  15. package/dist/features/blog/components/BlogPostView.js +2 -1
  16. package/dist/features/cart/components/CartPriceBreakdown.d.ts +2 -0
  17. package/dist/features/cart/components/CartPriceBreakdown.js +1 -1
  18. package/dist/features/categories/components/FranchiseDetailPageView.js +3 -1
  19. package/dist/features/faq/components/FAQPageContent.js +17 -4
  20. package/dist/features/faq/constants/help-guides.d.ts +36 -0
  21. package/dist/features/faq/constants/help-guides.js +64 -0
  22. package/dist/features/homepage/components/HeroCarousel.js +3 -1
  23. package/dist/features/homepage/lib/section-renderer.js +2 -1
  24. package/dist/features/orders/components/EmiInstallmentsPanel.d.ts +19 -0
  25. package/dist/features/orders/components/EmiInstallmentsPanel.js +57 -0
  26. package/dist/features/orders/components/index.d.ts +1 -0
  27. package/dist/features/orders/components/index.js +1 -0
  28. package/dist/features/orders/schemas/index.d.ts +2 -2
  29. package/dist/features/orders/types/index.d.ts +15 -0
  30. package/dist/features/points/repository/points.repository.js +5 -5
  31. package/dist/features/points/schemas/firestore.d.ts +16 -0
  32. package/dist/features/points/schemas/firestore.js +17 -0
  33. package/dist/features/reviews/components/ReviewDetailPageView.js +3 -2
  34. package/dist/features/stores/components/StoreHeader.js +3 -1
  35. package/dist/next/routing/route-map.d.ts +4 -0
  36. package/dist/next/routing/route-map.js +2 -0
  37. package/dist/schemas/registry.d.ts +2 -2
  38. package/dist/seed/_helpers/category-models/chunk0.d.ts +2 -0
  39. package/dist/seed/_helpers/category-models/chunk0.js +2648 -0
  40. package/dist/seed/_helpers/category-models/chunk1.d.ts +2 -0
  41. package/dist/seed/_helpers/category-models/chunk1.js +2318 -0
  42. package/dist/seed/_helpers/category-models/chunk2.d.ts +2 -0
  43. package/dist/seed/_helpers/category-models/chunk2.js +2560 -0
  44. package/dist/seed/_helpers/category-models/chunk3.d.ts +2 -0
  45. package/dist/seed/_helpers/category-models/chunk3.js +2196 -0
  46. package/dist/seed/_helpers/category-models/chunk4.d.ts +2 -0
  47. package/dist/seed/_helpers/category-models/chunk4.js +1732 -0
  48. package/dist/seed/_helpers/category-models.d.ts +9 -2
  49. package/dist/seed/_helpers/category-models.js +19 -1368
  50. package/dist/server.d.ts +3 -1
  51. package/dist/server.js +11 -0
  52. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -21,7 +21,7 @@ export { wrapAction, isOk, unwrap, } from "./_internal/shared/types/action-resul
21
21
  export type { ActionResult } from "./_internal/shared/types/action-result";
22
22
  export { setActionErrorReporter, hasActionErrorReporter, } from "./_internal/shared/types/action-error-reporter";
23
23
  export type { ActionErrorReport, ActionErrorReporter, } from "./_internal/shared/types/action-error-reporter";
24
- export { attachPaymentProofAction, adminVerifyPaymentAction, adminRequestProofReuploadAction, adminRejectPaymentAsFraudAction, raiseOrderDisputeAction, requestReturnAction, } from "./_internal/server/features/orders/actions";
24
+ export { attachPaymentProofAction, adminVerifyPaymentAction, adminRequestProofReuploadAction, adminRejectPaymentAsFraudAction, raiseOrderDisputeAction, submitEmiInstallmentPaymentAction, requestReturnAction, } from "./_internal/server/features/orders/actions";
25
25
  export { wrapJobHandler, wrapScheduleHandler, wrapTriggerHandler, wrapCallableHandler, } from "./_internal/server/jobs/core/wrapJobHandler";
26
26
  export { analyzeLogs } from "./_internal/server/features/maintenance/analyze";
27
27
  export type { AnalyzeOptions, AnalyzeReport, } from "./_internal/server/features/maintenance/analyze";
@@ -258,6 +258,8 @@ export { listTopLevelCategories } from "./features/categories/server";
258
258
  export { updateCategory } from "./features/categories/server";
259
259
  export { sendCheckoutValueOtp, verifyCheckoutValueOtp, isCheckoutValueOtpVerified, } from "./features/checkout/server";
260
260
  export { FailedCheckoutRepository, failedCheckoutRepository } from "./features/checkout/server";
261
+ export { reconcileOrderShipping } from "./_internal/server/features/shipping/reconcile";
262
+ export { pointsRepository, PointsRepository } from "./features/points/repository/points.repository";
261
263
  export type { FailedCheckoutMeta, FailedPaymentMeta } from "./features/checkout/server";
262
264
  export { EmailButton, EmailColumn, EmailContainer, EmailDivider, EmailDoc, EmailFooter, EmailHeader, EmailImage, EmailLink, EmailRow, } from "./features/email";
263
265
  export type { EmailButtonProps, EmailColumnProps, EmailContainerProps, EmailDividerProps, EmailDocProps, EmailFooterProps, EmailHeaderProps, EmailImageProps, EmailLinkProps, EmailRowProps, EmailTone, } from "./features/email";
package/dist/server.js CHANGED
@@ -53,6 +53,9 @@ export { wrapAction, isOk, unwrap, } from "./_internal/shared/types/action-resul
53
53
  export { setActionErrorReporter, hasActionErrorReporter, } from "./_internal/shared/types/action-error-reporter.js";
54
54
  // [SERVER-ONLY] P-1 manual payment proof server actions.
55
55
  export { attachPaymentProofAction, adminVerifyPaymentAction, adminRequestProofReuploadAction, adminRejectPaymentAsFraudAction, raiseOrderDisputeAction,
56
+ // Buyer pays one of their own EMI instalments — the counterpart to the
57
+ // seller's markEmiInstallmentPaid, which was the only writer before.
58
+ submitEmiInstallmentPaymentAction,
56
59
  // Buyer return request. Was reachable only through `server-entry.ts`, which
57
60
  // is the bare `@mohasinac/appkit` specifier — not `/server`, where every
58
61
  // other order action lives and where a consumer would look for it.
@@ -738,6 +741,14 @@ export { updateCategory } from "./features/categories/server.js";
738
741
  // [SERVER-ONLY] Tier PP — high-value checkout OTP gate.
739
742
  export { sendCheckoutValueOtp, verifyCheckoutValueOtp, isCheckoutValueOtpVerified, } from "./features/checkout/server.js";
740
743
  export { FailedCheckoutRepository, failedCheckoutRepository } from "./features/checkout/server.js";
744
+ /*
745
+ * Shipping reconciliation. Public on the SERVER entry only: it writes a points
746
+ * ledger entry and an order, so it must never be reachable from a client
747
+ * bundle. The consumer owns the seller's dispatch route, which is the second
748
+ * place a parcel is marked shipped.
749
+ */
750
+ export { reconcileOrderShipping } from "./_internal/server/features/shipping/reconcile.js";
751
+ export { pointsRepository, PointsRepository } from "./features/points/repository/points.repository.js";
741
752
  // [SERVER-ONLY] Email primitives — table-based, inline-styled components
742
753
  // that render email-client-compatible HTML via renderToStaticMarkup. Use
743
754
  // these instead of authoring raw <table>/<tr>/<td> in email templates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohasinac/appkit",
3
- "version": "4.56.0",
3
+ "version": "4.57.0",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"