@pfantato/printful-ts
Version:
Typescript SDK to integrate with Printful
103 lines (102 loc) • 3.82 kB
TypeScript
import { z } from 'zod';
export declare const CalculationStatus: z.ZodEnum<["done", "calculating", "failed"]>;
export type CalculationStatus = z.infer<typeof CalculationStatus>;
export declare const Costs: z.ZodObject<{
calculation_status: z.ZodEnum<["done", "calculating", "failed"]>;
currency: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
subtotal: z.ZodNullable<z.ZodString>;
discount: z.ZodNullable<z.ZodString>;
shipping: z.ZodNullable<z.ZodString>;
digitization: z.ZodNullable<z.ZodString>;
additional_fee: z.ZodNullable<z.ZodString>;
fulfillment_fee: z.ZodNullable<z.ZodString>;
total: z.ZodNullable<z.ZodString>;
retail_delivery_fee: z.ZodNullable<z.ZodString>;
vat: z.ZodNullable<z.ZodString>;
tax: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
total?: string;
currency?: string;
calculation_status?: "done" | "calculating" | "failed";
subtotal?: string;
discount?: string;
shipping?: string;
digitization?: string;
additional_fee?: string;
fulfillment_fee?: string;
retail_delivery_fee?: string;
vat?: string;
tax?: string;
}, {
total?: string;
currency?: string;
calculation_status?: "done" | "calculating" | "failed";
subtotal?: string;
discount?: string;
shipping?: string;
digitization?: string;
additional_fee?: string;
fulfillment_fee?: string;
retail_delivery_fee?: string;
vat?: string;
tax?: string;
}>;
export type Costs = z.infer<typeof Costs>;
export declare const BaseRetailCosts: z.ZodObject<Pick<{
calculation_status: z.ZodEnum<["done", "calculating", "failed"]>;
currency: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
subtotal: z.ZodNullable<z.ZodString>;
discount: z.ZodNullable<z.ZodString>;
shipping: z.ZodNullable<z.ZodString>;
digitization: z.ZodNullable<z.ZodString>;
additional_fee: z.ZodNullable<z.ZodString>;
fulfillment_fee: z.ZodNullable<z.ZodString>;
total: z.ZodNullable<z.ZodString>;
retail_delivery_fee: z.ZodNullable<z.ZodString>;
vat: z.ZodNullable<z.ZodString>;
tax: z.ZodNullable<z.ZodString>;
}, "currency" | "discount" | "shipping" | "tax">, "strip", z.ZodTypeAny, {
currency?: string;
discount?: string;
shipping?: string;
tax?: string;
}, {
currency?: string;
discount?: string;
shipping?: string;
tax?: string;
}>;
export type BaseRetailCosts = z.infer<typeof BaseRetailCosts>;
export declare const RetailCosts: z.ZodObject<Pick<{
calculation_status: z.ZodEnum<["done", "calculating", "failed"]>;
currency: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
subtotal: z.ZodNullable<z.ZodString>;
discount: z.ZodNullable<z.ZodString>;
shipping: z.ZodNullable<z.ZodString>;
digitization: z.ZodNullable<z.ZodString>;
additional_fee: z.ZodNullable<z.ZodString>;
fulfillment_fee: z.ZodNullable<z.ZodString>;
total: z.ZodNullable<z.ZodString>;
retail_delivery_fee: z.ZodNullable<z.ZodString>;
vat: z.ZodNullable<z.ZodString>;
tax: z.ZodNullable<z.ZodString>;
}, "total" | "currency" | "calculation_status" | "subtotal" | "discount" | "shipping" | "vat" | "tax">, "strip", z.ZodTypeAny, {
total?: string;
currency?: string;
calculation_status?: "done" | "calculating" | "failed";
subtotal?: string;
discount?: string;
shipping?: string;
vat?: string;
tax?: string;
}, {
total?: string;
currency?: string;
calculation_status?: "done" | "calculating" | "failed";
subtotal?: string;
discount?: string;
shipping?: string;
vat?: string;
tax?: string;
}>;
export type RetailCosts = z.infer<typeof RetailCosts>;