UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

423 lines (422 loc) 11.9 kB
import { z } from 'zod'; export declare const ReportType: z.ZodEnum<["sales_and_costs", "profit", "average_fulfillment_type", "costs_by_amount", "costs_by_product", "costs_by_variant", "printful_costs", "sales_and_costs_summary", "total_paid_orders"]>; export type ReportType = z.infer<typeof ReportType>; export declare const SalesAndCostsValue: z.ZodObject<{ date: z.ZodString; sales: z.ZodString; fulfillment: z.ZodString; profit: z.ZodString; sales_discount: z.ZodString; fulfillment_discount: z.ZodString; sales_shipping: z.ZodString; fulfillment_shipping: z.ZodString; }, "strip", z.ZodTypeAny, { date?: string; profit?: string; sales?: string; fulfillment?: string; sales_discount?: string; fulfillment_discount?: string; sales_shipping?: string; fulfillment_shipping?: string; }, { date?: string; profit?: string; sales?: string; fulfillment?: string; sales_discount?: string; fulfillment_discount?: string; sales_shipping?: string; fulfillment_shipping?: string; }>; export type SalesAndCostsValue = z.infer<typeof SalesAndCostsValue>; export declare const SalesAndCostsSummaryValue: z.ZodObject<{ date: z.ZodString; order_count: z.ZodNumber; costs: z.ZodString; profit: z.ZodString; }, "strip", z.ZodTypeAny, { date?: string; costs?: string; profit?: string; order_count?: number; }, { date?: string; costs?: string; profit?: string; order_count?: number; }>; export type SalesAndCostsSummaryValue = z.infer<typeof SalesAndCostsSummaryValue>; export declare const RelativeCosts: z.ZodObject<{ value: z.ZodString; relative_difference: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string; relative_difference?: string; }, { value?: string; relative_difference?: string; }>; export type RelativeCosts = z.infer<typeof RelativeCosts>; export declare const CostsByAmountValue: z.ZodObject<{ date: z.ZodString; product_amount: z.ZodString; digitization: z.ZodString; branding: z.ZodString; vat: z.ZodString; sales_tax: z.ZodString; shipping: z.ZodString; discount: z.ZodString; total: z.ZodString; }, "strip", z.ZodTypeAny, { date?: string; total?: string; discount?: string; shipping?: string; digitization?: string; vat?: string; product_amount?: string; branding?: string; sales_tax?: string; }, { date?: string; total?: string; discount?: string; shipping?: string; digitization?: string; vat?: string; product_amount?: string; branding?: string; sales_tax?: string; }>; export type CostsByAmountValue = z.infer<typeof CostsByAmountValue>; export declare const CostsByProductValue: z.ZodObject<{ product_id: z.ZodNumber; product_name: z.ZodString; fulfillment: z.ZodString; sales: z.ZodString; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; product_name?: string; }, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; product_name?: string; }>; export type CostsByProductValue = z.infer<typeof CostsByProductValue>; export declare const CostsByVariantValue: z.ZodObject<z.objectUtil.extendShape<Omit<{ product_id: z.ZodNumber; product_name: z.ZodString; fulfillment: z.ZodString; sales: z.ZodString; quantity: z.ZodNumber; }, "product_name">, { variant_id: z.ZodNumber; variant_name: z.ZodString; }>, "strip", z.ZodTypeAny, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; variant_id?: number; variant_name?: string; }, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; variant_id?: number; variant_name?: string; }>; export type CostsByVariantValue = z.infer<typeof CostsByVariantValue>; export declare const StoreStatistics: z.ZodObject<{ store_id: z.ZodNumber; currency: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; sales_and_costs: z.ZodArray<z.ZodObject<{ date: z.ZodString; sales: z.ZodString; fulfillment: z.ZodString; profit: z.ZodString; sales_discount: z.ZodString; fulfillment_discount: z.ZodString; sales_shipping: z.ZodString; fulfillment_shipping: z.ZodString; }, "strip", z.ZodTypeAny, { date?: string; profit?: string; sales?: string; fulfillment?: string; sales_discount?: string; fulfillment_discount?: string; sales_shipping?: string; fulfillment_shipping?: string; }, { date?: string; profit?: string; sales?: string; fulfillment?: string; sales_discount?: string; fulfillment_discount?: string; sales_shipping?: string; fulfillment_shipping?: string; }>, "many">; sales_and_costs_summary: z.ZodArray<z.ZodObject<{ date: z.ZodString; order_count: z.ZodNumber; costs: z.ZodString; profit: z.ZodString; }, "strip", z.ZodTypeAny, { date?: string; costs?: string; profit?: string; order_count?: number; }, { date?: string; costs?: string; profit?: string; order_count?: number; }>, "many">; printful_costs: z.ZodObject<{ value: z.ZodString; relative_difference: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string; relative_difference?: string; }, { value?: string; relative_difference?: string; }>; profit: z.ZodObject<{ value: z.ZodString; relative_difference: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string; relative_difference?: string; }, { value?: string; relative_difference?: string; }>; total_paid_orders: z.ZodObject<{ value: z.ZodString; relative_difference: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string; relative_difference?: string; }, { value?: string; relative_difference?: string; }>; costs_by_amount: z.ZodArray<z.ZodObject<{ date: z.ZodString; product_amount: z.ZodString; digitization: z.ZodString; branding: z.ZodString; vat: z.ZodString; sales_tax: z.ZodString; shipping: z.ZodString; discount: z.ZodString; total: z.ZodString; }, "strip", z.ZodTypeAny, { date?: string; total?: string; discount?: string; shipping?: string; digitization?: string; vat?: string; product_amount?: string; branding?: string; sales_tax?: string; }, { date?: string; total?: string; discount?: string; shipping?: string; digitization?: string; vat?: string; product_amount?: string; branding?: string; sales_tax?: string; }>, "many">; costs_by_product: z.ZodArray<z.ZodObject<{ product_id: z.ZodNumber; product_name: z.ZodString; fulfillment: z.ZodString; sales: z.ZodString; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; product_name?: string; }, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; product_name?: string; }>, "many">; costs_by_variant: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{ product_id: z.ZodNumber; product_name: z.ZodString; fulfillment: z.ZodString; sales: z.ZodString; quantity: z.ZodNumber; }, "product_name">, { variant_id: z.ZodNumber; variant_name: z.ZodString; }>, "strip", z.ZodTypeAny, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; variant_id?: number; variant_name?: string; }, { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; variant_id?: number; variant_name?: string; }>, "many">; average_fulfillment_time: z.ZodObject<{ value: z.ZodString; relative_difference: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string; relative_difference?: string; }, { value?: string; relative_difference?: string; }>; }, "strip", z.ZodTypeAny, { store_id?: number; currency?: string; sales_and_costs?: { date?: string; profit?: string; sales?: string; fulfillment?: string; sales_discount?: string; fulfillment_discount?: string; sales_shipping?: string; fulfillment_shipping?: string; }[]; profit?: { value?: string; relative_difference?: string; }; costs_by_amount?: { date?: string; total?: string; discount?: string; shipping?: string; digitization?: string; vat?: string; product_amount?: string; branding?: string; sales_tax?: string; }[]; costs_by_product?: { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; product_name?: string; }[]; costs_by_variant?: { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; variant_id?: number; variant_name?: string; }[]; printful_costs?: { value?: string; relative_difference?: string; }; sales_and_costs_summary?: { date?: string; costs?: string; profit?: string; order_count?: number; }[]; total_paid_orders?: { value?: string; relative_difference?: string; }; average_fulfillment_time?: { value?: string; relative_difference?: string; }; }, { store_id?: number; currency?: string; sales_and_costs?: { date?: string; profit?: string; sales?: string; fulfillment?: string; sales_discount?: string; fulfillment_discount?: string; sales_shipping?: string; fulfillment_shipping?: string; }[]; profit?: { value?: string; relative_difference?: string; }; costs_by_amount?: { date?: string; total?: string; discount?: string; shipping?: string; digitization?: string; vat?: string; product_amount?: string; branding?: string; sales_tax?: string; }[]; costs_by_product?: { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; product_name?: string; }[]; costs_by_variant?: { quantity?: number; sales?: string; fulfillment?: string; product_id?: number; variant_id?: number; variant_name?: string; }[]; printful_costs?: { value?: string; relative_difference?: string; }; sales_and_costs_summary?: { date?: string; costs?: string; profit?: string; order_count?: number; }[]; total_paid_orders?: { value?: string; relative_difference?: string; }; average_fulfillment_time?: { value?: string; relative_difference?: string; }; }>; export type StoreStatistics = z.infer<typeof StoreStatistics>;