UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

432 lines (431 loc) 13.8 kB
import { z } from 'zod'; export declare const GetStoreStatisticsSearchParams: z.ZodObject<{ date_from: z.ZodString; date_to: z.ZodString; report_types: z.ZodEffects<z.ZodArray<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"]>, "many">, string, ("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")[]>; currency: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; }, "strip", z.ZodTypeAny, { currency?: string; date_from?: string; date_to?: string; report_types?: string; }, { currency?: string; date_from?: string; date_to?: string; report_types?: ("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 GetStoreStatisticsSearchParams = z.infer<typeof GetStoreStatisticsSearchParams>; export declare const GetStoreStatisticsResponse: z.ZodObject<{ data: 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; }; }>; }, "strip", z.ZodTypeAny, { data?: { 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; }; }; }, { data?: { 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 GetStoreStatisticsResponse = z.infer<typeof GetStoreStatisticsResponse>;