/** * PrestaShop Resource Schemas * Auto-generated from PrestaShop API * Generated on: 2025-10-30T22:31:03.623Z * * This file contains type definitions for all PrestaShop resources * Used for automatic type conversion and field validation */ export interface FieldSchema { type: 'string' | 'number' | 'boolean'; format: string; required: boolean; readOnly: boolean; multilang: boolean; maxSize: number | null; } export interface ResourceSchema { [fieldName: string]: FieldSchema; } export declare const RESOURCE_SCHEMAS: { [resource: string]: ResourceSchema; }; /** * Get schema for a specific resource */ export declare function getResourceSchema(resource: string): ResourceSchema | null; /** * Get all field names for a resource */ export declare function getResourceFields(resource: string): string[]; /** * Get required fields for a resource */ export declare function getRequiredFields(resource: string): string[]; /** * Get writable fields for a resource (not read-only) */ export declare function getWritableFields(resource: string): string[]; /** * Convert field value to correct type based on schema */ export declare function convertFieldValue(value: any, fieldInfo: FieldSchema): any; /** * Convert all fields in an object based on resource schema */ export declare function convertResourceTypes(data: any, resource: string): any; /** * Convert array of resources */ export declare function convertResourceArray(data: any[], resource: string): any[];