@mohasinac/appkit 3.2.5 → 3.2.7

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 (134) hide show
  1. package/dist/_internal/client/features/layout/SidebarCollapseToggle.js +1 -1
  2. package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +3 -3
  3. package/dist/_internal/server/features/products/data.d.ts +2 -1
  4. package/dist/_internal/server/jobs/core/countersReconcile.js +2 -1
  5. package/dist/_internal/shared/actions/action-registry.js +62 -0
  6. package/dist/_internal/shared/features/products/types.d.ts +3 -2
  7. package/dist/client.d.ts +2 -0
  8. package/dist/client.js +1 -0
  9. package/dist/constants/api-endpoints.d.ts +12 -0
  10. package/dist/constants/api-endpoints.js +4 -0
  11. package/dist/constants/field-names.d.ts +2 -0
  12. package/dist/constants/field-names.js +2 -0
  13. package/dist/features/about/components/PublicProfileView.js +8 -5
  14. package/dist/features/account/components/UserOffersPanel.js +0 -1
  15. package/dist/features/addresses/repository/addresses.repository.d.ts +14 -1
  16. package/dist/features/addresses/repository/addresses.repository.js +122 -1
  17. package/dist/features/addresses/schemas/firestore.d.ts +22 -3
  18. package/dist/features/addresses/schemas/firestore.js +25 -0
  19. package/dist/features/addresses/schemas/index.d.ts +2 -2
  20. package/dist/features/admin/components/AdminAddressClustersView.d.ts +5 -0
  21. package/dist/features/admin/components/AdminAddressClustersView.js +38 -0
  22. package/dist/features/admin/components/AdminAddressesView.d.ts +5 -0
  23. package/dist/features/admin/components/AdminAddressesView.js +137 -0
  24. package/dist/features/admin/components/AdminCarouselEditorView.js +1 -4
  25. package/dist/features/admin/components/AdminFulfillmentView.js +2 -3
  26. package/dist/features/admin/components/AdminOrderEditorView.js +1 -3
  27. package/dist/features/admin/components/AdminPaymentClustersView.d.ts +5 -0
  28. package/dist/features/admin/components/AdminPaymentClustersView.js +37 -0
  29. package/dist/features/admin/components/AdminPaymentMethodsView.d.ts +5 -0
  30. package/dist/features/admin/components/AdminPaymentMethodsView.js +130 -0
  31. package/dist/features/admin/components/AdminSiteSettingsView.js +2 -2
  32. package/dist/features/admin/components/index.d.ts +8 -0
  33. package/dist/features/admin/components/index.js +4 -0
  34. package/dist/features/admin/schemas/firestore.d.ts +3 -5
  35. package/dist/features/admin/types/product.types.d.ts +2 -1
  36. package/dist/features/auth/actions/profile-actions.d.ts +3 -1
  37. package/dist/features/auth/actions/profile-actions.js +29 -2
  38. package/dist/features/auth/schemas/firestore.d.ts +8 -10
  39. package/dist/features/cart/schemas/index.d.ts +6 -6
  40. package/dist/features/categories/components/CategoryBundlesListing.js +1 -3
  41. package/dist/features/checkout/schemas/firestore.d.ts +4 -4
  42. package/dist/features/copilot/components/AdminCopilotView.js +4 -4
  43. package/dist/features/events/schemas/firestore.d.ts +2 -2
  44. package/dist/features/grouped/schemas/firestore.d.ts +2 -4
  45. package/dist/features/history/hooks/useHistory.js +3 -2
  46. package/dist/features/homepage/actions/homepage-section-actions.d.ts +6 -6
  47. package/dist/features/homepage/actions/homepage-section-actions.js +2 -2
  48. package/dist/features/homepage/components/PromoGrid.js +1 -1
  49. package/dist/features/homepage/schemas/firestore.d.ts +15 -14
  50. package/dist/features/layout/AppLayoutShell.js +3 -18
  51. package/dist/features/layout/background-seed-defaults.d.ts +19 -0
  52. package/dist/features/layout/background-seed-defaults.js +14 -0
  53. package/dist/features/lottery/schemas/firestore.d.ts +2 -2
  54. package/dist/features/messages/hooks/useConversation.js +5 -13
  55. package/dist/features/messages/hooks/useConversations.js +0 -1
  56. package/dist/features/messages/schemas/firestore.d.ts +2 -2
  57. package/dist/features/orders/components/RefundHistoryTable.js +1 -3
  58. package/dist/features/orders/schemas/firestore.d.ts +2 -1
  59. package/dist/features/orders/schemas/index.d.ts +11 -7
  60. package/dist/features/orders/schemas/index.js +1 -1
  61. package/dist/features/payments/repository/saved-payment-methods.repository.d.ts +48 -0
  62. package/dist/features/payments/repository/saved-payment-methods.repository.js +236 -0
  63. package/dist/features/payments/schemas/index.d.ts +1 -0
  64. package/dist/features/payments/schemas/index.js +1 -0
  65. package/dist/features/payments/schemas/saved-methods-firestore.d.ts +63 -0
  66. package/dist/features/payments/schemas/saved-methods-firestore.js +60 -0
  67. package/dist/features/payments/server.d.ts +2 -0
  68. package/dist/features/payments/server.js +2 -0
  69. package/dist/features/products/actions/product-actions.d.ts +2 -1
  70. package/dist/features/products/api/[id]/route.js +1 -1
  71. package/dist/features/products/api/route.js +1 -1
  72. package/dist/features/products/components/CompareOverlay.d.ts +18 -1
  73. package/dist/features/products/components/CompareOverlay.js +0 -16
  74. package/dist/features/products/components/ProductDetailActions.js +2 -1
  75. package/dist/features/products/components/ShowGroupSection.js +1 -3
  76. package/dist/features/products/repository/product-features.repository.js +1 -1
  77. package/dist/features/products/schemas/firestore.d.ts +3 -6
  78. package/dist/features/promotions/actions/coupon-actions.d.ts +2 -1
  79. package/dist/features/promotions/hooks/useCouponValidate.d.ts +2 -1
  80. package/dist/features/promotions/repository/coupons.repository.d.ts +2 -1
  81. package/dist/features/promotions/schemas/firestore.d.ts +4 -4
  82. package/dist/features/promotions/schemas/index.d.ts +6 -6
  83. package/dist/features/reviews/repository/reviews.repository.d.ts +12 -0
  84. package/dist/features/reviews/repository/reviews.repository.js +24 -0
  85. package/dist/features/reviews/schemas/firestore.d.ts +5 -1
  86. package/dist/features/reviews/schemas/firestore.js +2 -0
  87. package/dist/features/reviews/schemas/index.d.ts +6 -6
  88. package/dist/features/scams/components/ScamRegistryView.js +2 -2
  89. package/dist/features/scams/schemas/firestore.d.ts +6 -6
  90. package/dist/features/search/types/index.d.ts +3 -2
  91. package/dist/features/search/types/index.js +0 -1
  92. package/dist/features/seller/components/FulfillmentView.js +2 -3
  93. package/dist/features/seller/components/PrintCenterView.js +1 -3
  94. package/dist/features/seller/components/SellerAddressesView.js +7 -4
  95. package/dist/features/seller/components/SellerOffersPanel.js +0 -1
  96. package/dist/features/seller/components/SellerReviewsView.js +0 -1
  97. package/dist/features/seller/schemas/firestore.d.ts +2 -4
  98. package/dist/features/server-errors/schemas/firestore.d.ts +2 -2
  99. package/dist/features/store-extensions/schemas/firestore.d.ts +2 -2
  100. package/dist/features/stores/components/StoreScopedSearch.js +2 -4
  101. package/dist/features/stores/repository/store.repository.js +3 -1
  102. package/dist/features/stores/types/index.d.ts +2 -1
  103. package/dist/features/stores/types/index.js +0 -1
  104. package/dist/features/support/schemas/firestore.d.ts +2 -2
  105. package/dist/features/support/schemas/index.d.ts +8 -8
  106. package/dist/features/wishlist/schemas/index.d.ts +2 -2
  107. package/dist/features/wishlist/types/index.d.ts +2 -1
  108. package/dist/index.d.ts +9 -0
  109. package/dist/index.js +10 -0
  110. package/dist/next/routing/route-map.d.ts +8 -0
  111. package/dist/next/routing/route-map.js +4 -0
  112. package/dist/providers/auth-firebase/provider.js +3 -1
  113. package/dist/providers/auth-firebase/session.js +3 -1
  114. package/dist/repositories/index.d.ts +1 -0
  115. package/dist/repositories/index.js +1 -0
  116. package/dist/schemas/registry.d.ts +66 -66
  117. package/dist/schemas/webhooks/razorpay.d.ts +50 -50
  118. package/dist/security/index.d.ts +1 -1
  119. package/dist/security/index.js +1 -1
  120. package/dist/security/pii-schemas.d.ts +2 -0
  121. package/dist/security/pii-schemas.js +2 -0
  122. package/dist/seo/json-ld.d.ts +2 -1
  123. package/dist/styles.css +1 -1
  124. package/dist/tailwind-utilities.css +1 -1
  125. package/dist/ui/components/Form.d.ts +3 -1
  126. package/dist/ui/components/Form.js +2 -1
  127. package/dist/ui/components/Radio.d.ts +7 -0
  128. package/dist/ui/components/Radio.js +7 -0
  129. package/dist/ui/components/surface-tokens.d.ts +4 -0
  130. package/dist/ui/components/surface-tokens.js +24 -0
  131. package/dist/ui/index.d.ts +2 -2
  132. package/dist/ui/index.js +1 -1
  133. package/dist/ui/rich-text/RichText.js +0 -1
  134. package/package.json +5 -2
