fix: data migration and product types

This commit is contained in:
pandeymangg
2024-02-28 12:04:06 +05:30
parent 73f1d09dc8
commit 2c13121487
3 changed files with 6 additions and 2 deletions

View File

@@ -47,7 +47,6 @@ async function main() {
...(product.highlightBorderColor && {
highlightBorderColor: {
light: product.highlightBorderColor,
dark: product.highlightBorderColor,
},
}),
};

View File

@@ -34,6 +34,9 @@ const selectProduct = {
clickOutsideClose: true,
darkOverlay: true,
environments: true,
styling: true,
unifiedStyling: true,
allowStyleOverwrite: true,
};
export const getProducts = async (teamId: string, page?: number): Promise<TProduct[]> => {

View File

@@ -12,7 +12,9 @@ export const ZProduct = z.object({
teamId: z.string(),
brandColor: ZColor,
highlightBorderColor: ZColor.nullable(),
styling: ZStyling.optional(),
styling: ZStyling.nullable(),
unifiedStyling: z.boolean().nullable(),
allowStyleOverwrite: z.boolean().nullable(),
recontactDays: z.number().int(),
inAppSurveyBranding: z.boolean(),
linkSurveyBranding: z.boolean(),