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

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  simulations: (
                      {
                          client: { code: string; id: string; name: string }
                          | null;
                          datesValidatedByUser:
                              | { email: string; id: string; name: string
                              | null }
                              | null;
                          finishedProduct: {
                              client: { code: string; id: string; name: string } | null;
                              code: string;
                              id: string;
                              name: string;
                          };
                          lines: (
                              {
                                  finishedProduct: (...)
                                  | (...);
                                  rawMaterial: (...) | (...);
                                  supplier: (...) | (...);
                                  unitOfMeasure: (...) | (...);
                              } & {}
                          )[];
                          responsibleUser: | { email: string; id: string; name: string
                          | null }
                          | null;
                          routing:
                              | {
                                  finishedProduct: { code: string; name: string };
                                  id: string;
                                  name: string;
                              }
                              | null;
                          salesOrderLine: | {
                              id: string;
                              quantity: number;
                              salesOrder: { id: string; number: string };
                          }
                          | null;
                      } & {}
                  )[];
                  pagination: { total: number; limit: number; offset: number };
              },
          >,
      >