import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; /** * The current status of the product (active or archived). */ export declare const ProductStatus: { readonly Active: "active"; readonly Archived: "archived"; }; /** * The current status of the product (active or archived). */ export type ProductStatus = ClosedEnum; export type Images = { /** * A unique identifier for an object. */ id?: string | null | undefined; /** * The URL of an image of the product. */ url?: string | null | undefined; }; export type EcommerceProductOptions = { /** * A unique identifier for the option of the product. */ id?: string | null | undefined; /** * The name of the option for the product. */ name?: string | null | undefined; values?: Array | undefined; }; export type EcommerceProductVariantsOptions = { /** * A unique identifier for the option of the variant. */ id?: string | null | undefined; /** * The name of the option for the variant. */ name?: string | null | undefined; /** * The value of the option for the variant. */ value?: string | null | undefined; }; export type EcommerceProductImages = { /** * A unique identifier for an object. */ id?: string | null | undefined; /** * The URL of an image of the variant. */ url?: string | null | undefined; }; export type Variants = { /** * A unique identifier for the variant of the product. */ id?: string | null | undefined; /** * The name for the variant, used for displaying to customers. */ name?: string | null | undefined; /** * The price of the variant. */ price?: string | null | undefined; /** * The stock keeping unit of the variant. */ sku?: string | null | undefined; /** * The quantity of the variant in stock. */ inventoryQuantity?: string | null | undefined; /** * The weight of the variant. */ weight?: string | null | undefined; /** * The unit of measurement for the weight of the variant. */ weightUnit?: string | null | undefined; options?: Array | undefined; images?: Array | undefined; }; export type EcommerceProductCategories = { /** * A unique identifier for an object. */ id?: string | null | undefined; /** * The name of the category. */ name?: string | null | undefined; }; export type EcommerceProduct = { /** * A unique identifier for an object. */ id: string; /** * The name of the product as it should be displayed to customers. */ name?: string | null | undefined; /** * A detailed description of the product. */ description?: string | null | undefined; /** * The current status of the product (active or archived). */ status?: ProductStatus | null | undefined; /** * The price of the product. */ price?: string | null | undefined; /** * The stock keeping unit of the product. */ sku?: string | null | undefined; /** * The quantity of the product in stock. */ inventoryQuantity?: string | null | undefined; /** * An array of image URLs for the product. */ images?: Array | null | undefined; /** * The weight of the product. */ weight?: string | null | undefined; /** * The unit of measurement for the weight of the product. */ weightUnit?: string | null | undefined; /** * An array of options for the product. */ options?: Array | undefined; variants?: Array | undefined; /** * An array of tags for the product, used for organization and searching. */ tags?: Array | undefined; /** * An array of categories for the product, used for organization and searching. */ categories?: Array | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; }; /** @internal */ export declare const ProductStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ProductStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ProductStatus$ { /** @deprecated use `ProductStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Archived: "archived"; }>; /** @deprecated use `ProductStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Archived: "archived"; }>; } /** @internal */ export declare const Images$inboundSchema: z.ZodType; /** @internal */ export type Images$Outbound = { id?: string | null | undefined; url?: string | null | undefined; }; /** @internal */ export declare const Images$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Images$ { /** @deprecated use `Images$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Images$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Images$Outbound` instead. */ type Outbound = Images$Outbound; } export declare function imagesToJSON(images: Images): string; export declare function imagesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EcommerceProductOptions$inboundSchema: z.ZodType; /** @internal */ export type EcommerceProductOptions$Outbound = { id?: string | null | undefined; name?: string | null | undefined; values?: Array | undefined; }; /** @internal */ export declare const EcommerceProductOptions$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceProductOptions$ { /** @deprecated use `EcommerceProductOptions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceProductOptions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceProductOptions$Outbound` instead. */ type Outbound = EcommerceProductOptions$Outbound; } export declare function ecommerceProductOptionsToJSON(ecommerceProductOptions: EcommerceProductOptions): string; export declare function ecommerceProductOptionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EcommerceProductVariantsOptions$inboundSchema: z.ZodType; /** @internal */ export type EcommerceProductVariantsOptions$Outbound = { id?: string | null | undefined; name?: string | null | undefined; value?: string | null | undefined; }; /** @internal */ export declare const EcommerceProductVariantsOptions$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceProductVariantsOptions$ { /** @deprecated use `EcommerceProductVariantsOptions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceProductVariantsOptions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceProductVariantsOptions$Outbound` instead. */ type Outbound = EcommerceProductVariantsOptions$Outbound; } export declare function ecommerceProductVariantsOptionsToJSON(ecommerceProductVariantsOptions: EcommerceProductVariantsOptions): string; export declare function ecommerceProductVariantsOptionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EcommerceProductImages$inboundSchema: z.ZodType; /** @internal */ export type EcommerceProductImages$Outbound = { id?: string | null | undefined; url?: string | null | undefined; }; /** @internal */ export declare const EcommerceProductImages$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceProductImages$ { /** @deprecated use `EcommerceProductImages$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceProductImages$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceProductImages$Outbound` instead. */ type Outbound = EcommerceProductImages$Outbound; } export declare function ecommerceProductImagesToJSON(ecommerceProductImages: EcommerceProductImages): string; export declare function ecommerceProductImagesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Variants$inboundSchema: z.ZodType; /** @internal */ export type Variants$Outbound = { id?: string | null | undefined; name?: string | null | undefined; price?: string | null | undefined; sku?: string | null | undefined; inventory_quantity?: string | null | undefined; weight?: string | null | undefined; weight_unit?: string | null | undefined; options?: Array | undefined; images?: Array | undefined; }; /** @internal */ export declare const Variants$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Variants$ { /** @deprecated use `Variants$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Variants$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Variants$Outbound` instead. */ type Outbound = Variants$Outbound; } export declare function variantsToJSON(variants: Variants): string; export declare function variantsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EcommerceProductCategories$inboundSchema: z.ZodType; /** @internal */ export type EcommerceProductCategories$Outbound = { id?: string | null | undefined; name?: string | null | undefined; }; /** @internal */ export declare const EcommerceProductCategories$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceProductCategories$ { /** @deprecated use `EcommerceProductCategories$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceProductCategories$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceProductCategories$Outbound` instead. */ type Outbound = EcommerceProductCategories$Outbound; } export declare function ecommerceProductCategoriesToJSON(ecommerceProductCategories: EcommerceProductCategories): string; export declare function ecommerceProductCategoriesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EcommerceProduct$inboundSchema: z.ZodType; /** @internal */ export type EcommerceProduct$Outbound = { id: string; name?: string | null | undefined; description?: string | null | undefined; status?: string | null | undefined; price?: string | null | undefined; sku?: string | null | undefined; inventory_quantity?: string | null | undefined; images?: Array | null | undefined; weight?: string | null | undefined; weight_unit?: string | null | undefined; options?: Array | undefined; variants?: Array | undefined; tags?: Array | undefined; categories?: Array | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; }; /** @internal */ export declare const EcommerceProduct$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceProduct$ { /** @deprecated use `EcommerceProduct$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceProduct$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceProduct$Outbound` instead. */ type Outbound = EcommerceProduct$Outbound; } export declare function ecommerceProductToJSON(ecommerceProduct: EcommerceProduct): string; export declare function ecommerceProductFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=ecommerceproduct.d.ts.map