UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

115 lines (114 loc) 3.63 kB
import { z } from 'zod'; export declare const ShippingRateShipmentItems: z.ZodObject<{ catalog_variant_id: z.ZodNumber; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity?: number; catalog_variant_id?: number; }, { quantity?: number; catalog_variant_id?: number; }>; export type ShippingRateShipmentItems = z.infer<typeof ShippingRateShipmentItems>; export declare const ShippingRateShipment: z.ZodObject<{ departure_country: z.ZodNullable<z.ZodString>; shipment_items: z.ZodArray<z.ZodObject<{ catalog_variant_id: z.ZodNumber; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity?: number; catalog_variant_id?: number; }, { quantity?: number; catalog_variant_id?: number; }>, "many">; custom_fees_possible: z.ZodBoolean; }, "strip", z.ZodTypeAny, { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }, { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }>; export type ShippingRateShipment = z.infer<typeof ShippingRateShipment>; export declare const ShippingRateCalculation: z.ZodObject<{ shipping: z.ZodString; shipping_method_name: z.ZodString; rate: z.ZodString; currency: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; min_delivery_days: z.ZodOptional<z.ZodNumber>; max_delivery_days: z.ZodOptional<z.ZodNumber>; min_delivery_date: z.ZodOptional<z.ZodString>; max_delivery_date: z.ZodOptional<z.ZodString>; shipments: z.ZodArray<z.ZodObject<{ departure_country: z.ZodNullable<z.ZodString>; shipment_items: z.ZodArray<z.ZodObject<{ catalog_variant_id: z.ZodNumber; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity?: number; catalog_variant_id?: number; }, { quantity?: number; catalog_variant_id?: number; }>, "many">; custom_fees_possible: z.ZodBoolean; }, "strip", z.ZodTypeAny, { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }, { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }>, "many">; }, "strip", z.ZodTypeAny, { currency?: string; shipping?: string; shipments?: { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }[]; shipping_method_name?: string; rate?: string; min_delivery_days?: number; max_delivery_days?: number; min_delivery_date?: string; max_delivery_date?: string; }, { currency?: string; shipping?: string; shipments?: { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }[]; shipping_method_name?: string; rate?: string; min_delivery_days?: number; max_delivery_days?: number; min_delivery_date?: string; max_delivery_date?: string; }>; export type ShippingRateCalculation = z.infer<typeof ShippingRateCalculation>;