UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

19 lines (18 loc) 731 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VariantImages = exports.VariantImage = void 0; const zod_1 = require("zod"); const common_1 = require("@printful-ts/schemas/common"); exports.VariantImage = zod_1.z.object({ placement: zod_1.z.string(), background_image: zod_1.z.string().nullable(), background_color: common_1.ColorValue.nullable(), image_url: zod_1.z.string().url().nullable(), }); exports.VariantImages = zod_1.z.object({ catalog_variant_id: zod_1.z.number(), color: common_1.ColorValue, primary_hex_color: common_1.ColorValue.nullable(), secondary_hex_color: common_1.ColorValue.nullable(), images: zod_1.z.array(exports.VariantImage), });