@pfantato/printful-ts
Version:
Typescript SDK to integrate with Printful
162 lines (161 loc) • 4.77 kB
TypeScript
import { z } from 'zod';
export declare const GetProductBlankMockupsSearchParams: z.ZodObject<z.objectUtil.extendShape<{
mockup_style_ids: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, string, number[]>>;
colors: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string, string[]>>;
placement: z.ZodOptional<z.ZodString>;
}, {
locale: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
}>, z.UnknownKeysParam, z.ZodTypeAny, {
locale?: string;
placement?: string;
colors?: string;
mockup_style_ids?: string;
}, {
locale?: string;
placement?: string;
colors?: string[];
mockup_style_ids?: number[];
}>;
export type GetProductBlankMockupsSearchParams = z.infer<typeof GetProductBlankMockupsSearchParams>;
export declare const GetProductBlankMockupsResponse: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
catalog_variant_id: z.ZodNumber;
color: z.ZodEffects<z.ZodString, string, string>;
primary_hex_color: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
secondary_hex_color: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
images: z.ZodArray<z.ZodObject<{
placement: z.ZodString;
background_image: z.ZodNullable<z.ZodString>;
background_color: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
image_url: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
image_url?: string;
placement?: string;
background_color?: string;
background_image?: string;
}, {
image_url?: string;
placement?: string;
background_color?: string;
background_image?: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
catalog_variant_id?: number;
color?: string;
primary_hex_color?: string;
secondary_hex_color?: string;
images?: {
image_url?: string;
placement?: string;
background_color?: string;
background_image?: string;
}[];
}, {
catalog_variant_id?: number;
color?: string;
primary_hex_color?: string;
secondary_hex_color?: string;
images?: {
image_url?: string;
placement?: string;
background_color?: string;
background_image?: string;
}[];
}>, "many">;
paging: z.ZodObject<{
total: z.ZodNumber;
offset: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
total?: number;
offset?: number;
limit?: number;
}, {
total?: number;
offset?: number;
limit?: number;
}>;
_links: z.ZodObject<{
_self: z.ZodObject<{
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
href?: string;
}, {
href?: string;
}>;
product_details: z.ZodObject<{
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
href?: string;
}, {
href?: string;
}>;
}, "strip", z.ZodTypeAny, {
product_details?: {
href?: string;
};
_self?: {
href?: string;
};
}, {
product_details?: {
href?: string;
};
_self?: {
href?: string;
};
}>;
}, "strip", z.ZodTypeAny, {
_links?: {
product_details?: {
href?: string;
};
_self?: {
href?: string;
};
};
data?: {
catalog_variant_id?: number;
color?: string;
primary_hex_color?: string;
secondary_hex_color?: string;
images?: {
image_url?: string;
placement?: string;
background_color?: string;
background_image?: string;
}[];
}[];
paging?: {
total?: number;
offset?: number;
limit?: number;
};
}, {
_links?: {
product_details?: {
href?: string;
};
_self?: {
href?: string;
};
};
data?: {
catalog_variant_id?: number;
color?: string;
primary_hex_color?: string;
secondary_hex_color?: string;
images?: {
image_url?: string;
placement?: string;
background_color?: string;
background_image?: string;
}[];
}[];
paging?: {
total?: number;
offset?: number;
limit?: number;
};
}>;
export type GetProductBlankMockupsResponse = z.infer<typeof GetProductBlankMockupsResponse>;