@mohasinac/appkit 3.2.6 → 3.2.8
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.js +62 -0
- package/dist/constants/api-endpoints.d.ts +12 -0
- package/dist/constants/api-endpoints.js +4 -0
- package/dist/features/about/components/PublicProfileView.js +8 -5
- package/dist/features/addresses/repository/addresses.repository.d.ts +14 -1
- package/dist/features/addresses/repository/addresses.repository.js +122 -1
- package/dist/features/addresses/schemas/firestore.d.ts +22 -3
- package/dist/features/addresses/schemas/firestore.js +25 -0
- package/dist/features/addresses/schemas/index.d.ts +2 -2
- package/dist/features/admin/components/AdminAddressClustersView.d.ts +5 -0
- package/dist/features/admin/components/AdminAddressClustersView.js +38 -0
- package/dist/features/admin/components/AdminAddressesView.d.ts +5 -0
- package/dist/features/admin/components/AdminAddressesView.js +137 -0
- package/dist/features/admin/components/AdminPaymentClustersView.d.ts +5 -0
- package/dist/features/admin/components/AdminPaymentClustersView.js +37 -0
- package/dist/features/admin/components/AdminPaymentMethodsView.d.ts +5 -0
- package/dist/features/admin/components/AdminPaymentMethodsView.js +130 -0
- package/dist/features/admin/components/index.d.ts +8 -0
- package/dist/features/admin/components/index.js +4 -0
- package/dist/features/auth/actions/profile-actions.d.ts +3 -1
- package/dist/features/auth/actions/profile-actions.js +29 -2
- package/dist/features/cart/schemas/index.d.ts +6 -6
- package/dist/features/orders/schemas/index.d.ts +4 -4
- package/dist/features/payments/repository/saved-payment-methods.repository.d.ts +48 -0
- package/dist/features/payments/repository/saved-payment-methods.repository.js +236 -0
- package/dist/features/payments/schemas/index.d.ts +1 -0
- package/dist/features/payments/schemas/index.js +1 -0
- package/dist/features/payments/schemas/saved-methods-firestore.d.ts +63 -0
- package/dist/features/payments/schemas/saved-methods-firestore.js +60 -0
- package/dist/features/payments/server.d.ts +2 -0
- package/dist/features/payments/server.js +2 -0
- package/dist/features/promotions/schemas/index.d.ts +6 -6
- package/dist/features/reviews/repository/reviews.repository.d.ts +12 -0
- package/dist/features/reviews/repository/reviews.repository.js +24 -0
- package/dist/features/reviews/schemas/firestore.d.ts +5 -1
- package/dist/features/reviews/schemas/firestore.js +2 -0
- package/dist/features/reviews/schemas/index.d.ts +6 -6
- package/dist/features/seller/components/SellerAddressesView.js +7 -3
- package/dist/features/support/schemas/index.d.ts +8 -8
- package/dist/features/wishlist/schemas/index.d.ts +2 -2
- package/dist/index.d.ts +9 -0
- package/dist/index.js +10 -0
- package/dist/next/routing/route-map.d.ts +8 -0
- package/dist/next/routing/route-map.js +4 -0
- package/dist/repositories/index.d.ts +1 -0
- package/dist/repositories/index.js +1 -0
- package/dist/schemas/registry.d.ts +66 -66
- package/dist/schemas/webhooks/razorpay.d.ts +50 -50
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +1 -1
- package/dist/security/pii-schemas.d.ts +2 -0
- package/dist/security/pii-schemas.js +2 -0
- package/package.json +1 -2
|
@@ -44,15 +44,15 @@ export declare const ticketRelatedPartiesSchema: z.ZodObject<{
|
|
|
44
44
|
bidId: z.ZodOptional<z.ZodString>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
storeId?: string | undefined;
|
|
47
|
+
userId?: string | undefined;
|
|
47
48
|
orderId?: string | undefined;
|
|
48
49
|
productId?: string | undefined;
|
|
49
|
-
userId?: string | undefined;
|
|
50
50
|
bidId?: string | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
storeId?: string | undefined;
|
|
53
|
+
userId?: string | undefined;
|
|
53
54
|
orderId?: string | undefined;
|
|
54
55
|
productId?: string | undefined;
|
|
55
|
-
userId?: string | undefined;
|
|
56
56
|
bidId?: string | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
@@ -86,15 +86,15 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
86
86
|
bidId: z.ZodOptional<z.ZodString>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
storeId?: string | undefined;
|
|
89
|
+
userId?: string | undefined;
|
|
89
90
|
orderId?: string | undefined;
|
|
90
91
|
productId?: string | undefined;
|
|
91
|
-
userId?: string | undefined;
|
|
92
92
|
bidId?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
storeId?: string | undefined;
|
|
95
|
+
userId?: string | undefined;
|
|
95
96
|
orderId?: string | undefined;
|
|
96
97
|
productId?: string | undefined;
|
|
97
|
-
userId?: string | undefined;
|
|
98
98
|
bidId?: string | undefined;
|
|
99
99
|
}>>;
|
|
100
100
|
status: z.ZodEnum<["open", "in_progress", "waiting_on_user", "resolved", "closed"]>;
|
|
@@ -159,6 +159,7 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
159
159
|
updatedAt: string | Date | z.objectOutputType<{
|
|
160
160
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
161
161
|
}, z.ZodTypeAny, "passthrough">;
|
|
162
|
+
userId: string;
|
|
162
163
|
priority: "normal" | "high" | "low" | "urgent";
|
|
163
164
|
messages: {
|
|
164
165
|
createdAt: string | Date | z.objectOutputType<{
|
|
@@ -170,7 +171,6 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
170
171
|
authorRole: "user" | "admin" | "support";
|
|
171
172
|
attachments?: string[] | undefined;
|
|
172
173
|
}[];
|
|
173
|
-
userId: string;
|
|
174
174
|
userEmail: string;
|
|
175
175
|
userDisplayName: string;
|
|
176
176
|
subject: string;
|
|
@@ -184,9 +184,9 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
184
184
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
185
185
|
relatedParties?: {
|
|
186
186
|
storeId?: string | undefined;
|
|
187
|
+
userId?: string | undefined;
|
|
187
188
|
orderId?: string | undefined;
|
|
188
189
|
productId?: string | undefined;
|
|
189
|
-
userId?: string | undefined;
|
|
190
190
|
bidId?: string | undefined;
|
|
191
191
|
} | undefined;
|
|
192
192
|
assignedToName?: string | undefined;
|
|
@@ -202,6 +202,7 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
202
202
|
updatedAt: string | Date | z.objectInputType<{
|
|
203
203
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
204
204
|
}, z.ZodTypeAny, "passthrough">;
|
|
205
|
+
userId: string;
|
|
205
206
|
priority: "normal" | "high" | "low" | "urgent";
|
|
206
207
|
messages: {
|
|
207
208
|
createdAt: string | Date | z.objectInputType<{
|
|
@@ -213,7 +214,6 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
213
214
|
authorRole: "user" | "admin" | "support";
|
|
214
215
|
attachments?: string[] | undefined;
|
|
215
216
|
}[];
|
|
216
|
-
userId: string;
|
|
217
217
|
userEmail: string;
|
|
218
218
|
userDisplayName: string;
|
|
219
219
|
subject: string;
|
|
@@ -227,9 +227,9 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
|
|
|
227
227
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
228
228
|
relatedParties?: {
|
|
229
229
|
storeId?: string | undefined;
|
|
230
|
+
userId?: string | undefined;
|
|
230
231
|
orderId?: string | undefined;
|
|
231
232
|
productId?: string | undefined;
|
|
232
|
-
userId?: string | undefined;
|
|
233
233
|
bidId?: string | undefined;
|
|
234
234
|
} | undefined;
|
|
235
235
|
assignedToName?: string | undefined;
|
|
@@ -23,8 +23,8 @@ export declare const wishlistItemSchema: z.ZodObject<{
|
|
|
23
23
|
addedAt: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
id: string;
|
|
26
|
-
productId: string;
|
|
27
26
|
userId: string;
|
|
27
|
+
productId: string;
|
|
28
28
|
productTitle?: string | undefined;
|
|
29
29
|
productImage?: string | undefined;
|
|
30
30
|
addedAt?: string | undefined;
|
|
@@ -34,8 +34,8 @@ export declare const wishlistItemSchema: z.ZodObject<{
|
|
|
34
34
|
productStatus?: string | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
id: string;
|
|
37
|
-
productId: string;
|
|
38
37
|
userId: string;
|
|
38
|
+
productId: string;
|
|
39
39
|
productTitle?: string | undefined;
|
|
40
40
|
productImage?: string | undefined;
|
|
41
41
|
addedAt?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -563,6 +563,7 @@ export { offerRepository } from "./repositories/index";
|
|
|
563
563
|
export { orderRepository } from "./repositories/index";
|
|
564
564
|
export { passwordResetTokenRepository } from "./repositories/index";
|
|
565
565
|
export { payoutRepository } from "./repositories/index";
|
|
566
|
+
export { savedPaymentMethodsRepository, SavedPaymentMethodsRepository } from "./repositories/index";
|
|
566
567
|
export { productRepository } from "./repositories/index";
|
|
567
568
|
export { reviewRepository } from "./repositories/index";
|
|
568
569
|
export { sessionRepository } from "./repositories/index";
|
|
@@ -1183,6 +1184,14 @@ export { AdminReturnRequestsView } from "./features/admin/index";
|
|
|
1183
1184
|
export type { AdminReturnRequestsViewProps } from "./features/admin/index";
|
|
1184
1185
|
export { AdminStoreAddressesView } from "./features/admin/index";
|
|
1185
1186
|
export type { AdminStoreAddressesViewProps } from "./features/admin/index";
|
|
1187
|
+
export { AdminAddressesView } from "./features/admin/index";
|
|
1188
|
+
export type { AdminAddressesViewProps } from "./features/admin/index";
|
|
1189
|
+
export { AdminAddressClustersView } from "./features/admin/index";
|
|
1190
|
+
export type { AdminAddressClustersViewProps } from "./features/admin/index";
|
|
1191
|
+
export { AdminPaymentMethodsView } from "./features/admin/index";
|
|
1192
|
+
export type { AdminPaymentMethodsViewProps } from "./features/admin/index";
|
|
1193
|
+
export { AdminPaymentClustersView } from "./features/admin/index";
|
|
1194
|
+
export type { AdminPaymentClustersViewProps } from "./features/admin/index";
|
|
1186
1195
|
export { AdminTopBar } from "./features/admin/index";
|
|
1187
1196
|
export { AdminTopProductsTable } from "./features/admin/index";
|
|
1188
1197
|
export { AdminUsersView } from "./features/admin/index";
|
package/dist/index.js
CHANGED
|
@@ -1117,6 +1117,8 @@ export { passwordResetTokenRepository } from "./repositories/index";
|
|
|
1117
1117
|
// [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
|
|
1118
1118
|
// payoutRepository - Shared export for payout repository.
|
|
1119
1119
|
export { payoutRepository } from "./repositories/index";
|
|
1120
|
+
// savedPaymentMethodsRepository - user saved payment methods (UPI, card, bank) with PII encryption + ban system.
|
|
1121
|
+
export { savedPaymentMethodsRepository, SavedPaymentMethodsRepository } from "./repositories/index";
|
|
1120
1122
|
// [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
|
|
1121
1123
|
// productRepository - Shared export for product repository.
|
|
1122
1124
|
export { productRepository } from "./repositories/index";
|
|
@@ -2274,6 +2276,14 @@ export { AdminContactEditorView } from "./features/admin/index";
|
|
|
2274
2276
|
export { AdminReturnRequestsView } from "./features/admin/index";
|
|
2275
2277
|
// AdminStoreAddressesView - Admin read-only store pickup locations overview (LL17).
|
|
2276
2278
|
export { AdminStoreAddressesView } from "./features/admin/index";
|
|
2279
|
+
// AdminAddressesView - Address ban management (Banned / Unban Requested / Suspicious tabs).
|
|
2280
|
+
export { AdminAddressesView } from "./features/admin/index";
|
|
2281
|
+
// AdminAddressClustersView - Multi-account shared address cluster view.
|
|
2282
|
+
export { AdminAddressClustersView } from "./features/admin/index";
|
|
2283
|
+
// AdminPaymentMethodsView - Payment method ban management.
|
|
2284
|
+
export { AdminPaymentMethodsView } from "./features/admin/index";
|
|
2285
|
+
// AdminPaymentClustersView - Multi-account shared payment identifier cluster view.
|
|
2286
|
+
export { AdminPaymentClustersView } from "./features/admin/index";
|
|
2277
2287
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
2278
2288
|
// AdminTopBar - Shared export for admin top bar.
|
|
2279
2289
|
export { AdminTopBar } from "./features/admin/index";
|
|
@@ -338,6 +338,10 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
338
338
|
readonly GUIDE_TEAM: "/admin/guide/team";
|
|
339
339
|
readonly GUIDE_ANALYTICS: "/admin/guide/analytics";
|
|
340
340
|
readonly GUIDE_TRUST: "/admin/guide/trust";
|
|
341
|
+
readonly BANNED_ADDRESSES: "/admin/banned-addresses";
|
|
342
|
+
readonly ADDRESS_CLUSTERS: "/admin/address-clusters";
|
|
343
|
+
readonly PAYMENT_METHODS: "/admin/payment-methods";
|
|
344
|
+
readonly PAYMENT_METHODS_CLUSTERS: "/admin/payment-methods/clusters";
|
|
341
345
|
};
|
|
342
346
|
readonly DEMO: {
|
|
343
347
|
readonly SEED: "/demo/seed";
|
|
@@ -675,6 +679,10 @@ export declare const ROUTES: {
|
|
|
675
679
|
readonly GUIDE_TEAM: "/admin/guide/team";
|
|
676
680
|
readonly GUIDE_ANALYTICS: "/admin/guide/analytics";
|
|
677
681
|
readonly GUIDE_TRUST: "/admin/guide/trust";
|
|
682
|
+
readonly BANNED_ADDRESSES: "/admin/banned-addresses";
|
|
683
|
+
readonly ADDRESS_CLUSTERS: "/admin/address-clusters";
|
|
684
|
+
readonly PAYMENT_METHODS: "/admin/payment-methods";
|
|
685
|
+
readonly PAYMENT_METHODS_CLUSTERS: "/admin/payment-methods/clusters";
|
|
678
686
|
};
|
|
679
687
|
readonly DEMO: {
|
|
680
688
|
readonly SEED: "/demo/seed";
|
|
@@ -334,6 +334,10 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
334
334
|
GUIDE_TEAM: "/admin/guide/team",
|
|
335
335
|
GUIDE_ANALYTICS: "/admin/guide/analytics",
|
|
336
336
|
GUIDE_TRUST: "/admin/guide/trust",
|
|
337
|
+
BANNED_ADDRESSES: "/admin/banned-addresses",
|
|
338
|
+
ADDRESS_CLUSTERS: "/admin/address-clusters",
|
|
339
|
+
PAYMENT_METHODS: "/admin/payment-methods",
|
|
340
|
+
PAYMENT_METHODS_CLUSTERS: "/admin/payment-methods/clusters",
|
|
337
341
|
},
|
|
338
342
|
DEMO: {
|
|
339
343
|
SEED: "/demo/seed",
|
|
@@ -29,6 +29,7 @@ export type { ClaimedCouponCreateInput } from "../features/promotions/repository
|
|
|
29
29
|
export { FAQsRepository, FirebaseFAQsRepository, faqsRepository, } from "../features/faq/repository/faqs.repository";
|
|
30
30
|
export { BlogRepository, blogRepository, } from "../features/blog/repository/blog.repository";
|
|
31
31
|
export { payoutRepository } from "../features/payments/repository/payout.repository";
|
|
32
|
+
export { SavedPaymentMethodsRepository, savedPaymentMethodsRepository, } from "../features/payments/repository/saved-payment-methods.repository";
|
|
32
33
|
export { GroupedListingsRepository, groupedListingsRepository, } from "../features/grouped/repository/grouped-listings.repository";
|
|
33
34
|
export { payoutMethodsRepository, shippingConfigsRepository, analyticsCardsRepository, analyticsAlertsRepository, storeCategoriesRepository, listingTemplatesRepository, moderationQueueRepository, reportsRepository, itemRequestsRepository, storeWhatsAppConfigRepository, storeGoogleConfigRepository, PayoutMethodsRepository, ShippingConfigsRepository, AnalyticsCardsRepository, AnalyticsAlertsRepository, StoreCategoriesRepository, ListingTemplatesRepository, ModerationQueueRepository, ReportsRepository, ItemRequestsRepository, StoreWhatsAppConfigRepository, StoreGoogleConfigRepository, } from "../features/store-extensions/repository/store-extensions.repositories";
|
|
34
35
|
export { roleOverridesRepository, customRolesRepository, adminNotificationsRepository, RoleOverridesRepository, CustomRolesRepository, AdminNotificationsRepository, } from "../features/store-extensions/repository/rbac.repositories";
|
|
@@ -35,6 +35,7 @@ export { ClaimedCouponsRepository, claimedCouponsRepository, } from "../features
|
|
|
35
35
|
export { FAQsRepository, FirebaseFAQsRepository, faqsRepository, } from "../features/faq/repository/faqs.repository";
|
|
36
36
|
export { BlogRepository, blogRepository, } from "../features/blog/repository/blog.repository";
|
|
37
37
|
export { payoutRepository } from "../features/payments/repository/payout.repository";
|
|
38
|
+
export { SavedPaymentMethodsRepository, savedPaymentMethodsRepository, } from "../features/payments/repository/saved-payment-methods.repository";
|
|
38
39
|
// Grouped listings repository
|
|
39
40
|
export { GroupedListingsRepository, groupedListingsRepository, } from "../features/grouped/repository/grouped-listings.repository";
|
|
40
41
|
// S-STORE-CROSS — 11 new collection repositories
|