@pfantato/printful-ts
Version:
Typescript SDK to integrate with Printful
250 lines (249 loc) • 8.05 kB
TypeScript
import { z } from 'zod';
export declare const GetProductSizeGuideSearchParams: z.ZodObject<z.objectUtil.extendShape<{
unit: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["inches", "cm"]>, "many">, string, ("inches" | "cm")[]>>;
}, {
locale: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
}>, z.UnknownKeysParam, z.ZodTypeAny, {
locale?: string;
unit?: string;
}, {
locale?: string;
unit?: ("inches" | "cm")[];
}>;
export type GetProductSizeGuideSearchParams = z.infer<typeof GetProductSizeGuideSearchParams>;
export declare const GetProductSizeGuideResponse: z.ZodObject<{
data: z.ZodObject<{
catalog_product_id: z.ZodNumber;
available_sizes: z.ZodArray<z.ZodString, "many">;
size_tables: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["measure_yourself", "product_measure", "international"]>;
unit: z.ZodEnum<["inches", "cm"]>;
description: z.ZodString;
image_url: z.ZodString;
image_description: z.ZodString;
measurements: z.ZodArray<z.ZodObject<{
type_label: z.ZodString;
unit: z.ZodEnum<["inches", "cm"]>;
values: z.ZodArray<z.ZodUnion<[z.ZodObject<{
size: z.ZodString;
value: z.ZodString;
}, "strip", z.ZodTypeAny, {
value?: string;
size?: string;
}, {
value?: string;
size?: string;
}>, z.ZodObject<{
size: z.ZodString;
min_value: z.ZodString;
max_value: z.ZodString;
}, "strip", z.ZodTypeAny, {
size?: string;
min_value?: string;
max_value?: string;
}, {
size?: string;
min_value?: string;
max_value?: string;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}, {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}>, "many">;
}, "strip", z.ZodTypeAny, {
type?: "measure_yourself" | "product_measure" | "international";
description?: string;
image_url?: string;
unit?: "inches" | "cm";
image_description?: string;
measurements?: {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}[];
}, {
type?: "measure_yourself" | "product_measure" | "international";
description?: string;
image_url?: string;
unit?: "inches" | "cm";
image_description?: string;
measurements?: {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
catalog_product_id?: number;
available_sizes?: string[];
size_tables?: {
type?: "measure_yourself" | "product_measure" | "international";
description?: string;
image_url?: string;
unit?: "inches" | "cm";
image_description?: string;
measurements?: {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}[];
}[];
}, {
catalog_product_id?: number;
available_sizes?: string[];
size_tables?: {
type?: "measure_yourself" | "product_measure" | "international";
description?: string;
image_url?: string;
unit?: "inches" | "cm";
image_description?: string;
measurements?: {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}[];
}[];
}>;
_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, {
self?: {
href?: string;
};
product_details?: {
href?: string;
};
}, {
self?: {
href?: string;
};
product_details?: {
href?: string;
};
}>;
}, "strip", z.ZodTypeAny, {
_links?: {
self?: {
href?: string;
};
product_details?: {
href?: string;
};
};
data?: {
catalog_product_id?: number;
available_sizes?: string[];
size_tables?: {
type?: "measure_yourself" | "product_measure" | "international";
description?: string;
image_url?: string;
unit?: "inches" | "cm";
image_description?: string;
measurements?: {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}[];
}[];
};
}, {
_links?: {
self?: {
href?: string;
};
product_details?: {
href?: string;
};
};
data?: {
catalog_product_id?: number;
available_sizes?: string[];
size_tables?: {
type?: "measure_yourself" | "product_measure" | "international";
description?: string;
image_url?: string;
unit?: "inches" | "cm";
image_description?: string;
measurements?: {
values?: ({
value?: string;
size?: string;
} | {
size?: string;
min_value?: string;
max_value?: string;
})[];
type_label?: string;
unit?: "inches" | "cm";
}[];
}[];
};
}>;
export type GetProductSizeGuideResponse = z.infer<typeof GetProductSizeGuideResponse>;