@@ -5,7 +5,7 @@ export { requireAuth, requireRole, requireOwnership, requireEmailVerified, requi
5
5
  export type { UserRole } from "./authorization";
6
6
  export { redactPii, safeDisplayName, safeDisplayEmail, maskIp } from "./pii-redact";
7
7
  export { encryptValue, decryptValue, hmacBlindIndex, encryptPiiFields, decryptPiiFields, encryptPii, decryptPii, isPiiEncrypted, piiBlindIndex, addPiiIndices, getPiiConfigError, encryptShippingAddress, decryptShippingAddress, encryptPayoutDetails, decryptPayoutDetails, encryptShippingConfig, decryptShippingConfig, encryptPayoutBankAccount, decryptPayoutBankAccount, maskName, maskEmail, maskPublicReview, maskPublicBid, maskPublicEventEntry, maskOfferForSeller, ENC_PREFIX, HMAC_PREFIX, } from "./pii-encrypt";
8
- export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, LOTTERY_ENTRY_PII_FIELDS, } from "./pii-schemas";
8
+ export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, LOTTERY_ENTRY_PII_FIELDS, PAYMENT_METHOD_PII_FIELDS, } from "./pii-schemas";
9
9
  export { encryptSecret, decryptSecret, isSecretEncrypted, maskSecret, } from "./settings-encryption";
