Integrate local business workflow and SaaS redesign
This commit is contained in:
@@ -263,7 +263,10 @@ export const create = mutation({
|
||||
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")),
|
||||
),
|
||||
sourceBusinessId: v.optional(v.string()),
|
||||
sourceFetchedAt: v.optional(v.number()),
|
||||
websiteUrl: v.optional(v.string()),
|
||||
websiteDomain: v.optional(v.string()),
|
||||
@@ -285,6 +288,7 @@ export const create = mutation({
|
||||
duplicateOfLeadId: v.optional(v.id("leads")),
|
||||
blacklistStatus: v.optional(leadBlacklistStatus),
|
||||
normalizedGooglePlaceId: v.optional(v.string()),
|
||||
normalizedSourceBusinessId: v.optional(v.string()),
|
||||
notes: v.optional(v.string()),
|
||||
},
|
||||
handler: async (ctx, args) => {
|
||||
@@ -298,6 +302,7 @@ export const create = mutation({
|
||||
normalizedCompanyName: args.normalizedCompanyName,
|
||||
normalizedAddress: args.normalizedAddress,
|
||||
normalizedGooglePlaceId: args.normalizedGooglePlaceId,
|
||||
normalizedSourceBusinessId: args.normalizedSourceBusinessId,
|
||||
priority: args.priority ?? "medium",
|
||||
contactStatus: args.contactStatus ?? "new",
|
||||
duplicateStatus: args.duplicateStatus ?? "unchecked",
|
||||
|
||||
Reference in New Issue
Block a user