UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

22 lines (21 loc) 835 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MockupStyles = exports.MockupStyle = void 0; const zod_1 = require("zod"); const technique_schema_1 = require("./technique.schema"); exports.MockupStyle = zod_1.z.object({ id: zod_1.z.number(), category_name: zod_1.z.string(), view_name: zod_1.z.string(), restricted_to_variants: zod_1.z.array(zod_1.z.array(zod_1.z.any()).nullable()).nullable(), }); exports.MockupStyles = zod_1.z.object({ placement: zod_1.z.string(), display_name: zod_1.z.string(), technique: technique_schema_1.TechniqueKey, print_area_width: zod_1.z.number(), print_area_height: zod_1.z.number(), print_area_type: zod_1.z.enum(['simple', 'advanced']), dpi: zod_1.z.number(), mockup_styles: zod_1.z.array(exports.MockupStyle), });