10
10
  export type { Permission, RoleDefinition, RbacConfig, ResolvedUser, RbacHookReturn, } from "./rbac";
11
11
  export { DEFAULT_ROLES, resolvePermissions, hasPermission, hasAllPermissions, hasAnyPermission, createRbacHook, Can, createRequirePermission, createRequirePermissionSync, createRbacMiddleware, } from "./rbac";
@@ -3,6 +3,6 @@ export { rateLimit, applyRateLimit, rateLimitByIdentifier, RateLimitPresets, cle
3
3
  export { requireAuth, requireRole, requireOwnership, requireEmailVerified, requireActiveAccount, canChangeRole, getRoleLevel, } from "./authorization";
4
4
  export { redactPii, safeDisplayName, safeDisplayEmail, maskIp } from "./pii-redact";
5
5
  export { encryptValue, decryptValue, hmacBlindIndex, encryptPiiFields, decryptPiiFields, encryptPii, decryptPii, isPiiEncrypted, piiBlindIndex, addPiiIndices, getPiiConfigError, encryptShippingAddress, decryptShippingAddress, encryptPayoutDetails, decryptPayoutDetails, encryptShippingConfig, decryptShippingConfig, encryptPayoutBankAccount, decryptPayoutBankAccount, maskName, maskEmail, maskPublicReview, maskPublicBid, maskPublicEventEntry, maskOfferForSeller, ENC_PREFIX, HMAC_PREFIX, } from "./pii-encrypt";
6
- export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, LOTTERY_ENTRY_PII_FIELDS, } from "./pii-schemas";
6
+ export { USER_PII_FIELDS, USER_PII_INDEX_MAP, ADDRESS_PII_FIELDS, ORDER_PII_FIELDS, PAYOUT_PII_FIELDS, PAYOUT_PII_INDEX_MAP, BID_PII_FIELDS, NEWSLETTER_PII_FIELDS, NEWSLETTER_PII_INDEX_MAP, TOKEN_PII_FIELDS, TOKEN_PII_INDEX_MAP, REVIEW_PII_FIELDS, REVIEW_PII_INDEX_MAP, OFFER_PII_FIELDS, CHAT_PII_FIELDS, EVENT_ENTRY_PII_FIELDS, LOTTERY_ENTRY_PII_FIELDS, PAYMENT_METHOD_PII_FIELDS, } from "./pii-schemas";
7
7
  export { encryptSecret, decryptSecret, isSecretEncrypted, maskSecret, } from "./settings-encryption";
