Skip to content

Commit 0df32cf

Browse files
committed
feat(js-api-client): Add Meta to the Zod Schema
1 parent 6902903 commit 0df32cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@crystallize/js-api-client",
33
"license": "MIT",
4-
"version": "1.5.1",
4+
"version": "1.5.2",
55
"author": "Crystallize <[email protected]> (https://crystallize.com)",
66
"contributors": [
77
"Sébastien Morel <[email protected]>"

src/types/address.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const addressInputRequest = z
1616
country: z.string().optional(),
1717
phone: z.string().optional(),
1818
email: z.string().optional(),
19+
meta: z.array(z.object({ key: z.string(), value: z.string().optional() })).optional(),
1920
})
2021
.strict();
2122
export type AddressInputRequest = z.infer<typeof addressInputRequest>;

0 commit comments

Comments
 (0)