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

      • request: Request

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  manufacturingOrders: any[];
                  orphanWorkOrders: (
                      {
                          assignedOperator: { id: string; name: string | null }
                          | null;
                          client: { code: string; id: string; name: string } | null;
                          finishedProduct:
                              | {
                                  code: string;
                                  id: string;
                                  imageUrl: string
                                  | null;
                                  name: string;
                              }
                              | null;
                          operation: { code: string; id: string; name: string }
                          | null;
                          workStation: { code: string; id: string; name: string } | null;
                      } & {}
                  )[];
                  stats: Record<string, number>;
                  total: number;
              },
          >,
      >