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

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  data: {
                      qualityControls: {
                          id: string;
                          workOrderId: string
                          | null;
                          workOrderNumber: string;
                          workOrder:
                              | { id: string; number: string; product: string; client: string }
                              | null;
                          operationId: string;
                          operation: {
                              id: string;
                              name: string;
                              code: string;
                              description: string | null;
                          };
                          controlType: string;
                          result: string
                          | null;
                          passed: boolean;
                          performedBy: string | null;
                          performedByUser:
                              | { id: string; name: string
                              | null; email: string }
                              | null;
                          performedAt: Date;
                          notes: string | null;
                          photos: string[];
                          attachments: string[];
                          status: string;
                          qualityStatus: string | null;
                      }[];
                      pagination: {
                          page: number;
                          limit: number;
                          total: number;
                          pages: number;
                      };
                  };
              },
          >,
      >