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