ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  finishedProducts: {
                      id: string;
                      code: string;
                      name: string;
                      description: string
                      | null;
                      unitOfMeasure:
                          | { code: string; id: string; name: string; symbol: string
                          | null }
                          | null;
                      category: { id: string; name: string } | null;
                      client: { code: string; id: string; name: string } | null;
                      weight: number | null;
                      totalStock: number;
                      stockLots: {
                          id: string;
                          lotNumber: string;
                          batchNumber: string | null;
                          quantity: number;
                          unit: string;
                          expiryDate: Date | null;
                          productionDate: Date | null;
                          isActive: boolean;
                          createdAt: Date;
                          currentStock: number;
                          stockLabels: (
                              | {
                                  id: ...;
                                  barcode: ...;
                                  labelType: ...;
                                  quantity: ...;
                                  unit: ...;
                                  isPrinted: ...;
                                  createdAt: ...;
                                  isStockLabel: ...;
                              }
                              | {
                                  id: ...;
                                  barcode: ...;
                                  labelType: ...;
                                  quantity: ...;
                                  unit: ...;
                                  isPrinted: ...;
                                  createdAt: ...;
                                  isStockLabel: ...;
                                  position: ...;
                                  consumedAt: ...;
                                  consumedQuantity: ...;
                              }
                          )[];
                          _count: { stockMovements: number; stockLabels: number };
                      }[];
                      labels: (
                          {
                              stockLot: | {
                                  expiryDate: ...;
                                  id: ...;
                                  lotNumber: ...;
                                  productionDate: ...;
                                  quantity: ...;
                                  unit: ...;
                              }
                              | null;
                              workOrder: { id: ...; manufacturingOrder: ...; number: ... }
                              | null;
                          } & {}
                      )[];
                      totalLabels: number;
                      totalLots: number;
                  }[];
                  total: number;
                  page: number;
                  limit: number;
                  totalPages: number;
              },
          >,
      >