Comparing version 0.15.0 to 0.15.1
@@ -1,2 +0,2 @@ | ||
import { z } from "zod"; | ||
import { z } from 'zod'; | ||
export type Product = z.infer<typeof productSchema>; | ||
@@ -10,2 +10,3 @@ export declare const productSchema: z.ZodObject<{ | ||
targetRegexes: z.ZodArray<z.ZodString, "many">; | ||
targetFuzzySearches: z.ZodArray<z.ZodString, "many">; | ||
workspaceId: z.ZodString; | ||
@@ -24,2 +25,3 @@ createdAt: z.ZodNumber; | ||
targetRegexes: string[]; | ||
targetFuzzySearches: string[]; | ||
}, { | ||
@@ -35,2 +37,3 @@ id: string; | ||
targetRegexes: string[]; | ||
targetFuzzySearches: string[]; | ||
}>; | ||
@@ -37,0 +40,0 @@ export declare const uploadProductCatalogBodySchema: z.ZodObject<{ |
@@ -12,2 +12,3 @@ "use strict"; | ||
targetRegexes: zod_1.z.array(zod_1.z.string()), | ||
targetFuzzySearches: zod_1.z.array(zod_1.z.string()), | ||
workspaceId: zod_1.z.string(), | ||
@@ -14,0 +15,0 @@ createdAt: zod_1.z.number(), |
@@ -1,2 +0,2 @@ | ||
import { z } from "zod"; | ||
import { z } from 'zod'; | ||
export type ProductMapper = z.infer<typeof productMapperSchema>; | ||
@@ -15,2 +15,3 @@ export type CreateProductMapperBody = z.input<typeof createProductMapperSchema>; | ||
targetRegexFields: z.ZodArray<z.ZodString, "many">; | ||
targetFuzzySearchFields: z.ZodArray<z.ZodString, "many">; | ||
workspaceId: z.ZodString; | ||
@@ -34,2 +35,3 @@ createdAt: z.ZodNumber; | ||
targetRegexFields: string[]; | ||
targetFuzzySearchFields: string[]; | ||
}, { | ||
@@ -48,2 +50,3 @@ id: string; | ||
targetRegexFields: string[]; | ||
targetFuzzySearchFields: string[]; | ||
}>; | ||
@@ -68,2 +71,3 @@ export declare const getProductMapperParamsSchema: z.ZodObject<{ | ||
targetRegexFields: z.ZodArray<z.ZodString, "many">; | ||
targetFuzzySearchFields: z.ZodArray<z.ZodString, "many">; | ||
workspaceId: z.ZodString; | ||
@@ -81,2 +85,3 @@ createdAt: z.ZodNumber; | ||
targetRegexFields: string[]; | ||
targetFuzzySearchFields: string[]; | ||
}, { | ||
@@ -89,2 +94,3 @@ name: string; | ||
targetRegexFields: string[]; | ||
targetFuzzySearchFields: string[]; | ||
}>; | ||
@@ -98,2 +104,3 @@ export declare const updateProductMapperSchema: z.ZodObject<{ | ||
targetRegexFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
targetFuzzySearchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -106,2 +113,3 @@ name?: string | undefined; | ||
targetRegexFields?: string[] | undefined; | ||
targetFuzzySearchFields?: string[] | undefined; | ||
}, { | ||
@@ -114,2 +122,3 @@ name?: string | undefined; | ||
targetRegexFields?: string[] | undefined; | ||
targetFuzzySearchFields?: string[] | undefined; | ||
}>; |
@@ -13,2 +13,3 @@ "use strict"; | ||
targetRegexFields: zod_1.z.array(zod_1.z.string()), | ||
targetFuzzySearchFields: zod_1.z.array(zod_1.z.string()), | ||
workspaceId: zod_1.z.string(), | ||
@@ -15,0 +16,0 @@ createdAt: zod_1.z.number(), |
@@ -14,3 +14,4 @@ import { z } from 'zod'; | ||
urlRegex = "urlRegex", | ||
targetRegex = "targetRegex" | ||
targetRegex = "targetRegex", | ||
targetFuzzySearch = "targetFuzzySearch" | ||
} | ||
@@ -28,2 +29,3 @@ export type UserEvent = z.infer<typeof userEventSchema>; | ||
export declare const userEventSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
key: z.ZodOptional<z.ZodString>; | ||
@@ -49,2 +51,3 @@ type: z.ZodNativeEnum<typeof UserEventType>; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
type: UserEventType; | ||
@@ -70,2 +73,3 @@ createdAt: number; | ||
}, { | ||
id: string; | ||
type: UserEventType; | ||
@@ -102,2 +106,3 @@ createdAt: number; | ||
export declare const createUserEventSchema: z.ZodObject<Omit<{ | ||
id: z.ZodString; | ||
key: z.ZodOptional<z.ZodString>; | ||
@@ -122,3 +127,3 @@ type: z.ZodNativeEnum<typeof UserEventType>; | ||
pageHeight: z.ZodNumber; | ||
}, "createdAt" | "workspaceId" | "productId" | "tags" | "matchedBy" | "userId">, "strip", z.ZodTypeAny, { | ||
}, "id" | "createdAt" | "workspaceId" | "productId" | "tags" | "matchedBy" | "userId">, "strip", z.ZodTypeAny, { | ||
type: UserEventType; | ||
@@ -125,0 +130,0 @@ url: string; |
@@ -21,4 +21,6 @@ "use strict"; | ||
Matches["targetRegex"] = "targetRegex"; | ||
Matches["targetFuzzySearch"] = "targetFuzzySearch"; | ||
})(Matches || (exports.Matches = Matches = {})); | ||
exports.userEventSchema = zod_1.z.object({ | ||
id: zod_1.z.string(), | ||
key: zod_1.z.string().optional(), // key for custom events | ||
@@ -49,2 +51,3 @@ type: zod_1.z.nativeEnum(UserEventType), | ||
exports.createUserEventSchema = exports.userEventSchema.omit({ | ||
id: true, | ||
userId: true, | ||
@@ -51,0 +54,0 @@ productId: true, |
{ | ||
"name": "lz-schema", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
91661
2560