@mohasinac/appkit 4.30.13 → 4.30.16
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/functions/https.js +17 -2
- package/dist/_internal/server/jobs/core/listingProcessor.js +5 -1
- package/dist/features/addresses/repository/addresses.repository.d.ts +12 -1
- package/dist/features/addresses/repository/addresses.repository.js +16 -7
- package/dist/features/admin/components/AdminBlogView.js +8 -1
- package/dist/features/admin/components/AdminCouponsView.js +8 -1
- package/dist/features/admin/components/AdminOffersView.js +9 -1
- package/dist/features/admin/components/AdminPayoutsView.js +9 -1
- package/dist/features/admin/components/AdminReviewsView.js +14 -1
- package/dist/features/admin/components/AdminScammersView.js +15 -1
- package/dist/features/admin/components/DataListingView.d.ts +22 -1
- package/dist/features/admin/components/DataListingView.js +7 -0
- package/dist/features/admin/hooks/useAdminListing.d.ts +9 -0
- package/dist/features/admin/hooks/useAdminListing.js +30 -2
- package/dist/features/auth/repository/user.repository.d.ts +22 -1
- package/dist/features/auth/repository/user.repository.js +31 -28
- package/dist/features/cart/repository/cart.repository.d.ts +15 -2
- package/dist/features/cart/repository/cart.repository.js +15 -13
- package/dist/features/events/components/AdminEventsView.js +7 -1
- package/dist/features/orders/repository/orders.repository.d.ts +12 -1
- package/dist/features/orders/repository/orders.repository.js +14 -5
- package/dist/features/payments/repository/payout.repository.d.ts +19 -9
- package/dist/features/payments/repository/payout.repository.js +26 -20
- package/dist/features/products/components/ProductFilters.d.ts +19 -1
- package/dist/features/products/components/ProductFilters.js +11 -3
- package/dist/features/products/components/ProductsIndexListing.d.ts +4 -2
- package/dist/features/products/components/ProductsIndexListing.js +40 -27
- package/dist/features/reviews/repository/reviews.repository.d.ts +10 -8
- package/dist/features/reviews/repository/reviews.repository.js +16 -19
- package/dist/features/scams/repository/scammer.repository.d.ts +10 -1
- package/dist/features/scams/repository/scammer.repository.js +20 -2
- package/dist/features/scams/schemas/firestore.d.ts +10 -0
- package/dist/features/scams/schemas/firestore.js +1 -0
- package/dist/features/scams/schemas/index.d.ts +10 -10
- package/dist/features/seller/components/SellerCouponsView.js +7 -1
- package/dist/features/seller/components/SellerOffersView.js +8 -1
- package/dist/features/seller/components/SellerOrdersView.js +8 -1
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +161 -17
- package/dist/providers/db-firebase/base.repository.d.ts +12 -0
- package/dist/providers/db-firebase/base.repository.js +14 -2
- package/dist/react/hooks/usePendingFilters.d.ts +12 -2
- package/dist/react/hooks/usePendingFilters.js +2 -2
- package/dist/react/hooks/usePendingTable.d.ts +9 -2
- package/dist/schemas/registry.d.ts +8 -8
- package/dist/security/pii-schemas.d.ts +19 -1
- package/dist/security/pii-schemas.js +19 -1
- package/dist/seed/_helpers/search-txt-wrappers.d.ts +2 -0
- package/dist/seed/_helpers/search-txt-wrappers.js +4 -1
- package/dist/seed/scammers-seed-data.js +10 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/utils/search-txt-builders.d.ts +13 -0
- package/dist/utils/search-txt-builders.js +20 -0
- package/package.json +2 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildStoreSearchTxt, buildEventSearchTxt, buildBlogSearchTxt, buildReviewSearchTxt, buildOrderSearchTxt, buildCouponSearchTxt, buildOfferSearchTxt, } from "../../utils/search-txt-builders";
|
|
1
|
+
import { buildStoreSearchTxt, buildEventSearchTxt, buildBlogSearchTxt, buildReviewSearchTxt, buildOrderSearchTxt, buildCouponSearchTxt, buildOfferSearchTxt, buildScammerSearchTxt, } from "../../utils/search-txt-builders";
|
|
2
2
|
export function withStoreSearchTxt(p) {
|
|
3
3
|
return { ...p, searchTxt: buildStoreSearchTxt(p) };
|
|
4
4
|
}
|
|
@@ -20,3 +20,6 @@ export function withCouponSearchTxt(p) {
|
|
|
20
20
|
export function withOfferSearchTxt(p) {
|
|
21
21
|
return { ...p, searchTxt: buildOfferSearchTxt(p) };
|
|
22
22
|
}
|
|
23
|
+
export function withScammerSearchTxt(p) {
|
|
24
|
+
return { ...p, searchTxt: buildScammerSearchTxt(p) };
|
|
25
|
+
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* @tag consumers:seed/index.ts,seed/runner.ts
|
|
18
18
|
* @tag sideEffects:none
|
|
19
19
|
*/
|
|
20
|
+
import { withScammerSearchTxt } from "./_helpers/search-txt-wrappers";
|
|
20
21
|
import { SCAMMER_FIELDS } from "../constants/field-names";
|
|
21
22
|
import { seedExtMedia } from "./_helpers/media";
|
|
22
23
|
const NOW = new Date("2026-05-10T00:00:00.000Z");
|
|
@@ -32,7 +33,12 @@ const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
|
32
33
|
function entry(at, actorRole, trigger, changes, extra) {
|
|
33
34
|
return { at, actorRole, trigger, changes, ...extra };
|
|
34
35
|
}
|
|
35
|
-
export
|
|
36
|
+
// Annotated HERE, not on the export, so the literal is contextually typed as
|
|
37
|
+
// Partial<ScammerDocument> before `.map` sees it. Without this TS infers a
|
|
38
|
+
// union of the individual object shapes and rejects the wrapper's generic —
|
|
39
|
+
// and the error points at the map call rather than at the field that actually
|
|
40
|
+
// diverged.
|
|
41
|
+
const scammerRows = [
|
|
36
42
|
// ── 1. Verified — advance payment ghost ──────────────────────────────────────
|
|
37
43
|
{
|
|
38
44
|
id: "scammer-fake-lob-seller",
|
|
@@ -224,3 +230,6 @@ export const scammersSeedData = [
|
|
|
224
230
|
updatedAt: daysAgo(9),
|
|
225
231
|
},
|
|
226
232
|
];
|
|
233
|
+
// Derived through the wrapper, never per record — an inline literal is how
|
|
234
|
+
// five product seed files shipped their last fixture with no tokens.
|
|
235
|
+
export const scammersSeedData = scammerRows.map(withScammerSearchTxt);
|