Integrate local business workflow and SaaS redesign
This commit is contained in:
@@ -87,6 +87,7 @@ const blacklistType = v.union(
|
||||
v.literal("phone"),
|
||||
v.literal("company"),
|
||||
v.literal("google_place_id"),
|
||||
v.literal("source_business_id"),
|
||||
);
|
||||
const websiteEnrichmentPageKind = v.union(
|
||||
v.literal("homepage"),
|
||||
@@ -250,13 +251,17 @@ export default defineSchema({
|
||||
postalCode: v.optional(v.string()),
|
||||
googlePlaceId: v.optional(v.string()),
|
||||
normalizedGooglePlaceId: v.optional(v.string()),
|
||||
sourceBusinessId: v.optional(v.string()),
|
||||
normalizedSourceBusinessId: v.optional(v.string()),
|
||||
googleMapsUrl: v.optional(v.string()),
|
||||
googlePrimaryType: v.optional(v.string()),
|
||||
googleTypes: v.optional(v.array(v.string())),
|
||||
googleRating: v.optional(v.number()),
|
||||
googleUserRatingCount: v.optional(v.number()),
|
||||
googleBusinessStatus: v.optional(v.string()),
|
||||
sourceProvider: v.optional(v.literal("google_places")),
|
||||
sourceProvider: v.optional(
|
||||
v.union(v.literal("google_places"), v.literal("local_business_data")),
|
||||
),
|
||||
sourceFetchedAt: v.optional(v.number()),
|
||||
websiteUrl: v.optional(v.string()),
|
||||
websiteDomain: v.optional(v.string()),
|
||||
@@ -292,6 +297,7 @@ export default defineSchema({
|
||||
"normalizedAddress",
|
||||
])
|
||||
.index("by_normalizedGooglePlaceId", ["normalizedGooglePlaceId"])
|
||||
.index("by_normalizedSourceBusinessId", ["normalizedSourceBusinessId"])
|
||||
.index("by_googlePlaceId", ["googlePlaceId"])
|
||||
.index("by_websiteDomain", ["websiteDomain"])
|
||||
.index("by_normalizedCompanyName", ["normalizedCompanyName"])
|
||||
|
||||
Reference in New Issue
Block a user