8
8
  export { DEFAULT_ROLES, resolvePermissions, hasPermission, hasAllPermissions, hasAnyPermission, createRbacHook, Can, createRequirePermission, createRequirePermissionSync, createRbacMiddleware, } from "./rbac";
@@ -40,3 +40,5 @@ export declare const EVENT_ENTRY_PII_FIELDS: readonly ["userDisplayName", "userE
40
40
  export declare const LOTTERY_ENTRY_PII_FIELDS: readonly ["userPhone", "userEmail", "userDisplayName"];
41
41
  /** Store OAuth bearer tokens — encrypted via SETTINGS_ENCRYPTION_KEY */
42
42
  export declare const STORE_SECRET_FIELDS: readonly ["whatsappConfig.accessToken"];
43
+ /** PII fields in savedPaymentMethods — full identifier (UPI VPA, card PAN, etc.) */
44
+ export declare const PAYMENT_METHOD_PII_FIELDS: readonly ["identifier"];
@@ -68,3 +68,5 @@ export const LOTTERY_ENTRY_PII_FIELDS = [
68
68
  ];
69
69
  /** Store OAuth bearer tokens — encrypted via SETTINGS_ENCRYPTION_KEY */
70
70
  export const STORE_SECRET_FIELDS = ["whatsappConfig.accessToken"];
71
+ /** PII fields in savedPaymentMethods — full identifier (UPI VPA, card PAN, etc.) */
72
+ export const PAYMENT_METHOD_PII_FIELDS = ["identifier"];
@@ -12,6 +12,7 @@
12
12
  * />
13
13
  * ```
14
14
  */
15
+ import type { ListingType } from "../features/products/types";
15
16
  /**
16
17
  * JSON-LD permits omitting optional fields at every nesting level — JSON.stringify
17
18
  * drops undefined keys, so the emitted schema.org output remains valid. This
@@ -34,7 +35,7 @@ export interface ProductJsonLdInput {
34
35
  status?: string;
35
36
  auctionEndDate?: Date;
36
37
  /** Canonical discriminator (SB1-G Phase 4). */
37
- listingType?: "standard" | "auction" | "pre-order" | "prize-draw";
38
+ listingType?: ListingType;
38
39
  }
39
40
  export interface ReviewJsonLdInput {
40
41
  id: string;