ETASCOM CRM V3 - Documentation API
    Preparing search index...
    SalesOrderResponseSchema: ZodObject<
        {
            id: ZodString;
            number: ZodString;
            clientId: ZodNullable<ZodString>;
            leadId: ZodNullable<ZodString>;
            orderDate: ZodString;
            status: ZodEnum<
                [
                    "DRAFT",
                    "PENDING_CONFIRMATION",
                    "CONFIRMED",
                    "IN_PRODUCTION",
                    "READY_TO_SHIP",
                    "SHIPPED",
                    "DELIVERED",
                    "COMPLETED",
                    "CANCELLED",
                    "PARTIAL",
                ],
            >;
            clientOrderNumber: ZodNullable<ZodString>;
            totalAmount: ZodNumber;
            currencyId: ZodNullable<ZodString>;
            salesOfferId: ZodNullable<ZodString>;
            notes: ZodNullable<ZodString>;
            requestedDepartureDate: ZodOptional<ZodNullable<ZodString>>;
            confirmedDepartureDate: ZodOptional<ZodNullable<ZodString>>;
            createdAt: ZodString;
            updatedAt: ZodString;
            client: ZodNullable<
                ZodObject<
                    {
                        id: ZodString;
                        name: ZodString;
                        code: ZodString;
                        email: ZodNullable<ZodString>;
                        phone: ZodNullable<ZodString>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        id: string;
                        name: string;
                        code: string;
                        email: string
                        | null;
                        phone: string | null;
                    },
                    {
                        id: string;
                        name: string;
                        code: string;
                        email: string
                        | null;
                        phone: string | null;
                    },
                >,
            >;
            lead: ZodNullable<
                ZodObject<
                    {
                        id: ZodString;
                        name: ZodString;
                        code: ZodString;
                        email: ZodNullable<ZodString>;
                        phone: ZodNullable<ZodString>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        id: string;
                        name: string;
                        code: string;
                        email: string
                        | null;
                        phone: string | null;
                    },
                    {
                        id: string;
                        name: string;
                        code: string;
                        email: string
                        | null;
                        phone: string | null;
                    },
                >,
            >;
            currency: ZodNullable<
                ZodObject<
                    {
                        id: ZodString;
                        code: ZodString;
                        name: ZodString;
                        symbol: ZodString;
                    },
                    "strip",
                    ZodTypeAny,
                    { id: string; code: string; name: string; symbol: string },
                    { id: string; code: string; name: string; symbol: string },
                >,
            >;
            salesOffer: ZodNullable<
                ZodObject<
                    {
                        id: ZodString;
                        number: ZodString;
                        projectName: ZodNullable<ZodString>;
                    },
                    "strip",
                    ZodTypeAny,
                    { id: string; number: string; projectName: string
                    | null },
                    { id: string; number: string; projectName: string | null },
                >,
            >;
            lines: ZodArray<
                ZodObject<
                    {
                        id: ZodString;
                        finishedProductId: ZodNullable<ZodString>;
                        description: ZodString;
                        quantity: ZodNumber;
                        unitPrice: ZodNumber;
                        totalPrice: ZodNumber;
                        taxId: ZodNullable<ZodString>;
                        taxRate: ZodNumber;
                        taxAmount: ZodNumber;
                        deliveredQuantity: ZodNumber;
                        remainingQuantity: ZodNumber;
                        notes: ZodNullable<ZodString>;
                        sequence: ZodNumber;
                        clientProductCode: ZodNullable<ZodString>;
                        requestedDepartureDate: ZodNullable<ZodString>;
                        confirmedDepartureDate: ZodNullable<ZodString>;
                        unitOfMeasureId: ZodNullable<ZodString>;
                        unitOfPriceId: ZodNullable<ZodString>;
                        salesMultiple: ZodNullable<ZodNumber>;
                        minimumQuantity: ZodNullable<ZodNumber>;
                        finishedProduct: ZodNullable<
                            ZodObject<
                                { id: ZodString; name: ZodString; code: ZodString },
                                "strip",
                                ZodTypeAny,
                                { id: string; name: string; code: string },
                                { id: string; name: string; code: string },
                            >,
                        >;
                        tax: ZodNullable<
                            ZodObject<
                                { id: ZodString; name: ZodString; rate: ZodNumber },
                                "strip",
                                ZodTypeAny,
                                { id: string; name: string; rate: number },
                                { id: string; name: string; rate: number },
                            >,
                        >;
                        unitOfMeasure: ZodNullable<
                            ZodObject<
                                {
                                    id: ZodString;
                                    code: ZodString;
                                    name: ZodString;
                                    symbol: ZodNullable<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                { id: string; code: string; name: string; symbol: string
                                | null },
                                { id: string; code: string; name: string; symbol: string | null },
                            >,
                        >;
                        unitOfPrice: ZodNullable<
                            ZodObject<
                                {
                                    id: ZodString;
                                    code: ZodString;
                                    name: ZodString;
                                    symbol: ZodNullable<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                { id: string; code: string; name: string; symbol: string
                                | null },
                                { id: string; code: string; name: string; symbol: string | null },
                            >,
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        id: string;
                        finishedProductId: string
                        | null;
                        description: string;
                        quantity: number;
                        unitPrice: number;
                        totalPrice: number;
                        taxId: string | null;
                        taxRate: number;
                        taxAmount: number;
                        deliveredQuantity: number;
                        remainingQuantity: number;
                        notes: string | null;
                        sequence: number;
                        clientProductCode: string | null;
                        requestedDepartureDate: string | null;
                        confirmedDepartureDate: string | null;
                        unitOfMeasureId: string | null;
                        unitOfPriceId: string | null;
                        salesMultiple: number | null;
                        minimumQuantity: number | null;
                        finishedProduct: { id: string; name: string; code: string } | null;
                        tax: { id: string; name: string; rate: number } | null;
                        unitOfMeasure:
                            | { id: string; code: string; name: string; symbol: string
                            | null }
                            | null;
                        unitOfPrice:
                            | { id: string; code: string; name: string; symbol: string
                            | null }
                            | null;
                    },
                    {
                        id: string;
                        finishedProductId: string
                        | null;
                        description: string;
                        quantity: number;
                        unitPrice: number;
                        totalPrice: number;
                        taxId: string | null;
                        taxRate: number;
                        taxAmount: number;
                        deliveredQuantity: number;
                        remainingQuantity: number;
                        notes: string | null;
                        sequence: number;
                        clientProductCode: string | null;
                        requestedDepartureDate: string | null;
                        confirmedDepartureDate: string | null;
                        unitOfMeasureId: string | null;
                        unitOfPriceId: string | null;
                        salesMultiple: number | null;
                        minimumQuantity: number | null;
                        finishedProduct: { id: string; name: string; code: string } | null;
                        tax: { id: string; name: string; rate: number } | null;
                        unitOfMeasure:
                            | { id: string; code: string; name: string; symbol: string
                            | null }
                            | null;
                        unitOfPrice:
                            | { id: string; code: string; name: string; symbol: string
                            | null }
                            | null;
                    },
                >,
                "many",
            >;
        },
        "strip",
        ZodTypeAny,
        {
            id: string;
            number: string;
            clientId: string
            | null;
            leadId: string | null;
            orderDate: string;
            status:
                | "DRAFT"
                | "CANCELLED"
                | "COMPLETED"
                | "CONFIRMED"
                | "PENDING_CONFIRMATION"
                | "IN_PRODUCTION"
                | "READY_TO_SHIP"
                | "SHIPPED"
                | "DELIVERED"
                | "PARTIAL";
            clientOrderNumber: string
            | null;
            totalAmount: number;
            currencyId: string | null;
            salesOfferId: string | null;
            notes: string | null;
            requestedDepartureDate?: string | null;
            confirmedDepartureDate?: string | null;
            createdAt: string;
            updatedAt: string;
            client:
                | {
                    id: string;
                    name: string;
                    code: string;
                    email: string
                    | null;
                    phone: string | null;
                }
                | null;
            lead: | {
                id: string;
                name: string;
                code: string;
                email: string
                | null;
                phone: string | null;
            }
            | null;
            currency: | { id: string; code: string; name: string; symbol: string }
            | null;
            salesOffer:
                | { id: string; number: string; projectName: string
                | null }
                | null;
            lines: {
                id: string;
                finishedProductId: string | null;
                description: string;
                quantity: number;
                unitPrice: number;
                totalPrice: number;
                taxId: string | null;
                taxRate: number;
                taxAmount: number;
                deliveredQuantity: number;
                remainingQuantity: number;
                notes: string | null;
                sequence: number;
                clientProductCode: string | null;
                requestedDepartureDate: string | null;
                confirmedDepartureDate: string | null;
                unitOfMeasureId: string | null;
                unitOfPriceId: string | null;
                salesMultiple: number | null;
                minimumQuantity: number | null;
                finishedProduct: { id: string; name: string; code: string } | null;
                tax: { id: string; name: string; rate: number } | null;
                unitOfMeasure:
                    | { id: string; code: string; name: string; symbol: string
                    | null }
                    | null;
                unitOfPrice:
                    | { id: string; code: string; name: string; symbol: string
                    | null }
                    | null;
            }[];
        },
        {
            id: string;
            number: string;
            clientId: string
            | null;
            leadId: string | null;
            orderDate: string;
            status:
                | "DRAFT"
                | "CANCELLED"
                | "COMPLETED"
                | "CONFIRMED"
                | "PENDING_CONFIRMATION"
                | "IN_PRODUCTION"
                | "READY_TO_SHIP"
                | "SHIPPED"
                | "DELIVERED"
                | "PARTIAL";
            clientOrderNumber: string
            | null;
            totalAmount: number;
            currencyId: string | null;
            salesOfferId: string | null;
            notes: string | null;
            requestedDepartureDate?: string | null;
            confirmedDepartureDate?: string | null;
            createdAt: string;
            updatedAt: string;
            client:
                | {
                    id: string;
                    name: string;
                    code: string;
                    email: string
                    | null;
                    phone: string | null;
                }
                | null;
            lead: | {
                id: string;
                name: string;
                code: string;
                email: string
                | null;
                phone: string | null;
            }
            | null;
            currency: | { id: string; code: string; name: string; symbol: string }
            | null;
            salesOffer:
                | { id: string; number: string; projectName: string
                | null }
                | null;
            lines: {
                id: string;
                finishedProductId: string | null;
                description: string;
                quantity: number;
                unitPrice: number;
                totalPrice: number;
                taxId: string | null;
                taxRate: number;
                taxAmount: number;
                deliveredQuantity: number;
                remainingQuantity: number;
                notes: string | null;
                sequence: number;
                clientProductCode: string | null;
                requestedDepartureDate: string | null;
                confirmedDepartureDate: string | null;
                unitOfMeasureId: string | null;
                unitOfPriceId: string | null;
                salesMultiple: number | null;
                minimumQuantity: number | null;
                finishedProduct: { id: string; name: string; code: string } | null;
                tax: { id: string; name: string; rate: number } | null;
                unitOfMeasure:
                    | { id: string; code: string; name: string; symbol: string
                    | null }
                    | null;
                unitOfPrice:
                    | { id: string; code: string; name: string; symbol: string
                    | null }
                    | null;
            }[];
        },
    > = ...