ETASCOM CRM V3 - Documentation API
    Preparing search index...
    UpdateRawMaterialSchema: ZodObject<
        {
            code: ZodOptional<ZodString>;
            name: ZodOptional<ZodString>;
            description: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            productType: ZodOptional<
                ZodEnum<
                    [
                        "MATIERE_PREMIERE",
                        "ADHESIF",
                        "CONSUMABLE",
                        "SERVICE",
                        "OUTILLAGE",
                        "EMBALLAGE",
                        "AUTRES",
                    ],
                >,
            >;
            billingPolicy: ZodOptional<
                ZodDefault<ZodOptional<ZodEnum<["ORDERED", "DELIVERED", "MANUAL"]>>>,
            >;
            unitOfMeasureId: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            unitOfPurchaseId: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            unitOfStockId: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            conversionFactor: ZodOptional<ZodNumber>;
            sellingPrice: ZodOptional<ZodNumber>;
            cost: ZodOptional<ZodNumber>;
            costPerUnit: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            salesTaxId: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            density: ZodOptional<ZodNullable<ZodOptional<ZodNumber>>>;
            color: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            thickness: ZodOptional<ZodNullable<ZodOptional<ZodNumber>>>;
            width: ZodOptional<ZodNullable<ZodOptional<ZodNumber>>>;
            length: ZodOptional<ZodNullable<ZodOptional<ZodNumber>>>;
            weight: ZodOptional<ZodNullable<ZodOptional<ZodNumber>>>;
            internalReference: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            barcode: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            minStockLevel: ZodOptional<ZodNumber>;
            maxStockLevel: ZodOptional<ZodNullable<ZodOptional<ZodNumber>>>;
            reorderPoint: ZodOptional<ZodNumber>;
            imageUrl: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            imageKey: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            internalNotes: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            tags: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            isActive: ZodOptional<ZodBoolean>;
            categoryId: ZodOptional<ZodNullable<ZodOptional<ZodString>>>;
            suppliers: ZodOptional<
                ZodDefault<
                    ZodOptional<
                        ZodArray<
                            ZodObject<
                                {
                                    id: ZodOptional<ZodString>;
                                    supplierId: ZodString;
                                    supplierCode: ZodNullable<ZodOptional<(...)>>;
                                    supplierDesignation: ZodNullable<ZodOptional<(...)>>;
                                    priority: ZodDefault<ZodNumber>;
                                    isPreferred: ZodDefault<ZodBoolean>;
                                    isActive: ZodDefault<ZodBoolean>;
                                    notes: ZodNullable<ZodOptional<(...)>>;
                                    moqTiers: ZodDefault<ZodOptional<(...)>>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    id?: string;
                                    supplierId: string;
                                    supplierCode?: string
                                    | null;
                                    supplierDesignation?: string | null;
                                    priority: number;
                                    isPreferred: boolean;
                                    isActive: boolean;
                                    notes?: string | null;
                                    moqTiers: {
                                        id?: ...;
                                        minQuantity: ...;
                                        unitPrice: ...;
                                        leadTime?: ...;
                                    }[];
                                },
                                {
                                    id?: string;
                                    supplierId: string;
                                    supplierCode?: string
                                    | null;
                                    supplierDesignation?: string | null;
                                    priority?: number;
                                    isPreferred?: boolean;
                                    isActive?: boolean;
                                    notes?: string | null;
                                    moqTiers?: (...)[];
                                },
                            >,
                            "many",
                        >,
                    >,
                >,
            >;
        } & { id: ZodString },
        "strip",
        ZodTypeAny,
        {
            code?: string;
            name?: string;
            description?: string | null;
            productType?:
                | "MATIERE_PREMIERE"
                | "ADHESIF"
                | "CONSUMABLE"
                | "SERVICE"
                | "OUTILLAGE"
                | "EMBALLAGE"
                | "AUTRES";
            billingPolicy?: "DELIVERED"
            | "ORDERED"
            | "MANUAL";
            unitOfMeasureId?: string | null;
            unitOfPurchaseId?: string | null;
            unitOfStockId?: string | null;
            conversionFactor?: number;
            sellingPrice?: number;
            cost?: number;
            costPerUnit?: string | null;
            salesTaxId?: string | null;
            density?: number | null;
            color?: string | null;
            thickness?: number | null;
            width?: number | null;
            length?: number | null;
            weight?: number | null;
            internalReference?: string | null;
            barcode?: string | null;
            minStockLevel?: number;
            maxStockLevel?: number | null;
            reorderPoint?: number;
            imageUrl?: string | null;
            imageKey?: string | null;
            internalNotes?: string | null;
            tags?: string | null;
            isActive?: boolean;
            categoryId?: string | null;
            suppliers?: {
                id?: string;
                supplierId: string;
                supplierCode?: string | null;
                supplierDesignation?: string | null;
                priority: number;
                isPreferred: boolean;
                isActive: boolean;
                notes?: string | null;
                moqTiers: {
                    id?: string;
                    minQuantity: number;
                    unitPrice: number;
                    leadTime?: number | null;
                }[];
            }[];
            id: string;
        },
        {
            code?: string;
            name?: string;
            description?: string
            | null;
            productType?:
                | "MATIERE_PREMIERE"
                | "ADHESIF"
                | "CONSUMABLE"
                | "SERVICE"
                | "OUTILLAGE"
                | "EMBALLAGE"
                | "AUTRES";
            billingPolicy?: "DELIVERED"
            | "ORDERED"
            | "MANUAL";
            unitOfMeasureId?: string | null;
            unitOfPurchaseId?: string | null;
            unitOfStockId?: string | null;
            conversionFactor?: number;
            sellingPrice?: number;
            cost?: number;
            costPerUnit?: string | null;
            salesTaxId?: string | null;
            density?: number | null;
            color?: string | null;
            thickness?: number | null;
            width?: number | null;
            length?: number | null;
            weight?: number | null;
            internalReference?: string | null;
            barcode?: string | null;
            minStockLevel?: number;
            maxStockLevel?: number | null;
            reorderPoint?: number;
            imageUrl?: string | null;
            imageKey?: string | null;
            internalNotes?: string | null;
            tags?: string | null;
            isActive?: boolean;
            categoryId?: string | null;
            suppliers?: {
                id?: string;
                supplierId: string;
                supplierCode?: string | null;
                supplierDesignation?: string | null;
                priority?: number;
                isPreferred?: boolean;
                isActive?: boolean;
                notes?: string | null;
                moqTiers?: {
                    id?: string;
                    minQuantity: number;
                    unitPrice: number;
                    leadTime?: number | null;
                }[];
            }[];
            id: string;
        },
    > = ...